imx6开机启动就进入download模式,有的板子进入文件系统之后会进入download模式。查看datasheet,Chapter 8 System Boot查找原因,记录于此。

freescale论坛有关于这个问题的讨论,有硬件也有软件方面的原因。

参考链接

  https://community.nxp.com/thread/316232

  https://community.nxp.com/thread/338433

boot mode pin settings

8.2.1 Boot mode pin settings
BOOT_MODE is initialized by sampling the BOOT_MODE0 and BOOT_MODE1
inputs on the rising edge of POR_B. After these inputs are sampled, their subsequent
state does not affect the contents of the BOOT_MODE internal register. The state of the
internal BOOT_MODE register may be read from the BMOD[1:0] field of the SRC Boot
Mode Register (SRC_SBMR2). The available boot modes are: Boot From Fuses, serial
boot via USB, and Internal Boot. See the table below for settings
根据BOOT_MODE[1:0]引脚的值选择启动类型
BOOT_MODE[1:0] Boot Type
00 Boot From Fuses
01 Serial Downloader
10 Internal Boot
11 Reserved 在POR_B引脚的上升沿读取BOOT_MODE0和BOOT_MODE1的值作为启动的模式。 如果boot一开始就进入download模式,应该查看POR_B上升沿时,BOOT_MODE, BOOT_CFG引脚配置的值是否正确。

Boot devices(Internal Boot)

当选择为Internal Boot时,根据BOOT_CFG1[7:4]选择启动设备的类型,如果没有选择的设备,则进入download模式。 

NOR Flash with External Interface Module (EIM), located on CS0, 16-bit bus width
• OneNAND Flash with EIM interface, located on CS0, 16-bits bus width
• Raw NAND (MLC and SLC), and Toggle-mode NAND flash through GPMI-2
interface. Page sizes of 2 Kbyte, 4 Kbyte and 8 Kbyte. Bus widths of 8-bit with 2
through 40-bit BCH Hardware ECC (Error Correction) are supported.
• SD/MMC/eSD/SDXC/eMMC4.4 via USDHC interface, supporting high capacity
cards
• EEPROM boot via SPI (serial flash) and I2C(via ECSPI and I2C blocks respectively)
The selection of external boot device type is controlled by BOOT_CFG1[7:4] eFUSEs.
See the table below for more details BOOT_CFG1[7:4] Boot Device
0000 NOR/OneNAND (EIM)
0001 Reserved
0011 Serial ROM (I2C/SPI)
010x SD/eSD/SDXC
011x MMC/eMMC
1xxx Raw NAND

BOOT_CFG其他引脚

BOOT_CFG1,BOOT_CFG2,BOOT_CFG3,BOOT_CFG4引脚进一步确定其他的参数。

例如sd/emmc,如下:
8.5.3 Expansion Device
The ROM supports booting from MMC/eMMC and SD/eSD compliant devices.
8.5.3.1 Expansion Device eFUSE Configuration
SD/MMC/eSD/eMMC/SDXC boot can be performed using either USDHC ports, based
on setting of the BOOT_CFG2[4:3] (Port Select) fuse or it's associated GPIO input value
at boot. All USDHC ports support eMMC4.3 and eMMC4.4 fast boot. BOOT_CFG2[7:5] 选择SD/EMMC的参数
SD/eSD/SDXC (BOOT_CFG1[5]=0)
Bus Width
xx0 - 1-bit
xx1 - 4-bit
SD Calibration Step
00x - 1 delay cells
01x - 1 delay cells
10x - 2 delay cells
11x - 3 delay cells
MMC/eMMC (BOOT_CFG1[5]=1)
000 - 1-bit
001 - 4-bit
010 - 8-bit
101 - 4-bit DDR (MMC 4.4)
110 - 8-bit DDR (MMC 4.4)
Else - reserved.
BOOT_CFG2[4:3] 选择从哪个设备启动
01 - USDHC-2
10 - USDHC-3
11 - USDHC-4

Author

Tony Liu

2016-10-31, Shenzhen

