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.

omapl138(lcdk) failed to boot from SD card

Other Parts Discussed in Thread: OMAPL138, OMAP-L138, DA8XX, PMP

I made a SD card booting the omapl138(lcdk) board.When I open the minicom and connect the linux,some error comes as below:

(I made the SD card with "mkcard.sh".  Would you give me some advice please?)

Welcome to minicom 2.4

 

OPTIONS: I18n                                                               

Compiled on Jan 25 2010, 06:49:09.                                          

Port /dev/ttyUSB0                                                           

                                                                            

Press CTRL-A Z for help on special keys                                     

                                                                             

 MMC boot...                                                                

davinci: 0                                                                  

spl: mmc device found                                                        

                                                                            

                                                                            

U-Boot 2012.04.01-00045-ge1da559 (May 21 2014 - 08:26:20)

                                        

I2C:   ready                           

DRAM:  128 MiB                         

WARNING: Caches not enabled            

NAND:  512 MiB                         

MMC:   davinci: 0                                                            

Bad block table not found for chip 0                                        

Bad block table not found for chip 0                                        

Bad block table written to 0x00001ffe0000, version 0x01                     

Bad block table written to 0x00001ffc0000, version 0x01                     

NAND read from offset 0 failed -74                                          

*** Warning - readenv() failed, using default environment                   

                                                                             

In:    serial                                                               

Out:   serial                                                               

Err:   serial                                                               

Net:   DaVinci-EMAC                                                         

Hit any key to stop autoboot:  0                                            

reading boot.scr                                                             

                                                                            

** Unable to read "boot.scr" from mmc 0:1 **                                 

reading uImage                                                               

                                                                            

2040348 bytes read                                                          

## Booting kernel from Legacy Image at c0700000 ...                          

   Image Name:   Linux-3.1.10                                               

   Image Type:   ARM Linux Kernel Image (uncompressed)                      

   Data Size:    2040284 Bytes = 1.9 MiB                                    

   Load Address: c0008000                                                   

   Entry Point:  c0008000                                                   

   Verifying Checksum ... OK                                                

   Loading Kernel Image ... OK                                               

OK                                                                          

                                                                            

Starting kernel ...                                                          

                                                                            

Uncompressing Linux... done, booting the kernel.                            

Linux version 3.1.10 (root@VPC-U1104) (gcc version 4.5.3 20110311 (prereleas2

CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177               

CPU: VIVT data cache, VIVT instruction cache                                

Machine: AM18x/OMAP-L138 LCDK                                               

Memory policy: ECC disabled, Data cache writeback                           

DaVinci da850/omap-l138/am18x variant 0x1                                   

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 24320  

Kernel command line: mem=32M@0xc0000000 mem=64M@0xc4000000 console=ttyS2,115f

PID hash table entries: 512 (order: -1, 2048 bytes)                         

Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)              

Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)                 

Memory: 32MB 64MB = 96MB total                                              

Memory: 93344k/93344k available, 4960k reserved, 0K highmem                 

Virtual kernel memory layout:                                               

    vector  : 0xffff0000 - 0xffff1000   (   4 kB)                           

    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)                           

    DMA     : 0xff000000 - 0xffe00000   (  14 MB)                           

    vmalloc : 0xc8800000 - 0xfea00000   ( 866 MB)                           

    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)                           

    modules : 0xbf000000 - 0xc0000000   (  16 MB)                           

      .text : 0xc0008000 - 0xc0396218   (3641 kB)                            

      .init : 0xc0397000 - 0xc03ba000   ( 140 kB)                           

      .data : 0xc03ba000 - 0xc03db160   ( 133 kB)                           

       .bss : 0xc03db184 - 0xc03f4c1c   ( 103 kB)                            

SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1     

Preemptible hierarchical RCU implementation.                                

NR_IRQS:245                                                                 

Console: colour dummy device 80x30                                          

Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640)                     

pid_max: default: 32768 minimum: 301                                        

Mount-cache hash table entries: 512                                          

CPU: Testing write buffer coherency: ok                                     

DaVinci: 144 gpio irqs                                                      

NET: Registered protocol family 16                                           

EMAC: MII PHY configured                                                    

bio: 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                                   

Advanced Linux Sound Architecture Driver Version 1.0.24.                    

Switching to clocksource timer0_1                                           

Switched to NOHz mode on CPU #0                                             

NET: Registered protocol family 2                                            

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)              

TCP established hash table entries: 4096 (order: 3, 32768 bytes)            

TCP bind hash table entries: 4096 (order: 2, 16384 bytes)                    

TCP: Hash tables configured (established 4096 bind 4096)                    

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 named UNIX socket transport module.                         

