Mender "sdimg" image is not booting!!

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Mender "sdimg" image is not booting!!

1,373 Views
raghavendrabork
Contributor II

Hi,

We have integrated Mender.io and created .sdimg and .sdcard images. We are facing issue booting with sdimg image. where as .sdcard image is booting fine.

Following are the partition information of both the images.

fdisk -l -u image-imx6ulevk.sdimg

Disk image-imx6ulevk.sdimg: 1493 MB, 1493173248 bytes
255 heads, 63 sectors/track, 181 cylinders, total 2916354 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x405a0be0

                        Device Boot      Start         End      Blocks   Id  System
image-imx6ulevk.sdimg1   *        8192       29503       10656    c  W95 FAT32 (LBA)
image-imx6ulevk.sdimg2           32768     1337343      652288   83  Linux
image-imx6ulevk.sdimg3         1343488     2648063      652288   83  Linux
image-imx6ulevk.sdimg4         2654207     2916351      131072+   f  W95 Ext'd (LBA)
image-imx6ulevk.sdimg5         2654208     2916351      131072   83  Linux

And

fdisk -l -u image-imx6ulevk.sdcard

Disk image-imx6ulevk.sdcard: 624 MB, 624951296 bytes
4 heads, 32 sectors/track, 9536 cylinders, total 1220608 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x235a3ce9

                         Device Boot      Start         End      Blocks   Id  System
image-imx6ulevk.sdcard1            8192       24575        8192    c  W95 FAT32 (LBA)
image-imx6ulevk.sdcard2           24576     1212415      593920   83  Linux

These files are flashed into sd card using dd commands. And sdcard image boots fine.

We would like to understand if there is any issue in creation of partition which might cause "U-boot" booting issues while booting .sdimg image. Like block size, partition size or image size.

Your inputs on this will help us in unblocking the booting issue.

FYI, we are using Krogoth branch of Yocto and Mender github for the development. Let us know if you need more info on this issue.

Thank you,

-Raghu

Labels (2)
2 Replies

746 Views
b36401
NXP Employee
NXP Employee

Are you getting some u-boot output when booting failed image?
Please try to copy u-boot from working to failed image.
I mean you can try to copy first 4 megabytes except the partition table (bytes 446..509 for the very beginning) of working image to failing one.

Have a great day,
Victor

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

746 Views
raghavendrabork
Contributor II

Hi Victor,

I don't see any prints from U-BOOT when i load .sdimg.

To debug this issue further I have tried following,

1. Copied zImage from .sdimg to .sdcard (/boot partition) and booted .sdcard image. Booting is fine. This indicates that zImage inside .sdimg image is fine and nothing wrong with U-Boot image.

2. Copied zImage from .sdcard to .sdimg on /boot partition, this is not booting with following partition (i.e. initial .sdimg partition). And image is NOT Booting.
                        Device Boot      Start         End      Blocks   Id  System
image-imx6ulevk.sdimg1   *        8192       29503       10656    c  W95 FAT32 (LBA)
image-imx6ulevk.sdimg2           32768     1337343      652288   83  Linux
image-imx6ulevk.sdimg3         1343488     2648063      652288   83  Linux
image-imx6ulevk.sdimg4         2654207     2916351      131072+   f  W95 Ext'd (LBA)
image-imx6ulevk.sdimg5         2654208     2916351      131072   83  Linux

3. I copied .sdimg on sd card using dd command and then changed the partition on sd card (using fdisk /dev/sdd) as follows, (which is similar to that of .sdcard image). And then copied zImage into /boot partition.

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1            8192       24575        8192    c  W95 FAT32 (LBA)
/dev/sdd2           49152     1366015      658432   83  Linux
/dev/sdd3         1368064     2684927      658432   83  Linux
/dev/sdd4         2686975     2949119      131072+   f  W95 Ext'd (LBA)
/dev/sdd5         2686976     2949119      131072   83  Linux

I was expecting it to boot, But still i dont see U-Boot coming up.
By this can we say it is not related to partition size? Something is missing while configuring?


We would also like to know if there is any particular scenario where U-Boot loading fails.

Regards,
-Raghu

0 Kudos