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.

DM368 IPNC SDK V4.1 Doesn't build working ubifs?

I'm hoping someone can help.  After getting version 4.1 of the SDK, I loaded the pre-built images into my camera, and everything worked.  I was trying to install the images built from the SDK source as a check-point before making any changes.  I found that the source did not make a working ubifs.  I'm using a fresh install of Ubuntu 12.04, and after installing a few things the User's Guide didn't discuss (and posting the procedure so others could benefit), got a clean build (make sysall, make ubifsall).  Transferring the images to the camera produces a kernel panic.  Output is below, first from the failed built-from-source version, followed by the successful pre-built images.  If anyone can help get the source as supplied in SDK V4.1 working, I'd appreciate it very much.

Serial output from images built from as-supplied source:

DM36x initialization passed!

TI UBL Base Version: 1.50

Boot Loader BootMode = NAND

Starting NAND Copy...

Valid magicnum, 0xA1ACED66, found in block 0x00000008.

Boot Mode Task Completed

IPNC UBL Version: 2.1.0

Platform: DM368-432

Jumping to entry point at 0x81080000

U-Boot 1.3.4 (Jan 29 2013 - 21:09:36) DM368-IPNC-4.1.0

I2C:   ready

DRAM:  128 MB

NAND:  NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)

Bad block table not found for chip 0

Bad block table not found for chip 0

loop oob 81021ad8 Bad block table written to 0x07fe0000, version 0x01

loop oob 81021ad8 Bad block table written to 0x07fc0000, version 0x01

128 MiB

In:    serial

Out:   serial

Err:   serial

ARM Clock :- 432MHz

DDR Clock :- 340MHz

Ethernet PHY: GENERIC @ 0x01

Hit any key to stop autoboot:  0

Loading from NAND 128MiB 3,3V 8-bit, offset 0x500000

   Image Name:   Linux-2.6.37_IPNC_DM365_4.1.0

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    3439968 Bytes =  3.3 MB

   Load Address: 80008000

   Entry Point:  80008000

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

   Image Name:   Linux-2.6.37_IPNC_DM365_4.1.0

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    3439968 Bytes =  3.3 MB

   Load Address: 80008000

   Entry Point:  80008000

   Loading Kernel Image ... OK

OK

Starting kernel ...

[    0.000000] Linux version 2.6.37_IPNC_DM365_4.1.0 (a0875405@bangvideoapps01) (gcc version 4.3.3 (GCC) ) #1 PREEMPT Tue Jan 29 21:16:20 IST 2013

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

[    0.000000] CPU: VIVT data cache, VIVT instruction cache

[    0.000000] Machine: DaVinci DM36x IPNC

[    0.000000] Memory policy: ECC disabled, Data cache writeback

[    0.000000] DaVinci dm365_rev1.1 variant 0x0

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 12192

[    0.000000] Kernel command line: mem=48M console=ttyS1,115200n8 noinitrd ip=192.168.1.168:192.168.1.100:192.168.1.1:255.255.255.0:::off rw ubi.mtd=3,2048 rootfstype=ubifs root=ubi0:rootfs cmemk.phys_start=0x83000000 cmemk.phys_end=0x88000000 cmemk.phys_start_1=0x00001000 cmemk.phys_end_1=0x00008000 cmemk.pools_1=1x28672 cmemk.allowOverlap=1 cmemk.useHeapIfPoolUnavailable=1 nohz=off highres=off clocksource=acpi_pm lpj=1077248

[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)

