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
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
举报