AnsweredAssumed Answered

[i.MX6] Linux kernel 3.2.21 is hang at "Starting kernel ..." on SABRE Lite board

Question asked by Son Nguyen on Nov 11, 2014

Hi All,

 

I'm using SABRE Lite board and I want to port Xenomai and RTnet on it. Because RTnet only support linux kernel up to version 3.2 and because for matching the patch file so I should you linux kernel 3.2.21.

But when I tried to boot the kernel, the booting sopped at "Starting kernel ...". The kernel that I've built doesn't apply any patch from Xenomai, just downloaded in kernel.org and build it.

 

Here is my information:

- u-boot 2009.08 (manufactoring u-boot on SABRE LITE board)

- Linux kernel 3.2.21 (downloaded from main line https://www.kernel.org/pub/linux/kernel/v3.0/)

 

BOOT LOG:

U-Boot 2009.08 (Nov 13 2013 - 11:06:28)

 

CPU: Freescale i.MX6 family TO1.2 at 792 MHz

Temperature:   45 C, calibration data 0x59f4e77d

mx6q pll1: 792MHz

mx6q pll2: 528MHz

mx6q pll3: 480MHz

mx6q pll8: 50MHz

ipg clock     : 66000000Hz

ipg per clock : 66000000Hz

uart clock    : 80000000Hz

cspi clock    : 60000000Hz

ahb clock     : 132000000Hz

axi clock   : 264000000Hz

emi_slow clock: 132000000Hz

ddr clock     : 528000000Hz

usdhc1 clock  : 198000000Hz

usdhc2 clock  : 198000000Hz

usdhc3 clock  : 198000000Hz

usdhc4 clock  : 198000000Hz

nfc clock     : 24000000Hz

Board: MX6Q-SABRELITE:[ POR]

Boot Device: I2C

I2C:   ready

DRAM:   1 GB

MMC:   FSL_USDHC: 0,FSL_USDHC: 1

JEDEC ID: 0xbf:0x25:0x41

Reading SPI NOR flash 0xc0000 [0x2000 bytes] -> ram 0x276009b8

SUCCESS

 

 

In:    serial

Out:   serial

Err:   serial

Net:   got MAC address from IIM: 00:00:00:00:00:00

FEC0 [PRIME]

Hit any key to stop autoboot:  0

FEC: Link is Up 796d

Using FEC0 device

TFTP from server 161.122.114.60; our IP address is 161.122.114.10

Filename 'uImage'.

Load address: 0x10800000

Loading: T #################################################################

         #################################################################

         #################################################################

         ##################

done

Bytes transferred = 3112348 (2f7d9c hex)

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

   Image Name:   Linux-3.0.43

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    3112284 Bytes =  3 MB

   Load Address: 10008000

   Entry Point:  10008000

   Verifying Checksum ... OK

   Loading Kernel Image ... OK

OK

 

 

Starting kernel ...

 

Command line to build kernel:

make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- distclean

make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- imx6q_defconfig (please refer the attached file)

make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- all

 

I'm using TFTP and NFS, then I changed some variable in u-boot environment:

bootdelay=3

baudrate=115200

netmask=255.255.255.0

loadaddr=0x10800000

rd_loadaddr=0x11000000

netdev=eth0

ethprime=FEC0

ethaddr=00:01:02:03:04:05

uboot=u-boot.bin

kernel=uImage

bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp

bootcmd_net=dhcp; run bootargs_nfs;bootm

bootargs_mmc=setenv bootargs ${bootargs} root=/dev/mmcblk0p1 rootwait rw

bootcmd_mmc=run bootargs_mmc;mmc dev 1;mmc read ${loadaddr} 0x800 0x2000;bootm

clearenv=sf probe 1 && sf erase 0xc0000 0x2000 && echo restored environment to factory default

upgradeu=for disk in 0 1 ; do mmc dev ${disk} ;for fs in fat ext2 ; do ${fs}load mmc ${disk}:1 10008000 /6q_upgrade && source 10008000 ; done ; done

nfsroot=_ROOTFS_PATH_IN_NFS_

ethact=FEC0

serverip=161.122.114.60

ipaddr=161.122.114.10

bootargs=console=ttymxc1,115200 ip=161.122.114.10 root=/dev/nfs rw nfsroot=161.122.114.60:/home/sonnguyen/rtnet-xenomai-rootfs-2-6-4 init=/init rw video=mxcfb0:dev=ldb, LDB-XGA,if=RGB666 fbmem=10M vmalloc=41

bootfile=uImage

bootcmd=tftp;bootm 10800000

stdin=serial

stdout=serial

stderr=serial

 

I also tried with kernel 3.0.43, kernel 3.4.6 but got the same issue. I don't want to change to higher kernel version which requires device tree boot (.dtb) because it isn't support by RTnet (I came out with this decision when I used kernel 3.14.17)

Could you give me some advises to overcome this issue? Did I do something wrong?

 

Thank You,

Nguyen Hung Son

Original Attachment has been moved to: imx6_defconfig.zip

Outcomes