JZ2440燒寫方法
2、用TFTP燒寫,打開tftpd32.exe軟件,設置Current Directory(下載文件所在目錄)、Server interface(選擇PC機的當前IP地址);設置開發板為Nor啟動,打開SecureCRT軟件,給開發板上電,按空格鍵進入u-boot菜單,輸入Q退出菜單,輸入“print”命令查看開發板當前IP、serverIP,設置開發板本地IP和PC在同一個段內,設置服務器IP為PC機當前IP地址:
OpenJTAG> setenv ipaddr 192.168.48.111
OpenJTAG> setenv serverip 192.168.48.104
保存:
OpenJTAG> save
重啟開發板,按空格鍵并退出菜單,ping服務器:
OpenJTAG> ping 192.168.48.104
出現:
ERROR: resetting DM9000 -> not responding
dm9000 i/o: 0x20000000, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 08:00:3e:26:0a:5b
could not establish link
host 192.168.48.104 is alive
說明已經連接服務器成功,再tftp 30000000 led_on_c.bin(要下載的文件名),下載文件led_on_c.bin到30000000 地址處,擦除bootloader分區:
nand erase bootloader
出現:
NAND erase: device 0 offset 0x0, size 0x40000
Erasing at 0x20000 -- 100% complete.
OK
表示擦除成功,
輸入:nand write 30000000 bootloader,燒寫下載的.bin文件,
NAND write: device 0 offset 0x0, size 0x40000
表示燒寫成功!斷電,撥回nand啟動,就可以看到下載的程序運行
評論