AnsweredAssumed Answered

Kernel hang issue with vanilla 3.14.28

Question asked by nagla dhana on Aug 17, 2015
Latest reply on Aug 18, 2015 by gusarambula

Hi,

 

I am trying to build vanilla kernel running on SabreSDP with the default imx_v6_v7_defconfig and configured for tftp/nfs.

Here are the details:

I'm using tftp and nfs to load zImage and imx6q-sabresd.dtb.

I'm using the U-Boot 2009.08 (Apr 29 2013 - 18:01:51) which comes with SDCARD (the Android 4.2.2 and Linux version 3.0.35-06114-g3b96084).

I'm able to load the zImage and dtb file in RAM but this version on Uboot does not have the "bootz" command to bot zImage.

I tried to build uImage with LOADADDR=0x10808000. When it did not work I tried with 0x10008000 also. I must admit I am not sure what this parameter is and where to get its correct value, I just googled around and got this from some of the bootup logs available for imx6 kernels.

 

 

Below are the changes I made in env variables :

setenv ipaddr 192.168.0.100

setenv serverip 192.168.0.1

setenv bootargs root=/dev/nfs rw ip=192.168.0.100 console=ttymxc0,115200 nfsroot=192.168.0.1:/home/nagla/modules/nfsroot

tftp 0x12000000 uImage

tftp 0x18000000 imx6q-sabresd.dtb

bootm 0x12000000 - 0x18000000

 

 

bootm command hangs with after "Starting kernel ..." is printed out.

 

 

 

Below are the logs for this:

 

Hit any key to stop autoboot:  0

MX6Q SABRESD U-Boot >

MX6Q SABRESD U-Boot > setenv ipaddr 192.168.0.100

MX6Q SABRESD U-Boot > setenv serverip 192.168.0.1

MX6Q SABRESD U-Boot > setenv bootargs root=/dev/nfs rw ip=192.168.0.100 console=ttymxc0,115200 nfsroot=192.168.0.1:/home/nagla/modules/nfsroot

MX6Q SABRESD U-Boot > tftp 0x12000000 uImage

PHY indentify @ 0x1 = 0x004dd074

FEC: Link is Up 796d

Using FEC0 device

TFTP from server 192.168.0.1; our IP address is 192.168.0.100

Filename 'uImage'.

Load address: 0x12000000

Loading: #################################################################

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

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

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

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

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

done

Bytes transferred = 5019592 (4c97c8 hex)

MX6Q SABRESD U-Boot > tftp 0x18000000 imx6q-sabresd.dtb

FEC: Link is Up 796d

Using FEC0 device

TFTP from server 192.168.0.1; our IP address is 192.168.0.100

Filename 'imx6q-sabresd.dtb'.

Load address: 0x18000000

Loading: ###

done

Bytes transferred = 36188 (8d5c hex)

MX6Q SABRESD U-Boot > bootm 0x12000000 - 0x18000000

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

   Image Name:   Linux-3.14.28

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    5019528 Bytes =  4.8 MB

   Load Address: 10808000

   Entry Point:  10808000

   Verifying Checksum ... OK

   XIP Kernel Image ... OK

OK

 

 

Starting kernel ...

 

 

Any pointers on what I am doing wrong here. I suspect something wrong with my uImage when I specify the load address.

 

Regards

nagla

Outcomes