怎么把uboot从SD卡烧到emmc

2025-04-20 11:30:44

1、1.mmc info显示存储设备的信息,在切换到emmc设备下(执行mmc dev 0),执行mmcinfo可看到存储设备各属性信息:

怎么把uboot从SD卡烧到emmc
怎么把uboot从SD卡烧到emmc

2、2.使用mmc erase addr blk# cnt 命令把emmc中的部分存储空间清空。mmc erase 0 12500

怎么把uboot从SD卡烧到emmc

3、3.用t酆璁冻嘌ftf把image.ub下载到内存中:tftp 0x800000 image.ub或者tftpboot 0x800000 image.ub

怎么把uboot从SD卡烧到emmc
怎么把uboot从SD卡烧到emmc

4、4.把内存中的内容写到emmc中指定位置,我写在0x0开始的位置:mmc write 0x800000 0 12500。

怎么把uboot从SD卡烧到emmc

5、5.设置环境筐毙险裆变量并保存在启动过程中将emmc中的内容读取到0x1000000内存中并启动内核:setenv boot_emmc 'mmc read 0x1000000 0x0 12500 && bootm 0x1000000'

怎么把uboot从SD卡烧到emmc

6、6.最后就直接启动就可以了,我这里是直接在u-boot下面run,如图:

怎么把uboot从SD卡烧到emmc
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