RPC: Registered udp transport module.                                       

RPC: Registered tcp transport module.                                       

RPC: Registered tcp NFSv4.1 backchannel transport module.                   

msgmni has been set to 182                                                   

io scheduler noop registered (default)                                      

da8xx_lcdc da8xx_lcdc.0: GLCD: Found VGA_Monitor panel                      

Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled                     

serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25) is a 16550A                

serial8250.0: ttyS1 at MMIO 0x1d0c000 (irq = 53) is a 16550A                

serial8250.0: ttyS2 at MMIO 0x1d0d000 (irq = 61) is a 16550A                

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 platform mode    

ahci ahci: flags: ncq sntf pm led clo only pmp pio slum part ccc            

scsi0 : ahci_platform                                                       

ata1: SATA max UDMA/133 mmio [mem 0x01e18000-0x01e19fff] port 0x100 irq 67  

davinci_mdio davinci_mdio.0: davinci mdio revision 1.5                      

davinci_mdio davinci_mdio.0: detected phy mask ffffff7f                     

davinci_mdio.0: probed                                                       

davinci_mdio davinci_mdio.0: phy[7]: device 0:07, driver unknown            

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 1                  

Waiting for USB PHY clock good...                                           

ohci ohci.0: irq 59, io mem 0x01e25000                                      

usb usb1: New USB device found, idVendor=1d6b, idProduct=0001               

usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1          

usb usb1: Product: DA8xx OHCI                                               

usb usb1: Manufacturer: Linux 3.1.10 ohci_hcd                               

usb usb1: SerialNumber: ohci.0                                              

hub 1-0:1.0: USB hub found                                                  

hub 1-0:1.0: 1 port detected                                                 

omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0                    

omap_rtc: RTC power up reset detected                                       

omap_rtc: already running                                                   

i2c /dev entries driver                                                     

davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode                            

asoc: tlv320aic3x-hifi <-> davinci-mcasp.0 mapping ok                       

ALSA device list:                                                            

  #0: DA850/OMAP-L138 EVM                                                   

TCP cubic registered                                                        

NET: Registered protocol family 17                                          

davinci_emac davinci_emac.1: using random MAC addr: 82:bf:ff:f8:2b:ba       

console [netcon0] enabled                                                   

netconsole: network logging started                                         

omap_rtc omap_rtc: setting system clock to 2000-01-01 00:01:39 UTC (94668489)

mmc0: new SDHC card at address 0007                                         

mmcblk0: mmc0:0007 SD8GB 7.21 GiB                                            

 mmcblk0: p1 p2                                                             

ata1: SATA link down (SStatus 0 SControl 300)                               

kjournald starting.  Commit interval 5 seconds                               

EXT3-fs (mmcblk0p2): using internal journal                                 

EXT3-fs (mmcblk0p2): recovery complete                                      

EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode              

VFS: Mounted root (ext3 filesystem) on device 179:2.                        

Freeing init memory: 140K                                                   