imx6 system boot的更多相关文章

  1. Oracle system identifier(SID) "xxx" alread exits. Specify another SID

    案例环境: 操作系统    :Oracle Linux Server release 5.7 64 bit 数据库版本:Oracle Database 10g Release 10.2.0.4.0 - ...

  2. VMWare File Format Learning && Use VHD File To Boot VMWare && CoreOS Docker Configuration And Running

    目录 . Virtual Machine Introduce . Vmware Image File Format . VHD File Format . Convert VHD File Into ...

  3. Linux System Reinforcement、Intrusion Detection Based On syslog

    目录 .文件系统及访问权限 . Linux Syslog . Linux日志审计 . 帐号安全管理 . 基础物理安全 . 系统编译环境安全 . 系统病毒.后门.rootkit安全 . 系统端口.服务安 ...

  4. System Address Map Initialization in x86/x64 Architecture Part 2: PCI Express-Based Systems

      原文  http://resources.infosecinstitute.com/system-address-map-initialization-x86x64-architecture-pa ...

  5. Installing Ubuntu on a Pre-Installed Windows 8 (64-bit) System (UEFI Supported)

    http://askubuntu.com/questions/221835/installing-ubuntu-on-a-pre-installed-windows-8-64-bit-system-u ...

  6. In Depth : Android Boot Sequence / Process

    In Depth : Android Boot Sequence / Process What happened when I press power on button in my Android ...

  7. RH253读书笔记(1)-Lab 1 System Monitoring

    Lab 1 System Monitoring Goal: To build skills to better assess system resources, performance and sec ...

  8. 痞子衡嵌入式:飞思卡尔i.MX RT系列MCU启动那些事(1)- Boot简介

    大家好,我是痞子衡,是正经搞技术的痞子.今天痞子衡给大家介绍的是飞思卡尔i.MX RT系列MCU的BootROM功能简介. 截止目前为止i.MX RT系列已公布的芯片有三款i.MXRT105x, i. ...

  9. Spring Boot Reference Guide

    Spring Boot Reference Guide Authors Phillip Webb, Dave Syer, Josh Long, Stéphane Nicoll, Rob Winch,  ...

随机推荐

  1. [转]asp.net mvc 从数据库中读取图片

    本文转自:http://www.cnblogs.com/mayt/archive/2010/05/20/1740358.html 首先是创建一个类,继承于ActionResult,记住要引用Syste ...

  2. java抛出异常是怎么回事?

    一.Java异常的基础知识 异常是程序中的一些错误,但并不是所有的错误都是异常,并且错误有时候是可以避免的.比如说,你的代码少了一个分号,那么运行出来结果是提示是错误java.lang.Error:如 ...

  3. ajax的同步和异步问题 (转)

    async默认的设置值为true,这种情况为异步方式,当ajax发送请求后,在等待server端返回的数据的过程中,程序会继续执行ajax块后面的代码,直到服务器返回正确的结果才会去执行success ...

  4. java获取MySQL自动的int类型的Id

    @Resource(name = "dashboardTemplate") protected JdbcTemplate systemJDBCTemplate; //这个是Dao里 ...

  5. 学会查看tomcat的日志文件

    1.Tomcat的启动日志写出了几乎所有的启动历史记录, 包括部署项目,deploy项目.用了什么log日志记录软件,启动的tomcat引擎是什么,正在部署什么项目deploying

  6. pdfkit安装使用

    centos 安装pdfkit1.先安装pdfkit依赖包 wkhtmltopdf 安装方式: # wget http://download.gna.org/wkhtmltopdf/0.12/0.12 ...

  7. DWZ中关于iframeCallback和validateCallback的注意事项

    在DWZ上传中..如果要上传图片.则一定只能使用iframeCallback. 并且要表单中注明enctype="multipart/form-data"

  8. 奥迪--Q3

    -型号:Q3 -价格:23-35W -动力:1.4T/2.0T -变速箱:6挡双离合/7挡双离合 -长宽高:4.40,1.84,1.59 -油箱:64L -发动机:EA888 -大灯:氙气(选装LED ...

  9. 利用crontab定时重启centos

    起因 前一段买了aliyun的ecs的最低配版,大概配置是centos 7,512内存,20G空间. 部署了几个站点,虽然网站已经做了一定的静态化,但还是会出现内存不够用的情况,这个时候,系统会停掉一 ...

  10. mysqli常用命令

    <?php //创建连接 $mysqli=new mysqli("localhost","root","","volunte ...