i.mx7ulp u-boot image flashing to SD card - Doesn't use the new image from SD card.

Karicheri, Murali Murali.Karicheri at sandc.com
Tue Oct 12 23:32:46 CEST 2021


Hello imx7 developers,
I have an i.mx7ulp evk board and have been chasing an issue that prevents me from using my own u-boot image flashed to the SD card to boot the board. The basic steps I followed are
1. build u-boot image using mx7ulp_evk_defconfig and I get u-boot-dtb.imx. I am using NXP's 5.4.x GA release. But would like to use the latest from upstream tree as well. So your response can be based on upstream version.
2. SD card formatting. create 2 partitions using fdisk command. u-boot image is at the start of partition 1 as per available information. So partition 1 starts with first section at 20480 and last at 1024000. Partition 2 at 1228800.
3. For now I just want to boot with u-boot only and not to Linux. So I program u-boot image using dd command as
    sudo dd if=u-boot-dtb.imx of=/dev/sde1 bs=1k seek=1 conv=fsync
    where u-boot-dtb.imx is my u-boot image from step 1. /dev/sde1 is device for the first partition

>sudo dd if=u-boot-dtb.imx of=/dev/sde1 bs=1k seek=1 conv=fsync
[sudo] password for sandc:
495+0 records in
495+0 records out
506880 bytes (507 kB, 495 KiB) copied, 0.127887 s, 4.0 MB/s
sandc at sandc-VirtualBox:~/git/uboot-imx (imx_v2020.04_5.4.70_2.3.0)$ sync

4. Eject the sd card and boot i.mx7ulp evk with this SD card.

Unfortunately the console shows the old image
U-Boot 2020.04-5.4.47-2.2.0+gffc3fbe7e5 (Sep 11 2020 - 19:56:06 +0000)

Have anyone seen similar issue and have clue on what is going on. Thanks for your feedback.

Thanks
Murali Karicheri


________________________________
NOTICE OF CONFIDENTIALITY:
This message may contain information that is considered confidential and which may be prohibited from disclosure under applicable law or by contractual agreement. The information is intended solely for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the information contained in or attached to this message is strictly prohibited. If you have received this email transmission in error, please notify the sender by replying to this email and then delete it from your system.


More information about the U-Boot mailing list