一、Uboot烧录
1、连接jtag、网线、串口
2、把tftpd32.exe放到uboot烧录的目录里
3、启动tftpd32.exe
4、启动ttermpro.exe
5、双击uboot.bat
6、等到窗口弹出来
8、在串口工具中
1、 执行print 命令,查看环境变量
2、执行setenv serverip 具体IP 地址,配置tftp server 的地址等
3、执行setenv loadaddr 82000000,设置uboot.bin 的加载内存位置为0x82000000
4、执行savenv, 保存上述修改
9、烧录:
tftpboot 82000000 u-boot.bin
sf probe 2
sf erase 0 60000
sf write 82000000 0 60000
注意:如果板子上已经烧过uboot,从第8步开始
二、Kernel烧录
1、把ucImage文件放在tftpd32.exe相同的目录下
2、启动tftpd32.exe
3、启动串口调试工具 ttermpro.exe
下面操作都是在串口工具中进行的:
4、输入 nand erase 擦除nand里的内容
5、tftp ucImage 加载到内存
6、nand write 0x82000000 0x40000 0x400000 写入nand中
7、 set bootcmd 'nand read 0x82000000 0x40000 0x400000;bootm 82000000' 设置bootcmd