[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

[    0.000000] Memory: 48MB = 48MB total

[    0.000000] Memory: 45184k/45184k available, 3968k reserved, 0K highmem

[    0.000000] Virtual kernel memory layout:

[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)

[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

[    0.000000]     DMA     : 0xff000000 - 0xffe00000   (  14 MB)

[    0.000000]     vmalloc : 0xc3800000 - 0xfea00000   ( 946 MB)

[    0.000000]     lowmem  : 0xc0000000 - 0xc3000000   (  48 MB)

[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)

[    0.000000]       .init : 0xc0008000 - 0xc0028000   ( 128 kB)

[    0.000000]       .text : 0xc0028000 - 0xc032c000   (3088 kB)

[    0.000000]       .data : 0xc032c000 - 0xc034fd60   ( 144 kB)

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

[    0.000000] Preemptable hierarchical RCU implementation.

[    0.000000]  RCU-based detection of stalled CPUs is disabled.

[    0.000000]  Verbose stalled-CPUs detection is disabled.

[    0.000000] NR_IRQS:245

[    0.000000] Console: colour dummy device 80x30

[    0.000296] Calibrating delay loop (skipped) preset value.. 215.44 BogoMIPS (lpj=1077248)

[    0.000355] pid_max: default: 32768 minimum: 301

[    0.000632] Mount-cache hash table entries: 512

[    0.001419] CPU: Testing write buffer coherency: ok

[    0.005918] DaVinci: 8 gpio irqs

[    0.006536] NET: Registered protocol family 16

[    0.089638] bio: create slab <bio-0> at 0

[    0.094558] SCSI subsystem initialized

[    0.098357] usbcore: registered new interface driver usbfs

[    0.099684] usbcore: registered new interface driver hub

[    0.100915] usbcore: registered new device driver usb

[    0.104042] vpss vpss: dm365_vpss vpss probed

[    0.104104] vpss vpss: dm365_vpss vpss probe success

[    0.106005] Advanced Linux Sound Architecture Driver Version 1.0.23.

[    0.107959] Switching to clocksource timer0_1

[    0.170467] NET: Registered protocol family 2

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

[    0.171559] TCP established hash table entries: 2048 (order: 2, 16384 bytes)

[    0.171698] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

[    0.171787] TCP: Hash tables configured (established 2048 bind 2048)

[    0.171819] TCP reno registered

[    0.171857] UDP hash table entries: 256 (order: 0, 4096 bytes)

[    0.171920] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

[    0.172418] NET: Registered protocol family 1

[    0.239189] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.

[    0.242985] msgmni has been set to 88

[    0.245726] io scheduler noop registered (default)

[    0.247171] CSL: Module install successful, device major num = 254

[    0.247217] CSL: Module version 0.10.00, built on Jan 29 2013 21:10:10

[    0.247274] I2C: Module install successful, device major num = 253

[    0.247317] DMA: Module install successful, device major num = 252

[    0.247345] DRV: Module install successful

[    0.247370] DRV: Module built on Jan 29 2013 21:10:12

[    0.247396] DRV: EDMACC.QUEPRI  = 00002777

[    0.247418] DRV: SYSTEM.MSTPRI0 = 00440011

[    0.247440] DRV: SYSTEM.MSTPRI1 = 00000444

[    0.247462] DRV: ISP.BCR        = 00000002

[    0.247484] DRV: SYSTEM.MISC    = 00000399

[    0.247508] EDMAK module: built on Jan 29 2013 at 21:09:58

[    0.247539]   Reference Linux version 2.6.37

[    0.247564]   File /data/datalocal_videoapps01/user/kudva/DM36x/IPNetCam_v4.0/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/edma/src/module/edmak.c

[    0.249039] IRQK module: built on Jan 29 2013 at 21:09:55

[    0.249090]   Reference Linux version 2.6.37

[    0.249116]   File /data/datalocal_videoapps01/user/kudva/DM36x/IPNetCam_v4.0/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/irq/src/module/irqk.c

[    0.250813] irqk initialized

[    0.250892] CMEMK module: built on Jan 29 2013 at 21:09:57

[    0.250932]   Reference Linux version 2.6.37

[    0.250960]   File /data/datalocal_videoapps01/user/kudva/DM36x/IPNetCam_v4.0/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c

[    0.255689] allocated heap buffer 0xc4000000 of size 0x5000000

[    0.255733] heap fallback enabled - will try heap if pool buffer is not available

[    0.255773] CMEM Range Overlaps Kernel Physical - allowing overlap

[    0.255808] CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)

[    0.255953] cmemk initialized

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

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

[    0.302095] serial8250.0: ttyS1 at MMIO 0x1d06000 (irq = 41) is a 16550A

[    0.820383] console [ttyS1] enabled

[    0.827182] brd: module loaded

[    0.838804] NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung )

[    0.847319] Bad block table not found for chip 0

[    0.853532] Bad block table not found for chip 0

[    0.858168] Scanning device for bad blocks

[    0.944317] Creating 7 MTD partitions on "davinci_nand.0":

[    0.949844] 0x000000000000-0x000000300000 : "bootloader"

[    0.959182] 0x000000300000-0x000000500000 : "params"

[    0.968226] 0x000000500000-0x000000900000 : "kernel"

[    0.977388] 0x000000900000-0x000003100000 : "filesystem1"

[    0.987146] 0x000003100000-0x000003300000 : "data1"

[    0.996352] 0x000003300000-0x000005b00000 : "filesystem2"

[    1.006207] 0x000005b00000-0x000008000000 : "data2"

[    1.015610] davinci_nand davinci_nand.0: controller rev. 2.3

[    1.024446] UBI: attaching mtd3 to ubi0

[    1.028311] UBI: physical eraseblock size:   131072 bytes (128 KiB)

[    1.034896] UBI: logical eraseblock size:    126976 bytes

[    1.040469] UBI: smallest flash I/O unit:    2048

[    1.045185] UBI: sub-page size:              512

[    1.049806] UBI: VID header offset:          2048 (aligned 2048)

[    1.055911] UBI: data offset:                4096

[    1.209066] UBI error: process_eb: bad image sequence number 809040151 in PEB 192, expected 1507908790

[    1.218856] UBI error: ubi_init: cannot attach mtd3

[    1.270110] davinci_mdio davinci_mdio.0: davinci mdio revision 1.4

[    1.276321] davinci_mdio davinci_mdio.0: detected phy mask fffffffd

[    1.284042] davinci_mdio.0: probed

[    1.287487] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown

[    1.295349] i2c /dev entries driver

[    1.301111] Linux media interface: v0.10

[    1.305759] Linux video capture interface: v2.00

[    1.312717] vpbe-osd vpbe-osd: OSD sub device probe success

[    1.319202] vpbe-venc vpbe-venc: VENC sub device probe success

[    1.326037] vpbe-v4l2 vpbe-v4l2: vpbe v4l2 device registered

[    1.332217] Setting default output to Composite

[    1.336774] Setting default mode to ntsc

[    1.340903] vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.

