1、打开Windows下的tftpd32.exe,设置IP为10.0.0.151;
2、将uImage.initramfs从虚拟机中拷到tftpd32.300文件夹下;
3、设置IP地址:
sipsys>setenv ipaddr 192.168.139.159
sipsys>setenv serverip 192.168.139.157
sipsys>saveenv
Saving Environment to Flash...
end_addr 1 = 0x20005fff
Protect off 20004000 ... 20005FFF
Un-Protected 1 sectors
Erasing Flash...
Erasing Flash locations, Please Wait
.
Erased 1 sectors
Writing to Flash... done
Protected 1 sectors
sipsys>setenv serverip 192.168.139.157
sipsys>saveenv
Saving Environment to Flash...
end_addr 1 = 0x20005fff
Protect off 20004000 ... 20005FFF
Un-Protected 1 sectors
Erasing Flash...
Erasing Flash locations, Please Wait
.
Erased 1 sectors
Writing to Flash... done
Protected 1 sectors
sipsys>bdinfo
boot_params = 0x00000000
memstart = 0x00000000
memsize = 0x00000000
flashstart = 0x20000000
flashsize = 0x00400000
flashoffset = 0x00000000
ethaddr = 02:80:AD:20:31:B8
ip_addr = 192.168.139.159
baudrate = 57600 bps
boot_params = 0x00000000
memstart = 0x00000000
memsize = 0x00000000
flashstart = 0x20000000
flashsize = 0x00400000
flashoffset = 0x00000000
ethaddr = 02:80:AD:20:31:B8
ip_addr = 192.168.139.159
baudrate = 57600 bps
4、下载到SRAM中运行 (0x00000000 - 0x08000000,共128M) :
将网线插到左边的端口。
sipsys>tftp 0x01000000 uImage.initramfs
dm9000 i/o: 0x20320300, id: 0x90000a46
MAC: 02:80:ad:20:31:b8
operating at 100M full duplex mode
TFTP from server 192.168.139.157; our IP address is 192.168.139.159
Filename 'uImage.initramfs'.
Load address: 0x1000000
Loading: ################################################################# ################################################################# #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
##############################################################
done
Bytes transferred = 3643881 (3799e9 hex)
dm9000 i/o: 0x20320300, id: 0x90000a46
MAC: 02:80:ad:20:31:b8
operating at 100M full duplex mode
TFTP from server 192.168.139.157; our IP address is 192.168.139.159
Filename 'uImage.initramfs'.
Load address: 0x1000000
Loading: ################################################################# ################################################################# #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
##############################################################
done
Bytes transferred = 3643881 (3799e9 hex)
5、启动内核:
sipsys>bootm 0x01000000