ST意法半导体
直播中

郝埃连

7年用户 1419经验值
私信 关注
[问答]

如何为stm32mp157d-dk1构建自定义openstlinux映像呢

嗨,我正在使用 Yocto 为 STM32mp157d-dk1 构建自定义 openstlinux 映像,但我想使用大容量存储模式上传映像,启用 u-boot 或类似的东西。



回帖(1)

张鸿青

2022-12-16 15:16:19
1.重启开发板,在U-boot shell中按任意键停止
        主板 $> 重启
        [...]
        按任意键停止自动启动:0
        STM32MP>
2.通过USB OTG口连接主机和板子之间的USB线,在U-Boot shell中,调用USB mass storage函数
        STM32MP> 嗯 0 mmc 0
        这里注意:“mmc 0”是SD卡,如果你的启动设备是Emmc,就应该是“mmc 1”
3. 检查与二级引导加载程序 (ssbl) 关联的分区:此处为 sdc3
        PC $> ls -l /dev/disk/by-partlabel/
        总计 0
        lrwxrwxrwx 1 root root 10 Jan 17 18:05 bootfs -> ../../sdc4
        lrwxrwxrwx 1 root root 10 Jan 17 18:05 fsbl1 -> ../../sdc1
        lrwxrwxrwx 1 root root 10 Jan 17 18:05 fsbl2 -> ../../sdc2
        lrwxrwxrwx 1 root root 10 Jan 17 18:05 rootfs -> ../../sdc5
        lrwxrwxrwx 1 root root 10 Jan 17 18:05 ssbl -> ../../sdc3
        lrwxrwxrwx 1 root root 10 Jan 17 18:05 userfs -> ../../sdc6
4.将二进制文件(u-boot.stm32)复制到专用分区
        PC $> dd if=u-boot--trusted.stm32 of=/dev/sdc3 bs=1M conv=fdatasync
举报

更多回帖

发帖
×
20
完善资料,
赚取积分