通过NFS 服务烧入Nand Flash:
首先,u-boot要支持NFS和NAND命令,主机配置好NFS服务
1.nfs 30008000 192.168.1.100:/home/guo/u-boot.bin
2.nand erase 0 0x40000
3.nand write 0x30008000 0 0x40000
[u-boot@MINI2440]# nfs 30008000 192.168.1.100:/home/guo/u-boot.bin dm9000 i/o: 0x20000300, id: 0x90000a46 DM9000: running in 16 bit mode MAC: 08:08:11:18:12:27 operating at 100M full duplex mode Using dm9000 device File transfer via NFS from server 192.168.1.100; our IP address is 192.168.1.101 Filename '/home/guo/u-boot.bin'. Load address: 0x30008000 Loading: ################################################### done Bytes transferred = 256220 (3e8dc hex) [u-boot@MINI2440]# nand erase 0 0x40000 NAND erase: device 0 offset 0x0, size 0x40000 Erasing at 0x2000000000004 -- 0% complete. OK [u-boot@MINI2440]# nand write 0x30008000 0 0x40000
NAND write: device 0 offset 0x0, size 0x40000 Writing at 0x2000000020000 -- 100% is complete. 262144 bytes written: OK |
参考tekkamanninja大侠的文章!