This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux Kernel Hangs at start up

Other Parts Discussed in Thread: SYSCONFIG

Hi,

I am using TI OMAP3 Android Froyo prebuilt image over Mistral's EVM kit.

While booting from SD card the linux kernel hangs right after uncompressing.

Texas Instruments X-Loader 1.47 (Oct 23 2010 - 17:44:29)
Starting X-loader on MMC
Reading boot sector

217572 Bytes Read from MMC
Starting OS Bootloader from MMC...
Starting OS Bootloader...


U-Boot 2010.06-rc1-00049-ga306f53 (Oct 23 2010 - 17:41:04)

OMAP3430/3530-GP ES2.1, CPU-OPP2 L3-165MHz
OMAP3 EVM board + LPDDR/NAND
I2C:   ready
DRAM:  128 MiB
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Read back SMSC id 0x1150000
Die ID #66e000020000000004013ddc0601900b
Net:   smc911x-0
Hit any key to stop autoboot:  0
mmc1 is available
reading boot.scr

415 bytes read
Running bootscript from mmc ...
## Executing script at 82000000
reading uImage

2481444 bytes read
***** Kernel: /dev/mmcblk0p1/uImage *****
***** RootFS: /dev/mmcblk0p2 *****
## Booting kernel from Legacy Image at 80200000 ...
   Image Name:   Linux-2.6.32
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2481380 Bytes = 2.4 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux.............................................................
................................................................................
............... done, booting the kernel.

 

 

My environment variables looks something like:-

OMAP3_EVM # printenv
bootcmd=if mmc init; then if run loadbootscript; then run bootscript; else if ru
n loaduimage; then run mmcboot; else run nandboot; fi; fi; else run nandboot; fi

bootdelay=10
baudrate=115200
bootfile=uImage
loadaddr=0x82000000
usbtty=cdc_acm
console=ttyS2,115200n8
mmcargs=setenv bootargs console=${console} root=/dev/mmcblk0p2 rw rootfstype=ext
3 rootwait
nandargs=setenv bootargs console=${console} root=/dev/mtdblock4 rw rootfstype=jf
fs2
loadbootscript=fatload mmc 0 ${loadaddr} boot.scr
bootscript=echo Running bootscript from mmc ...; source ${loadaddr}
loaduimage=fatload mmc 0 ${loadaddr} uImage
mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${loadaddr}
nandboot=echo Booting from nand ...; run nandargs; onenand read ${loadaddr} 2800
00 400000; bootm ${loadaddr}
dieid#=66e000020000000004013ddc0601900b
ethact=smc911x-0
bootargs=console=ttyS0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait
stdin=serial
stdout=serial
stderr=serial

Environment size: 954/131068 bytes
OMAP3_EVM #

 

Cheers,