[    1.347616] vpbe-v4l2 vpbe-v4l2: layer=c291a200,layer->video_dev=c291a2e8

[    1.355285] vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.

[    1.362216] vpbe-v4l2 vpbe-v4l2: layer=c296e000,layer->video_dev=c296e0e8

[    1.370814] watchdog watchdog: heartbeat 60 sec

[    1.380681] Error: Driver 'davinci-mcbsp' is already registered, aborting...

[    1.390722] asoc: cq93vc-hifi <-> davinci-vcif mapping ok

[    1.399435] ALSA device list:

[    1.402712]   #0: DaVinci DM365 EVM

[    1.407446] TCP cubic registered

[    1.411031] NET: Registered protocol family 17

[    1.424353] net eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, id=181b8b0)

[    1.450866] IP-Config: Complete:

[    1.453949]      device=eth0, addr=192.168.1.168, mask=255.255.255.0, gw=192.168.1.1,

[    1.461835]      host=192.168.1.168, domain=, nis-domain=(none),

[    1.467852]      bootserver=192.168.1.100, rootserver=192.168.1.100, rootpath=

[    1.476055] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)

[    1.483201] Please append a correct "root=" boot option; here are the available partitions:

[    1.491662] 1f00            3072 mtdblock0  (driver?)

[    1.496749] 1f01            2048 mtdblock1  (driver?)

[    1.501897] 1f02            4096 mtdblock2  (driver?)

[    1.506976] 1f03           40960 mtdblock3  (driver?)

[    1.512112] 1f04            2048 mtdblock4  (driver?)

[    1.517190] 1f05           40960 mtdblock5  (driver?)

[    1.522320] 1f06           37888 mtdblock6  (driver?)

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

[    1.535700] Backtrace:

[    1.538167] Function entered at [<c002c4ec>] from [<c02bffa8>]

[    1.544050]  r7:00008000 r6:c2813000 r5:c002294c r4:c03504c0

[    1.549752] Function entered at [<c02bff90>] from [<c02c0014>]

[    1.555632] Function entered at [<c02bffac>] from [<c0008f84>]

[    1.561508]  r3:00000000 r2:00000000 r1:c2825f78 r0:c02dc7e1

[    1.567210] Function entered at [<c0008d20>] from [<c00090dc>]

[    1.573086] Function entered at [<c0009048>] from [<c00084b4>]

[    1.578927]  r5:c00220e8 r4:c034fd78

[    1.582563] Function entered at [<c00083a4>] from [<c0040e0c>]

[    1.588400]  r5:c00083a4 r4:00000000

 

Serial output from pre-built images:

DM36x initialization passed!

TI UBL Base Version: 1.50

Boot Loader BootMode = NAND

Starting NAND Copy...

Valid magicnum, 0xA1ACED66, found in block 0x00000008.

Boot Mode Task Completed

IPNC UBL Version: 2.1.0

Platform: DM368-432

Jumping to entry point at 0x81080000

U-Boot 1.3.4 (Jan 29 2013 - 21:09:36) DM368-IPNC-4.1.0

I2C:   ready

DRAM:  128 MB

NAND:  NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)

Bad block table not found for chip 0

Bad block table not found for chip 0

loop oob 81021ad8 Bad block table written to 0x07fe0000, version 0x01

loop oob 81021ad8 Bad block table written to 0x07fc0000, version 0x01

128 MiB

In:    serial

Out:   serial

Err:   serial

ARM Clock :- 432MHz

DDR Clock :- 340MHz

Ethernet PHY: GENERIC @ 0x01

Hit any key to stop autoboot:  0

Loading from NAND 128MiB 3,3V 8-bit, offset 0x500000

   Image Name:   Linux-2.6.37_IPNC_DM365_4.1.0

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    3439968 Bytes =  3.3 MB

   Load Address: 80008000

   Entry Point:  80008000

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

   Image Name:   Linux-2.6.37_IPNC_DM365_4.1.0

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    3439968 Bytes =  3.3 MB

   Load Address: 80008000

   Entry Point:  80008000

   Loading Kernel Image ... OK

OK

Starting kernel ...

[    0.000000] Linux version 2.6.37_IPNC_DM365_4.1.0 (a0875405@bangvideoapps01) (gcc version 4.3.3 (GCC) ) #1 PREEMPT Tue Jan 29 21:16:20 IST 2013

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

[    0.000000] CPU: VIVT data cache, VIVT instruction cache

[    0.000000] Machine: DaVinci DM36x IPNC

[    0.000000] Memory policy: ECC disabled, Data cache writeback

[    0.000000] DaVinci dm365_rev1.1 variant 0x0

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 12192

[    0.000000] Kernel command line: mem=48M console=ttyS1,115200n8 noinitrd ip=192.168.1.168:192.168.1.100:192.168.1.1:255.255.255.0:::off rw ubi.mtd=3,2048 rootfstype=ubifs root=ubi0:rootfs cmemk.phys_start=0x83000000 cmemk.phys_end=0x88000000 cmemk.phys_start_1=0x00001000 cmemk.phys_end_1=0x00008000 cmemk.pools_1=1x28672 cmemk.allowOverlap=1 cmemk.useHeapIfPoolUnavailable=1 nohz=off highres=off clocksource=acpi_pm lpj=1077248

