Get stuck at "Starting kernel ..." using imx-3.10.17-1.0.1_ga

cancel
Showing results for 
Search instead for 
Did you mean: 

Get stuck at "Starting kernel ..." using imx-3.10.17-1.0.1_ga

Jump to solution
5,744 Views
raybloodworth
Contributor II

Hi,

    I got stuck at "Starting kernel ..." when booting my system.

    Steps:

    1)Download source:

     repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.10.17_1.0.1_ga

     repo sync

     2)MACHINE=imx6qsabresd source fsl-setup-release.sh -b build

     3)build u-boot:

     bitbake u-boot-imx

     4)build kernel

     bitbake linux-imx

     5)Install u-boot and kernel to the board.Power on.

     After these steps, console blocked at "Starting kernel ...".

     My 3.0 kernel could boot normally.

     Is there any problems with my steps or any thing wrong with imx-3.10.17_1.0.1_ga ?

Labels (3)
1 Solution
513 Views
fabio_estevam
NXP Employee
NXP Employee

3.10.17 uses device tree, so you need to load imx6q-sabresd.dtb and kernel into memory and boot it.

View solution in original post

9 Replies
514 Views
fabio_estevam
NXP Employee
NXP Employee

3.10.17 uses device tree, so you need to load imx6q-sabresd.dtb and kernel into memory and boot it.

View solution in original post

513 Views
raybloodworth
Contributor II

You are right.I use this command to boot it.

tftp 12000000 uImage ;tftp 18000000 imx6q-sabresd.dtb;bootm 12000000 - 18000000

But I don't know how to flash the imx6q-sabresd.dtb and uImage to SD card.(the address of the dtb and uImage).

Could you give me some advice?

0 Kudos
513 Views
fabio_estevam
NXP Employee
NXP Employee

You ca create a partition in the SD card and just copy the dtb and uImage to it.

You can look at mainline U-boot config file to see how this is done.

0 Kudos
513 Views
raybloodworth
Contributor II

Thank you!

I find the tutorial in "i.MX_6_SABRE-SD_Linux_User's_Guide.pdf".

0 Kudos
513 Views
gusarambula
NXP TechSupport
NXP TechSupport

It is possible that the kernel is not finding the rootfs you want to boot. I would suggest looking at the boot arguments you’re using. Especially since the defaults may vary from BSP release to BSP release.

0 Kudos
513 Views
raybloodworth
Contributor II

boot arguments:

console=ttymxc0,115200 ${displayArgs} root=/dev/mmcblk1p2 rootwait printk.time=1 rootfstype=ext4 init=/sbin/init systemd.log_level=debug systemd.log_target=console systemd.sysv_console=1

0 Kudos
513 Views
gusarambula
NXP TechSupport
NXP TechSupport

I'm sorry for the delay. Are you booting from SD port 3?

If so, the boot arguments on the documentation are set with the following commands:

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

I would recommend trying them. It seems that the kernel is starting but it's not finding the rootfs for loading it. Please check in which partition is contained and change the root=/dev/ parameter if necessary. Please let us know if this helps!

0 Kudos
513 Views
raybloodworth
Contributor II

Lack of device tree,so it can not boot.

I set these env and it boot successfully.

tftp 12000000 uImage ;tftp 18000000 imx6q-sabresd.dtb;bootm 12000000 - 18000000

And I'm booting from SD card,I flash the u-boot.bin to SD card using command "dd if=u-boot.bin of=/dev/mmcblk0 bs=1k seek=1 conv=fsync".

But I don't know how to flash the imx6q-sabresd.dtb and uImage to SD card.(the address of the dtb and uImage).

Could you give me some advice?

0 Kudos
513 Views
jamesbone
NXP TechSupport
NXP TechSupport

gusarambula, can you please comment?

0 Kudos