TechNexion / u-boot-tn-imx

i.MX U-Boot maintained by TechNexion
GNU General Public License v2.0
13 stars 11 forks source link

SPL: failed to boot from all boot devices #7

Open navinagaraj opened 2 years ago

navinagaraj commented 2 years ago

Hi I tried to boot the wandboard-solo, I followed the steps " https://github.com/TechNexion/u-boot-tn-imx/blob/tn-imx_v2021.04_5.10.72_2.2.0-stable/board/wandboard/README " to bring the u-boot on SD card. But facing some issues on it. can anyone help me to boot wandboard for SD card ?

Error Log: Screenshot from 2022-09-01 16-30-03

U-boot Files created after build:

Screenshot from 2022-09-02 11-10-43

SnappierSoap318 commented 1 year ago

Did you find a way to make it boot?

navinagaraj commented 1 year ago

Did you find a way to make it boot?

No

richard-hu commented 1 year ago

@SnappierSoap318 @navinagaraj :

Thanks for the feedback! We are figuring out this problem.

BR,

Richard

ray-chang commented 1 year ago

@SnappierSoap318 @navinagaraj :

The error message is that the u-boot file of the FAT partition cannot be read. I checked the documentation steps you referenced. It should be a description of the mainline source code.

  • Flash the u-boot.img image into the SD card:

sudo dd if=u-boot-dtb.img of=/dev/mmcblk0 bs=1k seek=69; sync

The u-boot file is loaded by the SPL from the boot partition, which is a FAT filesystem in the first partition. You can refer to the following web link: https://developer.technexion.com/docs/customizing-u-boot

BR, Ray

SnappierSoap318 commented 1 year ago

@ray-chang Using an old version of the source ( 2017.11), I was able to compile and flash it without any issues.

richard-hu commented 1 year ago

The difference between u-boot 2017.11 and 2021.04 is that u-boot.img is placed in 1st FAT partition instead of RAW in u-boot 2021.04.

So it would require to put u-boot-dtb.img in 1st FAT partition.

BR,

Richard

SnappierSoap318 commented 1 year ago

image it Worked!

what i did was copy the u-boot-dtb.img file to the first FAT partition using sudo cp u-boot-dtb.img <partition> and it worked