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.

UBIFS error

Hello,

We are using MT29F8G08ABABA in our DM365 based custom board.
We are using NAND boot.
RootFS is in UBIFS format,

Below is basic achitecture of the NAND.



I am using following commands to create ubifs,

$(UBIFS_PATH)/mkfs.ubifs -r  $(TARGET_FS) -m 4096  -e 520192 -c 75 -o ubifs.img
$(UBIFS_PATH)/ubinize -o $(SYSTEM_CFG)_$(HARDWARE_CFG)_ubifs -m 4096 -p 512KiB $(HARDWARE_CFG)_ubinize.cfg



Then i put this ubifs to NAND using following commands,

loady 0x82000000 ---> ubifs is loaded to RAM

nand scrub 0x1800000 0x2800000
nand erase 0x1800000 0x2800000
nand write 0x82000000 0x1800000 0x2800000



and when i boot the kernel there is error while detecting UBIFS from kernel,

Below is kernel log for the same,

[    0.000000] Linux version 2.6.37_IPNC_DM368_5.1.0 (root@test-desktop) (gcc version 4.3.3 (GCC) ) #1 PREEMPT Thu Jan 2 16:36:03 EST 2014
[    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 dm36x_rev1.2 variant 0x8
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 12192
[    0.000000] Kernel command line: mem=48M console=ttyS0,115200n8 noinitrd ip=off rw ubi.mtd=3,4096 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: 45108k/45108k available, 4044k 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 - 0xc0029000   ( 132 kB)
[    0.000000]       .text : 0xc0029000 - 0xc033e000   (3156 kB)
[    0.000000]       .data : 0xc033e000 - 0xc03629c0   ( 147 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.056324] Calibrating delay loop (skipped) preset value.. 215.44 BogoMIPS (lpj=1077248)
[    0.056408] pid_max: default: 32768 minimum: 301
[    0.056706] Security Framework initialized
[    0.056904] Mount-cache hash table entries: 512
[    0.058007] CPU: Testing write buffer coherency: ok
[    0.060305] devtmpfs: initialized
[    0.064317] DaVinci: 8 gpio irqs
[    0.065159] NET: Registered protocol family 16
[    0.114797] dm365_rmd_cs_rdk_150_wl_init
[    0.209129] bio: create slab <bio-0> at 0
[    0.215693] SCSI subsystem initialized
[    0.221284] usbcore: registered new interface driver usbfs
[    0.223060] usbcore: registered new interface driver hub
[    0.224234] usbcore: registered new device driver usb
[    0.228551] vpss vpss: dm365_vpss vpss probed
[    0.228639] vpss vpss: dm365_vpss vpss probe success
[    0.238786] Switching to clocksource timer0_1
[    0.346347] NET: Registered protocol family 2
[    0.346753] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.347788] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.347988] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.348116] TCP: Hash tables configured (established 2048 bind 2048)
[    0.348161] TCP reno registered
[    0.348214] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.348307] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.349019] NET: Registered protocol family 1
[    0.437974] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.443061] msgmni has been set to 88
[    0.448190] io scheduler noop registered (default)
[    0.450725] CSL: Module install successful, device major num = 254
[    0.450791] CSL: Module version 0.10.00, built on Dec 19 2013 15:41:34
[    0.450864] I2C: Module install successful, device major num = 253
[    0.450919] DMA: Module install successful, device major num = 252
[    0.450958] DRV: Module install successful
[    0.450994] DRV: Module built on Dec 19 2013 15:41:35
[    0.451034] DRV: EDMACC.QUEPRI  = 00002777
[    0.451067] DRV: SYSTEM.MSTPRI0 = 00440011
[    0.451099] DRV: SYSTEM.MSTPRI1 = 00000444
[    0.451132] DRV: ISP.BCR        = 00000002
[    0.451164] DRV: SYSTEM.MISC    = 00000399
[    0.451197] EDMAK module: built on Dec 19 2013 at 15:41:17
[    0.451241]   Reference Linux version 2.6.37
[    0.451276]   File /home/rosemount/mridula/IPNC/OV9715_V5/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
[    0.453436] IRQK module: built on Dec 19 2013 at 15:41:15
[    0.453506]   Reference Linux version 2.6.37
[    0.453544]   File /home/rosemount/mridula/IPNC/OV9715_V5/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
[    0.455774] irqk initialized
[    0.455872] CMEMK module: built on Dec 19 2013 at 15:41:13
[    0.455928]   Reference Linux version 2.6.37
[    0.455966]   File /home/rosemount/mridula/IPNC/OV9715_V5/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
[    0.463265] allocated heap buffer 0xc4000000 of size 0x5000000
[    0.463324] heap fallback enabled - will try heap if pool buffer is not available
[    0.463384] CMEM Range Overlaps Kernel Physical - allowing overlap
[    0.463434] CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)
[    0.463630] cmemk initialized
[    0.463703] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.570822] serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
[    1.077387] console [ttyS0] enabled
[    1.150700] serial8250.0: ttyS1 at MMIO 0x1d06000 (irq = 41) is a 16550A
[    1.193883] brd: module loaded
[    1.206107] NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron )
[    1.214915] Bad block table not found for chip 0
[    1.221181] Bad block table not found for chip 0
[    1.225835] Scanning device for bad blocks
[    1.621947] Creating 7 MTD partitions on "davinci_nand.0":
[    1.627505] 0x000000000000-0x000000c00000 : "bootloader"
[    1.639165] 0x000000c00000-0x000001400000 : "params"
[    1.650851] 0x000001400000-0x000001800000 : "kernel"
[    1.662507] 0x000001800000-0x000004000000 : "filesystem1"
[    1.674677] 0x000004000000-0x000004800000 : "data1"
[    1.686597] 0x000004800000-0x000007000000 : "filesystem2"
[    1.698564] 0x000007000000-0x000040000000 : "data2"
[    1.711909] davinci_nand davinci_nand.0: controller rev. 2.3
[    1.721883] UBI: attaching mtd3 to ubi0
[    1.725771] UBI: physical eraseblock size:   262144 bytes (256 KiB)
[    1.732471] UBI: logical eraseblock size:    256000 bytes
[    1.737910] UBI: smallest flash I/O unit:    2048
[    1.742797] UBI: sub-page size:              512
[    1.747451] UBI: VID header offset:          4096 (aligned 4096)
[    1.753616] UBI: data offset:                6144
[    1.759413] UBI error: validate_ec_hdr: bad data offset 8192, expected 6144
[    1.766555] UBI error: validate_ec_hdr: bad EC header
[    1.771733] UBI error: ubi_io_read_ec_hdr: validation failed for PEB 0
[    1.778790] UBI error: ubi_init: cannot attach mtd3
[    1.786622] spi_davinci spi_davinci.0: Controller at 0xfec66000
[    1.850151] davinci_mdio davinci_mdio.0: davinci mdio revision 1.4
[    1.856383] davinci_mdio davinci_mdio.0: no live phy, scanning all
[    1.863539] davinci_mdio: probe of davinci_mdio.0 failed with error -5
[    1.872423] i2c /dev entries driver
[    1.879044] Linux media interface: v0.10
[    1.884074] Linux video capture interface: v2.00
[    1.891696] vpbe-osd vpbe-osd: OSD sub device probe success
[    1.898435] vpbe-venc vpbe-venc: VENC sub device probe success
[    1.905591] vpbe-v4l2 vpbe-v4l2: vpbe v4l2 device registered
[    1.911927] Setting default output to Composite
[    1.916510] Setting default mode to ntsc
[    1.920738] vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.
[    1.927479] vpbe-v4l2 vpbe-v4l2: layer=c2894200,layer->video_dev=c28942e8
[    1.935744] vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.
[    1.942764] vpbe-v4l2 vpbe-v4l2: layer=c2897e00,layer->video_dev=c2897ee8
[    1.952281] watchdog watchdog: heartbeat 60 sec
[    1.960723] nf_conntrack version 0.5.0 (704 buckets, 2816 max)
[    1.969426] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.975347] TCP cubic registered
[    1.978664] NET: Registered protocol family 17
[    1.996127] inside kernel_init
[    1.999486] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
[    2.006960] Please append a correct "root=" boot option; here are the available partitions:
[    2.015597] 1f00           12288 mtdblock0  (driver?)
[    2.020875] 1f01            8192 mtdblock1  (driver?)
[    2.025992] 1f02            4096 mtdblock2  (driver?)
[    2.031207] 1f03           40960 mtdblock3  (driver?)
[    2.036314] 1f04            8192 mtdblock4  (driver?)
[    2.041517] 1f05           40960 mtdblock5  (driver?)
[    2.046629] 1f06          933888 mtdblock6  (driver?)
[    2.051803] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Now my doubt is why kernel  is reporting physical eraseblock size as 256KiB? from architecture of NAND it looks to be 512KiB.

dm368_ubinize.cfg content is as follows,

[ubifs]
mode=ubi
image=ubifs.img
vol_id=0
vol_size=37888KiB
vol_type=dynamic
vol_name=rootfs
vol_flags=autoresize

Any suggestions/pointer for the errors ?

