imx6 system boot

5 篇文章 0 订阅

 

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

 
  1. 8.2.1 Boot mode pin settings

  2. BOOT_MODE is initialized by sampling the BOOT_MODE0 and BOOT_MODE1

  3. inputs on the rising edge of POR_B. After these inputs are sampled, their subsequent

  4. state does not affect the contents of the BOOT_MODE internal register. The state of the

  5. internal BOOT_MODE register may be read from the BMOD[1:0] field of the SRC Boot

  6. Mode Register (SRC_SBMR2). The available boot modes are: Boot From Fuses, serial

  7. boot via USB, and Internal Boot. See the table below for settings

  8. 根据BOOT_MODE[1:0]引脚的值选择启动类型

  9. BOOT_MODE[1:0] Boot Type

  10. 00 Boot From Fuses

  11. 01 Serial Downloader

  12. 10 Internal Boot

  13. 11 Reserved

  14.  
  15. 在POR_B引脚的上升沿读取BOOT_MODE0和BOOT_MODE1的值作为启动的模式。

  16.  
  17. 如果boot一开始就进入download模式,应该查看POR_B上升沿时,BOOT_MODE, BOOT_CFG引脚配置的值是否正确。

Boot devices(Internal Boot)

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

  2.  
  3. NOR Flash with External Interface Module (EIM), located on CS0, 16-bit bus width

  4. • OneNAND Flash with EIM interface, located on CS0, 16-bits bus width

  5. • Raw NAND (MLC and SLC), and Toggle-mode NAND flash through GPMI-2

  6. interface. Page sizes of 2 Kbyte, 4 Kbyte and 8 Kbyte. Bus widths of 8-bit with 2

  7. through 40-bit BCH Hardware ECC (Error Correction) are supported.

  8. • SD/MMC/eSD/SDXC/eMMC4.4 via USDHC interface, supporting high capacity

  9. cards

  10. • EEPROM boot via SPI (serial flash) and I2C(via ECSPI and I2C blocks respectively)

  11. The selection of external boot device type is controlled by BOOT_CFG1[7:4] eFUSEs.

  12. See the table below for more details

  13.  
  14. BOOT_CFG1[7:4] Boot Device

  15. 0000 NOR/OneNAND (EIM)

  16. 0001 Reserved

  17. 0011 Serial ROM (I2C/SPI)

  18. 010x SD/eSD/SDXC

  19. 011x MMC/eMMC

  20. 1xxx Raw NAND

BOOT_CFG其他引脚

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

  2.  
  3. 例如sd/emmc,如下:

  4. 8.5.3 Expansion Device

  5. The ROM supports booting from MMC/eMMC and SD/eSD compliant devices.

  6. 8.5.3.1 Expansion Device eFUSE Configuration

  7. SD/MMC/eSD/eMMC/SDXC boot can be performed using either USDHC ports, based

  8. on setting of the BOOT_CFG2[4:3] (Port Select) fuse or it's associated GPIO input value

  9. at boot. All USDHC ports support eMMC4.3 and eMMC4.4 fast boot.

  10.  
  11. BOOT_CFG2[7:5] 选择SD/EMMC的参数

  12. SD/eSD/SDXC (BOOT_CFG1[5]=0)

  13. Bus Width

  14. xx0 - 1-bit

  15. xx1 - 4-bit

  16. SD Calibration Step

  17. 00x - 1 delay cells

  18. 01x - 1 delay cells

  19. 10x - 2 delay cells

  20. 11x - 3 delay cells

  21. MMC/eMMC (BOOT_CFG1[5]=1)

  22. 000 - 1-bit

  23. 001 - 4-bit

  24. 010 - 8-bit

  25. 101 - 4-bit DDR (MMC 4.4)

  26. 110 - 8-bit DDR (MMC 4.4)

  27. Else - reserved.

  28. BOOT_CFG2[4:3] 选择从哪个设备启动

  29. 01 - USDHC-2

  30. 10 - USDHC-3

  31. 11 - USDHC-4

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值