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.

[OMAP-L138] Unable to boot after turning off

Other Parts Discussed in Thread: OMAP-L138, OMAPL138

Hi.

I have flashed in the uImage.bin that i got from the prebuilt images from the dvsdk psp and a ramdisk from the community and I am able to boot to Arago main login. When I off it and on it, it gives me the Error: can't get kernel image because of bad data crc. I can salvage by flashing it in again by tftp and start it up again. I would like the image and ramdisk to stay on the memory, is this the right way to do it?

My uimage is (2186996 bytes) and my ramdisk is (3153400 bytes) and I am using the experimental kit. Please help. Thanks.

On CMD: I used flashandbootutils and did the following:

sfh_OMAP-L138.exe -erase

sfh_OMAP-L138.exe -flash ubl\ubl_OMAPL138_SPI_MEM.bin u-boot-da850-omapl138-evm.bin

 

From TeraTerm VT:

sf probe 0

tftp c0700000 uImage.bin

sf erase 0x800000 0x220000

sf write 0xc0700000 0x80000 0x220000

 

tftp 0xc1180000 ramdisk.gz

sf erase 0x280000 0x310000

sf write 0xc1180000 0x280000 0x310000

 

setenv bootargs mem=32M console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0xc1180000,8m ip=off

setenv bootcmd 'sf probe 0;sf read 0xc0700000 0x80000 0x220000;sf read 0xc1180000 0x280000 0x310000;bootm 0xc0700000'

