加载内核方式

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

重启开发板

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值