Kernel panic - not syncing: Attempted to kill init!

  • Hi,

    Bad block table not found for chip 0                                        

    Bad block table not found for chip 0                                        

    Bad block table written to 0x00001ffe0000, version 0x01                     

    Bad block table written to 0x00001ffc0000, version 0x01                    

    You won't get the error next reboot since BBT was updated now.

    Are you getting the same error for every boot ?

    Freeing init memory: 140K                                                   

    Kernel panic - not syncing: Attempted to kill init!


    The error seems to be the filesystem was not present in SD/MMC's 2nd partiton.

    Could you provide your u-boot's bootargs ?

    Connect your SD card into host Linux PC and confirm that you have a filesystem on 2nd partitions of SD/MMC card.

  • Hi,

        I made another SD card by a "mkcard.sh" file offered by a company.  And I copy the uImage (under the file" ti-sdk-omapl138-lcdk-01.00.00") ,the filesystem I found in the file "rootfs" provided by the company callede  Tronlong and the u-boot_mmc.ais offered by TI website.

        I connect the board to the linux and get something as below:

    Welcome to minicom 2.4

    OPTIONS: I18n
    Compiled on Jan 25 2010, 06:49:09.
    Port /dev/ttyUSB0

    Press CTRL-A Z for help on special keys

    NAND: 512 MiB
    MMC: davinci: 0
    Bad block table found at page 262080, version 0x01
    Bad block table found at page 262016, version 0x01
    *** Warning - bad CRC, using default environment

    In: serial
    Out: serial
    Err: serial
    ARM Clock : 300000000 Hz
    DDR Clock : 150000000 Hz
    Net: Ethernet PHY: GENERIC @ 0x07
    DaVinci-EMAC
    Hit any key to stop autoboot: 0
    U-Boot > NAND: 512 MiB
    MMC: davinci: 0
    Bad block table found at page 262080, version 0x01
    Bad block table found at page 262016, version 0x01
    *** Warning - bad CRC, using default environment

    In: serial
    Out: serial
    Err: serial
    ARM Clock : 300000000 Hz
    DDR Clock : 150000000 Hz
    Net: Ethernet PHY: GENERIC @ 0x07
    DaVinci-EMAC
    Hit any key to stop autoboot: 0
    reading boot.scr

    ** Unable to read "boot.scr" from mmc 0:1 **
    reading uImage

    2040348 bytes read
    ## Booting kernel from Legacy Image at c0700000 ...
    Image Name: Linux-3.1.10
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 2040284 Bytes = 1.9 MiB
    Load Address: c0008000
    Entry Point: c0008000
    Verifying Checksum ... OK
    Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    Linux version 3.1.10 (root@VPC-U1104) (gcc version 4.5.3 20110311 (prereleas2
    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
    CPU: VIVT data cache, VIVT instruction cache
    Machine: AM18x/OMAP-L138 LCDK
    Memory policy: ECC disabled, Data cache writeback
    DaVinci da850/omap-l138/am18x variant 0x1
    Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
    Kernel command line: console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait f
    PID hash table entries: 512 (order: -1, 2048 bytes)
    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Memory: 128MB = 128MB total
    Memory: 125856k/125856k available, 5216k reserved, 0K highmem
    Virtual kernel memory layout:
    vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
    DMA : 0xff000000 - 0xffe00000 ( 14 MB)
    vmalloc : 0xc8800000 - 0xfea00000 ( 866 MB)
    lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
    modules : 0xbf000000 - 0xc0000000 ( 16 MB)
    .text : 0xc0008000 - 0xc0396218 (3641 kB)
    .init : 0xc0397000 - 0xc03ba000 ( 140 kB)
    .data : 0xc03ba000 - 0xc03db160 ( 133 kB)
    .bss : 0xc03db184 - 0xc03f4c1c ( 103 kB)
    SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    Preemptible hierarchical RCU implementation.
    NR_IRQS:245
    Console: colour dummy device 80x30
    Calibrating delay loop... 148.88 BogoMIPS (lpj=744448)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    DaVinci: 144 gpio irqs
    NET: Registered protocol family 16
    EMAC: MII PHY configured
    bio: 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
    Advanced Linux Sound Architecture Driver Version 1.0.24.
    Switching to clocksource timer0_1
    Switched to NOHz mode on CPU #0
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    TCP: Hash tables configured (established 4096 bind 4096)
    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 named UNIX socket transport module.
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    msgmni has been set to 245
    io scheduler noop registered (default)
    da8xx_lcdc da8xx_lcdc.0: GLCD: Found VGA_Monitor panel
    Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25) is a 16550A
    serial8250.0: ttyS1 at MMIO 0x1d0c000 (irq = 53) is a 16550A
    serial8250.0: ttyS2 at MMIO 0x1d0d000 (irq = 61) is a 16550A
    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 platform mode
    ahci ahci: flags: ncq sntf pm led clo only pmp pio slum part ccc
    scsi0 : ahci_platform
    ata1: SATA max UDMA/133 mmio [mem 0x01e18000-0x01e19fff] port 0x100 irq 67
    davinci_mdio davinci_mdio.0: davinci mdio revision 1.5
    davinci_mdio davinci_mdio.0: detected phy mask ffffff7f
    davinci_mdio.0: probed
    davinci_mdio davinci_mdio.0: phy[7]: device 0:07, driver unknown
    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 1
    Waiting for USB PHY clock good...
    ohci ohci.0: irq 59, io mem 0x01e25000
    usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
    usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb1: Product: DA8xx OHCI
    usb usb1: Manufacturer: Linux 3.1.10 ohci_hcd
    usb usb1: SerialNumber: ohci.0
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    omap_rtc: RTC power up reset detected
    omap_rtc: already running
    i2c /dev entries driver
    davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
    asoc: tlv320aic3x-hifi <-> davinci-mcasp.0 mapping ok
    ALSA device list:
    #0: DA850/OMAP-L138 EVM
    TCP cubic registered
    NET: Registered protocol family 17
    davinci_emac davinci_emac.1: using random MAC addr: 1a:32:bd:28:56:41
    console [netcon0] enabled
    mmc0: new SDHC card at address 1234
    netconsole: network logging started
    mmcblk0: mmc0:1234 SA04G 3.63 GiB
    omap_rtc omap_rtc: setting system clock to 2013-09-14 18:24:55 UTC (13791830)
    mmcblk0: p1 p2
    ata1: SATA link down (SStatus 0 SControl 300)
    kjournald starting. Commit interval 5 seconds
    EXT3-fs (mmcblk0p2): using internal journal
    EXT3-fs (mmcblk0p2): recovery complete
    EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
    VFS: Mounted root (ext3 filesystem) on device 179:2.
    Freeing init memory: 140K
    INIT: version 2.86 booting
    Please wait: booting...
    Starting udev
    udevd[929]: inotify_add_watch(6, (null), 10) failed: Bad address

    udevd[929]: inotify_add_watch(6, (null), 10) failed: Bad address

    udev: starting version 151
    udevd (930): /proc/930/oom_adj is deprecated, please use /proc/930/oom_score.
    Remounting root file system...

    udevadm settle - timeout of 8 seconds reached, the event queue contains:
    /sys/devices/platform/davinci_mmc.0/mmc_host/mmc0/mmc0:1234/block/mmcblk0 )
    /sys/devices/platform/davinci_mmc.0/mmc_host/mmc0/mmc0:1234/block/mmcblk0/)
    /sys/devices/platform/davinci_mmc.0/mmc_host/mmc0/mmc0:1234/block/mmcblk0/)
    /sys/devices/virtual/block/ram0 (909)
    .-------.
    | | .-.
    | | |-----.-----.-----.| | .----..-----.-----.ci_mdio.0: resetting idlr
    | | | __ | ---'| '--.| .-'| | |:phy_addr=0:07, id=7c0f1)
    | | | | | |--- || --'| | | ' | | | |
    '---'---'--'--'--. |-----''----''--' '-----'-'-'-' code 1
    -' |
    '---'
    Sending discover...
    The Angstrom Distribution
    done.
    www.tronlong.com
    net.ipv4.conf.default.rp_filter = 1
    Enjoy your OMAPL138-EVM
    INIT: Entering runlevel: 5
    QWSTslibMouseHandlerPrivate: ts_open() failed with error: 'No such file or d'
    Please check your tslib installation!r.
    Alignment trap: helloworld (1226) PC=0x40b461c4 Instr=0xe5883000 Address=0x03
    Alignment trap: helloworld (1226) PC=0x40b51734 Instr=0x058b7000 Address=0x01
    Alignment trap: helloworld (1226) PC=0x40b5f340 Instr=0x058b7000 Address=0x01
    Alignment trap: helloworld (1226) PC=0x40b4482c Instr=0xe5843000 Address=0x01
    Alignment trap: helloworld (1226) PC=0x40b461c4 Instr=0xe5883000 Address=0x03
    Alignment trap: helloworld (1226) PC=0x40b51734 Instr=0x058b7000 Address=0x01
    Alignment trap: helloworld (1226) PC=0x40b5f340 Instr=0x058b7000 Address=0x03
    Alignment trap: helloworld (1226) PC=0x40b4482c Instr=0xe5843000 Address=0x01
    Alignment trap: helloworld (1226) PC=0x40b461c4 Instr=0xe5883000 Address=0x01
    Alignment trap: helloworld (1226) PC=0x40b51734 Instr=0x058b7000 Address=0x01
    Alignment trap: helloworld (1226) PC=0x40b5f340 Instr=0x058b7000 Address=0x01
    Alignment trap: helloworld (1226) PC=0x40b4482c Instr=0xe5843000 Address=0x01
    Alignment trap: helloworld (1226) PC=0x40b461c4 Instr=0xe5883000 Address=0x03
    Alignment trap: helloworld (1226) PC=0x40b51734 Instr=0x058b7000 Address=0x01
    Alignment trap: helloworld (1226) PC=0x40b5f340 Instr=0x058b7000 Address=0x01
    Alignment trap: helloworld (1226) PC=0x40b4482c Instr=0xe5843000 Address=0x01

    As what you have said ,my filesystem may be not suitable .Where could I find the right one ? I am referring to this article

     http://processors.wiki.ti.com/index.php/How_to_boot_OMAP-L138_LCDK_from_SD_card#Create_SD_card_with_2_partitions_for_Linux_kernel_and_filesystem

  • Hi,

    NAND read from offset 0 failed -74                                          

    *** Warning - readenv() failed, using default environment                  

    I'm not seeing any issues here.

    If you do "saveenv" in u-boot terminal the above errors goes off.

    http://software-dl.ti.com/sdoemb/sdoemb_public_sw/mcsdk/latest1/index_FDS.html

    Use of our latest release of MCSDK for OMAPL138 to get the latest filesystem and kernel.

  • Thanks a lot for your help !

  • Hi,

    Thanks for your update.