saveenv

  • Hi Lionel,

    I have flashed in the uImage.bin that i got from the prebuilt images from the dvsdk psp and a ramdisk from the community and I am able to boot to Arago main login. When I off it and on it, it gives me the Error: can't get kernel image because of bad data crc. I can salvage by flashing it in again by tftp and start it up again. I would like the image and ramdisk to stay on the memory, is this the right way to do it?

    Please do the followings steps to know the problem.

    1)

    sf probe 0

    tftp c0700000 uImage.bin

    sf erase 0x800000 0x220000

    sf write 0xc0700000 0x80000 0x220000

    SWITCH OFF THE BOARD HERE

    sf probe 0

    sf read 0xc0700000 0x80000 0x220000

    bootm 0xc0700000

    tftp 0xc1180000 ramdisk.gz

    sf erase 0x280000 0x310000

    sf write 0xc1180000 0x280000 0x310000

    2)

    sf probe 0

    tftp c0700000 uImage.bin

    sf erase 0x800000 0x220000

    sf write 0xc0700000 0x80000 0x220000

    SWITCH OFF THE BOARD HERE

    sf probe 0

    tftp 0xc1180000 ramdisk.gz

    sf erase 0x280000 0x310000

    sf write 0xc1180000 0x280000 0x310000

    setenv bootargs mem=32M console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0xc1180000,8m ip=off

    setenv bootcmd 'sf probe 0;sf read 0xc0700000 0x80000 0x220000;sf read 0xc1180000 0x280000 0x310000;bootm 0xc0700000'

    saveenv

    boot


    Provide the results of the 2 different steps.

  • For Number 1: bootm 0xc0700000, when I do this step, it got stuck. It is looking for the mmc, I dont have an mmc

    Hit any key to stop autoboot:  0
    U-Boot > setenv ipaddr 192.168.25.25
    U-Boot > setenv serverip 192.168.25.26
    U-Boot > setenv ethaddr 02:03:04:85:06:07
    U-Boot > saveenv
    Saving Environment to SPI Flash...
    Erasing SPI flash...Writing to SPI flash...done
    U-Boot > OMAP-L138 initialization passed!
    Booting TI User Boot Loader
            UBL Version: 1.65
            UBL Flashtype: SPI
    Starting SPI Memory Copy...
    Valid magicnum, 0x55424CBB, found at offset 0x00010000.
       DONE
    Jumping to entry point at 0xC1080000.
    
    
    U-Boot 2009.11 (Mar 24 2011 - 23:24:35)
    
    I2C:   ready
    DRAM:  64 MB
    MMC:   davinci: 0
    In:    serial
    Out:   serial
    Err:   serial
    ARM Clock : 300000000 Hz
    DDR Clock : 150000000 Hz
    Net:   Ethernet PHY: GENERIC @ 0x00
    
    Hit any key to stop autoboot:  0
    U-Boot > sf probe 0
    8192 KiB M25P64 at 0:0 is now current device
    U-Boot > tftp c0700000 uImage.bin
    Using  device
    TFTP from server 192.168.25.26; our IP address is 192.168.25.25
    Filename 'uImage.bin'.
    Load address: 0xc0700000
    Loading: #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             ######################################
    done
    Bytes transferred = 2187060 (215f34 hex)
    U-Boot > sf write 0xc0700000 0x80000 0x220000
    U-Boot > OMAP-L138 initialization passed!
    Booting TI User Boot Loader
            UBL Version: 1.65
            UBL Flashtype: SPI
    Starting SPI Memory Copy...
    Valid magicnum, 0x55424CBB, found at offset 0x00010000.
       DONE
    Jumping to entry point at 0xC1080000.
    
    
    U-Boot 2009.11 (Mar 24 2011 - 23:24:35)
    
    I2C:   ready
    DRAM:  64 MB
    MMC:   davinci: 0
    In:    serial
    Out:   serial
    Err:   serial
    ARM Clock : 300000000 Hz
    DDR Clock : 150000000 Hz
    Net:   Ethernet PHY: GENERIC @ 0x00
    
    Hit any key to stop autoboot:  0
    U-Boot > sf probe 0
    8192 KiB M25P64 at 0:0 is now current device
    U-Boot > sf read 0xc0700000 0x80000 0x220000
    U-Boot > bootm 0xc0700000
    ## 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:    2186996 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.
    Linux version 2.6.33-rc4 (sdk@nemo) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #1 PREEMPT Thu Mar 24 23:27:57 CDT 2011
    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
    CPU: VIVT data cache, VIVT instruction cache
    Machine: DaVinci DA850/OMAP-L138/AM18xx EVM
    Memory policy: ECC disabled, Data cache writeback
    DaVinci da850/omap-l138/am18xx variant 0x1
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
    Kernel command line: mem=32M console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait ip=off
    PID hash table entries: 128 (order: -3, 512 bytes)
    Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
    Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
    Memory: 32MB = 32MB total
    Memory: 27816KB available (4164K code, 320K data, 148K init, 0K highmem)
    SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    Hierarchical RCU implementation.
    NR_IRQS:245
    Console: colour dummy device 80x30
    Calibrating delay loop... 149.50 BogoMIPS (lpj=747520)
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    DaVinci: 144 gpio irqs
    regulator: core version 0.5
    NET: Registered protocol family 16
    da850_evm_init: mmcsd2 registration failed: -1bio: create slab <bio-0> at 0
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    regulator: VDCDC1: 3200 <--> 3300 mV at 3300 mV
    regulator: VDCDC2: 1750 <--> 3300 mV at 3300 mV
    regulator: VDCDC3: 950 <--> 1375 mV at 1200 mV
    regulator: LDO1: 1800 mV
    regulator: LDO2: 1150 <--> 1300 mV at 1200 mV
    pca953x 1-0020: failed reading register
    i2c-gpio i2c-gpio.1: using pins 20 (SDA) and 21 (SCL)
    Bluetooth: Core ver 2.15
    NET: Registered protocol family 31
    Bluetooth: HCI device and connection manager initialized
    Bluetooth: HCI socket layer initialized
    Switching to clocksource timer0_1
    musb_hdrc: version 6.0, cppi4.1-dma, host, debug=0
    Waiting for USB PHY clock good...
    musb_hdrc: USB Host mode controller at fee00000 using DMA, IRQ 58
    musb_hdrc musb_hdrc: MUSB HDRC host driver
    musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 1024 (order: 1, 8192 bytes)
    TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
    TCP: Hash tables configured (established 1024 bind 1024)
    TCP reno registered
    UDP hash table entries: 256 (order: 0, 4096 bytes)
    UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    NET: Registered protocol family 1
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    EMAC: MII PHY configured, RMII PHY will not be functional
    JFFS2 version 2.2. (NAND) � 2001-2006 Red Hat, Inc.
    msgmni has been set to 54
    io scheduler noop registered (default)
    da8xx_lcdc da8xx_lcdc.0: GLCD: Found Sharp_LK043T1DG01 panel
    Console: switching to colour frame buffer device 60x34
    Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25) is a AR7
    serial8250.0: ttyS1 at MMIO 0x1d0c000 (irq = 53) is a AR7
    serial8250.0: ttyS2 at MMIO 0x1d0d000 (irq = 61) is a AR7
    console [ttyS2] enabled
    brd: module loaded
    ahci ahci: forcing PORTS_IMPL to 0x1
    ahci ahci: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
    ahci ahci: flags: ncq sntf pm led clo only pmp pio slum part ccc
    scsi0 : ahci
    ata1: SATA max UDMA/133 irq 67
    spi_davinci spi_davinci.1: DaVinci SPI driver in EDMA mode
    Using RX channel = 18 , TX channel = 19 and event queue = 1
    m25p80 spi1.0: m25p64 (8192 Kbytes)
    Creating 4 MTD partitions on "m25p80":
    0x000000000000-0x000000040000 : "U-Boot"
    0x000000040000-0x000000050000 : "U-Boot Environment"
    0x000000050000-0x0000007f0000 : "Linux"
    0x0000007f0000-0x000000800000 : "MAC Address"
    Read MAC addr from EEPROM: ff:ff:ff:ff:ff:ff
    spi_davinci spi_davinci.1: Controller at 0xfef0e000
    console [netcon0] enabled
    netconsole: network logging started
    ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    ohci ohci.0: DA8xx OHCI
    ohci ohci.0: new USB bus registered, assigned bus number 2
    ohci ohci.0: irq 59, io mem 0x01e25000
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    input: TPS6507x Touchscreen as /devices/platform/i2c-gpio.1/i2c-1/1-0048/input/input0
    omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    omap_rtc: RTC power up reset detected
    i2c /dev entries driver
    Linux video capture interface: v2.00
    usbcore: registered new interface driver uvcvideo
    USB Video Class driver (v0.1.0)
    watchdog watchdog: heartbeat 60 sec
    Bluetooth: HCI UART driver ver 2.2
    Bluetooth: HCI H4 protocol initialized
    Bluetooth: HCI BCSP protocol initialized
    Bluetooth: HCILL protocol initialized
    cpuidle: using governor ladder
    cpuidle: using governor menu
    davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
    davinci_mmc davinci_mmc.1: Using DMA, 4-bit mode
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    Advanced Linux Sound Architecture Driver Version 1.0.21.
    usbcore: registered new interface driver snd-usb-audio
    No device for DAI tlv320aic3x
    asoc: tlv320aic3x <-> davinci-i2s mapping ok
    ALSA device list:
      #0: DA850/OMAP-L138 EVM (tlv320aic3x)
    TCP cubic registered
    NET: Registered protocol family 17
    Bluetooth: L2CAP ver 2.14
    Bluetooth: L2CAP socket layer initialized
    Bluetooth: SCO (Voice Link) ver 0.6
    Bluetooth: SCO socket layer initialized
    ata1: SATA link down (SStatus 0 SControl 300)
    Bluetooth: RFCOMM TTY layer initialized
    Bluetooth: RFCOMM socket layer initialized
    Bluetooth: RFCOMM ver 1.11
    Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    Bluetooth: BNEP filters: protocol multicast
    Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    Clocks: disable unused i2c1
    Clocks: disable unused emac
    Clocks: disable unused aemif
    Clocks: disable unused spi0
    Clocks: disable unused mcbsp0
    Clocks: disable unused mcbsp1
    Clocks: disable unused vpif
    Clocks: disable unused ecap0
    regulator_init_complete: incomplete constraints, leaving LDO2 on
    regulator_init_complete: incomplete constraints, leaving LDO1 on
    regulator_init_complete: incomplete constraints, leaving VDCDC3 on
    regulator_init_complete: incomplete constraints, leaving VDCDC2 on
    regulator_init_complete: incomplete constraints, leaving VDCDC1 on
    davinci_emac_probe: using random MAC addr: aa:78:58:f2:4a:68
    emac-mii: probed
    omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    Waiting for root device /dev/mmcblk0p2...
    

    For number 2: SWITCH OFF THE BOARD HERE. It died after switching it back on. I couldn't continue typing on tera term

    OMAP-L138 initialization passed!
    Booting TI User Boot Loader
            UBL Version: 1.65
            UBL Flashtype: SPI
    Starting SPI Memory Copy...
    Valid magicnum, 0x55424CBB, found at offset 0x00010000.
       DONE
    Jumping to entry point at 0xC1080000.
    
    
    U-Boot 2009.11 (Mar 24 2011 - 23:24:35)
    
    I2C:   ready
    DRAM:  64 MB
    MMC:   davinci: 0
    In:    serial
    Out:   serial
    Err:   serial
    ARM Clock : 300000000 Hz
    DDR Clock : 150000000 Hz
    Net:   Ethernet PHY: GENERIC @ 0x00
    
    Hit any key to stop autoboot:  0
    U-Boot > sf probe 0
    8192 KiB M25P64 at 0:0 is now current device
    U-Boot > tftp c0700000 uImage.bin
    Using  device
    TFTP from server 192.168.25.26; our IP address is 192.168.25.25
    Filename 'uImage.bin'.
    Load address: 0xc0700000
    Loading: #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             ######################################
    done
    Bytes transferred = 2187060 (215f34 hex)
    U-Boot > sf erase 0x800000 0x220000
    U-Boot > sf write 0xc0700000 0x80000 0x220000
    U-Boot >

    Dont know if this helps.

    Thanks.

  • Hi Lionel,

    I'm curious about your results.

    The first 4 steps are common for both the 2 cases but 2nd test case got stuck after reset.

    When I off it and on it, it gives me the Error: can't get kernel image because of bad data crc. I can salvage by flashing it in again by tftp and start it up again. I would like the image and ramdisk to stay on the memory, is this the right way to do it?

    Attach your complete error & bootup log with commands that you given.

    Are you able to reproduce it verytime ie every reboot or some times ?

    If it sometimes, then it could be ECC issue.

    Please try to use latest bootloader.

  • Hi. I changed a new board and used the /setup.sh file in the dvsdk in Linux. It solved the issue and it resides in the memory. Thanks for the help.

  • Hi Lionel,

    Sounds good.

    Thanks for your update.

    Please close the thread by verifying it.