hi,all
我的 am4379 gp evm板 SYSBOOT[4:0]设置为 11001, 即启动顺序是 UART0-> NAND_I2C->NAND->MMC0.
首先可以用uart0 分别传入u-boot-spl.bin 和 u-boot.img. 自动运行uboot,提示出几百行信息:
omap-elm:uncorrectable ECC errors
omap-elm:uncorrectable ECC errors
omap-elm:uncorrectable ECC errors
omap-elm:uncorrectable ECC errors
omap-elm:uncorrectable ECC errors
....
...
omap-elm:uncorrectable ECC errors
然后进入uboot,通过以下命令写入 MLO, u-boot.img. 提示写ok.
loadb 0x82000000 // MLO
nand erase 0x0 0x20000
nand write 0x82000000 0x0 0x20000
loadb 0x82000000 // u-boot.img
nand erase 0x80000 0x1E0000
nand write 0x82000000 0x80000 0x1E0000
第三步,复位重启 gp evm. 等待 从 NAND 启动.
几秒钟后,串口提示如下
U-Boot SPL 2014.07 (Sep 28, 2015 ...)
### ERROR ### Please RESET the board ###
我怀疑这个地址表的偏移地址(参考 Linux Core U-Boot User's Guide.pdf)有误?
但是了参考 u-boot 的源码, spl 起始地址是 0x100000, u-boot的起始地址是 0x180000 ?这和ug内不一致!
我两个地址都试过,一样 会提示: ### ERROR ### Please RESET the board ###
哪位大神能否提供 官方的参考文档~~.
|
offset |
size | |
| NAND.SPL | 0x00000000 | 0x00020000 |
| NAND.SPL.backup1 | 0x00020000 | 0x00020000 |
| NAND.SPL.backup2 | 0x00040000 | 0x00020000 |
| NAND.SPL.backup3 | 0x00060000 | 0x00020000 |
| NAND.u-boot | 0x00080000 | 0x001E0000 |
| NAND.u-boot-env | 0x00260000 | 0x00020000 |
| NAND.kernel | 0x00280000 | 0x00500000 |
| NAND.file-system | 0x00780000 | 0x0F880000 |
非常感谢.