Shishir

 

  • What is the evm revision you are using? The TI Android Devkit is meant for omap3evm rev G.

    You have also not mentioned  if you are using Froyo devkit 2.0 or 2.2

    Did you populate the SD card using the mkmmc-android script provided with the prebuilt images? The bootargs don't look right.

     

    BTW, you can ask android questions at the E2E forum for android@ http://e2e.ti.com/android

  • Shishir,

    I think kernel is crashing very early stage of boot process, way before mounting filesystem. Your bootargs doesn't seems to correct, "mem=" option is not specified, try specifying mem= option.

     

    Thanks,

    Vaibhav

  • Hi Guys,

    You were right about the mess up in the environment variables.

    These two worked for me to get the kernel booting. I copied them from older version android build provided by Mistral.

    setenv bootcmd 'mmc init;fatload mmc 0 0x81c00000 uImage;bootm 0x81c00000'
    setenv bootargs 'console=ttyS0,115200n8 root=/dev/mmcblk0p2 rw rootdelay=1 init=/init videoout=omap24xxvout omap_vout.vid1_static_vrfb_alloc=y mem=128M'

    Also I was trying to make the Dev Kit 2.0 Froyo going over omap3evm Rev D. Whereas it only supports Rev G.

    Probably it's time to ask my manager for hardware upgrade. Which is least likely to happen.

    Anyways guys thanks for your prompt responses.

    Cheers,

    Shishir

     

     

  • Hi All,

    Back Again.

    Just tasted the first success of being able to run Dev Kit 2.0 Froyo over my omap3evm Rev D.

    I was getting error sayin

    Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 PVR_K: (FAIL) SGXInit: Incompatible HW core rev (10003) and SW core rev (10201).

    All it required was to recompile the kernel with option OMAPES=2.x and Bingo !!!

     

    Cheers,

    Shishir

  • Hello, 

     

    I will post my question here such as not to flood the forum with not very useful  topics.

    My question : Is there any way of booting any kind of Android distribution on an OMAP3 EVM Rev D?

    I see that obviously someone managed to do it but as far as i've seen he is the only one. I tried booting the Prebuilt images, and that doesn't seem to work for me. i tried recompiling the system but i have an error:

     

    make -C hardware/ti/sgx ANDROID_ROOT_DIR=/home/florin/Desktop/Android TOOLS_PREFIX=prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- 

    make[1]: Entering directory `/home/florin/Desktop/Android/hardware/ti/sgx'

    building the sgx kernel modules...

    make[2]: Entering directory `/home/florin/Desktop/Android/hardware/ti/sgx/GFX_Linux_KM/eurasiacon/build/linux/omap3630_android/kbuild'

    make[2]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.

    +/home/florin/Desktop/Android/hardware/ti/sgx/GFX_Linux_KM/services4/srvkm/env/linux

      CC [M]  /home/florin/Desktop/Android/hardware/ti/sgx/GFX_Linux_KM/services4/srvkm/env/linux/kbuild/../../../../srvkm/env/linux/osfunc.o

    In file included from /home/florin/Desktop/Android/hardware/ti/sgx/GFX_Linux_KM/services4/srvkm/include/services_headers.h:37,

                     from /home/florin/Desktop/Android/hardware/ti/sgx/GFX_Linux_KM/services4/srvkm/env/linux/kbuild/../../../../srvkm/env/linux/osfunc.c:61:

    /home/florin/Desktop/Android/hardware/ti/sgx/GFX_Linux_KM/services4/include/servicesint.h:35:21: error: sysinfo.h: No such file or directory

    In file included from /home/florin/Desktop/Android/hardware/ti/sgx/GFX_Linux_KM/services4/srvkm/include/services_headers.h:43,

                     from /home/florin/Desktop/Android/hardware/ti/sgx/GFX_Linux_KM/services4/srvkm/env/linux/kbuild/../../../../srvkm/env/linux/osfunc.c:61:

    /home/florin/Desktop/Android/hardware/ti/sgx/GFX_Linux_KM/services4/system/include/syscommon.h:30:29: error: sysconfig.h: No such file or directory

    In file included from /home/florin/Desktop/Android/hardware/ti/sgx/GFX_Linux_KM/services4/srvkm/include/services_headers.h:43,

                     from /home/florin/Desktop/Android/hardware/ti/sgx/GFX_Linux_KM/services4/srvkm/env/linux/kbuild/../../../../srvkm/env/linux/osfunc.c:61:

    /home/florin/Desktop/Android/hardware/ti/sgx/GFX_Linux_KM/services4/system/include/syscommon.h:61: error: 'SYS_DEVICE_COUNT' undeclared here (not in a function)

    make[5]: *** [/home/florin/Desktop/Android/hardware/ti/sgx/GFX_Linux_KM/services4/srvkm/env/linux/kbuild/../../../../srvkm/env/linux/osfunc.o] Error 1

    make[4]: *** [_module_/home/florin/Desktop/Android/hardware/ti/sgx/GFX_Linux_KM/services4/srvkm/env/linux/kbuild] Error 2

    make[3]: *** [modules] Error 2

    make[2]: *** [all] Error 1

    make[2]: Leaving directory `/home/florin/Desktop/Android/hardware/ti/sgx/GFX_Linux_KM/eurasiacon/build/linux/omap3630_android/kbuild'

    make[1]: *** [buildkernel] Error 2

    make[1]: Leaving directory `/home/florin/Desktop/Android/hardware/ti/sgx'

    make: *** [sgx] Error 2

    Any help would be greatly appreciated.