[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)

[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

[    0.000000] Memory: 48MB = 48MB total

[    0.000000] Memory: 45184k/45184k available, 3968k reserved, 0K highmem

[    0.000000] Virtual kernel memory layout:

[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)

[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

[    0.000000]     DMA     : 0xff000000 - 0xffe00000   (  14 MB)

[    0.000000]     vmalloc : 0xc3800000 - 0xfea00000   ( 946 MB)

[    0.000000]     lowmem  : 0xc0000000 - 0xc3000000   (  48 MB)

[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)

[    0.000000]       .init : 0xc0008000 - 0xc0028000   ( 128 kB)

[    0.000000]       .text : 0xc0028000 - 0xc032c000   (3088 kB)

[    0.000000]       .data : 0xc032c000 - 0xc034fd60   ( 144 kB)

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

[    0.000000] Preemptable hierarchical RCU implementation.

[    0.000000]  RCU-based detection of stalled CPUs is disabled.

[    0.000000]  Verbose stalled-CPUs detection is disabled.

[    0.000000] NR_IRQS:245

[    0.000000] Console: colour dummy device 80x30

[    0.000296] Calibrating delay loop (skipped) preset value.. 215.44 BogoMIPS (lpj=1077248)

[    0.000356] pid_max: default: 32768 minimum: 301

[    0.000632] Mount-cache hash table entries: 512

[    0.001418] CPU: Testing write buffer coherency: ok

[    0.005916] DaVinci: 8 gpio irqs

[    0.006535] NET: Registered protocol family 16

[    0.089552] bio: create slab <bio-0> at 0

[    0.094473] SCSI subsystem initialized

[    0.098261] usbcore: registered new interface driver usbfs

[    0.099590] usbcore: registered new interface driver hub

[    0.100843] usbcore: registered new device driver usb

[    0.103968] vpss vpss: dm365_vpss vpss probed

[    0.104031] vpss vpss: dm365_vpss vpss probe success

[    0.105928] Advanced Linux Sound Architecture Driver Version 1.0.23.

[    0.107875] Switching to clocksource timer0_1

[    0.170447] NET: Registered protocol family 2

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

[    0.171529] TCP established hash table entries: 2048 (order: 2, 16384 bytes)

[    0.171669] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

[    0.171759] TCP: Hash tables configured (established 2048 bind 2048)

[    0.171790] TCP reno registered

[    0.171827] UDP hash table entries: 256 (order: 0, 4096 bytes)

[    0.171891] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

[    0.172389] NET: Registered protocol family 1

[    0.239082] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.

[    0.242873] msgmni has been set to 88

[    0.245617] io scheduler noop registered (default)

[    0.247065] CSL: Module install successful, device major num = 254

[    0.247112] CSL: Module version 0.10.00, built on Jan 29 2013 21:10:10

[    0.247164] I2C: Module install successful, device major num = 253

[    0.247208] DMA: Module install successful, device major num = 252

[    0.247234] DRV: Module install successful

[    0.247259] DRV: Module built on Jan 29 2013 21:10:12

[    0.247285] DRV: EDMACC.QUEPRI  = 00002777

[    0.247307] DRV: SYSTEM.MSTPRI0 = 00440011

[    0.247329] DRV: SYSTEM.MSTPRI1 = 00000444

[    0.247351] DRV: ISP.BCR        = 00000002

[    0.247372] DRV: SYSTEM.MISC    = 00000399

[    0.247396] EDMAK module: built on Jan 29 2013 at 21:09:58

[    0.247427]   Reference Linux version 2.6.37

[    0.247453]   File /data/datalocal_videoapps01/user/kudva/DM36x/IPNetCam_v4.0/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/edma/src/module/edmak.c

[    0.248926] IRQK module: built on Jan 29 2013 at 21:09:55

[    0.248975]   Reference Linux version 2.6.37

[    0.249002]   File /data/datalocal_videoapps01/user/kudva/DM36x/IPNetCam_v4.0/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/irq/src/module/irqk.c

[    0.250673] irqk initialized

[    0.250749] CMEMK module: built on Jan 29 2013 at 21:09:57

[    0.250789]   Reference Linux version 2.6.37

[    0.250817]   File /data/datalocal_videoapps01/user/kudva/DM36x/IPNetCam_v4.0/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c

[    0.255550] allocated heap buffer 0xc4000000 of size 0x5000000

[    0.255593] heap fallback enabled - will try heap if pool buffer is not available

[    0.255633] CMEM Range Overlaps Kernel Physical - allowing overlap

[    0.255668] CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)

[    0.255818] cmemk initialized

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

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

[    0.301952] serial8250.0: ttyS1 at MMIO 0x1d06000 (irq = 41) is a 16550A

[    0.820235] console [ttyS1] enabled

[    0.827035] brd: module loaded

[    0.838659] NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung )

[    0.847174] Bad block table not found for chip 0

[    0.853377] Bad block table not found for chip 0

[    0.858010] Scanning device for bad blocks

[    0.944157] Creating 7 MTD partitions on "davinci_nand.0":

[    0.949687] 0x000000000000-0x000000300000 : "bootloader"

[    0.958997] 0x000000300000-0x000000500000 : "params"

[    0.968044] 0x000000500000-0x000000900000 : "kernel"

