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.

AM1808 linux kernel freeze during download

Other Parts Discussed in Thread: AM1808

Dear all,

I'm using the Sitara family - AM1808 eXperimenter kit. After using TI's WIKI, in order to get things work, i got stuck.
 
The problem is: the kernel freezes during download.  
  
Here is a small description on the steps i made (according TI's WIKI):
1. I'm working on AM1808 eXperimenter kit. 
2. My desktop machine is ubuntu (version 10).
3. For network configuration i use a static IP address (i have a unique NIC for the target).
4. I tried several PSP's complied kernel images supplied by TI ("DaVinci-PSP-SDK-03.20.00.14", "DaVinci-PSP-SDK-03.20.00.12").
5. I followed the instructions TI supplied until "Testing the Shared File System" section (http://processors.wiki.ti.com/index.php/GSG:_Setting_up_OMAP-L1_Target_File_System).
6. When i tried to download the kernel image from my desktop machine (through minicom application) by using the "boot" command, it seems like the kernel stuck.
7. I can see the linux icon on the top left of the LCD and that's it.
Print environment arguments:
U-Boot > printenv
bootdelay=3
baudrate=115200
bootfile="uImage"
ethaddr=00:08:EE:03:DD:12
ipaddr=192.168.1.1
netmask=255.255.255.0
serverip=192.168.1.2
nfshost=192.168.1.2
rootpath=/home/nissim/Projects/TI_AM1808/workdir/filesys
bootcmd=tftp;bootm
bootargs=console=ttyS0,115200n8 noinitrd rw ip=192.168.1.2 root=/dev/nfs nfsroot=192.168.1.2:/home/nissim/Projects/TI_AM1808/workdir/filesys,nolock mem=32M
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 2009.11 (Mar 25 2010 - 14:39:42)

Environment size: 471/65532 bytes

Print loading kernel:
U-Boot > boot
Using  device
TFTP from server 192.168.1.2; our IP address is 192.168.1.1
Filename 'uImage'.
Load address: 0xc0700000
Loading: #################################################################
         #################################################################
         ##############
done
Bytes transferred = 2113744 (2040d0 hex)
## Booting kernel from Legacy Image at c0700000 ...
   Image Name:   Linux-2.6.33-rc4
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2113680 Bytes =  2 MB
   Load Address: c0008000
   Entry Point:  c0008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel. ==> here it stucks.
Can someone please advice?
  • Hi,

    I think your bootargs are wrong. Make sure that you have specified console as "ttyS2" in u-boot bootargs.

    Regards, Sudhakar

  • Dear Sudhakar,

    As far as i know, ttyS2 stands for serial COM PORT X in PC. Since i use "COM1" i need to use ttyS0.

    In addition, i can communicate through COM1 with the target so i do not think this will solve my problem.

    Nissim.

  • Hi Nissim,

    AM1808 has 3 instances of UART  (ttyS0, ttyS1 and ttyS2). Out of these 3, ttyS2 is connected to the serial output. So bootargs should be set to ttyS2. Your bootargs from U-Boot should look as below if you are using NAND based file system:

    U-Boot>setenv bootargs mem=32M console=ttyS2,115200n8 root=/dev/mtdblockX rw rootfstype=jffs2 ip=dhcp eth=${ethaddr}

     

    Regards, Sudhakar

  •  

    I am facing same issue even though it's set to ttyS2

     

    output from boot

    Booting with TI UBL
    Device OPP (300MHz, 1.2V)

    U-Boot 2009.11 (Mar 25 2010 - 14:39:42)

    I2C:   ready
    DRAM:  64 MB
    In:    serial
    Out:   serial
    Err:   serial
    ARM Clock : 300000000 Hz
    DDR Clock : 132000000 Hz
    Net:   Ethernet PHY: GENERIC @ 0x00

    Hit any key to stop autoboot:  0
    BOOTP broadcast 1
    DHCP client bound to address 192.168.0.11
    Using  device
    TFTP from server 192.168.0.12; our IP address is 192.168.0.11
    Filename 'uImage'.
    Load address: 0xc0700000
    Loading: #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             ######################################
    done
    Bytes transferred = 2187532 (21610c hex)
    ## Booting kernel from Legacy Image at c0700000 ...
       Image Name:   Arago/2.6.32+2.6.33-rc4-psp03.20
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2187468 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. (Stuck Here)

    Bootargs:

    bootargs=console=ttyS2,115200n8 rw noinitrd mem=64M@0xc4000000 root=/dev/nfs nfsroot=192.168.0.12:/home/thanasis/tools/am18x/ti-sdk-am180x-evm-4.0.1.0/targep..

     

    minicom setup script output from sitara-linuxsdk-sdg-04.01.00.00.pdf

    Hit any key to stop autobo 0                                                                                                      
    U-Boot >setenv bootdelay 4                                                                                                        
    U-Boot >setenv baudrate 115200                                                                                                    
    ## Switch baudrate to 115200 bps and press ENTER ...U-Boot >setenv oldbootargs ${bootargs}                                        
    U-Boot >ip=dhcp                                                                                                                   
    U-Boot >setenv autoload no                                                                                                        
    U-Boot >setenv oldserverip ${serverip}                                                                                            
    U-Boot >setenv serverip 192.168.0.12                                                                                              
    U-Boot >setenv bootfile uImage                                                                                                    
    U-Boot >setenv oldbootcmd ${bootcmd}                                                                                              
    U-Boot >setenv bootcmd 'dhcp;setenv serverip 192.168.0.12;tftpboot;bootm'                                                         
    U-Boot >saveenv                                                                                                                   
    Saving Environment to SPI Flash...                                                                                                
    Erasing SPI flash...Writing to SPI flash...done                                                                                   
    U-Boot >


    script

    timeout 300
    verbose on

    expect {
        "stop autoboot:"
    }
    send ""

    expect {
        " >"
    }
    send "setenv bootdelay 4"

    expect {
        " >"
    }
    send "setenv baudrate 115200"

    expect {
        "ENTER ..."
    }
    send ""

    expect {
        " >"
    }
    send "setenv oldbootargs $\{bootargs\}"

    expect {
        " >"
    }
    send "setenv bootargs console=ttyS2,115200n8 rw noinitrd \c"
    send " mem=64M@0xc4000000 \c"
    send "root=/dev/nfs nfsroot=\c"
    send "192.168.0.12:\c"
    send "/home/thanasis/tools/am18x/ti-sdk-am180x-evm-4.0.1.0/targetNFS\c"
    send ",nolock,rsize=1024,wsize=1024 \c"
    send "ip=dhcp"
    expect {
        " >"
    }
    send "setenv autoload no"

    expect {
        " >"
    }
    send "setenv oldserverip $\{serverip\}"

    expect {
        " >"
    }
    send "setenv serverip 192.168.0.12"

    expect {
        " >"
    }
    send "setenv bootfile uImage"

    expect {
        " >"
    }
    send "setenv oldbootcmd $\{bootcmd\}"

    expect {
        " >"
    }
    send "setenv bootcmd 'dhcp;setenv serverip 192.168.0.12;tftpboot;bootm'"

    expect {
        " >"
    }
    send "saveenv"

    expect {
        " >"
    }
    ! killall -s SIGHUP minicom

     

    Regards,

     

    Sakis

     

     

     

     

     

     

     

     

  • i almost got the same problem.. i just want to ask if any updates here....

    regards, Mike

  • Is any update?

    i also got the same question

    TFTP from server 192.168.3.2; our IP address is 192.168.3.3
    Filename 'uImage-am180x-evm.bin'.
    Load address: 0xc0700000
    Loading: #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             ###############################################################
    done
    Bytes transferred = 2317256 (235bc8 hex)
    ## Booting kernel from Legacy Image at c0700000 ...
       Image Name:   Arago/2.6.37-psp03.21.00.04.sdk/
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2317192 Bytes =  2.2 MB
       Load Address: c0008000
       Entry Point:  c0008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.

  • hi, Ewing

    i think you must have modified the source code so that the kernel cannot boot

    check your code and you can find the solutions.

    regards,  Mike

  • Hi Everyone,

                           We have ported android Froyo on AM1808 processor successfully from sdcard. But my problem is i cant access serial port (read, write) using com port.

    I have downloaded android serial port API (.apk file) from link  http://code.google.com/p/android-serialport-api/downloads/list  . After i installed this .apk file on my android device iam getting force close error.

     i have set permissions too.

    Can you please help me out in this issue. Thanks in advance.

    Regards

    Pooja.