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.
You can check the following link of i.MX8QXP, which has the same boot as i.MX8MN does.
https://community.nxp.com/t5/NXP-Tech-Blog/i-MX8QXP-eMMC-Secondary-Boot/ba-p/1257704#M45
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.
Thanks @AldoG for your reply.
The bootloader boots from the /dev/mmcblk2boot0 partition. This bootloader may be corrupted; how do I recover the board from the /dev/mmcblk2boot1 partition?
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.
AldoG,
Do you know about the i.MX8MN boot offset at emmc boot partition is zero?
Hello,
Yes, it is 0 if the image is in boot partition and 32K if it is in user
partition
Best regards/Saludos,
Aldo.