How to boot imx6q using zImage ??

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

How to boot imx6q using zImage ??

4,123 Views
subodh
Contributor III

Hi,

I am using Imx6q Sabre board.

I was successful in building a dfb image using

fsl-arm-yocto-bsp.git - Freescale i.MX Yocto Project manifests

But I was unable to boot the board after copying the kernel zimage to board.

So, I read a blog and converted the zImage and dtb file to uImage format but still unable to boot.

Please help me.

Regards,

Subodh

Labels (3)
0 Kudos
4 Replies

1,846 Views
gypan
Contributor I

I have same issue? Pls help us.

0 Kudos

1,846 Views
subodh
Contributor III

Follow the link in mt previous comment.

Just enter the mentioned address (0x1008000)  in mkimage.

No need to change anything for DTB files.

Once image is ready, follow the prodecure for SD Card creation.

Following are my uboot params, I think I had to change an address offset and confirm the card detected to set root=

setenv loadaddr 0x12000000

setenv fdt_addr 0x18000000

setenv fdt_high 0xffffffff

setenv bootargs_base 'setenv bootargs console=ttymxc0,115200'

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

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

setenv bootcmd 'run bootcmd_mmc'

run bootcmd

Hopefully that should fix the problem if you are using the yocto built kernel directly.

0 Kudos

1,847 Views
subodh
Contributor III

Currently I am using following uboot parameters with uImage

setenv loadaddr 0x12000000

setenv fdt_addr 0x18000000

setenv fdt_high 0xffffffff

setenv bootargs_base 'setenv bootargs console=ttymxc0,115200'

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

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

setenv bootcmd 'run bootcmd_mmc'

run bootcmd

0 Kudos

1,847 Views
subodh
Contributor III

Converted the kernel using the following link, used the address as 0x1008000

How to convert a zImage into uImage for booting with u-boot - Unix & Linux Stack Exchange

Please verify and comment on the solution I found.

0 Kudos