1、tftp
在uboot中:
setenv ipaddr 192.168.1.3
this ipaddress is for board.
setenv serverip 192.168.1.90
this ipaddress is for host machine from which kernel image can be downloaded
然后ping主机看通不通,如果不通,在主机端执行
Sudo servicetftpd-hpa restart
重启tftp服务
setenv bootcmd ‘tftp a0000000 kernel1.itb;pfe stop;bootm a0000000’
kernel1.itb is the built itb file, it should be copied to hostmachine’s tftp root folder.
print
print environment variables
saveenv
save environment variables
2、emmc
在uboot中
setenv ipaddr 192.168.1.3
this ipaddress is for board.
setenv serverip 192.168.1.90
this ip addressis for host machine from which kernel image can be downloaded
mmc info 查看mmc dev 设备信息
mmc dev 1 切换到mmc 的设备1 这里只有1可用
mmc erase 0x800 0x16000 从0x800开始擦除0x16000
tftp a0000000 kernel.itb 将内核加载到内存中
mmc write a0000000 0x800 0x16000 经内存中的内核写到emmc中
setenv bootcmd ‘pfe stop; mmc dev 1; mmc read a0000000 0x800 0x16000;bootm a0000000’
saveenv
重启开发板