[    0.977241] 0x000000900000-0x000003100000 : "filesystem1"

[    0.987008] 0x000003100000-0x000003300000 : "data1"

[    0.996209] 0x000003300000-0x000005b00000 : "filesystem2"

[    1.006058] 0x000005b00000-0x000008000000 : "data2"

[    1.015459] davinci_nand davinci_nand.0: controller rev. 2.3

[    1.024303] UBI: attaching mtd3 to ubi0

[    1.028168] UBI: physical eraseblock size:   131072 bytes (128 KiB)

[    1.034750] UBI: logical eraseblock size:    126976 bytes

[    1.040319] UBI: smallest flash I/O unit:    2048

[    1.045035] UBI: sub-page size:              512

[    1.049655] UBI: VID header offset:          2048 (aligned 2048)

[    1.055763] UBI: data offset:                4096

[    1.196968] UBI warning: process_eb: valid VID header but corrupted EC header at PEB 176

[    1.205962] UBI warning: process_eb: valid VID header but corrupted EC header at PEB 177

[    1.375122] UBI: max. sequence number:       7

[    1.391608] UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 2, need 3

[    1.404219] UBI: attached mtd3 to ubi0

[    1.407989] UBI: MTD device name:            "filesystem1"

[    1.413603] UBI: MTD device size:            40 MiB

[    1.418493] UBI: number of good PEBs:        320

[    1.423223] UBI: number of bad PEBs:         0

[    1.427676] UBI: number of corrupted PEBs:   0

[    1.432180] UBI: max. allowed volumes:       128

[    1.436804] UBI: wear-leveling threshold:    4096

[    1.441565] UBI: number of internal volumes: 1

[    1.446013] UBI: number of user volumes:     1

[    1.450503] UBI: available PEBs:             0

[    1.454952] UBI: total number of reserved PEBs: 320

[    1.459830] UBI: number of PEBs reserved for bad PEB handling: 2

[    1.465884] UBI: max/mean erase counter: 1/0

[    1.470198] UBI: image sequence number:  809040151

[    1.475036] UBI: background thread "ubi_bgt0d" started, PID 400

[    1.540122] davinci_mdio davinci_mdio.0: davinci mdio revision 1.4

[    1.546330] davinci_mdio davinci_mdio.0: detected phy mask fffffffd

[    1.554042] davinci_mdio.0: probed

[    1.557488] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown

[    1.565356] i2c /dev entries driver

[    1.571123] Linux media interface: v0.10

[    1.575739] Linux video capture interface: v2.00

[    1.582622] vpbe-osd vpbe-osd: OSD sub device probe success

[    1.589041] vpbe-venc vpbe-venc: VENC sub device probe success

[    1.595858] vpbe-v4l2 vpbe-v4l2: vpbe v4l2 device registered

[    1.602036] Setting default output to Composite

[    1.606591] Setting default mode to ntsc

[    1.610722] vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.

[    1.617436] vpbe-v4l2 vpbe-v4l2: layer=c2940e00,layer->video_dev=c2940ee8

[    1.625112] vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.

[    1.632048] vpbe-v4l2 vpbe-v4l2: layer=c287a600,layer->video_dev=c287a6e8

[    1.640678] watchdog watchdog: heartbeat 60 sec

[    1.650542] Error: Driver 'davinci-mcbsp' is already registered, aborting...

[    1.660489] asoc: cq93vc-hifi <-> davinci-vcif mapping ok

[    1.669197] ALSA device list:

[    1.672475]   #0: DaVinci DM365 EVM

[    1.677246] TCP cubic registered

[    1.680825] NET: Registered protocol family 17

[    1.694145] net eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, id=181b8b0)

[    1.720863] IP-Config: Complete:

[    1.723943]      device=eth0, addr=192.168.1.168, mask=255.255.255.0, gw=192.168.1.1,

[    1.731829]      host=192.168.1.168, domain=, nis-domain=(none),

[    1.737843]      bootserver=192.168.1.100, rootserver=192.168.1.100, rootpath=

[    1.853635] UBIFS: mounted UBI device 0, volume 0, name "rootfs"

[    1.859672] UBIFS: file system size:   38473728 bytes (37572 KiB, 36 MiB, 303 LEBs)

[    1.867430] UBIFS: journal size:       5332992 bytes (5208 KiB, 5 MiB, 42 LEBs)

[    1.874814] UBIFS: media format:       w4/r0 (latest is w4/r0)

[    1.880704] UBIFS: default compressor: lzo

[    1.884812] UBIFS: reserved for root:  0 bytes (0 KiB)

[    1.892663] VFS: Mounted root (ubifs filesystem) on device 0:12.

[    1.898825] Freeing init memory: 128K

INIT: version 2.86 booting

Starting mounting local filesystems: mount Creat queue id:0

queue id:0

FileMngThread created

Creat queue id:32769

queue id:32769

AlramThread created

Share memory init success

queue id:32769

Creat queue id:65538

queue id:65538

Creat queue id:98307

queue id:98307

IPNC_DM365_4.1.0 (a0875405@bangvideoapps01) (gcc version 4.3.3 (GCC) ) #1 PREE

queue id:65538

mount: mounting /dev/root on / failed: No such file or directory

failed (1: ).

