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 Booting stops at " Starting Kernel"

Other Parts Discussed in Thread: AM1808, OMAP-L138

I am using beagle board and using u-boot and the kernel built by myself.

The kernel boot stops at " starting kernel"

I tried changing the console type to ttyO2, ttyS2 by setting the boot args using setenv

Even I tried to change the boot options in menuconfig to set the console type to ttyO2 and used the same in bootargs

But no use

Am I doing something wrong while building the kernel?

Can someone help me

Srinivas

 

  • Assuming the serial port selection is correct and it is configured, the U-Boot and Linux images must have the same machine number. Some files to look at for a quick check.

    -----------U-Boot---------
    File: board/.../yourboard.c
    gd->bd->bi_arch_number = MACH_TYPE_YOURBOARD

    include/mach-types.h
    #define MACH_TYPE_YOURBOARD nnnn <-- note this number

    --------Linux--------------
    File: include/linux/autoconf.h
    #define CONFIG_MACH_YOURBOARD

    File: include/asm-arm/mach-types.h
    #define MACH_TYPE_YOURBOARD nnnn <-- this number is same as u-boot's

    File: arch/arm/configs/yourboard_defconfig
    CONFIG_MACH_YOURBOARD=y

    File: .config
    CONFIG_MACH_YOURBOARD=y

  • Thanks Norman, will check that out

     

  • Hi Norman,

    I have checked the same for my AM1808 EVM. They are not same.
     

    U-boot
    ------------------------------

    #define MACH_TYPE_DAVINCI_DA850_EVM       2157

    Linux
    -------------------------------

    #define MACH_TYPE_DAVINCI_DA850_EVM       2495 

     

    Now what has to be done..which one to change ??  Please guide ...

    Thanks & Regards
    Aditya 

  • By the way i found the answer...

    Change the machine number found in linux kernel directory  to 2157 (same as u-boot).

    If the kernel isn't built to run that machine u-boot requests, then it hangs right there. 

    Now having done that ,the next problem i am facing is :: I am getting stuck at
                  "Uncompressing Linux... done, booting the kernel"

    at the console...

    How to get rid of this  ??

  • I think 2157 is the correct number for TI's DA850/OMAP-L138/AM1808 EVM. The Hawkboard gets 2495. You probably should not change the mach-types.h directly. It is auto-generated from arch/arm/tools/mach-types. Check if that file got corrupted. You might need to change your console terminal in the bootargs variable in U-Boot. In older kernels. I think it should be ttySn where n is 0, 1, etc. On newer kernels, it is ttyOn. That is 'O' as in OMAP not as '0' as in zero.