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} # sf probe 0;mw.b 82000000 ff 40000;tftp 0x82000000 uboot_V160530;sf probe 0;sf erase 0 40000;sf write 82000000 0 40000 # reset # UB_KERNEL_BIT mw.b 82000000 ff 2c0000;tftp 82000000 kernel_V170417;sf probe 0;sf erase 50000 2c0000;sf write 82000000 50000 2c0000 # UB_ROOTFS_BIT mw.b 82000000 ff 380000;tftp 0x82000000 rootfs_V171107;sf probe 0;sf erase 310000 380000;sf write 82000000 310000 380000 # app UB_APP_BIT mw.b 82000000 ff 540000;tftp 0x82000000 app_V171215_IPC3516D_HK_M;sf probe 0;sf erase 690000 540000;sf write 82000000 690000 540000 # WWW UB_WWW_BIT mw.b 82000000 ff 400000;tftp 0x82000000 www_V171215;sf probe 0;sf erase bd0000 400000;sf write 82000000 bd0000 400000 # UB_ENVAR_BIT setenv bootargs 'mem=64M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=squashfs mtdparts=hi_sfc:320K(boot),2816K(kernel),3584K(rootfs),5376K(app),4M(www),64K(para),64K(p2p),64K(log)'; setenv bootcmd 'sf probe 0;sf read 0x82000000 0x50000 0x2c0000;bootm 0x82000000';sa; # UB_PARACLR_BIT sf probe 0;sf erase fd0000 10000