3、
!1::
send tftp 30008000 u-boot-fulinux.bin;nand erase 0 40000;nand write 30008000 0 40000{enter}
return
第一个是按Alt + 1就能将
tftp 30008000 u-boot-fulinux.bin;nand erase 0 40000;nand write 30008000 0 40000{enter}
发送到uboot的终端上如图

一键式搞定,过程是这样的将ip是192.168.1.78这个tftp服务器指定文件夹中的u-boot-fulinux.bin下载到SDRAM的30008000地址处过地址处放着u-boot本身,tftp传输端也就是在0x33f80000地址往上的uboot来完成的,nand erase是先擦除nandflash上的内容,nand write 是将SDRAM上的30008000起始地址处的u-boot-fulinux.bin下载到nandflash起始地址0处,大小是0x40000。显示OK后,键入reset ,复位cpu这时候就是从nandflash启动,跳线帽是设置在nandflash启动的。
4、
如果 reset后uboot没有达到预期的目标,我们修改源码,然后make,编译过程足够你重复上面过程,将可以在SDRAM和NORflash中运行但是不能在nandflash中运行的(这也是初衷)u-boot-fulinux.bin下到SDRAM的0x33f80000中了
相关阅读:U-Boot源代码下载地址 http://www.linuxidc.com/Linux/2011-07/38897.htm
