Hello,
We were able to flash the uboot binary using the uuu tool for We were the IMX8M Nano board. But we are unable to do it from the kernel using the dd command.
$ dd if=uboot.bin of=/dev/mmcblk2 bs=1k seek=32
$ sync
Any corresponding offset or partition in for bootloader flashing? Please share the UUU tool bootloader offset or command for flashing the bootloader.
Kindly help us.
Hello,
Glad to hear that you have managed to do so, regarding your other question, it is indeed possible to do so, you may use a custom script for this:
https://github.com/nxp-imx/mfgtools/wiki/Sample-scripts#burn-yocto-image-to-emmc-by-linux-kernel
In the script above you may change the following:
FBK: ucmd mmc=`cat /tmp/mmcdev`; echo 0 > /sys/block/mmcblk${mmc}boot1/force_ro FBK: ucp _flash.bin t:/tmp FBK: ucmd mmc=`cat /tmp/mmcdev`; dd if=/tmp/_flash.bin of=/dev/mmc${mmc}boot1 bs=1K seek=32 FBK: ucmd mmc=`cat /tmp/mmcdev`; echo 1 > /sys/block/mmcblk${mmc}boot1/force_ro
As you may have notice is the same procedure you did on the kernel.
Best regards/Saludos,
Aldo.
Hello,
Actually you can refer the community document mentioned above, it is good reference for your use case:
https://community.nxp.com/t5/NXP-Tech-Blog/i-MX8QXP-eMMC-Secondary-Boot/ba-p/1257704#M45
Best regards/Saludos,
Aldo.