u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
* i.mx7ulp u-boot image flashing to SD card - Doesn't use the new image from SD card.
@ 2021-10-12 21:32 Karicheri, Murali
  2021-10-14 18:51 ` Karicheri, Murali
  0 siblings, 1 reply; 2+ messages in thread
From: Karicheri, Murali @ 2021-10-12 21:32 UTC (permalink / raw)
  To: u-boot

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@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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: i.mx7ulp u-boot image flashing to SD card - Doesn't use the new image from SD card.
  2021-10-12 21:32 i.mx7ulp u-boot image flashing to SD card - Doesn't use the new image from SD card Karicheri, Murali
@ 2021-10-14 18:51 ` Karicheri, Murali
  0 siblings, 0 replies; 2+ messages in thread
From: Karicheri, Murali @ 2021-10-14 18:51 UTC (permalink / raw)
  To: u-boot

Found the issue. The of=/dev/sde
>sudo dd if=u-boot-dtb.imx of=/dev/sde1 bs=1k seek=1 conv=fsync

Murali Karicheri, Software Architect
S&C Electric Company
(Work from Home)
18702 Broken Oak Rd, Boyds,
Maryland, USA 20841
Phone    : (301) 256 8139
E-Mail    : Murali.Karicheri@sandc.com


-----Original Message-----
From: Karicheri, Murali
Sent: Tuesday, October 12, 2021 5:33 PM
To: u-boot@lists.denx.de
Subject: i.mx7ulp u-boot image flashing to SD card - Doesn't use the new image from SD card.

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@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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-14 18:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-12 21:32 i.mx7ulp u-boot image flashing to SD card - Doesn't use the new image from SD card Karicheri, Murali
2021-10-14 18:51 ` Karicheri, Murali

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).