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.

cat /proc/mtd is empty

Other Parts Discussed in Thread: PCA9543A, TSC2004, THS7303, TVP5146, TVP7002, THS7353

In my kernel config file

CONFIG_MTD = y
CONFIG_MTD_CHAR = y
CONFIG_MTD_BLKDEVS = y
CONFIG_MTD_BLOCK = y

dmesg doesnot report any indication of a problem detecting flash

I am using Nand flash

when I am using Linux-2.6.32.17-davinci1 as uImage cat/proc/mtd is empty but if I use Linux-2.6.18_pro500-davinci_IPNC cat /proc/mtd displays the partition for bootloader,params,kernel and filesystem.
So please suggest what changes need to be done in kernel - Linux-2.6.32.17-davinci1

  • Hello!

    You should be describe your NAND partitions in board-specific file.

  • under arch/arm/mach-davinci/board-dm365-evm.c i have

    /*define NAND_BLOCK_SIZE  SZ_128K*/

    /* For Samsung 4K NAND (K9KAG08U0M) with 256K sectors */
    /*#define NAND_BLOCK_SIZE  SZ_256K*/

    /* For Micron 4K NAND with 512K sectors */
    //#define NAND_BLOCK_SIZE  SZ_512K

    #define NAND_BLOCK_SIZE  SZ_128K

    static struct mtd_partition davinci_nand_partitions[] = {
     {
      /* UBL (a few copies) plus U-Boot */
      .name  = "bootloader",
      .offset  = 0,
      .size  = 30 * NAND_BLOCK_SIZE,
      .mask_flags = MTD_WRITEABLE, /* force read-only */
     }, {
      /* U-Boot environment */
      .name  = "params",
      .offset  = MTDPART_OFS_APPEND,
      .size  = 2 * NAND_BLOCK_SIZE,
      .mask_flags = 0,
     }, {
      .name  = "kernel",
      .offset  = MTDPART_OFS_APPEND,
      .size  = SZ_4M,
      .mask_flags = 0,
     }, {
      .name  = "filesystem1",
      .offset  = MTDPART_OFS_APPEND,
    //  .size  = SZ_512M,
      .size  = SZ_32M,
      .mask_flags = 0,
     }, {
      .name  = "filesystem2",
      .offset  = MTDPART_OFS_APPEND,
      .size  = MTDPART_SIZ_FULL,
      .mask_flags = 0,
     }
     /* two blocks with bad block table (and mirror) at the end */
    };

     so what changes i need to do here or the above piece of code is fine?

  • This code correct, I think you should recheck Linux output, you can use dmesg output, on any problem with NAND.

  • I think Nand is fine because cat /proc/mtd is displaying partitions for all parameters with Linux-2.6.18_pro500-davinci_IPNC.

    can you please suggest  filesystem compatible with Linux-2.6.18_pro500-davinci_IPNC and which can be mounted on nand

     

  • JFFS is a standart filesystem, you can only enable/disable it support in Linux.

    /proc/mtd and /proc/partitions is not depends on filesystem.

  • My basic goal is to mount filesystem into nand...

    I am using Bootloader - U-Boot 2010.12-rc2 , Kernel- Linux-2.6.18-pro500-davinci_IPNC and EUCDK filesystem..

    i could put bootloader and kernel into nand but mounting filesystem is tough job for me...

    i gave following steps to mount filesystem into nand-

    target # flash_eraseall /dev/mtd3
    target # mount /dev/mtdblock3 /mnt/nand -t jffs2
    target #cd /tmp
    mkdir flash
    cd flash
    tar -zxvf /filesystem.tar.gz
    cp -a * /mnt/nand

    and rebooted the target board I got the following message

    jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0dde0000: 0xc600 instead
    jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0dde0004: 0x2046 instead
    jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0dde0008: 0x4142 instead
    jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0dde000c: 0x400c instead
    jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0dde0010: 0x0108 instead
    jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0dde0014: 0x8006 instead
    jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0dde0018: 0x8209 instead
    jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0dde001c: 0x7140 instead
    jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0dde0020: 0x2004 instead
    jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0dde0024: 0x4000 instead
    Further such events for this erase block will not be printed
    Old JFFS2 bitmask found at 0x0dde75b8
    You cannot use older JFFS2 filesystems with newer kernels
    jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0de00000: 0xc200 instead
    jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0de00004: 0x2846 instead
    jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0de00008: 0x4862 instead
    jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0de0000c: 0x500a instead
    jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0de00010: 0x0108 instead
    jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0de00014: 0xc104 instead
    jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0de00018: 0x030d instead
    jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0de0001c: 0x5140 instead
    jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0de00020: 0x2900 instead
    jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0de00024: 0xc400 instead
    Further such events for this erase block will not be printed
    VFS: Mounted root (jffs2 filesystem).
    Freeing init memory: 184K
    Warning: unable to open an initial console.
    Kernel panic - not syncing: No init found. Try passing init= option to kernel.



  • ranjana kumari said:
    target # flash_eraseall /dev/mtd3
    target # mount /dev/mtdblock3 /mnt/nand -t jffs2
    target #cd /tmp
    mkdir flash
    cd flash
    tar -zxvf /filesystem.tar.gz
    cp -a * /mnt/nand

    First, you should use flag -j in flash_eraseall for creating JFFS2 filesistem.
    Second, you can simple unpack archiv, e.g. cd /mnt/nand && tar xzvf /full/path/to/filesystem/atchive

  •  

    I had tried with

    target # flash_eraseall -j /dev/mtd3

    target #  mount /dev/mtdblock3 /mnt/nand -t jffs2

    target #  cd /mnt/nand

    target # tar -zxvf /filesys.tgz

    target # sync

    target # cd /home/root

    target # umount /mnt/nand

    but these steps coudnt load filesystem into nand..

    I got this error message "Cannot open: Input/output error"

    and the nand flash is corrupted

     

     

     

     

  • Please post full Linux loading log.

  • U-Boot 2010.12-rc2 (Mar 24 2011 - 16:49:26)

    Cores: ARM 432 MHz
    DDR:   340 MHz
    I2C:   ready
    DRAM:  128 MiB
    NAND:  512 MiB
    MMC:   davinci: 0, davinci: 1
    Bad block table found at page 131008, version 0x01
    Bad block table found at page 262080, version 0x01
    Bad block table found at page 130944, version 0x01
    Bad block table found at page 262016, version 0x01
    nand_read_bbt: Bad block at 0x000000000000
    nand_read_bbt: Bad block at 0x000010000000
    Net:   Read from EEPROM @ 0x50 failed
    No ETH PHY detected!!!
    DaVinci-EMAC
    Hit any key to stop autoboot:  2
     0
    reading uImage

    1872968 bytes read
    ## Booting kernel from Legacy Image at 80700000 ...
       Image Name:   Linux-2.6.18_pro500-davinci_IPNC
       Created:      2013-01-09   5:02:01 UTC
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    1872904 Bytes = 1.8 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux............................................................................................................................. done, booting the kernel.
    Linux version 2.6.18_pro500-davinci_IPNC_1.5 (root@sandeep-desktop) (gcc version 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30)) #1 PREEMPT Fri Sep 28 09:40:24 IST 2012
    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
    Machine: DaVinci DM365 EVM
    Memory policy: ECC disabled, Data cache writeback
    DaVinci DM0365 variant 0x8
    PLL0: fixedrate: 24000000, commonrate: 170000000, vpssrate: 340000000
    PLL0: vencrate_sd: 75555555, ddrrate: 340000000 mmcsdrate: 97142857
    PLL1: armrate: 432000000, voicerate: 20571428, vencrate_hd: 27000000
    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
    Built 1 zonelists.  Total pages: 15360
    Kernel command line: console=ttyS0,115200n8 rw dm365_imp.oper_mode=0 video=davincifb:vid0=OFF:vid1=OFF:osd0=480x272x16,4050K mem=60MB vpfe_capture.interface=1 davinci_enc_mngr.ch0_output=LCD davinci_enc_mngr.ch0_mode=480x272 root=/dev/mmcblk0p2 rootwait ip=off
    Unknown boot option `dm365_imp.oper_mode=0': ignoring
    Unknown boot option `vpfe_capture.interface=1': ignoring
    PID hash table entries: 256 (order: 8, 1024 bytes)
    Clock event device timer0_0 configured with caps set: 07
    Console: colour dummy device 80x30
    Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
    Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
    Memory: 60MB = 60MB total
    Memory: 56716KB available (3209K code, 660K data, 184K init)
    Security Framework v1.0.0 initialized
    Capability LSM initialized
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    NET: Registered protocol family 16
    MUX: initialized SPI0_SCLK
    MUX: initialized SPI0_SDO)
    MUX: initialized SPI0_SDI
    MUX: initialized SPI0_SDENA0
    DaVinci: 104 gpio irqs
    MUX: initialized GPIO20
    MUX: initialized I2C_SCL
    Generic PHY: Registered new driver
    ch0 default output "LCD", mode "NTSC"
    VPBE Encoder Initialized
    SCSI subsystem initialized
    NET: Registered protocol family 2
    IP route cache hash table entries: 512 (order: -1, 2048 bytes)
    TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
    TCP: Hash tables configured (established 2048 bind 1024)
    TCP reno registered
    enable CCD power Vout4
    MUX: initialized GPIO40
    VFS: Disk quotas dquot_6.5.1
    Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    squashfs: version 3.1 (2006/08/19) Phillip Lougher
    JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
    yaffs Aug  4 2012 15:49:25 Installing.
    SGI XFS with no debug enabled
    Initializing Cryptographic API
    io scheduler noop registered
    io scheduler anticipatory registered (default)
    LTT : ltt-facilities init
    LTT : ltt-facility-core init in kernel
    DAVINCI-WDT: DaVinci Watchdog Timer: heartbeat 60 sec
    Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO map 0x1c20000 mem 0xfbc20000 (irq = 40) is a 16550A
    serial8250.0: ttyS1 at MMIO map 0x1d06000 mem 0xfbd06000 (irq = 41) is a 16550A
    RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
    Davinci EMAC MII Bus: probed
    MAC address is deadbeaf
    TI DaVinci EMAC Linux version updated 4.0
    netconsole: not configured, aborting
    Linux video capture interface: v2.00
    Trying to register davinci display video device.
    layer=c051be00,layer->video_dev=c051bf60
    Trying to register davinci display video device.
    layer=c051bc00,layer->video_dev=c051bd60
    davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
    i2c /dev entries driver
    nand_davinci nand_davinci.0: Using 4-bit hardware ECC
    NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit)
    2 NAND chips detected
    Bad block table not found for chip 0
    Bad block table not found for chip 1
    Bad block table not found for chip 0
    Bad block table not found for chip 1
    Scanning device for bad blocks
    Scanning device for bad blocks
    Creating 5 MTD partitions on "nand_davinci.0":
    0x00000000-0x003c0000 : "bootloader"
    0x003c0000-0x00400000 : "params"
    0x00400000-0x00800000 : "kernel"
    0x00800000-0x02800000 : "filesystem1"
    0x02800000-0x20000000 : "filesystem2"
    nand_davinci nand_davinci.0: hardware revision: 2.3
    musb_hdrc: version 6.0, cppi-dma, peripheral, debug=0
    MUX: initialized GPIO33
    musb_hdrc: USB Peripheral mode controller at c401c000 using DMA, IRQ 12
    media_bind()
    media_gadget_init()
    rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: proc
    rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: dev (254:0)
    rtc_davinci_dm365 rtc_davinci_dm365.0: rtc core: registered rtc_davinci_dm365 as rtc0
    davinci-mmc davinci-mmc.0: Supporting 4-bit mode
    davinci-mmc davinci-mmc.0: Using DMA mode
    Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).
    ASoC version 0.13.1
    CQ0093 Voice Codec 0.1
    asoc: cq93vc <-> davinci-vcif mapping ok
    ALSA device list:
      #0: On-chip voice codec (cq93vc)
    IPv4 over IPv4 tunneling driver
    TCP bic registered
    NET: Registered protocol family 1
    NET: Registered protocol family 17
    rtc_davinci_dm365 rtc_davinci_dm365.0: setting the system clock to 2000-01-01 00:00:00 (946684800)
    Time: timer0_1 clocksource has been installed.
    Clock event device timer0_0 configured with caps set: 08
    Switched to high resolution mode on CPU 0
    mmcblk0: mmc0:0002 00000 1955840KiB
     mmcblk0: p1 p2
    kjournald starting.  Commit interval 5 seconds
    EXT3 FS on mmcblk0p2, internal journal
    EXT3-fs: recovery complete.
    EXT3-fs: mounted filesystem with ordered data mode.
    VFS: Mounted root (ext3 filesystem).
    Freeing init memory: 184K
    INIT: version 2.86 booting
    0
    Starting the hotplug events dispatcher: udevd.
    Synthesizing the initial hotplug events...done.
    Waiting for /dev to be fully populated...done.
    0
    Activating swap...done.
    Remounting root filesystem...

    today i tried with following steps to mount filesystem into nand

    nand_eraseall -j /dev/mtd3

    mount  /dev/mtdblock3 /mnt/nand -t jffs2

    but i was stuck at second step..i got this message

    Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes

    empty_blocks 0, bad_blocks 0, c->nr_blocks 256

    mount: /dev/mtdblock3: can't read superblock

    please suggest what to do next

     

  • Please post log with root on NAND.

    Also you can try switch ECC mode on software.

  • I am using U-Boot 2010.12-rc2 bootloader and Linux-2.6.32.17-davinci1 uImage  on DM368 target board as i had mentioned in the previous post...

    Tftp is up on the target board....I tried following steps to put filesystem into nand.

    this time i created jffs2 image of filesystem and copied  it into tftp folder ...tftp folder is on host ...

    I gave following commands from bootloader prompt -

     

    U-Boot> tftp 0xc0700000 rootfs.jffs2               

    U-Boot>nand erase 0x800000 0xsize of jffs2 image

    U-Boot>nand write.jffs2 0xc0700000 0x800000 0xsize of jffs2 image

    NOTE - 0xc0700000 is the ram address where i am writing the image and 0x800000 is the offset

    after doing the above steps i rebooted the target

    my log message is -

    U-Boot 2010.12-rc2 (Jan 15 2013 - 14:04:24)

     

    Cores: ARM 432 MHz

    DDR:   340 MHz

    I2C:   ready

    DRAM:  128 MiB

    NAND:  512 MiB

    MMC:   davinci: 0, davinci: 1

    Bad block table found at page 131008, version 0x01

    Bad block table found at page 262080, version 0x01

    Bad block table found at page 130944, version 0x01

    Bad block table found at page 262016, version 0x01

    nand_read_bbt: Bad block at 0x000000000000

    nand_read_bbt: Bad block at 0x000010000000

    Net:   Can't overwrite "ethaddr"

    Ethernet PHY: GENERIC @ 0x00

    DaVinci-EMAC

    Hit any key to stop autoboot:  0

     

    Loading from nand0, offset 0x400000

       Image Name:   Linux-2.6.32.17-davinci1

       Created:      2013-01-17   5:12:15 UTC

       Image Type:   ARM Linux Kernel Image (uncompressed)

       Data Size:    2162348 Bytes = 2.1 MiB

       Load Address: 80008000

       Entry Point:  80008000

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

       Image Name:   Linux-2.6.32.17-davinci1

       Created:      2013-01-17   5:12:15 UTC

       Image Type:   ARM Linux Kernel Image (uncompressed)

       Data Size:    2162348 Bytes = 2.1 MiB

       Load Address: 80008000

       Entry Point:  80008000

       Verifying Checksum ... OK

       Loading Kernel Image ... OK

    OK

     

    Starting kernel ...

     

    Uncompressing Linux..........................................................................................................................................

    Linux version 2.6.32.17-davinci1 (root@sandeep-desktop) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #5 PREEMPT Thu Jan 17 10:42:12 IST 2013

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

    CPU: VIVT data cache, VIVT instruction cache

    Machine: DaVinci DM36x EVM

    Memory policy: ECC disabled, Data cache writeback

    DaVinci dm36x_rev1.2 variant 0x8

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

    Kernel command line: mem=96M console=ttyS0,115200n8 mtdparts=nand:32M(rootfs),-(userfs) root=/dev/mtdblock0 rw,noatime rootfstype=jffs2 ip=static

    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: 96MB = 96MB total

    Memory: 92748KB available (4052K code, 393K data, 144K 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... 215.44 BogoMIPS (lpj=1077248)

    Mount-cache hash table entries: 512

    CPU: Testing write buffer coherency: ok

    DaVinci: 8 gpio irqs

    NET: Registered protocol family 16

    davinci_serial_init:97: failed to get UART2 clock

    EVM: HD imager video input

    bio: create slab <bio-0> at 0

    DM365 IPIPE initialized in Single Shot mode

    SCSI subsystem initialized

    usbcore: registered new interface driver usbfs

    usbcore: registered new interface driver hub

    usbcore: registered new device driver usb

    pca9543a_probe

    vpss vpss: dm365_vpss vpss probed

    vpss vpss: dm365_vpss vpss probe success

    dm365_afew_hw_init

    ch0 default output "COMPOSITE", mode "NTSC"

    VPBE Encoder Initialized

    cfg80211: Using static regulatory domain info

    cfg80211: Regulatory domain: US

            (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)

            (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)

            (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)

            (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)

            (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)

            (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)

            (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)

    cfg80211: Calling CRDA for country: US

    LogicPD encoder initialized

    Switching to clocksource timer0_1

    musb_hdrc: version 6.0, cppi-dma, host, debug=0

    musb_hdrc: USB Host mode controller at fec64000 using DMA, IRQ 12

    musb_hdrc musb_hdrc: MUSB HDRC host driver

    musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1

    usb usb1: configuration #1 chosen from 1 choice

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

    NET: Registered protocol family 1

    RPC: Registered udp transport module.

    RPC: Registered tcp transport module.

    RPC: Registered tcp NFSv4.1 backchannel transport module.

    JFFS2 version 2.2. (NAND) (SUMMARY)  �© 2001-2006 Red Hat, Inc.

    msgmni has been set to 181

    alg: No test for stdrng (krng)

    io scheduler noop registered

    io scheduler anticipatory registered (default)

    Console: switching to colour frame buffer device 90x30

    davincifb davincifb.0: dm_osd0_fb: 720x480x16@0,0 with framebuffer size 675KB

    davincifb davincifb.0: dm_vid0_fb: 0x0x16@0,0 with framebuffer size 1020KB

    davincifb davincifb.0: dm_osd1_fb: 720x480x4@0,0 with framebuffer size 675KB

    davincifb davincifb.0: dm_vid1_fb: 0x0x16@0,0 with framebuffer size 1020KB

    DM365 IPIPEIF probed

    imp serializer initialized

    davinci_previewer initialized

    davinci_resizer initialized

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

    serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A

    console [ttyS0] enabled

    brd: module loaded

    at24 1-0050: 32768 byte 24c256 EEPROM (writable)

    spi_davinci spi_davinci.0: DaVinci SPI driver in EDMA mode

    Using RX channel = 17 , TX channel = 16 and event queue = 3

    at25 spi0.0: 8 KByte at25640 eeprom, pagesize 32

    spi_davinci spi_davinci.0: Controller at 0xfec66000

    console [netcon0] enabled

    netconsole: network logging started

    Initializing USB Mass Storage driver...

    usbcore: registered new interface driver usb-storage

    USB Mass Storage support registered.

    usbcore: registered new interface driver usbtest

    mice: PS/2 mouse device common for all mice

    tsc2004: probe of 1-0049 failed with error -121

    input: DM365 EVM Controls as /devices/platform/i2c_davinci.1/i2c-1/1-0025/input/input0

    i2c /dev entries driver

    Linux video capture interface: v2.00

    ths7303 1-002c: chip found @ 0x58 (DaVinci I2C adapter)

    ths7303 1-002c: ths7303 write failed

    ths7303: probe of 1-002c failed with error -121

    vpfe_init

    vpfe-capture: vpss clock vpss_master enabled

    vpfe-capture vpfe-capture: v4l2 device registered

    vpfe-capture vpfe-capture: video device registered

    EVM: switch to tvp5146 SD video input

    tvp514x 1-005d: tvp514x 1-005d decoder driver registered !!

    vpfe-capture vpfe-capture: v4l2 sub device tvp5146 registered

    EVM: switch to tvp7002 HD video input

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002 1-005c: Write: retry ... 0

    tvp7002 1-005c: Write: retry ... 1

    tvp7002 1-005c: Write: retry ... 2

    tvp7002 1-005c: Write: retry ... 3

    tvp7002 1-005c: Write: retry ... 4

    tvp7002 1-005c: Write: retry ... 5

    tvp7002: probe of 1-005c failed with error -22

    vpfe-capture vpfe-capture: v4l2 sub device tvp7002 register fails

    EVM: switch to tvp7002 HD video input

    ths7353 1-002e: chip found @ 0x5c (DaVinci I2C adapter)

    ths7353 1-002e: No platform data!!

    ths7353 1-002e: ths7353 write failed

    ths7353: probe of 1-002e failed with error -121

    vpfe-capture vpfe-capture: v4l2 sub device ths7353 register fails

    vpfe_register_ccdc_device: DM365 ISIF

    DM365 ISIF is registered with vpfe.

    af major#: 252, minor# 0

    AF Driver initialized

    aew major#: 251, minor# 0

    AEW Driver initialized

    Trying to register davinci display video device.

    layer=c4149400,layer->video_dev=c4149570

    Trying to register davinci display video device.

    layer=c4149800,layer->video_dev=c4149970

    davinci_init:DaVinci V4L2 Display Driver V1.0 loaded

    watchdog watchdog: heartbeat 60 sec

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

    usbcore: registered new interface driver usbhid

    usbhid: v2.6:USB HID core driver

    Advanced Linux Sound Architecture Driver Version 1.0.21.

    No device for DAI tlv320aic3x

    No device for DAI davinci-i2s

    asoc: tlv320aic3x <-> davinci-i2s mapping ok

    ALSA device list:

      #0: DaVinci EVM (tlv320aic3x)

    TCP cubic registered

    NET: Registered protocol family 17

    lib80211: common routines for IEEE802.11 drivers

    Clocks: disable unused mmcsd1

    Clocks: disable unused spi1

    Clocks: disable unused spi2

    Clocks: disable unused spi3

    Clocks: disable unused spi4

    Clocks: disable unused pwm0

    Clocks: disable unused pwm1

    Clocks: disable unused pwm2

    Clocks: disable unused pwm3

    Clocks: disable unused timer1

    Clocks: disable unused timer3

    Clocks: disable unused emac

    Clocks: disable unused voice_codec

    Clocks: disable unused rto

    Clocks: disable unused mjcp

    davinci_emac_probe: using random MAC addr: 76:40:1f:4f:c5:bb

    emac-mii: probed

    mmc0: new high speed SD card at address 0002

    mmcblk0: mmc0:0002 00000 1.86 GiB

     mmcblk0: p1 p2

    eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=1:01, id=221613)

    IP-Config: Guessing netmask 255.255.0.0

    IP-Config: Complete:

         device=eth0, addr=133.0.0.0, mask=255.255.0.0, gw=255.255.255.255,

         host=133.0.0.0, domain=, nis-domain=(none),

         bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=

    Root-NFS: No NFS server available, giving up.

    VFS: Unable to mount root fs via NFS, trying floppy.

    List of all partitions:

    b300         1955840 mmcblk0 driver: mmcblk

      b301           80325 mmcblk0p1

      b302         1710922 mmcblk0p2

    No filesystem could mount root, tried:  jffs2

    Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

    Backtrace:

    [<c00305f4>] (dump_backtrace+0x0/0x114) from [<c0320f88>] (dump_stack+0x18/0x1c)

     r7:00008000 r6:c4012000 r5:c0025808 r4:c0453a10

    [<c0320f70>] (dump_stack+0x0/0x1c) from [<c0320fe0>] (panic+0x54/0x12c)

    [<c0320f8c>] (panic+0x0/0x12c) from [<c0008fbc>] (mount_block_root+0x1e0/0x220)

     r3:00000000 r2:00000020 r1:c4023f60 r0:c03bab96

    [<c0008ddc>] (mount_block_root+0x0/0x220) from [<c00090c0>] (mount_root+0xc4/0xfc)

     r8:00000000 r7:00000000 r6:00000000 r5:00000000 r4:00200000

    [<c0008ffc>] (mount_root+0x0/0xfc) from [<c0009268>] (prepare_namespace+0x170/0x1c8)

     r5:c0025808 r4:c0453520

    [<c00090f8>] (prepare_namespace+0x0/0x1c8) from [<c00084bc>] (kernel_init+0xe4/0x118)

     r5:00000000 r4:c04532e0

    [<c00083d8>] (kernel_init+0x0/0x118) from [<c0045170>] (do_exit+0x0/0x668)

     r5:00000000 r4:00000000

     

     i did    setenv bootargs mem=96M console=ttyS0,115200n8 mtdparts=nand:32M(rootfs),-(userfs) root=/dev/mtdblock0 rw,noatime rootfstype=jffs2 ip=static  in bootloader prompt....

    i have static ip on my target board...

    so please suggest where am i missing...                                                                          

     

     

  • kirill , here is message with root  on target terminal

    # cat /proc/mtd 

    dev :  size  erasesize  name

    and no parameter is shown with their sizes

    how to enable switch ECC mode on software

  • Hi Ranjana,

    I seem to be having a similar problem.  Did you ever resolve your problem.  If so how?

    I don't see any nand mtd partitions after booting kernel 2.6.32.17 from DVSDK 4.02 for DM368.

    I have enabled the options in the kernel, using provided fs from DVSDK.

    Using uboot and kernel for EVM, and board file for EVM with minor mods for ethernet and nand block size.

    I've even setup the mtd partitions from uboot and they don't show up in fs. 

    Any suggestions as to what I might be doing wrong.

    When i use an old working kernel 2.6.18.xx the mtd partitions show up just fine on the same board.  So I know its not the HW.  Any help would be appreciated.  Thanks!

    Adam

  • hi

    Please provide the following information to help you further with this issue:

    1. Complete boot log  with MTD debugging enabled (CONFIG_MTD_DEBUG set  in the config and the Debugging verbosity set to 3 in Drivers-> MTD support -> Debugging -> Debugging verbosity)

            2. configuration file (.config file inside the kernel src directory) . I’m assuming that CONFIG_MTD_PARTITIONS is set.

    regards,

    Abhilash

  • Hi Abhilash,

    Thanks, but I was able to get things working.  I got the newest version of the UBL from the most recent PSP, and that got my nand flash recognized.

    What had me spinning in circles was that I did have MTD debugging enabled and verbosity set to 3 as well as the kernel set correctly for MTD partitions, but I was getting no debug messages at all for the nand chip.  The nand driver was loading and immediately unloading as if it was not being recognized.  Updating the UBL to a newer version fixed my problem.

    Thanks anyways!

    -Adam

  • Hi

    Please use the latest PSP package (UBL, u-boot and kernel)  from here : http://processors.wiki.ti.com/index.php/DaVinci_PSP_03.21.00.04_Release_Notes to resolve this issue.

    This uses the 2.6.37 kernel.

    thanks & regards

    Abhilash