net_search_gateway:eth0, 1A8C0, 0, 1

net_search_gateway:eth0, 0, 101A8C0, 3

Check_device_version : DEVICE VER = 1 !!

CPU is DM368

*****************************************************************

  IPNC BUILD VERSION: DM368 IPNC RDK V4.10.00.02

*****************************************************************

./av_server.out DM368 NTSC TI2A AEWB 1080P H264 4000000 VBR AUTO H264 512000 VBR AUTO MENUOFF &

Starting internet superserver: inetd.

ApproDrvInit: 7

Creat queue id:131076

queue id:131076

insmod: can't read '/opt/ipnc/modules/deflate.ko': No such file or directory

DM365MM Init Successful

AVSERVER UI: Initializing.

ApproDrvInit: 9

queue id:131076

ApproDrvInit: 2

queue id:131076

ApproDrvInit: 10

ApproDrvInit: 8

queue id:131076

ApproDrvInit: 6

queue id:131076

queue id:131076

CLK Hz,

ARM   Hz =  432000000

DDR   Hz =  340000000

VPSS  Hz =  340000000

IMCOP Hz =  340000000

[OSA_FILE ] Reading file [/mnt/nand/IMG_Paramset.bin] ... ERROR

IMAGE TUNE: Paramset File is not available..... Setting DEFAULT parameter

[    3.690669] PHY: 0:01 - Link is Up - 100/Full

DM365MM Init SuccessfulSYSTEM.MSTPRI0 value changed to 00440011

CONFIGURING AVSERVER FOR DM368 .....

queue id:65538

SENSOR FPS VALUE = 30

[    3.910990] mt9p031 1-0048: Detected a MT9P031 chip ID 1801

[    3.917079] mt9p031: mt9p031 sensor driver registered !!

queue id:131076

FR : 0 users registered from exsiting face album

IPNC_DM365_4.1.0 (a0875405@bangvideoapps01) (gcc version 4.3.3 (GCC) ) #1 PREE

IPNC AUTO_IRIS = 1

Initializing...

Initializing...

Initializing...

...done initializing

Initializing...

Initializing...

...done initializing

...done initializing

...done initializing

Play this stream using the URL:

        rtsp://192.168.1.168:8555/PSIA/Streaming/channels/0?videoCodecType=MJPEG

(We use port 8302 for optional RTSP-over-HTTP tunneling.)

Play this stream using the URL:

        rtsp://192.168.1.168:8554/PSIA/Streaming/channels/1?videoCodecType=MPEG4

(We use port 8301 for optional RTSP-over-HTTP tunneling.)

Play this stream using the URL:

        rtsp://192.168.1.168:8553/PSIA/Streaming/channels/1?videoCodecType=MPEG4

(We use port 8300 for optional RTSP-over-HTTP tunneling.)

...done initializing

Play this stream using the URL:

        rtsp://192.168.1.168:8557/PSIA/Streaming/channels/2?videoCodecType=H.264

(We use port 8304 for optional RTSP-over-HTTP tunneling.)

Play this stream using the URL:

        rtsp://192.168.1.168:8556/PSIA/Streaming/channels/2?videoCodecType=H.264

(We use port 8303 for o[    4.662312] davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode

ptional RTSP-over-HTTP tunneling.)

[    4.866364] Loading iSCSI transport class v2.0-870.

TI AWB PRODUCTION VERSION 1.0.0

[    4.994056] mmc0: new SD card at address 3d57

[    5.011379] mmcblk0: mmc0:3d57 SD01G 982 MiB

[    5.032764]  mmcblk0: p1

[    5.396060] iscsi: registered transport (tcp)

[    5.516546] musb-hdrc: version 6.0, peripheral, debug=0

[    5.648759] musb-hdrc musb-hdrc: dma type: dma-cppi3

[    5.671615] musb-hdrc musb-hdrc: USB Peripheral mode controller at fec64000 using DMA, IRQ 12

[    6.002159] loop: module loaded

Simple mixer control 'PGA',0

  Capabilities: cvolume cvolume-joined penum

  Capture channels: Mono

  Limits: Capture 0 - 3

  Mono: Capture [    6.223244] tun: Universal TUN/TAP device driver, 1.6

2 [67%]

[    6.261615] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>

[    6.445546] console [netcon0] enabled

[    6.449237] netconsole: network logging started

Simple mixer control 'Mono DAC',0

  Capabilities: pvolume pvolume-joined penum

  Playback channels: Mono

  Limits: Playback 0 - 63

  Mono: Playback 47 [75%]

sycOnvif Profile 2

SystemInit success

Schedule manager init success

[    6.730627] PPP generic driver version 2.4.2

[    6.810634] PPP Deflate Compression module registered

mkdosfs 2.11 (12 Mar 2005)

unable to get drive geometry, using default 255/63/dev/ram0 has 255 heads and 63 sectors per track,

logical sector size is 512,

using 0xf8 media descriptor, with 8192 sectors;

file system has 2 12-bit FATs and 4 sectors per cluster.

FAT size is 6 sectors, and provides 2036 clusters.

Root directory contains 512 slots.

Volume ID is 00000008, no volume label.

queue id:0

umount: /mnt/mmc: not mounted

mount: mounting /dev/mmcblk0 on /mnt/mmc failed: Invalid argument

