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.

Boot Freezing

Hello,

I have a problem with loading a file system on the dm355 evm. Currently I loaded the dm355 img file onto an SD card and booting from that (file system), but it freezes on

cmem initialized 8 pools between 0x87400000 and 0x88000000

I have no clue what is going wrong, and could not find any help on how to fix this issue.

Thanks

  • Hi,

    What is that your application is doing? Looking from the message, it seems like you are seeing that loadmodules.sh (where cmem is loaded) is getting executed but nothing is happening after that. So you might want to check what is supposed to happen in your script after loadmodules?

    Also, did you try running your application by removing it from autoboot and running from the shell prompt? Do you get the same error?

    REgards,

    Anshuman

  • Thanks for your quick reply. The filesystem I have loaded onto the SD card is identical to that one that comes to preloaded on the NAND flash. I have removed/commented out the loadmodules auto start command that I found in /home/etc/rc.d/rc3.d/S88demo file.

    Now, upon autostarting the board is freezing at the following

    Freeing init memory: 180K

    Could there be something wrong in my bootargs that isn't being done correctly? Here are my boot args

    setenv bootcmd 'nboot 0x80700000 0 0x400000;bootm'

    setenv bootargs console=ttyS0,115200n8 noinitrd rw ip=off root=/dev/mmcblk0p1 mem=116M rootwait video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16,2500K:osd0=720x576x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=pal

    Thanks :)

  • Please share the complete bootup log also when the system hangs. I will try to help based on looking at bootup log.

    If possible share the log and bootargs when you are able to boot correctly

    Regards,

    Anshuman

  • Ok Doki

    Boot args for SD Card

    setenv bootcmd 'nboot 0x80700000 0 0x400000;bootm'

    setenv bootargs console=ttyS0,115200n8 noinitrd rw ip=off root=/dev/mmcblk0p1 mem=116M rootwait video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16,2500K:osd0=720x576x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=pal

    Boot log

    Loading from NAND 1GiB 3,3V 8-bit, offset 0x400000
       Image Name:   Linux-2.6.10_mvl401
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    1578784 Bytes =  1.5 MB
       Load Address: 80008000
       Entry Point:  80008000
    ## Booting image at 80700000 ...
       Image Name:   Linux-2.6.10_mvl401
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    1578784 Bytes =  1.5 MB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
    OK

    Starting kernel ...

    Linux version 2.6.10_mvl401 (root@dvt-buryak) (gcc version 3.4.3 (MontaVista 3.4.3-25.0.104.0600975 2006-07-06)) #2 Tue Apr 9
    CPU: ARM926EJ-Sid(wb) [41069265] revision 5 (ARMv5TEJ)
    CPU0: D VIVT write-back cache
    CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
    CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
    Machine: DaVinci DM355 EVM
    Memory policy: ECC disabled, Data cache writeback
    DM0350
    Built 1 zonelists
    Kernel command line: console=ttyS0,115200n8 noinitrd rw ip=off root=/dev/mmcblk0p1 mem=116M rootwait video=davincifb:vid0=72l
    PID hash table entries: 512 (order: 9, 8192 bytes)
    Console: colour dummy device 80x30
    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Memory: 116MB = 116MB total
    Memory: 114176KB available (2748K code, 570K data, 180K init)
    Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
    CPU: Testing write buffer coherency: ok
    spawn_desched_task(00000000)
    desched cpu_callback 3/00000000
    ksoftirqd started up.
    desched cpu_callback 2/00000000
    desched thread 0 started up.
    NET: Registered protocol family 16
    DaVinci: 104 gpio irqs
    Registering platform device 'serial8250.0'. Parent at platform
    Registering platform device 'musb_hdrc'. Parent at platform
    Registering platform device 'nand_davinci.0'. Parent at platform
    Registering platform device 'dm9000.0'. Parent at platform
    Registering platform device 'mmc.0'. Parent at platform
    Registering platform device 'mmc.1'. Parent at platform
    DaVinci I2C DEBUG: 17:09:38 Mar  4 2009
    Registering platform device 'i2c'. Parent at platform
    ch0 default output "COMPOSITE", mode "PAL"
    VPBE Encoder Initialized
    LogicPD encoder initialized
    SCSI subsystem initialized
    usbcore: registered new driver usbfs
    usbcore: registered new driver hub
    musb_hdrc: version 2.2a/db-0.4.8 [cppi-dma] [host] [debug=0]
    musb_hdrc: ConfigData=0x06 (UTMI-8, dyn FIFOs, SoftConn)
    musb_hdrc: MHDRC RTL version 1.300
    musb_hdrc: USB Host mode controller at c7802000 using DMA, IRQ 12
    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
    DaVinci I2C WARNING: i2c: NACK detected
    DaVinci I2C WARNING: i2c: NACK detected
    DaVinci I2C WARNING: i2c: NACK detected
    DaVinci I2C WARNING: i2c: NACK detected
    DaVinci I2C WARNING: i2c: NACK detected
    Registering platform device 'dm_spi.0'. Parent at platform
    NetWinder Floating Point Emulator V0.97 (double precision)
    JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
    yaffs Mar  4 2009 17:09:07 Installing.
    Initializing Cryptographic API
    Registering platform device 'davincifb.0'. Parent at platform
    davincifb davincifb.0: dm_osd0_fb: 720x576x16@0,0 with framebuffer size 2025KB
    davincifb davincifb.0: dm_vid0_fb: 720x576x16@0,0 with framebuffer size 2500KB
    davincifb davincifb.0: dm_osd1_fb: 720x576x4@0,0 with framebuffer size 1620KB
    davincifb davincifb.0: dm_vid1_fb: 720x576x16@0,0 with framebuffer size 2500KB
    watchdog: TI DaVinci Watchdog Timer: timer margin 64 sec
    Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
    Registering platform device 'serial8250'. Parent at platform
    ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
    ttyS1 at MMIO 0x1c20400 (irq = 41) is a 16550A
    ttyS2 at MMIO 0x1e06000 (irq = 14) is a 16550A
    io scheduler noop registered
    io scheduler anticipatory registered
    RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
    loop: loaded (max 8 devices)
    dm9000 Ethernet Driver
    eth0: dm9000 at c7862000,c7864002 IRQ 45 MAC: 00:0e:99:02:cd:2b
    i2c /dev entries driver
    Linux video capture interface: v1.00
    Registering platform device 'vpfe.1'. Parent at platform
    vpfe vpfe.1: DaVinci v4l2 capture driver V1.0 loaded
    Registering platform device 'DavinciDisplay.1'. Parent at platform
    Trying to register davinci display video device.
    layer=c0bf6c00,layer->video_dev=c0bf6d64
    Trying to register davinci display video device.
    layer=c0bf6a00,layer->video_dev=c0bf6b64
    davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
    ipipe major#: 254, minor# 0
    Registering platform device 'dm355_ipipe.2'. Parent at platform
    ipipe driver registered
    af major#: 253, minor# 0
    Registering platform device 'dm355_af.2'. Parent at platform
    aew major#: 252, minor# 0
    Registering platform device 'dm355_aew.2'. Parent at platform
    elevator: using anticipatory as default io scheduler
    nand_davinci nand_davinci.0: Using 4-bit hardware ECC
    NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron NAND 1GiB 3,3V 8-bit)
    2 NAND chips detected
    nand_bbt: ECC error while reading bad block table
    nand_bbt: ECC error while reading bad block table
    Creating 5 MTD partitions on "nand_davinci.0":
    0x00000000-0x003c0000 : "bootloader"
    0x003c0000-0x00400000 : "params"
    0x00400000-0x00800000 : "kernel"
    0x00800000-0x20800000 : "filesystem1"
    0x20800000-0x80000000 : "filesystem2"
    nand_davinci nand_davinci.0: hardware revision: 2.3
    dm_spi.0: davinci SPI Controller driver at 0xc7866000 (irq = 42) use_dma=0
    Initializing USB Mass Storage driver...
    usbcore: registered new driver usb-storage
    USB Mass Storage support registered.
    usbcore: registered new driver usbhid
    drivers/usb/input/hid-core.c: v2.0:USB HID core driver
    mice: PS/2 mouse device common for all mice
    mmc mmc.0: Supporting 4-bit mode
    mmc mmc.0: Using DMA mode
    mmc mmc.1: Supporting 4-bit mode
    mmc mmc.1: Using DMA mode
    Registering platform device 'davinci-audio.0'. Parent at platform
    mmcblk0: mmc0:b368 SMI   993792KiB
     mmcblk0: p1
    NET: Registered protocol family 2
    IP: routing cache hash table of 512 buckets, 4Kbytes
    TCP: Hash tables configured (established 8192 bind 16384)
    Initializing XFRM netlink socket
    NET: Registered protocol family 1
    NET: Registered protocol family 10
    IPv6 over IPv4 tunneling driver
    NET: Registered protocol family 17
    EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
    VFS: Mounted root (ext2 filesystem).
    Freeing init memory: 180K

     

    Regular boot args

    setenv bootcmd 'nboot 0x80700000 0 0x400000;bootm'

    setenv bootargs console=ttyS0,115200n8 ip=off root=/dev/mtdblock3 rw rootfstype=yaffs2 mem=116M video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16,2500K:osd0=720x576x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=$(videostd)

    Boot log

    Loading from NAND 1GiB 3,3V 8-bit, offset 0x400000
       Image Name:   Linux-2.6.10_mvl401
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    1578784 Bytes =  1.5 MB
       Load Address: 80008000
       Entry Point:  80008000
    ## Booting image at 80700000 ...
       Image Name:   Linux-2.6.10_mvl401
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    1578784 Bytes =  1.5 MB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
    OK

    Starting kernel ...

    Linux version 2.6.10_mvl401 (root@dvt-buryak) (gcc version 3.4.3 (MontaVista 3.4.3-25.0.104.0600975 2006-07-06)) #2 Tue Apr 9
    CPU: ARM926EJ-Sid(wb) [41069265] revision 5 (ARMv5TEJ)
    CPU0: D VIVT write-back cache
    CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
    CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
    Machine: DaVinci DM355 EVM
    Memory policy: ECC disabled, Data cache writeback
    DM0350
    Built 1 zonelists
    Kernel command line: console=ttyS0,115200n8 ip=off root=/dev/mtdblock3 rw rootfstype=yaffs2 mem=116M video=davincifb:vid0=72c
    PID hash table entries: 512 (order: 9, 8192 bytes)
    Console: colour dummy device 80x30
    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Memory: 116MB = 116MB total
    Memory: 114176KB available (2748K code, 570K data, 180K init)
    Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
    CPU: Testing write buffer coherency: ok
    spawn_desched_task(00000000)
    desched cpu_callback 3/00000000
    ksoftirqd started up.
    desched cpu_callback 2/00000000
    desched thread 0 started up.
    NET: Registered protocol family 16
    DaVinci: 104 gpio irqs
    Registering platform device 'serial8250.0'. Parent at platform
    Registering platform device 'musb_hdrc'. Parent at platform
    Registering platform device 'nand_davinci.0'. Parent at platform
    Registering platform device 'dm9000.0'. Parent at platform
    Registering platform device 'mmc.0'. Parent at platform
    Registering platform device 'mmc.1'. Parent at platform
    DaVinci I2C DEBUG: 17:09:38 Mar  4 2009
    Registering platform device 'i2c'. Parent at platform
    ch0 default output "COMPOSITE", mode "NTSC"
    VPBE Encoder Initialized
    LogicPD encoder initialized
    SCSI subsystem initialized
    usbcore: registered new driver usbfs
    usbcore: registered new driver hub
    musb_hdrc: version 2.2a/db-0.4.8 [cppi-dma] [host] [debug=0]
    musb_hdrc: ConfigData=0x06 (UTMI-8, dyn FIFOs, SoftConn)
    musb_hdrc: MHDRC RTL version 1.300
    musb_hdrc: USB Host mode controller at c7802000 using DMA, IRQ 12
    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
    DaVinci I2C WARNING: i2c: NACK detected
    DaVinci I2C WARNING: i2c: NACK detected
    DaVinci I2C WARNING: i2c: NACK detected
    DaVinci I2C WARNING: i2c: NACK detected
    DaVinci I2C WARNING: i2c: NACK detected
    Registering platform device 'dm_spi.0'. Parent at platform
    NetWinder Floating Point Emulator V0.97 (double precision)
    JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
    yaffs Mar  4 2009 17:09:07 Installing.
    Initializing Cryptographic API
    Registering platform device 'davincifb.0'. Parent at platform
    davincifb davincifb.0: dm_osd0_fb: Initial window configuration is invalid.
    davincifb davincifb.0: dm_osd0_fb: 720x576x16@0,0 with framebuffer size 2025KB
    davincifb davincifb.0: dm_vid0_fb: Initial window configuration is invalid.
    davincifb davincifb.0: dm_vid0_fb: 720x576x16@0,0 with framebuffer size 2500KB
    davincifb davincifb.0: dm_osd1_fb: 720x480x4@0,0 with framebuffer size 1350KB
    davincifb davincifb.0: dm_vid1_fb: Initial window configuration is invalid.
    davincifb davincifb.0: dm_vid1_fb: 720x576x16@0,0 with framebuffer size 2500KB
    watchdog: TI DaVinci Watchdog Timer: timer margin 64 sec
    Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
    Registering platform device 'serial8250'. Parent at platform
    ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
    ttyS1 at MMIO 0x1c20400 (irq = 41) is a 16550A
    ttyS2 at MMIO 0x1e06000 (irq = 14) is a 16550A
    io scheduler noop registered
    io scheduler anticipatory registered
    RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
    loop: loaded (max 8 devices)
    dm9000 Ethernet Driver
    eth0: dm9000 at c7862000,c7864002 IRQ 45 MAC: 00:0e:99:02:cd:2b
    i2c /dev entries driver
    Linux video capture interface: v1.00
    Registering platform device 'vpfe.1'. Parent at platform
    vpfe vpfe.1: DaVinci v4l2 capture driver V1.0 loaded
    Registering platform device 'DavinciDisplay.1'. Parent at platform
    Trying to register davinci display video device.
    layer=c0bf3c00,layer->video_dev=c0bf3d64
    Trying to register davinci display video device.
    layer=c0bf3a00,layer->video_dev=c0bf3b64
    davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
    ipipe major#: 254, minor# 0
    Registering platform device 'dm355_ipipe.2'. Parent at platform
    ipipe driver registered
    af major#: 253, minor# 0
    Registering platform device 'dm355_af.2'. Parent at platform
    aew major#: 252, minor# 0
    Registering platform device 'dm355_aew.2'. Parent at platform
    elevator: using anticipatory as default io scheduler
    nand_davinci nand_davinci.0: Using 4-bit hardware ECC
    NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron NAND 1GiB 3,3V 8-bit)
    2 NAND chips detected
    nand_bbt: ECC error while reading bad block table
    nand_bbt: ECC error while reading bad block table
    Creating 5 MTD partitions on "nand_davinci.0":
    0x00000000-0x003c0000 : "bootloader"
    0x003c0000-0x00400000 : "params"
    0x00400000-0x00800000 : "kernel"
    0x00800000-0x20800000 : "filesystem1"
    0x20800000-0x80000000 : "filesystem2"
    nand_davinci nand_davinci.0: hardware revision: 2.3
    dm_spi.0: davinci SPI Controller driver at 0xc7866000 (irq = 42) use_dma=0
    Initializing USB Mass Storage driver...
    usbcore: registered new driver usb-storage
    USB Mass Storage support registered.
    usbcore: registered new driver usbhid
    drivers/usb/input/hid-core.c: v2.0:USB HID core driver
    mice: PS/2 mouse device common for all mice
    mmc mmc.0: Supporting 4-bit mode
    mmc mmc.0: Using DMA mode
    mmc mmc.1: Supporting 4-bit mode
    mmc mmc.1: Using DMA mode
    Registering platform device 'davinci-audio.0'. Parent at platform
    mmcblk0: mmc0:b368 SMI   993792KiB
     mmcblk0: p1
    NET: Registered protocol family 2
    IP: routing cache hash table of 512 buckets, 4Kbytes
    TCP: Hash tables configured (established 8192 bind 16384)
    Initializing XFRM netlink socket
    NET: Registered protocol family 1
    NET: Registered protocol family 10
    IPv6 over IPv4 tunneling driver
    NET: Registered protocol family 17
    yaffs: dev is 32505859 name is "mtdblock3"
    yaffs: Attempting MTD mount on 31.3, "mtdblock3"
    block 3004 is bad
    VFS: Mounted root (yaffs2 filesystem).
    Freeing init memory: 180K
    INIT: Entering runlevel: 3
    Starting internet superserver: inetd.
    ioremap_nocache(0x87400000, 12582912)=0xc7880000
    allocated heap buffer 0xc7880000 of size 0xce000
    cmem initialized 8 pools between 0x87400000 and 0x88000000
    Starting web server ...
     thttpd

    MontaVista(R) Linux(R) Professional Edition 4.0.1 (0502020)

    (none) login:

    Note: It freezes a bit at block 3004 is bad, I assume it is attempted to read a bad sector?

    Thanks

  • I also had problems loading root FS from SD card. I have no solution. I gave up. I would be interested how to do it too.