AnsweredAssumed Answered

??? howto flash custom built yocto image to the eMMC?

Question asked by Pauli Virtanen on May 27, 2019
Latest reply on May 29, 2019 by Artur Petukhov

Hello,

 

With yocto we can create a custom sdcard image. Then boot it on iMX8MMini EVK

 

1. How to compile the bootloader (u-boot) which is compatible with UUU?

 

if I try to execute uuu -v -b emmc my_freshly_backed_u-boot.bin,

I get: Fail Can find validate IVT header,

and only bootloader bin files supplied with imx-yocto-L4.14.98_2.0.0_ga package can be flashed.

 

2. How to flash the bootloader from the userspace???

echo 0 > /sys/block/mmcblk2boot0/force_ro

dd if=/tmp/_flash.bin of=/dev/mmc2boot0 bs=1K seek=32

echo 1 > /sys/block/mmcblk2boot0/force_ro

 

what else???

Outcomes