dns=192.168.1.168

net_search_gateway:eth0, 1A8C0, 0, 1

net_search_gateway:eth0, 0, 101A8C0, 3

dns=192.168.1.168

ERROR: Module g_file_storage does not exist in /proc/modules

insmod: can't read 'g_file_storage.ko': No such file or directory

ApproDrvInit: 3

queue id:131076

queue id:0

queue id:32769

/usr/sbin/avahi-daemon: unrecognized option '--no-chroot'

[01/Jan/1970:00:00:09 +0000] boa: server version Boa/0.94.13

INIT: Entering runlevel: 50] boa: server built Jan

queue id:0

Starting telnet daemonUDPString=uuid:Upnp-TVEmulator-1_0-00_0015069295</UDN>

Updesc_doc_url = http://192.168.1.168/tvdevicedesc.xml

rt=49152

desc_doc_url = http://192.168.1.168/tvdevicedesc.xml

.

error code = 0

Starting syslogd/klogd: done

[01/Jan/1970:00:00:10 +0000] request from 192.168.1.161 "GET /tvcontrolSCPD.xml HTTP/1.1" ("/var/www/tvcontrolSCPD.xml"): document open: No such file or directory

[01/Jan/1970:00:00:10 +0000] request from 192.168.1.161 "GET /tvcontrolSCPD.xml HTTP/1.1" ("/var/www/tvcontrolSCPD.xml"): document open: No such file or directory

[01/Jan/1970:00:00:10 +0000] request from 192.168.1.162 "GET /tvcontrolSCPD.xml HTTP/1.1" ("/var/www/tvcontrolSCPD.xml"): document open: No such file or directory

[01/Jan/1970:00:00:10 +0000] request from 192.168.1.162 "GET /tvcontrolSCPD.xml HTTP/1.1" ("/var/www/tvcontrolSCPD.xml"): document open: No such file or directory

[01/Jan/1970:00:00:10 +0000] request from 192.168.1.3 "GET /tvcontrolSCPD.xml HTTP/1.1" ("/var/www/tvcontrolSCPD.xml"): document open: No such file or directory

[01/Jan/1970:00:00:10 +0000] request from 192.168.1.3 "GET /tvcontrolSCPD.xml HTTP/1.1" ("/var/www/tvcontrolSCPD.xml"): document open: No such file or directory

[01/Jan/1970:00:00:10 +0000] request from 192.168.1.161 "GET /tvpictureSCPD.xml HTTP/1.1" ("/var/www/tvpictureSCPD.xml"): document open: No such file or directory

[01/Jan/1970:00:00:10 +0000] request from 192.168.1.161 "GET /tvpictureSCPD.xml HTTP/1.1" ("/var/www/tvpictureSCPD.xml"): document open: No such file or directory

[01/Jan/1970:00:00:10 +0000] request from 192.168.1.162 "GET /tvpictureSCPD.xml HTTP/1.1" ("/var/www/tvpictureSCPD.xml"): document open: No such file or directory

[01/Jan/1970:00:00:10 +0000] request from 192.168.1.3 "GET /tvpictureSCPD.xml HTTP/1.1" ("/var/www/tvpictureSCPD.xml"): document open: No such file or directory

[01/Jan/1970:00:00:10 +0000] request from 192.168.1.162 "GET /tvpictureSCPD.xml HTTP/1.1" ("/var/www/tvpictureSCPD.xml"): document open: No such file or directory

[01/Jan/1970:00:00:10 +0000] request from 192.168.1.3 "GET /tvpictureSCPD.xml HTTP/1.1" ("/var/www/tvpictureSCPD.xml"): document open: No such file or directory

getty: ioctl() TIOCSPGRP call failed: Inappropriate [01/Jan/1970:00:00:10 +0000] request from 192.168.1.161 "GET /tvcontrolSCPD.xml HTTP/1.1" ("/var/www/tvcontrolSCPD.xml"): document open: No such file or directory

                                                      device advertisement succeed.

   [01/Jan/1970:00:00:10 +0000] request from 192.168.1.161 "GET /tvcontrolSCPD.xml HTTP/1.1" ("/var/www/tvcontrolSCPD.xml"): document open: No such file or directory

     [01/Jan/1970:00:00:10 +0000] request from 192.168.1.161 "GET /tvpictureSCPD.xml HTTP/1.1" ("/var/www/tvpictureSCPD.xml"): document open: No such file or directory

       [01/Jan/1970:00:00:10 +0000] request from 192.168.1.3 "GET /tvcontrolSCPD.xml HTTP/1.1" ("/var/www/tvcontrolSCPD.xml"): document open: No such file or directory

       [01/Jan/1970:00:00:10 +0000] request from 192.168.1.162 "GET /tvcontrolSCPD.xml HTTP/1.1" ("/var/www/tvcontrolSCPD.xml"): document open: No such file or directory

         [01/Jan/1970:00:00:10 +0000] request from 192.168.1.3 "GET /tvcontrolSCPD.xml HTTP/1.1" ("/var/www/tvcontrolSCPD.xml"): document open: No such file or directory

         [01/Jan/1970:00:00:10 +0000] request from 192.168.1.162 "GET /tvcontrolSCPD.xml HTTP/1.1" ("/var/www/tvcontrolSCPD.xml"): document open: No such file or directory

           [01/Jan/1970:00:00:10 +0000] request from 192.168.1.161 "GET /tvpictureSCPD.xml HTTP/1.1" ("/var/www/tvpictureSCPD.xml"): document open: No such file or directory

             [01/Jan/1970:00:00:11 +0000] request from 192.168.1.162 "GET /tvpictureSCPD.xml HTTP/1.1" ("/var/www/tvpictureSCPD.xml"): document open: No such file or directory

               [01/Jan/1970:00:00:11 +0000] request from 192.168.1.3 "GET /tvpictureSCPD.xml HTTP/1.1" ("/var/www/tvpictureSCPD.xml"): document open: No such file or directory

               [01/Jan/1970:00:00:11 +0000] request from 192.168.1.3 "GET /tvpictureSCPD.xml HTTP/1.1" ("/var/www/tvpictureSCPD.xml"): document open: No such file or directory

               [01/Jan/1970:00:00:11 +0000] request from 192.168.1.162 "GET /tvpictureSCPD.xml HTTP/1.1" ("/var/www/tvpictureSCPD.xml"): document open: No such file or directory

