我的调试板用的是hi3516dv300,flash是spi nor flash。先进uboot控制台配置网路参数
hisilicon # setenv serverip 192.168.1.176
hisilicon # setenv ipaddr 192.168.1.190
hisilicon # setenv ethaddr 52:bf:a2:a5:ff:1d
hisilicon # setenv netmask 255.255.255.0
hisilicon # setenv gatewayip 192.168.1.1
saveenv
ping 192.168.1.176 (我的PC作为ftp服务器),保证网络是通的
mw.b 0x82000000 0xff 0x400000 /*对内存的初始化*/
tftp 0x82000000 uImage_hi3516dv300_smp /*内核下载到内存*/
sf probe 0 /探测并初始化nor flash/
sf erase 0x100000 0x400000; /*擦除4M大小*/
sf write 0x82000000 0x100000 0x400000 /*从内存写入nor flash*/