am335x 烧写 uboot
1.使用Xmodem下载u-boot-spl.bin
将板设置成从串口引导,待终端打印CCC时,在SecureCRT中执行菜单Transfer -> Send Xmodem...定位到u-boot-spl.bin,等待传输完成
2.使用Ymodem下载u-boot.bin
传输完u-boot-spl.bin后 ,终端打印C,等待传输u-boot.bin 在SecureCRT中执行菜单Transfer -> Send Ymodem...定位到u-boot.bin,等待传输完成
3.确认分区信号,以便将MLO 和 u-boot.img烧写到对应的位置
执行uboot命令mtdparts
device nand0 , # parts = 10
#: name size offset mask_flags
0: NAND.SPL 0x00020000 0x00000000 0
1: NAND.SPL.backup1 0x00020000 0x00020000 0
2: NAND.SPL.backup2 0x00020000 0x00040000 0
3: NAND.SPL.backup3 0x00020000 0x00060000 0
4: NAND.u-boot-spl-os 0x00040000 0x00080000 0
5: NAND.u-boot 0x00100000 0x000c0000 0
6: NAND.u-boot-env 0x00020000 0x001c0000 0
7: NAND.u-boot-env.backup10x00020000 0x001e0000 0
8: NAND.kernel 0x00800000 0x00200000 0
9: NAND.file-system 0x0f600000 0x00a00000 0
可知,MLO 的分区为 NAND.SPL , u-boot.img 的分区为 NAND.u-boot
4.烧写MLO
tftp 82000000 MLO
nand erase 0 20000
nand write 82000000 0 20000
5.烧写u-boot.img
tftp 82000000 u-boot.img
nand erase c0000 100000
nand write 82000000 c0000 100000
6.完成
阅读(2988) | 评论(0) | 转发(0) |