上面已經在ubuntu上安裝了tftp客戶端和服務器,早上來了沒有開虛擬機,嘗試在windows下燒寫海思3531開發板文件系統
準備環境:windows10,tftp32服務器,xshell4
開發板中有u-boot和內核,現在只燒寫文件系統
1、配置tftp服務器
# 可以使用任意的tftp服務器,將package/image_uclibc(或image_glibc)下的文件rootfs_256k.jffs2拷貝到tftp服務器目錄下。
2、參數配置
# 單板上電後,敲任意鍵進入u-boot。設置serverip(即tftp服務器的ip)、ipaddr(單板ip)和ethaddr(單板的MAC地址)。
setenv serverip xx.xx.xx.xx
setenv ipaddr xx.xx.xx.xx
setenv ethaddr xx:xx:xx:xx:xx:xx
setenv netmask xx.xx.xx.xx
setenv gatewayip xx.xx.xx.xx
ping serverip,確保網絡暢通。
3、windows服務器的地址是192.168.1.155
開發板的地址是192.168.1.12,
網口壞掉了
換一個網口正常工作了
4、燒寫文件系統
mw.b 82000000 ff b00000
tftp 0x82000000 rootfs_256k.jffs2
sf probe 0
sf erase 500000 b00000sf write 82000000 500000 b00000
setenv bootargs 'mem=192M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=jffs2 mtdparts=hi_sfc:1M(boot),4M(kernel),11M(rootfs);hinand:128M(nand)'
5、啓動新系統
reset # 重啓進入新系統。