1. 程式人生 > >【Hi3516】 uboot下燒寫BSP

【Hi3516】 uboot下燒寫BSP

 

 

 

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,確保網路暢通。

 

setenv serverip 192.168.1.107        
setenv bootargs 'mem=32M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=jffs2 rw mtdparts=hi_sfc:1M(boot),3M(kernel),12M(rootfs)
' setenv bootcmd 'sf probe 0;sf read 0x82000000 0x100000 0x300000;bootm 0x82000000' sa

 

 

mw.b 82000000 ff 100000;tftp 0x82000000 u-boot-hi3516ev100.bin;sf probe 0;sf erase 0 100000;sf write 82000000 0 100000 ;
reset

mw.b 82000000 ff 300000;tftp 82000000 uImage_hi3516ev100;sf probe 0;sf erase 100000 300000;sf write 82000000 100000 300000

mw.b 82000000 ff C00000;tftp 0x82000000 rootfs_hi3516ev100_64k.jffs2;sf probe 0
;sf erase 400000 C00000;sf write 82000000 400000 C00000