_____                    _____           _         _

|  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_

|     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|

|__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|

              |___|                    |___|

Arago Project http://arago-project.org 192.168.1.168 console

Arago 2009.11 192.168.1.168 console

192.168.1.168 login:

 

  • Hi Bob,

    Thanks for the reply.  I tried reducing from 38Mb to 36Mb as you did.  The autoresize option was already set.  Unfortunately I got the same kernel panic as before.  The ubifs image is just above 22Mb, so allocating 36 or 38Mb should allow for bad block tables.  It looks like the ubifs / mtd driver starts to initialize, but dies with a bad sequence number.  After that, it's only a matter of time before the kernel panic.  If anyone knows what might be causing this, please let me know...

    Thanks again Bob...

    [    0.944311] Creating 7 MTD partitions on "davinci_nand.0":
    [    0.949839] 0x000000000000-0x000000300000 : "bootloader"
    [    0.959173] 0x000000300000-0x000000500000 : "params"
    [    0.968215] 0x000000500000-0x000000900000 : "kernel"
    [    0.977387] 0x000000900000-0x000003100000 : "filesystem1"
    [    0.987151] 0x000003100000-0x000003300000 : "data1"
    [    0.996352] 0x000003300000-0x000005b00000 : "filesystem2"
    [    1.006217] 0x000005b00000-0x000008000000 : "data2"
    [    1.015616] davinci_nand davinci_nand.0: controller rev. 2.3
    [    1.024461] UBI: attaching mtd3 to ubi0
    [    1.028328] UBI: physical eraseblock size:   131072 bytes (128 KiB)
    [    1.034908] UBI: logical eraseblock size:    126976 bytes
    [    1.040482] UBI: smallest flash I/O unit:    2048
    [    1.045198] UBI: sub-page size:              512
    [    1.049818] UBI: VID header offset:          2048 (aligned 2048)
    [    1.055926] UBI: data offset:                4096
    [    1.209006] UBI error: process_eb: bad image sequence number 809040151 in PEB 192, expected 338682517
    [    1.218704] UBI error: ubi_init: cannot attach mtd3

  •  Hi!

    Sorry. I has a questions. I use arago linux for DM368. But this linux support ColorSpace_YUV422PSEMI for capture device.

     I want use RGB888, but in file: 

    \dmai\linux\dm365\capture.c not creating capture device for RGB888 color space.

     Please, ask me, what I need to do. 

     

     

     

     

     

  • Hi John,

    I made a very quick test, so i'm not sure if this is 100% correct, or if there is another way, but:
    I also have problems running my build of ubifs in 4.1.
    So, i took  filesystem from IPNC-4.0.0 (filesys_ipnc_dm36x.tar.gz), and put it instead the one that comes with IPNC4.1,
    untared it to IPNC4.1 (/ipnc4.1/ipnc_rdk_/target/filesys), then updated this filesystem with "make install" and then created ubifs (make ubifs)
    This way i can get it work.

    Regards.

     

     

  • For anyone out there who runs into similar problems, it looks like the answer is to erase ALL of your NAND Flash.  WARNING - MAKE SURE YOU HAVE A WAY TO WRITE THE BOOT LOADER AND U-BOOT, SUCH AS A J-TAG AND CCS, OR YOU WILL "BRICK" YOUR IPNC!

    I did some research on the ubifs, and the "keepers" of that Linux code state that you should NEVER use nand write to write ubifs images to nand flash.  Not only do you lose your wear leveling data, nand write leaves possibly invalid data in nand flash, resulting in abnormal behavior or even kernel panics.  They strongly urge the use of ubiformat, but since we don't have that utility in u-boot, we'll need to erase ALL the nand flash to insure proper operation.

    I used my $79 XDS100, CCS, and now the UBIFS image I thought was broken now works.

    Thanks to all those who tried to help...

  • Hi Bob,

     

    Yes, I got it to work with the latest version of CCS.  The Appro debug board does not use a standard ARM J-TAG pinout, so I had to make my own cable.  I looked at the schematic for the debug board and compared it to the standard ARM J-TAG pinout.  It's not pretty, but it works!