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 "Starting Kernel"

Other Parts Discussed in Thread: AM1808, DA8XX, AM3517

Hi,

I am using the precompiled kernel from PSP-SDK-03.20.00.13 (images/kernel/omapl1x8/uImage), in a custom made board running a AM1808. The problem I am seeing is that the kernel seems to hang after "Starting Kernel". I have also tried with a custom compiled kernel, with the same results.

What could the reason for this be? Am I missing something very obvious?

I am using these boot commands, the console is connected to ttyS1:

U-Boot > printenv
bootargs=mem=32M console=ttyS1,115200n8 root=/dev/mmcblk0p2 rw rootwait ip=off
bootcmd=if mmc rescan 0; then if fatload mmc 0 0xc0600000 boot.scr; then source
0xc0600000; else fatload mmc 0 0xc0700000 uImage; bootm c0700000; fi; else sf pr
obe 0; sf read 0xc0700000 0x80000 0x220000; bootm 0xc0700000; fi
bootdelay=3
baudrate=115200
bootfile="uImage.bin"
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 2009.11 (Nov 17 2010 - 10:22:18)

 

U-Boot > fatload mmc 0 0xc0700000 uImage
reading uImage

2113724 bytes read
U-Boot > bootm 0xc0700000
## Booting kernel from Legacy Image at c0700000 ...
   Image Name:   Linux-2.6.33-rc4
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2113660 Bytes =  2 MB
   Load Address: c0008000
   Entry Point:  c0008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

  • Hi,

    Now I made some progress, I am using instructions from this page:

    http://processors.wiki.ti.com/index.php/Kernel_-_Common_Problems_Booting_Linux#Problem_.232_-_No_more_output_is_seen_on_the_console_after_.22booting_the_kernel.22

     

    ## Booting kernel from Legacy Image at c0700000 ...
       Image Name:   Linux-2.6.33-rc4
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2202232 Bytes =  2.1 MB
       Load Address: c0008000
       Entry Point:  c0008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.

     

    I still have a question, in the document it says to use CONFIG_OMAP_LL_DEBUG_UARTx to choose which UART is used for debug. However that config is only available for the OMAP processors so not for AM1808. Is there a way to choose the UART to use for the AM1808? I am using Uart1 for debugging.

    I guess that the problem isn't related to the machine ID used by U-Boot and the Kernel as they are both defined to be 2157, TI DaVinci DA850, davinci_da850_evm. Could it be that it is the JTAG number that doesn't match? It would help if I manage to get some debug information out of the kernel.

     

    Best Regards,

    Niclas Knuts

     

  • Hi Niclas,

    As we were getting some problems when UART0 and UART1 were enabled while using Arago file system, we have disabled these in the Linux Kernel. You need to enable them in "arch/arm/mach-davinci/board-da850-evm.c" by commenting out the below code:

            /*
             * shut down uart 0 and 1; they are not used on the board and
             * accessing them causes endless "too much work in irq53" messages
             * with arago fs
             */
            __raw_writel(0, IO_ADDRESS(DA8XX_UART1_BASE) + 0x30);
            __raw_writel(0, IO_ADDRESS(DA8XX_UART0_BASE) + 0x30);

    Regards, Sudhakar

  • Hi,

     

    Thanks!

     

    This solved the problems, now I can boot linux and it seems to work fine.

     

    Best Regards,

    Niclas

  • Dear All,

    I have been running through a problem .. my kernel image starts booting and stops at starting kernel.....

     

    Configuration selected for creating uImage is am3517_evm_defconfig.
    i have referred this site

    http://processors.wiki.ti.com/index.php/Kernel_-_Common_Problems_Booting_Linux#Problem_.232_-_No_more_output_is_seen_on_the_console_after_.22booting_the_kernel.22

    but trying all the changes mentioned in the above site ..has not helped me..

    1.Using the defconfiguration -> i changed the bootargs 'console=ttyS2,115200n8'
    2.changing the bootargs for 2.6 -> 'console=ttyS2,115200n8' O=not zero

    The output is as below....

    Texas Instruments X-Loader 1.47 (Mar 24 2011 - 15:54:47)
    Booting from nand . . .
    Starting OS Bootloader...


    U-Boot 2010.06-rc1 (Mar 24 2011 - 15:55:56)

    OMAP34xx/35xx-GP ES1.0, CPU-OPP2 L3-165MHz
    TAM3517 TWISTER Board + LPDDR/NAND
    I2C:   ready
    DRAM:  256 MiB
    NAND:  256 MiB
    In:    serial
    Out:   serial
    Err:   serial
    Customer/Vender : TechNexion
    Project/Board   : tam3517
    Sequence Number : 1052000000000069
    revision        : TN15 1.0
    eth0 addr      : 00:1F:7B:15:01:10
    eth1 addr      : 00:1F:7B:15:01:11
    eth2 addr      : 00:1F:7B:15:01:12
    eth3 addr      : 00:1F:7B:15:01:13
    Die ID #30e20000000000000155dc140400f016
    Net:   Ethernet PHY: GENERIC @ 0x00
    DaVinci EMAC, smc911x-0
    Hit any key to stop autoboot:  1  0
    Using DaVinci EMAC device
    TFTP from server 192.168.1.233; our IP address is 192.168.1.54
    Filename 'uImage'.
    Load address: 0x80008000
    Loading: *#################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ########
    done
    Bytes transferred = 2369032 (242608 hex)
    ## Booting kernel from Legacy Image at 80008000 ...
       Image Name:   Linux-2.6.33.7-rt29
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2368968 Bytes = 2.3 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       XIP Kernel Image ... OK
    OK

    Starting kernel ...

     

    Thanks and regards

    Hrishikesh!

  • What are your exact bootargs?

    BTW, AM3517 and AM1808 are quite different (You responded to an old thread for AM1808).

  • Hi!

     

    I have posted the new post on this link ..you can find my boot args to on this post...

    I have tried using ttyS0,ttyS2,ttyO2 ( not zero)

    bootargs mem=256M ip=dhcp noinitrd console=ttyS2,115200n8 root=/dev/nfs rw nfsroot=192.168.1.233:/home/Linux/FS/target,nolock,rsize-1024,wsize=1024

    Actual arguements

     

    I have on daught : the kernel source i am using shows default configurations for

    [root@localhost linux-omap3]# make ARCH=arm help
    Cleaning targets:
      clean          - Remove most generated files but keep the config and
                        enough build support to build external modules
      mrproper      - Remove all generated files + config + various backup files
      distclean      - mrproper + remove editor backup and patch files

    /output deleted/****************

     
      ks8695_defconfig         - Build for ks8695
      pxa3xx_defconfig         - Build for pxa3xx
      at91sam9rlek_defconfig   - Build for at91sam9rlek
      qil-a9260_defconfig      - Build for qil-a9260
      pxa168_defconfig         - Build for pxa168
      sx1_defconfig            - Build for sx1
      omap_zoom2_defconfig     - Build for omap_zoom2
      ateb9200_defconfig       - Build for ateb9200
      omap_3630sdp_defconfig   - Build for omap_3630sdp
      colibri_pxa300_defconfig - Build for colibri_pxa300
      pnx4008_defconfig        - Build for pnx4008
      usb-a9263_defconfig      - Build for usb-a9263
      kirkwood_defconfig       - Build for kirkwood
      mx27_defconfig           - Build for mx27
      ebsa110_defconfig        - Build for ebsa110
      nuc960_defconfig         - Build for nuc960
      am3517_evm_defconfig     - Build for am3517_evm  --> i am using this cinfiguration for compilation ...but i found this is for am3517 evm board and i have different board.

    my board is TAM-3517..will it work...or is it the cause which hangs the kernel..

    is there any way out through which i can get the kernel source for the TAM-3517.

    when i independently configure the kernel the kernel compilation ends up with an error.[make menuconfig]

     

     

     

      omap3_evm_defconfig      - Build for omap3_evm
      iop13xx_defconfig        - Build for iop13xx
      omap_generic_2420_defconfig - Build for omap_generic_2420
      tct_hammer_defconfig     - Build for tct_hammer
      omap3_touchbook_defconfig - Build for omap3_touchbook
      omap_generic_1610_defconfig - Build for omap_generic_1610
      shannon_defconfig        - Build for shannon
      cpuat91_defconfig        - Build for cpuat91
      h7202_defconfig          - Build for h7202
      ixp2000_defconfig        - Build for ixp2000
      omap_osk_5912_defconfig  - Build for omap_osk_5912
      ixp23xx_defconfig        - Build for ixp23xx
      bcmring_defconfig        - Build for bcmring
      palmtt_defconfig         - Build for palmtt
      n770_defconfig           - Build for n770
      mx3_defconfig            - Build for mx3
      omap_2430sdp_defconfig   - Build for omap_2430sdp
      nuc950_defconfig         - Build for nuc950
      palmz72_defconfig        - Build for palmz72
      omap3_defconfig          - Build for omap3
      footbridge_defconfig     - Build for footbridge
      rpc_defconfig            - Build for rpc
      s3c6400_defconfig        - Build for s3c6400
      eseries_pxa_defconfig    - Build for eseries_pxa
      cpu9g20_defconfig        - Build for cpu9g20
      omap_generic_1510_defconfig - Build for omap_generic_1510
      ecbat91_defconfig        - Build for ecbat91
      pcm027_defconfig         - Build for pcm027
      pxa910_defconfig         - Build for pxa910
      mv78xx0_defconfig        - Build for mv78xx0
      realview_defconfig       - Build for realview
      cam60_defconfig          - Build for cam60
      integrator_defconfig     - Build for integrator
      orion5x_defconfig        - Build for orion5x
      omap_zoom3_defconfig     - Build for omap_zoom3
      msm_defconfig            - Build for msm
      omap_perseus2_730_defconfig - Build for omap_perseus2_730
      assabet_defconfig        - Build for assabet
      corgi_defconfig          - Build for corgi
      neocore926_defconfig     - Build for neocore926
      kafa_defconfig           - Build for kafa
      sam9_l9260_defconfig     - Build for sam9_l9260
      csb637_defconfig         - Build for csb637
      cm_t35_defconfig         - Build for cm_t35
      onearm_defconfig         - Build for onearm
      at91sam9261ek_defconfig  - Build for at91sam9261ek
      nhk8815_defconfig        - Build for nhk8815
      realview-smp_defconfig   - Build for realview-smp
      at91rm9200ek_defconfig   - Build for at91rm9200ek
      at91sam9260ek_defconfig  - Build for at91sam9260ek
      netwinder_defconfig      - Build for netwinder
      zeus_defconfig           - Build for zeus
      iop33x_defconfig         - Build for iop33x
      xcep_defconfig           - Build for xcep
      mx1ads_defconfig         - Build for mx1a

    ;

    ;;

    ;;many other config files

      make V=0|1 [targets] 0 => quiet build (default), 1 => verbose build
      make V=2   [targets] 2 => give reason for rebuild of target
      make O=dir [targets] Locate all output files in "dir", including .config
      make C=1   [targets] Check all c source with $CHECK (sparse by default)
      make C=2   [targets] Force check of all c source with $CHECK

    Execute "make" or "make all" to build all targets marked with [*]
    For further info see the ./README file

    http://e2e.ti.com/support/dsp/sitara_arm174_microprocessors/f/416/t/114067.aspxD

  • Hi,

    Could I watch your BMC terminal log?