Thank you in advance

  • Ankur,

    Can you check by the flashing the ubi image from kernel using ubiformat after booting through NFS or SD? Follow these steps.

    1. First you should have your rootfs as a tar ball in your SD card or NFS from where you mount the filesystem.
    2. Boot up the device and the filesystem from NFS or SD card according your preference.
    3. Boot it up and login. Hope you have all the required command binaries like "flash_erase" etc in your filesystem. If not take the default arago filesystem image that comes with the SDK package.
    4. Follow the steps below

    $ flash_erase /dev/mtd4 0 0
    $ ubiattach /dev/ubi_ctrl -m 4
    $ ubimkvol /dev/ubi0 -N rootfs -m

    $ mkdir /mnt/nand
    $ mount -t ubifs ubi0:rootfs /mnt/nand
    $ tar xvf rootfstar.gz -C /mnt/nand

    5. Change the bootargs like below for booting from UBIFS.
    # setenv bootargs 'console=ttyO0,115200n8 mem=160M ubi.mtd=4 rootfstype=ubifs root=ubi0:rootfs rw'

  • Hi Renjith,

    Thank you for reply,

    We don't have Ethernet phy up as yet, SD Card is also not there in our board.

    But as of now what i have done is i have flashed squashfs in mtdblock5 and i am able to boot the kernel from that.

    I will follow the steps you mentioned to flash rootfs in mtd3 and let you know the results by Monday.

    Regards,

    Ankur

  • Hi Rejith,

    One strange thing what I observed is,
    When i boot kernel using squashfs from mtdblock5, ubi is mounting mtd4(8MB) partition as ubi0 device.
    Here is bootlog for the same.

    Printing kernel parameters 80000100Cleanup is done 1939
    Entry point address 2147516416
    [    0.000000] Linux version 2.6.37_IPNC_DM368_5.1.0 (still-image@stillimage-VirtualBox) (gcc version 4.3.3 (GCC) ) #2 PREEMPT Sat Jan 4 11:42:55 IST 2014
    [    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 dm36x_rev1.2 variant 0x8
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 12192
    [    0.000000] Kernel command line: mem=48M console=ttyS0,115200n8 root=/dev/mtdblock5 rootfstype=squashfs init=/filesys/sbin/init ip=off 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: 44772k/44772k available, 4380k 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 - 0xc002c000   ( 144 kB)
    [    0.000000]       .text : 0xc002c000 - 0xc0390000   (3472 kB)
    [    0.000000]       .data : 0xc0390000 - 0xc03b65e0   ( 154 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.000403] Calibrating delay loop (skipped) preset value.. 215.44 BogoMIPS (lpj=1077248)
    [    0.000489] pid_max: default: 32768 minimum: 301
    [    0.000793] Security Framework initialized
    [    0.001002] Mount-cache hash table entries: 512
    [    0.002197] CPU: Testing write buffer coherency: ok
    [    0.004914] devtmpfs: initialized
    [    0.010887] DaVinci: 8 gpio irqs
    [    0.011950] NET: Registered protocol family 16
    [    0.064708] dm365_rmd_cs_rdk_150_wl_init
    [    0.064789] No entry for the specified index
    [    0.068605] No entry for the specified index
    [    0.189827] bio: create slab <bio-0> at 0
    [    0.197667] SCSI subsystem initialized
    [    0.204208] usbcore: registered new interface driver usbfs
    [    0.206329] usbcore: registered new interface driver hub
    [    0.207734] usbcore: registered new device driver usb
    [    0.213526] vpss vpss: dm365_vpss vpss probed
    [    0.213623] vpss vpss: dm365_vpss vpss probe success
    [    0.219992] Advanced Linux Sound Architecture Driver Version 1.0.23.
    [    0.226058] Switching to clocksource timer0_1
    [    0.353221] NET: Registered protocol family 2
    [    0.353705] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.354959] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
    [    0.355170] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.355300] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.355348] TCP reno registered
    [    0.355410] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.355504] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.356355] NET: Registered protocol family 1
    [    0.461641] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.464667] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
    [    0.470445] msgmni has been set to 87
    [    0.476866] io scheduler noop registered (default)
    [    0.479581] CSL: Module install successful, device major num = 254
    [    0.479648] CSL: Module version 0.10.00, built on Dec 13 2013 22:33:02
    [    0.479720] I2C: Module install successful, device major num = 253
    [    0.479777] DMA: Module install successful, device major num = 252
    [    0.479819] DRV: Module install successful
    [    0.479855] DRV: Module built on Dec 13 2013 22:33:04
    [    0.479894] DRV: EDMACC.QUEPRI  = 00002777
    [    0.479930] DRV: SYSTEM.MSTPRI0 = 00440011
    [    0.479964] DRV: SYSTEM.MSTPRI1 = 00000444
    [    0.479999] DRV: ISP.BCR        = 00000002
    [    0.480356] DRV: SYSTEM.MISC    = 00000399
    [    0.480407] EDMAK module: built on Dec 13 2013 at 22:32:35
    [    0.480455]   Reference Linux version 2.6.37
    [    0.480491]   File /opt/workdir/OV9715_Ver5_0/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
    [    0.483041] IRQK module: built on Dec 13 2013 at 22:32:33
    [    0.483115]   Reference Linux version 2.6.37
    [    0.483156]   File /opt/workdir/OV9715_Ver5_0/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
    [    0.485696] irqk initialized
    [    0.485799] CMEMK module: built on Dec 13 2013 at 22:32:30
    [    0.485860]   Reference Linux version 2.6.37
    [    0.485899]   File /opt/workdir/OV9715_Ver5_0/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
    [    0.493531] allocated heap buffer 0xc4000000 of size 0x5000000
    [    0.493596] heap fallback enabled - will try heap if pool buffer is not available
    [    0.493654] CMEM Range Overlaps Kernel Physical - allowing overlap
    [    0.493706] CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)
    [    0.493921] cmemk initialized
    [    0.493999] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
    [    0.601378] serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
    [    1.127357] console [ttyS0] enabled
    [    1.201141] serial8250.0: ttyS1 at MMIO 0x1d06000 (irq = 41) is a 16550A
    [    1.244682] brd: module loaded
    [    1.262416] NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron )
    [    1.271588] Bad block table not found for chip 0
    [    1.277635] Bad block table not found for chip 0
    [    1.282417] Scanning device for bad blocks
    [    1.719169] Creating 7 MTD partitions on "davinci_nand.0":
    [    1.724863] 0x000000000000-0x000000c00000 : "bootloader"
    [    1.737689] 0x000000c00000-0x000001400000 : "params"
    [    1.750657] 0x000001400000-0x000001800000 : "kernel"
    [    1.763415] 0x000001800000-0x000004000000 : "filesystem1"
    [    1.776819] 0x000004000000-0x000004800000 : "data1"
    [    1.789660] 0x000004800000-0x000007000000 : "filesystem2"
    [    1.803140] 0x000007000000-0x000040000000 : "data2"
    [    1.817558] davinci_nand davinci_nand.0: controller rev. 2.3
    [    1.832137] spi_davinci spi_davinci.0: Controller at 0xfec66000
    [    1.890165] davinci_mdio davinci_mdio.0: davinci mdio revision 1.4
    [    1.896406] davinci_mdio davinci_mdio.0: no live phy, scanning all
    [    1.903774] davinci_mdio: probe of davinci_mdio.0 failed with error -5
    [    1.913109] i2c /dev entries driver
    [    1.920355] Linux media interface: v0.10
    [    1.925404] Linux video capture interface: v2.00
    [    1.933718] vpbe-osd vpbe-osd: OSD sub device probe success
    [    1.940912] vpbe-venc vpbe-venc: VENC sub device probe success
    [    1.948152] vpbe-v4l2 vpbe-v4l2: vpbe v4l2 device registered
    [    1.954686] Setting default output to Composite
    [    1.959272] Setting default mode to ntsc
    [    1.963567] vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.
    [    1.970483] vpbe-v4l2 vpbe-v4l2: layer=c2962000,layer->video_dev=c29620e8
    [    1.978871] vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.
    [    1.985950] vpbe-v4l2 vpbe-v4l2: layer=c2962e00,layer->video_dev=c2962ee8
    [    1.995917] watchdog watchdog: heartbeat 60 sec
    [    2.009876] Error: Driver 'davinci-mcbsp' is already registered, aborting...
    [    2.022262] asoc: cq93vc-hifi <-> davinci-vcif mapping ok
    [    2.034410] ALSA device list:
    [    2.037472]   #0: DaVinci DM365 EVM
    [    2.043122] nf_conntrack version 0.5.0 (699 buckets, 2796 max)
    [    2.052436] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    2.058229] TCP cubic registered
    [    2.061746] NET: Registered protocol family 17
    [    2.089360] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
    [    2.103247] devtmpfs: mounted
    [    2.106573] Freeing init memory: 144K
    [    2.110612] Failed to execute /filesys/sbin/init.  Attempting defaults...
    INIT: version 2.86 booting
    [    3.645156] UBI: attaching mtd4 to ubi0
    [    3.649052] UBI: physical eraseblock size:   262144 bytes (256 KiB)
    [    3.655481] UBI: logical eraseblock size:    258048 bytes
    [    3.661028] UBI: smallest flash I/O unit:    2048
    [    3.665767] UBI: sub-page size:              512
    [    3.670490] UBI: VID header offset:          2048 (aligned 2048)
    [    3.676534] UBI: data offset:                4096
    [    3.709691] UBI: max. sequence number:       19
    [    3.734470] UBI: attached mtd4 to ubi0
    [    3.738266] UBI: MTD device name:            "data1"
    [    3.743438] UBI: MTD device size:            8 MiB
    [    3.748271] UBI: number of good PEBs:        32
    [    3.752994] UBI: number of bad PEBs:         0
    [    3.757477] UBI: number of corrupted PEBs:   0
    [    3.762033] UBI: max. allowed volumes:       128
    [    3.766683] UBI: wear-leveling threshold:    4096
    [    3.771498] UBI: number of internal volumes: 1
    [    3.775975] UBI: number of user volumes:     1
    [    3.780516] UBI: available PEBs:             0
    [    3.784995] UBI: total number of reserved PEBs: 32
    [    3.789809] UBI: number of PEBs reserved for bad PEB handling: 2
    [    3.795916] UBI: max/mean erase counter: 2/1
    [    3.800282] UBI: image sequence number:  -1923326709
    [    3.805345] UBI: background thread "ubi_bgt0d" started, PID 481
    UBI device number 0, total 32 LEBs (8257536 bytes, 7.9 MiB), available 0 LEBs (0 bytes), LEB size 258048 bytes (252.0 KiB)
    [    4.507355] UBIFS: recovery needed
    [    5.298455] UBIFS: recovery completed
    [    5.311891] UBIFS: mounted UBI device 0, volume 0, name "ubifs_volume"
    [    5.318478] UBIFS: file system size:   4386816 bytes (4284 KiB, 4 MiB, 17 LEBs)
    [    5.325953] UBIFS: journal size:       2064385 bytes (2016 KiB, 1 MiB, 6 LEBs)
    [    5.333308] UBIFS: media format:       w4/r0 (latest is w4/r0)
    [    5.339174] UBIFS: default compressor: lzo
    [    5.343395] UBIFS: reserved for root:  207199 bytes (202 KiB)
    mknod: /dev/spidev0.0: File exists
    Starting mounting local filesystems: mount mount: mounting /dev/root on / failed: No such file or directory
    mount: mounting none on /dev/shm failed: No such file or directory
     failed (2: ).
    Creat queue id:0
    queue id:0
    FileMngThread created
    Creat queue id:32769
    queue id:32769
    AlramThread created
    Share memory init success
    Creat queue id:65538
    queue id:65538
    Creat queue id:98307
    queue id:98307
    queue id:32769

  • Hi Ankur,

    plz refer the below websites for all ur UBIFS related questions

    http://processors.wiki.ti.com/index.php/UBIFS_Support
    http://elinux.org/UBIFS
    http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3.4-DevKit-2.1_UserGuide#Fastboot_and_UBI_rootfs

    make your pendrive as a  ext3 filesystem (kernel should support ext3/4 fs support) & copy the filesystem contents into pendrive with correct root permissions.

    bootargs is "rootfstype=ext3 root=/dev/sda1"

    and flash ur fs into /dev/mtd5 or 4 with any type of fs (better to use yaffs2 for simplicity & performance)

  • Hi Titus,

    Thank you for reply,

    I followed the steps mentioned in http://processors.wiki.ti.com/index.php/UBIFS_Support to create ubifs but it gives error. :(

    I agree that instead of using UART for loading filesystem, its better to put rootfs in USB and boot from that.

    I am also in favor of that. I am waiting for USB connector(both side usb receptical ), once i  get it i will try booting from USB.

    I have one doubt.

    1. Does DM365 usb usable as host ? do need to load some driver to make as USB host ?

    2. YAFFS2 is read-write file system right ?

    Regards,

    Ankur

  • Hi Renjith,

    I have followed below steps to flash the ubi image from kernel as you have mentioned

    ubidetach -h

    ubidetach version 1.4.5 - tool to remove UBI devices (detach MTD devices from UBI)

     

    Usage: ubidetach [<UBI control device node file name>]

            [-d <UBI device number>] [-m <MTD device number>] [-p <path to device>]

            [--devn=<UBI device number>] [--mtdn=<MTD device number>]

            [--dev-path=<path to device>]

    UBI control device defaults to /dev/ubi_ctrl if not supplied.

    Example 1: ubidetach -p /dev/mtd0 - detach MTD device /dev/mtd0

    Example 2: ubidetach -d 2 - delete UBI device 2 (ubi2)

    Example 3: ubidetach -m 0 - detach MTD device 0 (mtd0)

     

    -d, --devn=<UBI device number>  UBI device number to delete

    -p, --dev-path=<path to device> or alternatively, MTD device node path to detach

    -m, --mtdn=<MTD device number>  or alternatively, MTD device number to detach

    -h, --help                      print help message

    -V, --version                   print program version

    root@DM368_IPNC:~# ubidetach -d 0 -m 4

    ubidetach: error!: specify either MTD or UBI device (use -h for help)

    root@DM368_IPNC:~# ubidetach /dev/mtd4

    ubidetach: error!: neither MTD nor UBI devices were specified (use -h for help)

    root@DM368_IPNC:~# ubidetach -m 4 /dev/ubi_ctrl

    ubidetach: error!: cannot detach mtd4

               error 16 (Device or resource busy)

    root@DM368_IPNC:~# ubidetach -p /dev/mtd4

    ubidetach: error!: cannot detach "/dev/mtd4"

               error 16 (Device or resource busy)

    root@DM368_IPNC:~# mount

    rootfs on / type rootfs (rw)

    /dev/root on / type squashfs (ro,relatime)

    devtmpfs on /dev type devtmpfs (rw,relatime,size=22384k,nr_inodes=5596,mode=755)

    none on /proc type proc (rw,relatime)

    none on /sys type sysfs (rw,relatime)

    none on /sys/kernel/debug type debugfs (rw,relatime)

    ubi0:ubifs_volume on /mnt/nand type ubifs (rw,relatime)

    none on /var/volatile/run type tmpfs (rw,relatime)

    none on /tmp type tmpfs (rw,relatime,size=25600k)

    /dev/ram0 on /mnt/ramdisk type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

    root@DM368_IPNC:~# mount | grep ubi

    ubi0:ubifs_volume on /mnt/nand type ubifs (rw,relatime)

    root@DM368_IPNC:~# umount /mnt/nand

    [   45.706056] UBIFS: un-mount UBI device 0, volume 0

    root@DM368_IPNC:~# ubidetach -p /dev/mtd4

    [   62.681761] UBI: mtd4 is detached from ubi0

    root@DM368_IPNC:~# ubiattach -m 3 /dev/ubi_ctrl

    root@DM368_IPNC:~# flash_eraseall /dev/mtd3

    Erasing 256 Kibyte @ 27c0000 -- 99 % complete.

    root@DM368_IPNC:~# ubiattach -m 3 /dev/ubi_ctrl

    [  109.711942] UBI: attaching mtd3 to ubi0

    [  109.717070] UBI: physical eraseblock size:   262144 bytes (256 KiB)

    [  109.723436] UBI: logical eraseblock size:    260096 bytes

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

    [  109.736632] UBI: sub-page size:              512

    [  109.741308] UBI: VID header offset:          512 (aligned 512)

    [  109.748993] UBI: data offset:                2048

    [  109.825059] UBI: empty MTD device detected

    [  109.829362] UBI: max. sequence number:       0

    [  109.834154] UBI: create volume table (copy #1)

    [  109.849543] UBI: create volume table (copy #2)

    [  109.866973] UBI: attached mtd3 to ubi0

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

    [  109.878152] UBI: MTD device size:            40 MiB

    [  109.883125] UBI: number of good PEBs:        160

    [  109.889470] UBI: number of bad PEBs:         0

    [  109.894005] UBI: number of corrupted PEBs:   0

    [  109.900271] UBI: max. allowed volumes:       128

    [  109.906082] UBI: wear-leveling threshold:    4096

    [  109.910842] UBI: number of internal volumes: 1

    [  109.917094] UBI: number of user volumes:     0

    [  109.921637] UBI: available PEBs:             154

    [  109.927933] UBI: total number of reserved PEBs: 6

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

    [  109.940597] UBI: max/mean erase counter: 0/0

    [  109.946023] UBI: image sequence number:  1680132020

    [  109.951059] UBI: background thread "ubi_bgt0d" started, PID 711

    UBI device number 0, total 160 LEBs (41615360 bytes, 39.7 MiB), available 154 LEBs (40054784 bytes, 38.2 MiB), LEB size 260096 bytes (254.0 KiB)

    root@DM368_IPNC:~# ubimkvol /dev/ubi0 -N rootfs -m

    Set volume size to 40054784

    Volume ID 0, size 154 LEBs (40054784 bytes, 38.2 MiB), LEB size 260096 bytes (254.0 KiB), dynamic, name "rootfs", alignment 1

    root@DM368_IPNC:~# mount -t ubifs ubi0:rootfs /mnt/mmc

    [  173.911302] UBIFS: default file-system created

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

    [  175.545397] UBIFS: file system size:   37453824 bytes (36576 KiB, 35 MiB, 144 LEBs)

    [  175.553158] UBIFS: journal size:       2080769 bytes (2032 KiB, 1 MiB, 7 LEBs)

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

    [  175.570507] UBIFS: default compressor: lzo

    [  175.575759] UBIFS: reserved for root:  1769036 bytes (1727 KiB)

    root@DM368_IPNC:~# cd /opt/rootfs/

    root@DM368_IPNC:/opt/rootfs# ls

    filesys_ubifs.tar.gz

    root@DM368_IPNC:/opt/rootfs# tar -xvf filesys_ubifs.tar.gz -C /mnt/mmc/

    root@DM368_IPNC:/opt/rootfs# sync

    root@DM368_IPNC:/opt/rootfs#

    After extracting file system content to ubi0, I rebooted  board, set the bootargs as follows,

    setenv bootargs 'mem=48M console=ttyS0,115200n8 noinitrd ip=off ubi.mtd=3 rootfstype=ubifs root=ubi0:rootfs rw 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'

    but when I boot with this bootargs there are io read errors, and rootfs is not mounted,

    I have attached boot log for your reference,

    DM368 IPNC :>nboot 0x80700000 0 0x1400000
    
    Loading from NAND 1GiB 3,3V 8-bit, offset 0x1400000
       Image Name:   Linux-2.6.37_IPNC_DM368_5.1.0
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3859936 Bytes =  3.7 MB
       Load Address: 80008000
       Entry Point:  80008000
    DM368 IPNC :>nand read 0x80700000 0x1400000 0x400000
    
    NAND read: device 0 offset 0x1400000, size 0x400000
     4194304 bytes read: OK
    DM368 IPNC :>bootm 0x80700000
    ## Booting kernel from Legacy Image at 80700000 ...
       Image Name:   Linux-2.6.37_IPNC_DM368_5.1.0
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3859936 Bytes =  3.7 MB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK
    Inside function do_bootm_linux
    cmdline : mem=48M console=ttyS0,115200n8 noinitrd ip=off ubi.mtd=3 rootfstype=ubifs root=ubi0:rootfs rw 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
    do_bootm:Kernel Entry point 0x80008000
    
    Starting kernel ...
    
    Printing kernel parameters 80000100Cleanup is done 1939
    Entry point address 2147516416
    [    0.000000] Linux version 2.6.37_IPNC_DM368_5.1.0 (still-image@stillimage-VirtualBox) (gcc version 4.3.3 (GCC) ) #3 PREEMPT Mon Jan 6 09:51:53 IST 2014
    [    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 dm36x_rev1.2 variant 0x8
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 12192
    [    0.000000] Kernel command line: mem=48M console=ttyS0,115200n8 noinitrd ip=off ubi.mtd=3 rootfstype=ubifs root=ubi0:rootfs rw 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: 44772k/44772k available, 4380k 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 - 0xc002c000   ( 144 kB)
    [    0.000000]       .text : 0xc002c000 - 0xc0390000   (3472 kB)
    [    0.000000]       .data : 0xc0390000 - 0xc03b65e0   ( 154 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.000400] Calibrating delay loop (skipped) preset value.. 215.44 BogoMIPS (lpj=1077248)
    [    0.000483] pid_max: default: 32768 minimum: 301
    [    0.000781] Security Framework initialized
    [    0.000982] Mount-cache hash table entries: 512
    [    0.002185] CPU: Testing write buffer coherency: ok
    [    0.004908] devtmpfs: initialized
    [    0.010843] DaVinci: 8 gpio irqs
    [    0.011901] NET: Registered protocol family 16
    [    0.064679] dm365_rmd_cs_rdk_150_wl_init
    [    0.064757] No entry for the specified index
    [    0.068572] No entry for the specified index
    [    0.189799] bio: create slab <bio-0> at 0
    [    0.197628] SCSI subsystem initialized
    [    0.204193] usbcore: registered new interface driver usbfs
    [    0.206315] usbcore: registered new interface driver hub
    [    0.207724] usbcore: registered new device driver usb
    [    0.213561] vpss vpss: dm365_vpss vpss probed
    [    0.213660] vpss vpss: dm365_vpss vpss probe success
    [    0.220440] Advanced Linux Sound Architecture Driver Version 1.0.23.
    [    0.226067] Switching to clocksource timer0_1
    [    0.353218] NET: Registered protocol family 2
    [    0.353699] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.354945] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
    [    0.355155] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.355283] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.355332] TCP reno registered
    [    0.355390] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.355486] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.356334] NET: Registered protocol family 1
    [    0.461663] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.464682] JFFS2 version 2.2. (NAND) � 2001-2006 Red Hat, Inc.
    [    0.470462] msgmni has been set to 87
    [    0.476869] io scheduler noop registered (default)
    [    0.479587] CSL: Module install successful, device major num = 254
    [    0.479655] CSL: Module version 0.10.00, built on Dec 13 2013 22:33:02
    [    0.479730] I2C: Module install successful, device major num = 253
    [    0.479789] DMA: Module install successful, device major num = 252
    [    0.479830] DRV: Module install successful
    [    0.479867] DRV: Module built on Dec 13 2013 22:33:04
    [    0.479906] DRV: EDMACC.QUEPRI  = 00002777
    [    0.479942] DRV: SYSTEM.MSTPRI0 = 00440011
    [    0.479977] DRV: SYSTEM.MSTPRI1 = 00000444
    [    0.480333] DRV: ISP.BCR        = 00000002
    [    0.480383] DRV: SYSTEM.MISC    = 00000399
    [    0.480424] EDMAK module: built on Dec 13 2013 at 22:32:35
    [    0.480470]   Reference Linux version 2.6.37
    [    0.480507]   File /opt/workdir/OV9715_Ver5_0/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
    [    0.483063] IRQK module: built on Dec 13 2013 at 22:32:33
    [    0.483135]   Reference Linux version 2.6.37
    [    0.483175]   File /opt/workdir/OV9715_Ver5_0/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
    [    0.485709] irqk initialized
    [    0.485811] CMEMK module: built on Dec 13 2013 at 22:32:30
    [    0.485869]   Reference Linux version 2.6.37
    [    0.485908]   File /opt/workdir/OV9715_Ver5_0/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
    [    0.493559] allocated heap buffer 0xc4000000 of size 0x5000000
    [    0.493625] heap fallback enabled - will try heap if pool buffer is not available
    [    0.493685] CMEM Range Overlaps Kernel Physical - allowing overlap
    [    0.493737] CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)
    [    0.493953] cmemk initialized
    [    0.494033] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
    [    0.601375] serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
    [    1.126664] console [ttyS0] enabled
    [    1.201161] serial8250.0: ttyS1 at MMIO 0x1d06000 (irq = 41) is a 16550A
    [    1.244710] brd: module loaded
    [    1.262452] NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron )
    [    1.271604] Bad block table not found for chip 0
    [    1.277651] Bad block table not found for chip 0
    [    1.282435] Scanning device for bad blocks
    [    1.719176] Creating 7 MTD partitions on "davinci_nand.0":
    [    1.724868] 0x000000000000-0x000000c00000 : "bootloader"
    [    1.737689] 0x000000c00000-0x000001400000 : "params"
    [    1.750653] 0x000001400000-0x000001800000 : "kernel"
    [    1.763422] 0x000001800000-0x000004000000 : "filesystem1"
    [    1.776856] 0x000004000000-0x000004800000 : "data1"
    [    1.789700] 0x000004800000-0x00000c800000 : "filesystem2"
    [    1.803332] 0x00000c800000-0x000040000000 : "data2"
    [    1.817585] davinci_nand davinci_nand.0: controller rev. 2.3
    [    1.828413] UBI: attaching mtd3 to ubi0
    [    1.832781] UBI: physical eraseblock size:   262144 bytes (256 KiB)
    [    1.839097] UBI: logical eraseblock size:    260096 bytes
    [    1.844779] UBI: smallest flash I/O unit:    2048
    [    1.849525] UBI: sub-page size:              512
    [    1.854335] UBI: VID header offset:          512 (aligned 512)
    [    1.860313] UBI: data offset:                2048
    [    1.866452] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read 64 bytes
    [    1.876985] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 0:512, read 512 bytes
    [    1.887828] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 1:0, read 64 bytes
    [    1.898301] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 1:512, read 512 bytes
    [    1.909118] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 2:0, read 64 bytes
    [    1.919573] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [    1.930460] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 3:0, read 64 bytes
    [    1.940920] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 3:512, read 512 bytes
    [    1.951742] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 4:0, read 64 bytes
    [    1.962210] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 4:512, read 512 bytes
    [    1.973038] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 5:0, read 64 bytes
    [    1.983501] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 5:512, read 512 bytes
    [    1.994326] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 6:0, read 64 bytes
    [    2.004792] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 6:512, read 512 bytes
    [    2.016089] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 8:0, read 64 bytes
    [    2.026561] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 8:512, read 512 bytes
    [    2.037385] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 9:0, read 64 bytes
    [    2.047847] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 9:512, read 512 bytes
    [    2.058672] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 10:0, read 64 bytes
    [    2.069223] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 10:512, read 512 bytes
    [    2.080233] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 11:0, read 64 bytes
    [    2.090779] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 11:512, read 512 bytes
    [    2.102153] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 13:0, read 64 bytes
    [    2.112716] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 13:512, read 512 bytes
    [    2.123632] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 14:0, read 64 bytes
    [    2.134189] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 14:512, read 512 bytes
    [    2.145099] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 15:0, read 64 bytes
    [    2.155654] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 15:512, read 512 bytes
    [    2.166574] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 16:0, read 64 bytes
    [    2.177124] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 16:512, read 512 bytes
    [    2.188505] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 18:0, read 64 bytes
    [    2.199072] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 18:512, read 512 bytes
    [    2.209987] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 19:0, read 64 bytes
    [    2.220579] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 19:512, read 512 bytes
    [    2.231493] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 20:0, read 64 bytes
    [    2.242049] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 20:512, read 512 bytes
    [    2.252972] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 21:0, read 64 bytes
    [    2.263527] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 21:512, read 512 bytes
    [    2.274904] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 23:0, read 64 bytes
    [    2.285468] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 23:512, read 512 bytes
    [    2.296385] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 24:0, read 64 bytes
    [    2.306942] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 24:512, read 512 bytes
    [    2.317862] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 25:0, read 64 bytes
    [    2.328417] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 25:512, read 512 bytes
    [    2.339335] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 26:0, read 64 bytes
    [    2.349894] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 26:512, read 512 bytes
    [    2.361271] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 28:0, read 64 bytes
    [    2.371838] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 28:512, read 512 bytes
    [    2.382753] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 29:0, read 64 bytes
    [    2.393304] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 29:512, read 512 bytes
    [    2.404219] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 30:0, read 64 bytes
    [    2.414773] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 30:512, read 512 bytes
    [    2.425688] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 31:0, read 64 bytes
    [    2.436243] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 31:512, read 512 bytes
    [    2.447624] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 33:0, read 64 bytes
    [    2.458190] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 33:512, read 512 bytes
    [    2.469111] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 34:0, read 64 bytes
    [    2.479671] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 34:512, read 512 bytes
    [    2.490613] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 35:0, read 64 bytes
    [    2.501170] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 35:512, read 512 bytes
    [    2.512082] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 36:0, read 64 bytes
    [    2.522639] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 36:512, read 512 bytes
    [    2.534016] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 38:0, read 64 bytes
    [    2.544579] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 38:512, read 512 bytes
    [    2.555494] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 39:0, read 64 bytes
    [    2.566048] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 39:512, read 512 bytes
    [    2.576967] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 40:0, read 64 bytes
    [    2.587523] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 40:512, read 512 bytes
    [    2.598437] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 41:0, read 64 bytes
    [    2.609000] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 41:512, read 512 bytes
    [    2.620483] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 43:0, read 64 bytes
    [    2.631040] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 43:512, read 512 bytes
    [    2.641964] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 44:0, read 64 bytes
    [    2.652524] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 44:512, read 512 bytes
    [    2.663439] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 45:0, read 64 bytes
    [    2.673998] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 45:512, read 512 bytes
    [    2.684919] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 46:0, read 64 bytes
    [    2.695474] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 46:512, read 512 bytes
    [    2.706857] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 48:0, read 64 bytes
    [    2.717420] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 48:512, read 512 bytes
    [    2.728340] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 49:0, read 64 bytes
    [    2.738897] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 49:512, read 512 bytes
    [    2.749814] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 50:0, read 64 bytes
    [    2.760445] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 50:512, read 512 bytes
    [    2.771379] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 51:0, read 64 bytes
    [    2.781934] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 51:512, read 512 bytes
    [    2.793318] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 53:0, read 64 bytes
    [    2.803885] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 53:512, read 512 bytes
    [    2.814817] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 54:0, read 64 bytes
    [    2.825377] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 54:512, read 512 bytes
    [    2.836299] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 55:0, read 64 bytes
    [    2.846851] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 55:512, read 512 bytes
    [    2.857785] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 56:0, read 64 bytes
    [    2.868344] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 56:512, read 512 bytes
    [    2.879741] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 58:0, read 64 bytes
    [    2.890388] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 58:512, read 512 bytes
    [    2.901343] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 59:0, read 64 bytes
    [    2.911911] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 59:512, read 512 bytes
    [    2.922833] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 60:0, read 64 bytes
    [    2.933393] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 60:512, read 512 bytes
    [    2.944312] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 61:0, read 64 bytes
    [    2.954874] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 61:512, read 512 bytes
    [    2.966255] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 63:0, read 64 bytes
    [    2.976822] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 63:512, read 512 bytes
    [    2.987742] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 64:0, read 64 bytes
    [    2.998298] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 64:512, read 512 bytes
    [    3.009219] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 65:0, read 64 bytes
    [    3.019777] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 65:512, read 512 bytes
    [    3.030693] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 66:0, read 64 bytes
    [    3.041248] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 66:512, read 512 bytes
    [    3.052162] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 67:0, read 64 bytes
    [    3.062719] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 67:512, read 512 bytes
    [    3.073633] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 68:0, read 64 bytes
    [    3.084190] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 68:512, read 512 bytes
    [    3.095570] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 70:0, read 64 bytes
    [    3.106137] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 70:512, read 512 bytes
    [    3.117057] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 71:0, read 64 bytes
    [    3.127609] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 71:512, read 512 bytes
    [    3.138991] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 73:0, read 64 bytes
    [    3.149552] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 73:512, read 512 bytes
    [    3.160551] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 74:0, read 64 bytes
    [    3.171099] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 74:512, read 512 bytes
    [    3.182013] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 75:0, read 64 bytes
    [    3.192569] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 75:512, read 512 bytes
    [    3.203486] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 76:0, read 64 bytes
    [    3.214044] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 76:512, read 512 bytes
    [    3.225425] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 78:0, read 64 bytes
    [    3.235987] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 78:512, read 512 bytes
    [    3.246907] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 79:0, read 64 bytes
    [    3.257470] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 79:512, read 512 bytes
    [    3.268390] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 80:0, read 64 bytes
    [    3.278950] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 80:512, read 512 bytes
    [    3.289868] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 81:0, read 64 bytes
    [    3.300501] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 81:512, read 512 bytes
    [    3.311883] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 83:0, read 64 bytes
    [    3.322448] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 83:512, read 512 bytes
    [    3.333367] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 84:0, read 64 bytes
    [    3.343918] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 84:512, read 512 bytes
    [    3.354837] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 85:0, read 64 bytes
    [    3.365398] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 85:512, read 512 bytes
    [    3.376314] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 86:0, read 64 bytes
    [    3.386868] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 86:512, read 512 bytes
    [    3.397785] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 87:0, read 64 bytes
    [    3.408342] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 87:512, read 512 bytes
    [    3.419727] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 89:0, read 64 bytes
    [    3.430374] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 89:512, read 512 bytes
    [    3.441290] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 90:0, read 64 bytes
    [    3.451849] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 90:512, read 512 bytes
    [    3.462766] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 91:0, read 64 bytes
    [    3.473320] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 91:512, read 512 bytes
    [    3.484240] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 92:0, read 64 bytes
    [    3.494795] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 92:512, read 512 bytes
    [    3.506182] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 94:0, read 64 bytes
    [    3.516746] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 94:512, read 512 bytes
    [    3.527661] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 95:0, read 64 bytes
    [    3.538221] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 95:512, read 512 bytes
    [    3.549143] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 96:0, read 64 bytes
    [    3.559697] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 96:512, read 512 bytes
    [    3.570648] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 97:0, read 64 bytes
    [    3.581198] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 97:512, read 512 bytes
    [    3.592585] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 99:0, read 64 bytes
    [    3.603151] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 99:512, read 512 bytes
    [    3.614069] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 100:0, read 64 bytes
    [    3.624713] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 100:512, read 512 bytes
    [    3.635719] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 101:0, read 64 bytes
    [    3.646364] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 101:512, read 512 bytes
    [    3.657369] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 102:0, read 64 bytes
    [    3.668016] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 102:512, read 512 bytes
    [    3.679492] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 104:0, read 64 bytes
    [    3.690224] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 104:512, read 512 bytes
    [    3.701224] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 105:0, read 64 bytes
    [    3.711874] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 105:512, read 512 bytes
    [    3.722881] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 106:0, read 64 bytes
    [    3.733525] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 106:512, read 512 bytes
    [    3.744532] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 107:0, read 64 bytes
    [    3.755175] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 107:512, read 512 bytes
    [    3.766642] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 109:0, read 64 bytes
    [    3.777291] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 109:512, read 512 bytes
    [    3.788299] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 110:0, read 64 bytes
    [    3.798950] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 110:512, read 512 bytes
    [    3.809954] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 111:0, read 64 bytes
    [    3.820636] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 111:512, read 512 bytes
    [    3.831642] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 112:0, read 64 bytes
    [    3.842289] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 112:512, read 512 bytes
    [    3.853762] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 114:0, read 64 bytes
    [    3.864415] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 114:512, read 512 bytes
    [    3.875423] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 115:0, read 64 bytes
    [    3.886068] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 115:512, read 512 bytes
    [    3.897069] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 116:0, read 64 bytes
    [    3.907708] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 116:512, read 512 bytes
    [    3.919184] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 118:0, read 64 bytes
    [    3.929833] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 118:512, read 512 bytes
    [    3.940845] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 119:0, read 64 bytes
    [    3.951489] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 119:512, read 512 bytes
    [    3.962490] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 120:0, read 64 bytes
    [    3.973133] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 120:512, read 512 bytes
    [    3.984602] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 122:0, read 64 bytes
    [    3.995256] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 122:512, read 512 bytes
    [    4.006309] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 123:0, read 64 bytes
    [    4.016964] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 123:512, read 512 bytes
    [    4.027976] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 124:0, read 64 bytes
    [    4.038618] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 124:512, read 512 bytes
    [    4.049622] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 125:0, read 64 bytes
    [    4.060348] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 125:512, read 512 bytes
    [    4.071812] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 127:0, read 64 bytes
    [    4.082464] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 127:512, read 512 bytes
    [    4.093471] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 128:0, read 64 bytes
    [    4.104115] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 128:512, read 512 bytes
    [    4.115122] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 129:0, read 64 bytes
    [    4.125772] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 129:512, read 512 bytes
    [    4.136783] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 130:0, read 64 bytes
    [    4.147433] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 130:512, read 512 bytes
    [    4.158439] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 131:0, read 64 bytes
    [    4.169085] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 131:512, read 512 bytes
    [    4.180652] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 133:0, read 64 bytes
    [    4.191299] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 133:512, read 512 bytes
    [    4.202308] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 134:0, read 64 bytes
    [    4.212954] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 134:512, read 512 bytes
    [    4.223963] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 135:0, read 64 bytes
    [    4.234616] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 135:512, read 512 bytes
    [    4.245620] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 136:0, read 64 bytes
    [    4.256264] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 136:512, read 512 bytes
    [    4.267698] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 138:0, read 64 bytes
    [    4.278346] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 138:512, read 512 bytes
    [    4.289353] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 139:0, read 64 bytes
    [    4.299992] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 139:512, read 512 bytes
    [    4.311465] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 141:0, read 64 bytes
    [    4.322115] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 141:512, read 512 bytes
    [    4.340668] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 159:0, read 64 bytes
    [    4.351316] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 159:512, read 512 bytes
    [    4.361934] UBI: max. sequence number:       169
    [    4.384840] UBI: attached mtd3 to ubi0
    [    4.388634] UBI: MTD device name:            "filesystem1"
    [    4.394315] UBI: MTD device size:            40 MiB
    [    4.399232] UBI: number of good PEBs:        160
    [    4.404034] UBI: number of bad PEBs:         0
    [    4.408515] UBI: number of corrupted PEBs:   0
    [    4.413060] UBI: max. allowed volumes:       128
    [    4.417713] UBI: wear-leveling threshold:    4096
    [    4.422529] UBI: number of internal volumes: 1
    [    4.427002] UBI: number of user volumes:     1
    [    4.431532] UBI: available PEBs:             0
    [    4.436007] UBI: total number of reserved PEBs: 160
    [    4.440971] UBI: number of PEBs reserved for bad PEB handling: 2
    [    4.447013] UBI: max/mean erase counter: 2/1
    [    4.451367] UBI: image sequence number:  1680132020
    [    4.456337] UBI: background thread "ubi_bgt0d" started, PID 420
    [    4.465975] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [    4.477921] spi_davinci spi_davinci.0: Controller at 0xfec66000
    [    4.550195] davinci_mdio davinci_mdio.0: davinci mdio revision 1.4
    [    4.556438] davinci_mdio davinci_mdio.0: no live phy, scanning all
    [    4.570000] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [    4.581606] davinci_mdio: probe of davinci_mdio.0 failed with error -5
    [    4.590739] UBI: run torture test for PEB 140
    [    4.600578] i2c /dev entries driver
    [    4.607698] Linux media interface: v0.10
    [    4.621248] Linux video capture interface: v2.00
    [    4.640774] vpbe-osd vpbe-osd: OSD sub device probe success
    [    4.647802] vpbe-venc vpbe-venc: VENC sub device probe success
    [    4.661068] vpbe-v4l2 vpbe-v4l2: vpbe v4l2 device registered
    [    4.667148] Setting default output to Composite
    [    4.680219] Setting default mode to ntsc
    [    4.684350] vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.
    [    4.700170] vpbe-v4l2 vpbe-v4l2: layer=c2929e00,layer->video_dev=c2929ee8
    [    4.720614] vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.
    [    4.727378] vpbe-v4l2 vpbe-v4l2: layer=c2929600,layer->video_dev=c29296e8
    [    4.753249] watchdog watchdog: heartbeat 60 sec
    [    4.777980] Error: Driver 'davinci-mcbsp' is already registered, aborting...
    [    4.803966] asoc: cq93vc-hifi <-> davinci-vcif mapping ok
    [    4.824301] ALSA device list:
    [    4.827325]   #0: DaVinci DM365 EVM
    [    4.842000] nf_conntrack version 0.5.0 (699 buckets, 2796 max)
    [    4.861709] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    4.867517] TCP cubic registered
    [    4.880214] NET: Registered protocol family 17
    [    5.247069] UBIFS: recovery needed
    [    5.581367] UBI: PEB 140 passed torture test, do not mark it a bad
    [    5.602464] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [    5.701463] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [    5.720256] UBI: run torture test for PEB 140
    [    6.471356] UBI: PEB 140 passed torture test, do not mark it a bad
    [    6.479863] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [    6.591473] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [    6.610303] UBI: run torture test for PEB 140
    [    7.361393] UBI: PEB 140 passed torture test, do not mark it a bad
    [    7.369901] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [    7.481878] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [    7.510271] UBI: run torture test for PEB 140
    [    8.271366] UBI: PEB 140 passed torture test, do not mark it a bad
    [    8.279872] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [    8.391514] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [    8.410270] UBI: run torture test for PEB 140
    [    9.161381] UBI: PEB 140 passed torture test, do not mark it a bad
    [    9.169893] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [    9.281462] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [    9.300275] UBI: run torture test for PEB 140
    [   10.061390] UBI: PEB 140 passed torture test, do not mark it a bad
    [   10.082521] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [   10.181464] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [   10.200344] UBI: run torture test for PEB 140
    [   10.951436] UBI: PEB 140 passed torture test, do not mark it a bad
    [   11.023578] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [   11.186423] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [   11.205260] UBI: run torture test for PEB 140
    [   12.450711] UBI: PEB 140 passed torture test, do not mark it a bad
    [   12.459171] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [   12.613132] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [   12.630284] UBI: run torture test for PEB 140
    [   13.791416] UBI: PEB 140 passed torture test, do not mark it a bad
    [   13.799930] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [   13.908198] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [   13.930262] UBI: run torture test for PEB 140
    [   15.081305] UBI: PEB 140 passed torture test, do not mark it a bad
    [   15.124420] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [   15.284779] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [   15.310287] UBI: run torture test for PEB 140
    [   16.581306] UBI: PEB 140 passed torture test, do not mark it a bad
    [   16.627643] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [   16.773358] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [   16.800302] UBI: run torture test for PEB 140
    [   18.067213] UBI: PEB 140 passed torture test, do not mark it a bad
    [   18.082486] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [   18.275618] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [   18.300297] UBI: run torture test for PEB 140
    [   19.502998] UBI: PEB 140 passed torture test, do not mark it a bad
    [   19.521490] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [   19.694393] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [   19.720317] UBI: run torture test for PEB 140
    [   20.985361] UBI: PEB 140 passed torture test, do not mark it a bad
    [   21.002450] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [   21.143255] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [   21.170333] UBI: run torture test for PEB 140
    [   22.431366] UBI: PEB 140 passed torture test, do not mark it a bad
    [   22.478381] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [   22.642457] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [   22.670368] UBI: run torture test for PEB 140
    [   24.031344] UBI: PEB 140 passed torture test, do not mark it a bad
    [   24.071761] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [   24.234476] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [   24.260316] UBI: run torture test for PEB 140
    [   25.631391] UBI: PEB 140 passed torture test, do not mark it a bad
    [   25.675538] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [   25.843854] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [   25.870326] UBI: run torture test for PEB 140
    [   27.181356] UBI: PEB 140 passed torture test, do not mark it a bad
    [   27.222325] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [   27.336712] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [   27.360274] UBI: run torture test for PEB 140
    [   28.581358] UBI: PEB 140 passed torture test, do not mark it a bad
    [   28.628657] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [   28.792907] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [   28.820342] UBI: run torture test for PEB 140
    [   30.151348] UBI: PEB 140 passed torture test, do not mark it a bad
    [   30.189492] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [   30.346698] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [   30.370364] UBI: run torture test for PEB 140
    [   31.691399] UBI: PEB 140 passed torture test, do not mark it a bad
    [   31.738745] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [   31.895944] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [   31.920385] UBI: run torture test for PEB 140
    [   33.281375] UBI: PEB 140 passed torture test, do not mark it a bad
    [   33.319898] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [   33.484205] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [   33.510358] UBI: run torture test for PEB 140
    [   34.916482] UBI: PEB 140 passed torture test, do not mark it a bad
    [   34.967103] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [   35.142214] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [   35.170380] UBI: run torture test for PEB 140
    [   36.581512] UBI: PEB 140 passed torture test, do not mark it a bad
    [   36.590019] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:512, read 512 bytes
    [   36.668737] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 3:512, read 512 bytes
    [   36.790791] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 140:512, read 512 bytes
    [   36.801512] UBIFS error (pid 1): ubifs_check_node: bad magic 0x000000, expected 0x6101831
    [   36.809740] UBIFS error (pid 1): ubifs_check_node: bad node at LEB 11:39872
    [   36.816938] UBI: run torture test for PEB 140
    [   36.830420] Backtrace:
    [   36.832912] Function entered at [<c0030504>] from [<c030ebf4>]
    [   36.838772]  r7:00009bc0 r6:c2817000 r5:c280c000 r4:ffffff8b
    [   36.863645] Function entered at [<c030ebdc>] from [<c0122b48>]
    [   36.869510] Function entered at [<c01228a8>] from [<c0122df8>]
    [   36.890264]  r8:000000a0 r7:c2817000 r6:c280c000 r5:c2824000 r4:00000000
    [   36.897105] Function entered at [<c0122b90>] from [<c0147894>]
    [   36.910253] Function entered at [<c0147828>] from [<c0134390>]
    [   36.916129]  r8:c2817000 r7:c2817000 r6:00000074 r5:c2825c68 r4:c2bd0730
    [   36.932622] Function entered at [<c0134314>] from [<c014ae08>]
    [   36.938484]  r7:00000000 r6:00000000 r5:c2bd0700 r4:00000000
    [   36.953684] Function entered at [<c014acd8>] from [<c01340c8>]
    [   36.959549] Function entered at [<c013360c>] from [<c012fd48>]
    [   36.980282] Function entered at [<c012fb90>] from [<c01304d0>]
    [   36.986162] Function entered at [<c01303dc>] from [<c014193c>]
    [   37.010285]  r6:0000000c r5:00000000 r4:c2824000
    [   37.015001] Function entered at [<c01412e8>] from [<c011ecc0>]
    [   37.030282]  r8:00000003 r7:00000000 r6:0003eba0 r5:00000000 r4:00000000
    [   37.037117] Function entered at [<c011e06c>] from [<c011ffb0>]
    [   37.050294] Function entered at [<c011fca0>] from [<c00a5454>]
    [   37.056174] Function entered at [<c00a53a8>] from [<c00a55ec>]
    [   37.080287] Function entered at [<c00a55ac>] from [<c00be268>]
    [   37.086165]  r8:c29e99e0 r7:00000020 r6:00000000 r5:00000000 r4:00008000
    [   37.102647] Function entered at [<c00bdba8>] from [<c00be354>]
    [   37.108511] Function entered at [<c00be2c8>] from [<c0008e80>]
    [   37.130249]  r7:00008000 r6:c2813000 r5:c00263dc r4:c2813000
    [   37.136025] Function entered at [<c0008d78>] from [<c0009134>]
    [   37.150258] Function entered at [<c00090a0>] from [<c00084b4>]
    [   37.156133]  r5:c002596c r4:c03b65f8
    [   37.159765] Function entered at [<c00083a4>] from [<c00469dc>]
    [   37.180248]  r5:c00083a4 r4:00000000
    [   37.183902] UBIFS error (pid 1): ubifs_read_node: expected node type 0
    [   37.200373] UBIFS error (pid 1): dbg_orphan_check: node read failed, error -117
    [   37.207731] UBIFS error (pid 1): dbg_walk_index: leaf checking function returned error -117, for leaf at LEB 11:39872
    [   37.240262] UBIFS: dump of znode at LEB 10:103488
    [   37.245397] UBIFS error (pid 1): dbg_check_orphans: cannot scan TNC, error -117
    [   37.260274] UBIFS error (pid 1): do_commit: commit failed, error -117
    [   37.266774] UBIFS warning (pid 1): ubifs_ro_mode: switched to read-only mode, error -117
    [   37.290232] Backtrace:
    [   37.292741] Function entered at [<c0030504>] from [<c030ebf4>]
    [   37.298605]  r7:ffffff8b r6:c2817000 r5:c2a93934 r4:c2824000
    [   37.323690] Function entered at [<c030ebdc>] from [<c0121ca0>]
    [   37.329554] Function entered at [<c0121c2c>] from [<c01303b4>]
    [   37.350297] Function entered at [<c012fb90>] from [<c01304d0>]
    [   37.356177] Function entered at [<c01303dc>] from [<c014193c>]
    [   37.370291]  r6:0000000c r5:00000000 r4:c2824000
    [   37.375005] Function entered at [<c01412e8>] from [<c011ecc0>]
    [   37.390290]  r8:00000003 r7:00000000 r6:0003eba0 r5:00000000 r4:00000000
    [   37.397122] Function entered at [<c011e06c>] from [<c011ffb0>]
    [   37.420283] Function entered at [<c011fca0>] from [<c00a5454>]
    [   37.426160] Function entered at [<c00a53a8>] from [<c00a55ec>]
    [   37.440286] Function entered at [<c00a55ac>] from [<c00be268>]
    [   37.446163]  r8:c29e99e0 r7:00000020 r6:00000000 r5:00000000 r4:00008000
    [   37.462612] Function entered at [<c00bdba8>] from [<c00be354>]
    [   37.468476] Function entered at [<c00be2c8>] from [<c0008e80>]
    [   37.490284]  r7:00008000 r6:c2813000 r5:c00263dc r4:c2813000
    [   37.496063] Function entered at [<c0008d78>] from [<c0009134>]
    [   37.510297] Function entered at [<c00090a0>] from [<c00084b4>]
    [   37.516176]  r5:c002596c r4:c03b65f8
    [   37.519810] Function entered at [<c00083a4>] from [<c00469dc>]
    [   37.540252]  r5:c00083a4 r4:00000000
    [   37.620726] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
    [   37.627826] Please append a correct "root=" boot option; here are the available partitions:
    [   37.650365] 1f00           12288 mtdblock0  (driver?)
    [   37.655516] 1f01            8192 mtdblock1  (driver?)
    [   37.670327] 1f02            4096 mtdblock2  (driver?)
    [   37.675469] 1f03           40960 mtdblock3  (driver?)
    [   37.690310] 1f04            8192 mtdblock4  (driver?)
    [   37.695456] 1f05          131072 mtdblock5  (driver?)
    [   37.710331] 1f06          843776 mtdblock6  (driver?)
    [   37.715464] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
    [   37.723835] Backtrace:
    [   37.726333] Function entered at [<c0030504>] from [<c030ebf4>]
    [   37.732271]  r7:00008000 r6:c2813000 r5:c00263dc r4:c03b6de0
    [   37.738025] Function entered at [<c030ebdc>] from [<c030ec54>]
    [   37.743946] Function entered at [<c030ebf8>] from [<c0008fdc>]
    [   37.749812]  r3:00000000 r2:c2824000 r1:c2825f78 r0:c0331f10
    [   37.755627] Function entered at [<c0008d78>] from [<c0009134>]
    [   37.761542] Function entered at [<c00090a0>] from [<c00084b4>]
    [   37.767406]  r5:c002596c r4:c03b65f8
    [   37.771091] Function entered at [<c00083a4>] from [<c00469dc>]
    [   37.776951]  r5:c00083a4 r4:00000000

    One thing i noticed is you mentioned ubiformat in beginning but in steps you havent mentioned that,

    Did we miss that step ?

    Any other suggestions/corrections ?

    Thank you,

    Regards,

    Ankur

  • Hi Titus,

    In kernel version 2.6.37, YAFFS option is not available in menuconfig itself,

    I think i have to either go with ubifs or some other read-write file system.

    Here is screenshot of menuconfig.

    Any suggestions ?


    Regards,

    Ankur

  • Hi Renjith/Titus,

    I am trying to use jffs2 rootfs,
    I am following procedure metioned in below link
    http://processors.wiki.ti.com/index.php/Put_JFFS2_Image_to_Flash

    I will keep this post updated with progress.

    Thank you,

    Regards,
    Ankur

  • Hi Renjith/Titus,

    For flashing jffs2 filesystem when i use "flash_eraseall -j /dev/mtd3"

    I get following errors,

    root@DM368_IPNC:~# flash_eraseall -j /dev/mtd3
    Erasing 256 Kibyte @ 0 --  0 % complete.libmtd: error!: unaligned address 2, mtd3 page size is 2048

    flash_eraseall: /dev/mtd3: MTD writeoob failure: Invalid argument
    Erasing 256 Kibyte @ 40000 --  0 % complete.libmtd: error!: unaligned address 262146, mtd3 page size is 2048

    flash_eraseall: /dev/mtd3: MTD writeoob failure: Invalid argument
    Erasing 256 Kibyte @ 80000 --  1 % complete.libmtd: error!: unaligned address 524290, mtd3 page size is 2048

    flash_eraseall: /dev/mtd3: MTD writeoob failure: Invalid argument
    Erasing 256 Kibyte @ c0000 --  1 % complete.libmtd: error!: unaligned address 786434, mtd3 page size is 2048

    flash_eraseall: /dev/mtd3: MTD writeoob failure: Invalid argument
    Erasing 256 Kibyte @ 100000 --  2 % complete.libmtd: error!: unaligned address 1048578, mtd3 page size is 2048

    flash_eraseall: /dev/mtd3: MTD writeoob failure: Invalid argument
    Erasing 256 Kibyte @ 140000 --  3 % complete.libmtd: error!: unaligned address 1310722, mtd3 page size is 2048

    flash_eraseall: /dev/mtd3: MTD writeoob failure: Invalid argument
    Erasing 256 Kibyte @ 180000 --  3 % complete.libmtd: error!: unaligned address 1572866, mtd3 page size is 2048

    flash_eraseall: /dev/mtd3: MTD writeoob failure: Invalid argument
    Erasing 256 Kibyte @ 1c0000 --  4 % complete.libmtd: error!: unaligned address 1835010, mtd3 page size is 2048

    flash_eraseall: /dev/mtd3: MTD writeoob failure: Invalid argument
    Erasing 256 Kibyte @ 200000 --  5 % complete.libmtd: error!: unaligned address 2097154, mtd3 page size is 2048

    flash_eraseall: /dev/mtd3: MTD writeoob failure: Invalid argument
    Erasing 256 Kibyte @ 240000 --  5 % complete.libmtd: error!: unaligned address 2359298, mtd3 page size is 2048

    flash_eraseall: /dev/mtd3: MTD writeoob failure: Invalid argument
    Erasing 256 Kibyte @ 280000 --  6 % complete.libmtd: error!: unaligned address 2621442, mtd3 page size is 2048

    flash_eraseall: /dev/mtd3: MTD writeoob failure: Invalid argument
    Erasing 256 Kibyte @ 2c0000 --  6 % complete.libmtd: error!: unaligned address 2883586, mtd3 page size is 2048

    flash_eraseall: /dev/mtd3: MTD writeoob failure: Invalid argument
    Erasing 256 Kibyte @ 300000 --  7 % complete.libmtd: error!: unaligned address 3145730, mtd3 page size is 2048

    flash_eraseall: /dev/mtd3: MTD writeoob failure: Invalid argument
    Erasing 256 Kibyte @ 340000 --  8 % complete.libmtd: error!: unaligned address 3407874, mtd3 page size is 2048
    ...

    ...

    ...

    flash_eraseall: /dev/mtd3: MTD writeoob failure: Invalid argument
    Erasing 256 Kibyte @ 26c0000 -- 96 % complete.libmtd: error!: unaligned address 40632322, mtd3 page size is 2048

    flash_eraseall: /dev/mtd3: MTD writeoob failure: Invalid argument
    Erasing 256 Kibyte @ 2700000 -- 97 % complete.libmtd: error!: unaligned address 40894466, mtd3 page size is 2048

    flash_eraseall: /dev/mtd3: MTD writeoob failure: Invalid argument
    Erasing 256 Kibyte @ 2740000 -- 98 % complete.libmtd: error!: unaligned address 41156610, mtd3 page size is 2048

    flash_eraseall: /dev/mtd3: MTD writeoob failure: Invalid argument
    Erasing 256 Kibyte @ 2780000 -- 98 % complete.libmtd: error!: unaligned address 41418754, mtd3 page size is 2048

    flash_eraseall: /dev/mtd3: MTD writeoob failure: Invalid argument
    Erasing 256 Kibyte @ 27c0000 -- 99 % complete.libmtd: error!: unaligned address 41680898, mtd3 page size is 2048

    flash_eraseall: /dev/mtd3: MTD writeoob failure: Invalid argument
    Erasing 256 Kibyte @ 27c0000 -- 99 % complete.

    I referred some of the online post regarding these errors and i found that this can be solved by using later version of mtd-utils.

    what is your opinion/suggestion on that ?

    And if have to get new mtd-utils version i have to update its dependency libs also to required version.

    Do you suggest anything else ?

    Thank you,

    Regards,

    Ankur

  • Hi,

    In kernel version 2.6.37, YAFFS option is not available in menuconfig itself,

    plz follow the below proced & change it according to ur req. and if need (like use ramdisk instead booting from SD card)

    YAFFS2
    =======


    Flashing yaffs2 rootfs image
    ------------------------------------------

    Refer:
    http://processors.wiki.ti.com/index.php/YAFFS2_kernel_configuration

    Step 1 :
    Download 'yaffs2' source from the below website path.

    http://aleph1.co.uk/gitweb?p=yaffs2.git;a=snapshot;h=HEAD;

    Step 2 :
    untar the downloaded file by 'tar' command

    Step 3 :
    Run the below command in host terminal for applying patch into working linux kernel

    cd yaffs2-HEAD-bc76682
    ./patch-ker.sh l m < linux kernel path >

    Ex:
    ./patch-ker.sh l m /home/am35x/linux-2.6.37

    Step 4 :
    Compile the kernel & copy into SD card then boot from SD card.

    Step 5 :
    Copy the rootfs tar file (rootfs.tar.gz) into 'rootfs' partition of SD card.


    Step 6 :
    Boot ur system with any tpye of booting method (without NAND) & do the below commands to flash rootfs into NAND flash.

    root@am3517-evm:/# flash_eraseall /dev/mtd4

    root@am3517-evm:/# mount -t yaffs2 /dev/mtdblock4 /mnt

    root@am3517-evm:/# cd /mnt

    root@am3517-evm:/# tar -zxvf /rootfs.tar.gz

    root@am3517-evm:/# cd /

    root@am3517-evm:/# sync

    root@am3517-evm:/# umount /mnt

    root@am3517-evm:/# init 0

    Step 7 :
    Do the below command to write the env variable for yaffs2 boot in u-boot terminal

    u-boot # setenv nandargs setenv bootargs 'console=${console} rootwait=5 rw root=/dev/mtdblock4 rootfstype=yaffs2'

    u-boot # saveenv

    Step 8 :
    Remove the SD card & boot from NAND flash.

    UBIFS TESTING
    ==============

    flash_eraseall /dev/mtd4
    ubiformat /dev/mtd4 -s 512 -y
    ubiattach /dev/ubi_ctrl -m 4

    mount -t ubifs ubi0:ubi-rootfs /mnt/

    < change fs as u like here (copy & untar ) >

    ubidetach /dev/ubi_ctrl -m 4

    umount /mnt

    1. Does DM365 usb usable as host ? do need to load some driver to make as USB host ?

    Yes possible, read TRM (technical ref manual of DM365)

    2. YAFFS2 is read-write file system right ?

    Yes

     

    [  109.717070] UBI: physical eraseblock size:   262144 bytes (256 KiB)

    root@DM368_IPNC:~# flash_eraseall -j /dev/mtd3
    Erasing 256 Kibyte @ 0 --  0 % complete.libmtd: error!: unaligned address 2, mtd3 page size is 2048

    Regarding NAND erase size(block size) - actual 512KB

    Are you using right NAND flash which is approved NAND part by TI ?

     

    [    1.271588] Bad block table not found for chip 0
    [    1.277635] Bad block table not found for chip 0

    If not need to modify linux & u-boot nand driver bcz ur facing "Bad block table(bbt) not found" message is displaying while bootup (loading nand driver)

    Actually it should use bbt from u-boot which is updated & maintained by u-boot

    plz chk out NAND driver & ECC layout

    And if have to get new mtd-utils version i have to update its dependency libs also to required version.

    Do you suggest anything else ?

    If it so, then download latest source code & cross compile it and confirm it(it takes to less than 15min)

    http://processors.wiki.ti.com/index.php/Mtdutils
    http://processors.wiki.ti.com/index.php/MTD_Utilities

    JFFS2 also simplicity unless you ll use  >64MB bcz it use compression & takes more time to boot then YAFFS2 whereas yaffs2 is simple & quick boot

  • Hi Ankur,

    There's nothing wrong in having an additional partition with UBI. If you are using IPNC stack, this partition will be used to save settings etc as this will R/W file system, where are SquashFS is read-only. 

  • Ankur Tank said:
    One thing i noticed is you mentioned ubiformat in beginning but in steps you havent mentioned that,

    ubimkvol will also do the formatting.

  • Hi Titus/Renjith,

     Thank you very much  for helping, finally I got UBIFS working on my board,

    Here are commands I used to create the ubifs

    $(UBIFS_PATH)/mkfs.ubifs -r  $(TARGET_FS) -m 2048 -e 258048 -c 506 -o ubifs.img
    
    $(UBIFS_PATH)/ubinize -o $(SYSTEM_CFG)_$(HARDWARE_CFG)_ubifs -m 2048 -p 256KiB -O 2048  $(HARDWARE_CFG)_ubinize.cfg

     content of ubinize.cfg is as follows,

    [ubifs]
    peb=0x40000
    min_io_size=0x800
    compress_type=zlib
    mode=ubi
    image=ubifs.img
    vol_id=0
    vol_size=124MiB
    vol_type=dynamic
    vol_name=rootfs
    vol_flags=autoresize

    Some calculations which will help understand

    For 256Kib and pagesize 2048
    
    Symbol  Meaning     Value for 128MB fs
    SP  PEB Size    256KiB
    SL  LEB Size    256kib - 2* 2kiB = 252Kib
    P   Total number of PEBs on the MTD device  128MiB / 256KiB = 512
    B   Number of PEBs reserved for bad PEB handling    1% of P = 5
    O   The overhead related to storing EC and VID headers in bytes, i.e. O = SP - SL   4KiB 
    
    
    UBI Overhead = (B + 4) * SP + O * (P - B - 4) 
          = (5 + 4) * 256Kib + 4 KiB * (512 - 5 - 4)
          = 2304Kib + 2012Kib
          = 4316 KiB 
          = 16.859375 PEBs (round to 17)
    
    512 - 17 = 498 peb = 498*256kiB PEBS = 127488KiB availble for user data
    
    we have to use -c <X> where x = 127488Kib / 252kib = 505.9 = 506

    In my opinion Important point is, physical erase block size and page size

    I have to consider block size as 256KiB. Block size mentioned in the datasheet of NAND is 512KiB  BUT erase block size is not same as block size, it is the minimum size of block which can be erased. As there are two planes in the NAND and on each plane minimum block size is 256KiB, it should be considered as erase block size.

    Same is the case with page size, in datasheet (above diagram) it is mentioned as 4096 but they are divided in the two planes, each plane contains 2048 size of page. So minimum io size is 2048.

    (Let me know if my understaing is wrong/incomplete).

    For more details one can refer below post in stackoverlow.

    http://stackoverflow.com/questions/20917921/unable-to-attach-ubi-to-mtd-partition/21013407#21013407

     

    Regards,

    Ankur