Boot the Yocto L3.10.17_1.0.0-ga in i.MX6Q-SABRESD.

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

Boot the Yocto L3.10.17_1.0.0-ga in i.MX6Q-SABRESD.

Jump to solution
1,688 Views
keitanagashima
Senior Contributor I

Dear Sir or Madam,

Hello.

I tried to boot the Yocto L3.10.17_1.0.0-ga in i.MX6Q-SABRESD.

Building is succeeded.

But, can't get kernel image.

Please help me!!

====Steps=====

[Copying the Boot Loader Image]

sudo dd if=u-boot-imx6qsabresd_sd.imx of=/dev/sdb bs=512 seek=2 conv=fsync

[Copying the Kernel Image and DTB File]

sudo dd if=uImage_imx_v7_defconfig of=/dev/sdb bs=512 seek=2048 conv=fsync

sudo dd if=uImage-imx6q-sabresd.dtb of=/dev/sdb bs=512 seek=20480 conv=fsync

[Copying the Root File System (rootfs)]

I refer to "7.4 Copying the Root File System (rootfs)" in i.MX_6_SABRE-SD_Linux_User's_Guide.pdf

[Run the Image from MMC/SD]

U-Boot > setenv loadaddr 0x12000000

U-Boot > setenv fdt_addr 0x18000000

U-Boot > setenv fdt_high 0xffffffff

U-Boot > setenv bootargs_base 'setenv bootargs console=ttymxc0,115200'

U-Boot > setenv bootargs_mmc 'setenv bootargs ${bootargs} root=/dev/mmcblk0p2 rootwait rw video=mxcfb1:dev=ldb,LDB-XGA,if=RGB666 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24'

U-Boot > setenv bootcmd_mmc 'run bootargs_base bootargs_mmc;mmc dev 1;mmc read ${loadaddr} 0x800 0x2000;mmc read ${fdt_addr} 0x5000 0x800;bootm ${loadaddr} - ${fdt_addr}'

U-Boot > setenv bootcmd 'run bootcmd_mmc'

U-Boot > saveenv

U-Boot > run bootcmd

[Error Log]

U-Boot > run bootcmd

mmc1 is current device

MMC read: dev # 1, block # 2048, count 8192 ... 8192 blocks read: OK

MMC read: dev # 1, block # 20480, count 2048 ... 2048 blocks read: OK

## Booting kernel from Legacy Image at 12000000 ...

   Image Name:   Linux-3.10.17-1.0.0_ga+g232293e

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    5260872 Bytes = 5 MiB

   Load Address: 10008000

   Entry Point:  10008000

   Verifying Checksum ... Bad Data CRC

ERROR: can't get kernel image!

U-Boot >

========

Best Regards,

Keita

Labels (5)
1 Solution
647 Views
keitanagashima
Senior Contributor I

Dear Jimse,

Thank you for your reply.

Yes. SD3.

I changed below 2 point in U-boot, and SABRE could start-up successfully.

=====

1.

[Before]

root=/dev/mmcblk0p2

[After]

root=/dev/mmcblk0p1

2.

[Before]

${loadaddr} 0x800 0x2000;

[After]

${loadaddr} 0x800 0x3000;

=====

Best Regards,

Keita

View solution in original post

2 Replies
647 Views
tonyzheng
NXP Employee
NXP Employee

Hello,

Are you sure if the u-boot reads the kernel image from the SD3? If not, you should change "mmc dev 1" to appropriate command.      

regards,

Tony                              

0 Kudos
648 Views
keitanagashima
Senior Contributor I

Dear Jimse,

Thank you for your reply.

Yes. SD3.

I changed below 2 point in U-boot, and SABRE could start-up successfully.

=====

1.

[Before]

root=/dev/mmcblk0p2

[After]

root=/dev/mmcblk0p1

2.

[Before]

${loadaddr} 0x800 0x2000;

[After]

${loadaddr} 0x800 0x3000;

=====

Best Regards,

Keita