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 mount failure with

Other Parts Discussed in Thread: TPS65910, TPS65217, DA8XX

I use prebuilt UBIFS images from TI official site--> http://processors.wiki.ti.com/index.php/TI-Android-ICS-4.0.3-DevKit-3.0.1_UserGuide#NAND_Booting

And I only replaced linux kernel with a customerized one. Looks like UBIFS rootfs successfully burnt into nand flash but I met a failure when kernel try to mount this UBIFS. You can find logs below and anybody can help with this issue?

U-Boot SPL 2011.09 (Feb 13 2012 - 17:28:14)
Texas Instruments Revision detection unimplemented
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img


U-Boot 2011.09 (Feb 11 2012 - 18:23:02)

I2C:   ready
DRAM:  256 MiB
WARNING: Caches not enabled
No daughter card present
NAND:  HW ECC Hamming Code selected
256 MiB
MMC:   OMAP SD/MMC: 0
*** Warning - bad CRC, using default environment

Net:   cpsw
Hit any key to stop autoboot:  0
SD/MMC found on device 0
reading uEnv.txt

88 bytes read
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
reading boot.scr

1522 bytes read
## Executing script at 81000000
Loading MLO from mmc ...
reading MLO

37487 bytes read
Erasing x-loader NAND partition ...
HW ECC BCH8 Selected

NAND erase: device 0 offset 0x0, size 0x20000
Erasing at 0x0 -- 100% complete.
OK
Writing MLO on NAND x-loader partition ...

NAND write: device 0 offset 0x0, size 0x20000
 131072 bytes written: OK
Loading u-boot.img from mmc ...
reading u-boot.img

231396 bytes read
Erasing u-boot NAND partition ...
HW ECC BCH8 Selected

NAND erase: device 0 offset 0x80000, size 0x1e0000
Erasing at 0x240000 -- 100% complete.
OK
Writing u-boot.img on NAND bootloader partition ...

NAND write: device 0 offset 0x80000, size 0x1e0000
 1966080 bytes written: OK
Loading uImage from mmc ...
reading uImage

3575384 bytes read
Erasing linux NAND partition ...
HW ECC BCH8 Selected

NAND erase: device 0 offset 0x280000, size 0x500000
Erasing at 0x760000 -- 100% complete.
OK
Writing uImage on NAND linux partition ...

NAND write: device 0 offset 0x280000, size 0x500000
 5242880 bytes written: OK
Loading ubi.img from mmc ...
it will take some 10 minutes ... ... ... ...
reading ubi.img

122028032 bytes read
Erasing NAND rootfs partition ...
HW ECC BCH8 Selected

NAND erase: device 0 offset 0x780000, size 0x7460000
Erasing at 0x7bc0000 -- 100% complete.
OK
Writing ubi.img on NAND rootfs partition ...

NAND write: device 0 offset 0x780000, size 0x7460000
 122028032 bytes written: OK
HW ECC Hamming Code selected
Saving Environment to NAND...
Erasing Nand...
Erasing at 0x260000 -- 100% complete.
Writing to Nand... done

Booting from nand ...
HW ECC BCH8 Selected

NAND read: device 0 offset 0x280000, size 0x500000
 5242880 bytes read: OK
## Booting kernel from Legacy Image at 81000000 ...
   Image Name:   Linux-3.2.0-gb02ab39-dirty
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3575320 Bytes = 3.4 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.000000] Linux version 3.2.0-gb02ab39-dirty (root@NX-W-3) (gcc version 4.4.3 (GCC) ) #21 Fri Jul 20 17:08:10 CST 2012
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: am335xevm
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] AM335X ES1.0 (sgx neon )
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyO1,115200 androidboot.console=ttyO1 mem=256M root=ubi0:rootfs rootfstype=ubifs ubi.mtd=7,2048 rw rootwait init=/init ip=off
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 256MB = 256MB total
[    0.000000] Memory: 251520k/251520k available, 10624k 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]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0660000   (6496 kB)
[    0.000000]       .init : 0xc0660000 - 0xc069c000   ( 240 kB)
[    0.000000]       .data : 0xc069c000 - 0xc06f4220   ( 353 kB)
[    0.000000]        .bss : 0xc06f4244 - 0xc08239c8   (1214 kB)
[    0.000000] NR_IRQS:396
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] Total of 128 interrupts on 1 active controller
[    0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
[    0.000000] omap_dm_timer_switch_src: Switching to HW default clocksource(sys_clkin_ck) for timer1, this may impact timekeeping in low power state
[    0.000000] OMAP clocksource: GPTIMER1 at 24000000 Hz
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[    0.000000] Console: colour dummy device 80x30
[    0.000198] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
[    0.057166] pid_max: default: 32768 minimum: 301
[    0.057294] Security Framework initialized
[    0.057359] Mount-cache hash table entries: 512
[    0.057734] CPU: Testing write buffer coherency: ok
[    0.077699] omap_hwmod: gfx: failed to hardreset
[    0.093958] omap_hwmod: pruss: failed to hardreset
[    0.094726] print_constraints: dummy:
[    0.094955] NET: Registered protocol family 16
[    0.096033] OMAP GPIO hardware version 0.1
[    0.097064] omap_mux_init: Add partition: #1: core, flags: 0
[    0.098166] _omap_mux_get_by_name: Could not find signal gpmc_be1n.gpio1_28
[    0.098372]  omap_i2c.1: alias fck already exists
[    0.098874]  omap2_mcspi.1: alias fck already exists
[    0.098978]  omap2_mcspi.2: alias fck already exists
[    0.099130]  edma.0: alias fck already exists
[    0.099149]  edma.0: alias fck already exists
[    0.099167]  edma.0: alias fck already exists
[    0.107933] bio: create slab <bio-0> at 0
[    0.108911] SCSI subsystem initialized
[    0.109722] usbcore: registered new interface driver usbfs
[    0.109836] usbcore: registered new interface driver hub
[    0.109979] usbcore: registered new device driver usb
[    0.110107] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
[    0.110248] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
[    0.127236] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[    0.128039] tps65910 1-002d: could not be detected
[    0.128380] Advanced Linux Sound Architecture Driver Version 1.0.24.
[    0.128932] Bluetooth: Core ver 2.16
[    0.129007] NET: Registered protocol family 31
[    0.129018] Bluetooth: HCI device and connection manager initialized
[    0.129033] Bluetooth: HCI socket layer initialized
[    0.129044] Bluetooth: L2CAP socket layer initialized
[    0.129070] Bluetooth: SCO socket layer initialized
[    0.129255] Switching to clocksource gp timer
[    0.136962] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[    0.137149] musb-hdrc musb-hdrc.0: dma type: pio
[    0.137890] musb-hdrc musb-hdrc.0: USB OTG mode controller at d081c000 using PIO, IRQ 18
[    0.138126] musb-hdrc musb-hdrc.1: dma type: pio
[    0.138392] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[    0.138467] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[    0.138599] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.138614] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber= 1
[    0.138627] usb usb1: Product: MUSB HDRC host driver
[    0.138638] usb usb1: Manufacturer: Linux 3.2.0-gb02ab39-dirty musb-hcd
[    0.138650] usb usb1: SerialNumber: musb-hdrc.1
[    0.139187] hub 1-0:1.0: USB hub found
[    0.139214] hub 1-0:1.0: 1 port detected
[    0.139710] musb-hdrc musb-hdrc.1: USB Host mode controller at d081e800 using  PIO, IRQ 19
[    0.140048] NET: Registered protocol family 2
[    0.140250] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.140628] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.140786] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    0.140880] TCP: Hash tables configured (established 8192 bind 8192)
[    0.140893] TCP reno registered
[    0.140906] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.140929] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.141139] NET: Registered protocol family 1
[    0.141409] RPC: Registered named UNIX socket transport module.
[    0.141424] RPC: Registered udp transport module.
[    0.141433] RPC: Registered tcp transport module.
[    0.141442] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.141704] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.267474] ashmem: initialized
[    0.267749] VFS: Disk quotas dquot_6.5.2
[    0.267806] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.268687] msgmni has been set to 491
[    0.269716] io scheduler noop registered
[    0.269729] io scheduler deadline registered
[    0.269802] io scheduler cfq registered (default)
[    0.270377] Could not set LED4 to fully on
[    0.271523] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[    0.271837] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[    0.876145] console [ttyO1] enabled
[    0.880145] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[    0.887761] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[    0.895415] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[    0.903050] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[    0.916539] brd: module loaded
[    0.923033] loop: module loaded
[    0.926479] i2c-core: driver [tsl2550] using legacy suspend method
[    0.932986] i2c-core: driver [tsl2550] using legacy resume method
[    0.939414] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[    0.999299] No daughter card found on AM335x EVM
[    1.004154] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[    1.019342] Board name: A335BONE
[    1.022703] Board version: 00A3
[    1.025971] The board is a AM335x Beaglebone.
[    1.031179] tps65217 1-0024: TPS65217 ID 0x7 version 1.0
[    1.038526] print_constraints: DCDC1: 900 <--> 1800 mV at 1800 mV
[    1.046841] print_constraints: DCDC2: 900 <--> 3300 mV at 1275 mV
[    1.055153] print_constraints: DCDC3: 900 <--> 1500 mV at 1100 mV
[    1.063406] print_constraints: LDO1: 1000 <--> 3300 mV at 1800 mV
[    1.071676] print_constraints: LDO2: 900 <--> 3300 mV at 3300 mV
[    1.079839] print_constraints: LDO3: 1800 <--> 3300 mV at 3300 mV
[    1.088095] print_constraints: LDO4: 1800 <--> 3300 mV at 3300 mV
[    1.095036]  da8xx_lcdc.0: alias fck already exists
[    1.100386] da8xx_lcdc da8xx_lcdc.0: GLCD: Found TFC_S9700RTWV35TR_01B panel
[    1.120476] omap-gpmc omap-gpmc: GPMC revision 6.0
[    1.125482] Registering NAND on CS0
[    1.129600]  omap_hsmmc.0: alias fck already exists
[    1.134848]  omap_i2c.2: alias fck already exists
[    1.159352] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
[    1.165554] tsl2550 2-0039: standard operating mode
[    1.170826] tsl2550: probe of 2-0039 failed with error -121
[    1.176889]  davinci-mcasp.0: alias fck already exists
[    1.183044] _regulator_get: 2-0018 supply Vdd not found, using dummy regulator
[    1.190689] _regulator_get: 2-0018 supply Vdd_IO not found, using dummy regulator
[    1.218965] lis3lv02d: unknown sensor type 0x87
[    1.223795] lis3lv02d_i2c: probe of 2-0018 failed with error -22
[    1.230947] mtdoops: mtd device (mtddev=name/number) must be supplied
[    1.237931] omap2-nand driver initializing
[    1.242616] NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
[    1.252073] Creating 8 MTD partitions on "omap2-nand.0":
[    1.257622] 0x000000000000-0x000000020000 : "SPL"
[    1.263612] 0x000000020000-0x000000040000 : "SPL.backup1"
[    1.270195] 0x000000040000-0x000000060000 : "SPL.backup2"
[    1.276648] 0x000000060000-0x000000080000 : "SPL.backup3"
[    1.283100] 0x000000080000-0x000000260000 : "U-Boot"
[    1.289840] 0x000000260000-0x000000280000 : "U-Boot Env"
[    1.296214] 0x000000280000-0x000000780000 : "Kernel"
[    1.304288] 0x000000780000-0x000010000000 : "File System"
[    1.414509] OneNAND driver initializing
[    1.418922] UBI: attaching mtd7 to ubi0
[    1.422973] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    1.429521] UBI: logical eraseblock size:    126976 bytes
[    1.435144] UBI: smallest flash I/O unit:    2048
[    1.440051] UBI: sub-page size:              512
[    1.444862] UBI: VID header offset:          2048 (aligned 2048)
[    1.451128] UBI: data offset:                4096
[    3.277850] UBI: max. sequence number:       2
[    3.296534] UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 13, need 19
[    3.308528] UBI: attached mtd7 to ubi0
[    3.312484] UBI: MTD device name:            "File System"
[    3.318197] UBI: MTD device size:            248 MiB
[    3.323378] UBI: number of good PEBs:        1980
[    3.328278] UBI: number of bad PEBs:         8
[    3.332914] UBI: number of corrupted PEBs:   0
[    3.337539] UBI: max. allowed volumes:       128
[    3.342356] UBI: wear-leveling threshold:    4096
[    3.347256] UBI: number of internal volumes: 1
[    3.351891] UBI: number of user volumes:     1
[    3.356516] UBI: available PEBs:             0
[    3.361154] UBI: total number of reserved PEBs: 1980
[    3.366322] UBI: number of PEBs reserved for bad PEB handling: 13
[    3.372679] UBI: max/mean erase counter: 1/0
[    3.377126] UBI: image sequence number:  1080923749
[    3.382471] CAN device driver interface
[    3.386465] CAN bus driver for Bosch D_CAN controller 1.0
[    3.392652] UBI: background thread "ubi_bgt0d" started, PID 49
[    3.439307] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[    3.445755] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
[    3.469481] davinci_mdio.0: probed
[    3.473033] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver SMSC LAN8710/LAN8720
[    3.481625] PPP generic driver version 2.4.2
[    3.486257] PPP BSD Compression module registered
[    3.491183] PPP Deflate Compression module registered
[    3.496568] usbcore: registered new interface driver cdc_ether
[    3.502720] usbcore: registered new interface driver cdc_eem
[    3.508683] usbcore: registered new interface driver dm9601
[    3.514560] usbcore: registered new interface driver cdc_subset
[    3.520789] cdc_ncm: 04-Aug-2011
[    3.524209] usbcore: registered new interface driver cdc_ncm
[    3.530207] usbcore: registered new interface driver cdc_acm
[    3.536101] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    3.544459] Initializing USB Mass Storage driver...
[    3.549673] usbcore: registered new interface driver usb-storage
[    3.555934] USB Mass Storage support registered.
[    3.560924] usbcore: registered new interface driver usbserial
[    3.567056] USB Serial support registered for generic
[    3.572404] usbcore: registered new interface driver usbserial_generic
[    3.579205] usbserial: USB Serial Driver core
[    3.583801] USB Serial support registered for GSM modem (1-port)
[    3.590226] usbcore: registered new interface driver option
[    3.596031] option: v0.7.2:USB Driver for GSM modems
[    3.602515] UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB1483:0, written 0 bytes
[    3.612083] UBI error: erase_worker: failed to erase PEB 1483, error -5
[    3.618976] UBI: mark PEB 1483 as bad
[    3.623408] UBI: 12 PEBs left in the reserve
[    3.739317]  gadget: Mass Storage Function, version: 2009/09/11
[    3.745492]  gadget: Number of LUNs=1
[    3.749323]  lun0: LUN: removable file: (no medium)
[    3.754650]  gadget: android_usb ready
[    3.758600] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[    3.764201] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
[    3.772036] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    3.779112] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber= 1
[    3.786658] usb usb2: Product: MUSB HDRC host driver
[    3.791840] usb usb2: Manufacturer: Linux 3.2.0-gb02ab39-dirty musb-hcd
[    3.798732] usb usb2: SerialNumber: musb-hdrc.0
[    3.803943] hub 2-0:1.0: USB hub found
[    3.807863] hub 2-0:1.0: 1 port detected
[    3.812584] mousedev: PS/2 mouse device common for all mice
[    3.818960] input: matrix-keypad as /devices/platform/matrix-keypad/input/input0
[    3.840037] input: ti-tsc-adcc as /devices/platform/omap/tsc/input/input1
[    3.848668] using rtc device, ds1302, for alarms
[    3.853402] rtc-ds1302 rtc-ds1302: rtc core: registered ds1302 as rtc0
[    3.860558] i2c /dev entries driver
[    3.864522] Linux video capture interface: v2.00
[    3.869507] usbcore: registered new interface driver uvcvideo
[    3.875492] USB Video Class driver (1.1.1)
[    3.879959] UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB1631:0, written 0 bytes
[    3.889517] UBI error: erase_worker: failed to erase PEB 1631, error -5
[    3.896413] UBI: mark PEB 1631 as bad
[    3.900409] lm75: probe of 2-0048 failed with error -121
[    3.906319] UBI: 11 PEBs left in the reserve
[    4.139979] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    4.146505] device-mapper: uevent: version 1.0.3
[    4.151539] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
[    4.160363] Bluetooth: HCI UART driver ver 2.2
[    4.164994] Bluetooth: HCI H4 protocol initialized
[    4.169995] Bluetooth: HCILL protocol initialized
[    4.174897] Bluetooth: Bluetooth Driver for TI WiLink - Version 1.0
[    4.181790] UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB1903:0, written 0 bytes
[    4.191352] UBI error: erase_worker: failed to erase PEB 1903, error -5
[    4.198246] UBI: mark PEB 1903 as bad
[    4.202625] UBI: 10 PEBs left in the reserve
[    4.230153] cpuidle: using governor ladder
[    4.234566] cpuidle: using governor menu
[    4.240697] usbcore: registered new interface driver usbhid
[    4.246512] usbhid: USB HID core driver
[    4.259989] logger: created 256K log 'log_main'
[    4.264821] logger: created 256K log 'log_events'
[    4.269860] logger: created 256K log 'log_radio'
[    4.274772] logger: created 256K log 'log_system'
[    4.280202] usbcore: registered new interface driver snd-usb-audio
[    4.287726] _regulator_get: 2-001b supply IOVDD not found, using dummy regulator
[    4.295547] _regulator_get: 2-001b supply DVDD not found, using dummy regulator
[    4.303227] _regulator_get: 2-001b supply AVDD not found, using dummy regulator
[    4.310910] _regulator_get: 2-001b supply DRVDD not found, using dummy regulator
[    4.321083] UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB1941:0, written 0 bytes
[    4.330655] UBI error: erase_worker: failed to erase PEB 1941, error -5
[    4.337554] UBI: mark PEB 1941 as bad
[    4.342449] asoc: tlv320aic3x-hifi <-> davinci-mcasp.0 mapping ok
[    4.349658] ALSA device list:
[    4.352762]   #0: AM335X EVM
[    4.355759] oprofile: hardware counters not available
[    4.361039] oprofile: using timer interrupt.
[    4.365676] nf_conntrack version 0.5.0 (3930 buckets, 15720 max)
[    4.372402] ip_tables: (C) 2000-2006 Netfilter Core Team
[    4.378100] TCP cubic registered
[    4.381653] NET: Registered protocol family 10
[    4.386998] IPv6 over IPv4 tunneling driver
[    4.392014] NET: Registered protocol family 17
[    4.396670] can: controller area network core (rev 20090105 abi 8)
[    4.403264] NET: Registered protocol family 29
[    4.407896] can: raw protocol (rev 20090105)
[    4.412361] can: broadcast manager protocol (rev 20090105 t)
[    4.419455] UBI error: ubi_io_mark_bad: cannot mark PEB 1941 bad, error -5
[    4.426637] UBI warning: ubi_ro_mode: switch to read-only mode
[    4.432731] UBI error: do_work: work failed with error code -5
[    4.438810] UBI error: ubi_thread: ubi_bgt0d: work failed with error code -5
[    4.448249] Bluetooth: RFCOMM TTY layer initialized
[    4.453368] Bluetooth: RFCOMM socket layer initialized
[    4.458719] Bluetooth: RFCOMM ver 1.11
[    4.462638] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    4.468173] Bluetooth: BNEP filters: protocol multicast
[    4.473627] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    4.479961] Registering the dns_resolver key type
[    4.484937] VFP support v0.3: implementor 41 architecture 3 part 30 variant crev 3
[    4.492952] ThumbEE CPU extension supported.
[    4.497463] mux: Failed to setup hwmod io irq -22
[    4.503076] Power Management for AM33XX family
[    4.507907] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[    4.514590] Copied the M3 firmware to UMEM
[    4.518873] omap_hwmod: wkup_m3: wkup_m3: hwmod data error: OMAP4 does not support st_shift
[    4.532661] clock: disabling unused clocks to save power
[    4.539802] Detected MACID=40:5f:c2:76:89:d4
[    4.545769] rtc-ds1302 rtc-ds1302: setting system clock to 2012-07-22 18:13:48 UTC (1342980828)
[    4.555634] UBIFS: read-only UBI device
[    4.559687] UBIFS error (pid 1): mount_ubifs: cannot mount read-write - read-only media
[    4.568357] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
[    4.575767] Please append a correct "root=" boot option; here are the available partitions:
[    4.584525] 1f00             128 mtdblock0  (driver?)
[    4.589810] 1f01             128 mtdblock1  (driver?)
[    4.595083] 1f02             128 mtdblock2  (driver?)
[    4.600362] 1f03             128 mtdblock3  (driver?)
[    4.605632] 1f04            1920 mtdblock4  (driver?)
[    4.610915] 1f05             128 mtdblock5  (driver?)
[    4.616183] 1f06            5120 mtdblock6  (driver?)
[    4.621463] 1f07          254464 mtdblock7  (driver?)
[    4.626730] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    4.635352] Backtrace:
[    4.637940] [<c001803c>] (dump_backtrace+0x0/0x10c) from [<c04d57f0>] (dump_stack+0x18/0x1c)
[    4.646747]  r7:c068d0a0 r6:00008000 r5:c06f5290 r4:c06f5290
[    4.652680] [<c04d57d8>] (dump_stack+0x0/0x1c) from [<c04d5858>] (panic+0x64/0x198)
[    4.660691] [<c04d57f4>] (panic+0x0/0x198) from [<c0660d80>] (mount_block_root+0x174/0x228)
[    4.669404]  r3:00000000 r2:00000000 r1:cf81df78 r0:c05c3778
[    4.675325] [<c0660c0c>] (mount_block_root+0x0/0x228) from [<c0660f94>] (prep                                                                                                                     are_namespace+0x94/0x1c0)
[    4.685046] [<c0660f00>] (prepare_namespace+0x0/0x1c0) from [<c06602f8>] (kernel_init+0xf0/0x124)
[    4.694304]  r5:c069aed0 r4:c06f4280
[    4.698052] [<c0660208>] (kernel_init+0x0/0x124) from [<c0040854>] (do_exit+0x0/0x6ac)
[    4.706311]  r5:c0660208 r4:00000000

  • Logs below are from another board with same failure:

    Starting kernel ...

    [    0.000000] Linux version 3.2.0-gb02ab39-dirty (root@NX-W-3) (gcc version 4.4.3 (GCC) ) #21 Fri Jul 20 17:08:10 CST 2012
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine: am335xevm
    [    0.000000] Memory policy: ECC disabled, Data cache writeback
    [    0.000000] AM335X ES1.0 (sgx neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
    [    0.000000] Kernel command line: console=ttyO1,115200n8 androidboot.console=ttyO1 mem=256M root=ubi0:rootfs rootfstype=ubifs ubi.mtd=7,2048 rw rootwait init=                                                                                                                     /init ip=off
    [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.000000] Memory: 256MB = 256MB total
    [    0.000000] Memory: 251520k/251520k available, 10624k 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]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0660000   (6496 kB)
    [    0.000000]       .init : 0xc0660000 - 0xc069c000   ( 240 kB)
    [    0.000000]       .data : 0xc069c000 - 0xc06f4220   ( 353 kB)
    [    0.000000]        .bss : 0xc06f4244 - 0xc08239c8   (1214 kB)
    [    0.000000] NR_IRQS:396
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] Total of 128 interrupts on 1 active controller
    [    0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
    [    0.000000] omap_dm_timer_switch_src: Switching to HW default clocksource(sys_clkin_ck) for timer1, this may impact timekeeping in low power state
    [    0.000000] OMAP clocksource: GPTIMER1 at 24000000 Hz
    [    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
    [    0.000000] Console: colour dummy device 80x30
    [    0.000201] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
    [    0.057169] pid_max: default: 32768 minimum: 301
    [    0.057298] Security Framework initialized
    [    0.057363] Mount-cache hash table entries: 512
    [    0.057738] CPU: Testing write buffer coherency: ok
    [    0.077701] omap_hwmod: gfx: failed to hardreset
    [    0.093965] omap_hwmod: pruss: failed to hardreset
    [    0.094730] print_constraints: dummy:
    [    0.094951] NET: Registered protocol family 16
    [    0.096024] OMAP GPIO hardware version 0.1
    [    0.097060] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.098150] _omap_mux_get_by_name: Could not find signal gpmc_be1n.gpio1_28
    [    0.098357]  omap_i2c.1: alias fck already exists
    [    0.098864]  omap2_mcspi.1: alias fck already exists
    [    0.098967]  omap2_mcspi.2: alias fck already exists
    [    0.099114]  edma.0: alias fck already exists
    [    0.099135]  edma.0: alias fck already exists
    [    0.099153]  edma.0: alias fck already exists
    [    0.107906] bio: create slab <bio-0> at 0
    [    0.108889] SCSI subsystem initialized
    [    0.109721] usbcore: registered new interface driver usbfs
    [    0.109840] usbcore: registered new interface driver hub
    [    0.109976] usbcore: registered new device driver usb
    [    0.110102] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [    0.110246] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [    0.127239] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [    0.128036] tps65910 1-002d: could not be detected
    [    0.128374] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [    0.128925] Bluetooth: Core ver 2.16
    [    0.129003] NET: Registered protocol family 31
    [    0.129014] Bluetooth: HCI device and connection manager initialized
    [    0.129029] Bluetooth: HCI socket layer initialized
    [    0.129040] Bluetooth: L2CAP socket layer initialized
    [    0.129066] Bluetooth: SCO socket layer initialized
    [    0.129250] Switching to clocksource gp timer
    [    0.136962] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [    0.137149] musb-hdrc musb-hdrc.0: dma type: pio
    [    0.137898] musb-hdrc musb-hdrc.0: USB OTG mode controller at d081c000 using PIO, IRQ 18
    [    0.138135] musb-hdrc musb-hdrc.1: dma type: pio
    [    0.138402] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    0.138477] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [    0.138610] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.138625] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.138638] usb usb1: Product: MUSB HDRC host driver
    [    0.138649] usb usb1: Manufacturer: Linux 3.2.0-gb02ab39-dirty musb-hcd
    [    0.138660] usb usb1: SerialNumber: musb-hdrc.1
    [    0.139198] hub 1-0:1.0: USB hub found
    [    0.139225] hub 1-0:1.0: 1 port detected
    [    0.139720] musb-hdrc musb-hdrc.1: USB Host mode controller at d081e800 using PIO, IRQ 19
    [    0.140064] NET: Registered protocol family 2
    [    0.140268] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.140643] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.140803] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.140897] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.140910] TCP reno registered
    [    0.140922] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.140945] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.141154] NET: Registered protocol family 1
    [    0.141424] RPC: Registered named UNIX socket transport module.
    [    0.141437] RPC: Registered udp transport module.
    [    0.141446] RPC: Registered tcp transport module.
    [    0.141455] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.141719] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.267564] ashmem: initialized
    [    0.267843] VFS: Disk quotas dquot_6.5.2
    [    0.267898] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.268767] msgmni has been set to 491
    [    0.269785] io scheduler noop registered
    [    0.269799] io scheduler deadline registered
    [    0.269874] io scheduler cfq registered (default)
    [    0.270450] Could not set LED4 to fully on
    [    0.271591] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [    0.271912] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [    0.876398] console [ttyO1] enabled
    [    0.880402] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [    0.888018] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [    0.895674] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [    0.903314] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [    0.916789] brd: module loaded
    [    0.923269] loop: module loaded
    [    0.926721] i2c-core: driver [tsl2550] using legacy suspend method
    [    0.933232] i2c-core: driver [tsl2550] using legacy resume method
    [    0.939659] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    0.999296] No daughter card found on AM335x EVM
    [    1.004151] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    1.019338] Board name: A335BONE
    [    1.022699] Board version: 00A3
    [    1.025967] The board is a AM335x Beaglebone.
    [    1.031175] tps65217 1-0024: TPS65217 ID 0x7 version 1.0
    [    1.038521] print_constraints: DCDC1: 900 <--> 1800 mV at 1800 mV
    [    1.046835] print_constraints: DCDC2: 900 <--> 3300 mV at 1275 mV
    [    1.055143] print_constraints: DCDC3: 900 <--> 1500 mV at 1100 mV
    [    1.063400] print_constraints: LDO1: 1000 <--> 3300 mV at 1800 mV
    [    1.071675] print_constraints: LDO2: 900 <--> 3300 mV at 3300 mV
    [    1.079831] print_constraints: LDO3: 1800 <--> 3300 mV at 3300 mV
    [    1.088086] print_constraints: LDO4: 1800 <--> 3300 mV at 3300 mV
    [    1.095026]  da8xx_lcdc.0: alias fck already exists
    [    1.100386] da8xx_lcdc da8xx_lcdc.0: GLCD: Found TFC_S9700RTWV35TR_01B panel
    [    1.120466] omap-gpmc omap-gpmc: GPMC revision 6.0
    [    1.125472] Registering NAND on CS0
    [    1.129576]  omap_hsmmc.0: alias fck already exists
    [    1.134820]  omap_i2c.2: alias fck already exists
    [    1.159345] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
    [    1.165539] tsl2550 2-0039: standard operating mode
    [    1.170811] tsl2550: probe of 2-0039 failed with error -121
    [    1.176870]  davinci-mcasp.0: alias fck already exists
    [    1.183023] _regulator_get: 2-0018 supply Vdd not found, using dummy regulator
    [    1.190674] _regulator_get: 2-0018 supply Vdd_IO not found, using dummy regulator
    [    1.218946] lis3lv02d: unknown sensor type 0x87
    [    1.223772] lis3lv02d_i2c: probe of 2-0018 failed with error -22
    [    1.230919] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.237912] omap2-nand driver initializing
    [    1.242605] NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
    [    1.252061] Creating 8 MTD partitions on "omap2-nand.0":
    [    1.257611] 0x000000000000-0x000000020000 : "SPL"
    [    1.263598] 0x000000020000-0x000000040000 : "SPL.backup1"
    [    1.270179] 0x000000040000-0x000000060000 : "SPL.backup2"
    [    1.276637] 0x000000060000-0x000000080000 : "SPL.backup3"
    [    1.283085] 0x000000080000-0x000000260000 : "U-Boot"
    [    1.289818] 0x000000260000-0x000000280000 : "U-Boot Env"
    [    1.296181] 0x000000280000-0x000000780000 : "Kernel"
    [    1.304264] 0x000000780000-0x000010000000 : "File System"
    [    1.414487] OneNAND driver initializing
    [    1.418891] UBI: attaching mtd7 to ubi0
    [    1.422942] UBI: physical eraseblock size:   131072 bytes (128 KiB)
    [    1.429490] UBI: logical eraseblock size:    126976 bytes
    [    1.435113] UBI: smallest flash I/O unit:    2048
    [    1.440020] UBI: sub-page size:              512
    [    1.444831] UBI: VID header offset:          2048 (aligned 2048)
    [    1.451097] UBI: data offset:                4096
    [    2.451529] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 931:0, read 64 bytes
    [    2.465619] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 931:2048, read 512 bytes
    [    3.599733] UBI: max. sequence number:       2
    [    3.618289] UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 18, need 19
    [    3.630326] UBI: attached mtd7 to ubi0
    [    3.634238] UBI: MTD device name:            "File System"
    [    3.639998] UBI: MTD device size:            248 MiB
    [    3.645168] UBI: number of good PEBs:        1986
    [    3.650078] UBI: number of bad PEBs:         2
    [    3.654707] UBI: number of corrupted PEBs:   0
    [    3.659343] UBI: max. allowed volumes:       128
    [    3.664150] UBI: wear-leveling threshold:    4096
    [    3.669049] UBI: number of internal volumes: 1
    [    3.673684] UBI: number of user volumes:     1
    [    3.678310] UBI: available PEBs:             0
    [    3.682945] UBI: total number of reserved PEBs: 1986
    [    3.688117] UBI: number of PEBs reserved for bad PEB handling: 18
    [    3.694473] UBI: max/mean erase counter: 1/0
    [    3.698918] UBI: image sequence number:  1080923749
    [    3.704271] CAN device driver interface
    [    3.708265] CAN bus driver for Bosch D_CAN controller 1.0
    [    3.714474] UBI: background thread "ubi_bgt0d" started, PID 49
    [    3.759306] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [    3.765747] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
    [    3.789846] davinci_mdio.0: probed
    [    3.793401] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver SMSC LAN8710/LAN8720
    [    3.801992] PPP generic driver version 2.4.2
    [    3.806625] PPP BSD Compression module registered
    [    3.811546] PPP Deflate Compression module registered
    [    3.816934] usbcore: registered new interface driver cdc_ether
    [    3.823091] usbcore: registered new interface driver cdc_eem
    [    3.829045] usbcore: registered new interface driver dm9601
    [    3.834926] usbcore: registered new interface driver cdc_subset
    [    3.841155] cdc_ncm: 04-Aug-2011
    [    3.844574] usbcore: registered new interface driver cdc_ncm
    [    3.850571] usbcore: registered new interface driver cdc_acm
    [    3.856466] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    [    3.864821] Initializing USB Mass Storage driver...
    [    3.870033] usbcore: registered new interface driver usb-storage
    [    3.876290] USB Mass Storage support registered.
    [    3.881281] usbcore: registered new interface driver usbserial
    [    3.887414] USB Serial support registered for generic
    [    3.892762] usbcore: registered new interface driver usbserial_generic
    [    3.899583] usbserial: USB Serial Driver core
    [    3.904165] USB Serial support registered for GSM modem (1-port)
    [    3.910586] usbcore: registered new interface driver option
    [    3.916395] option: v0.7.2:USB Driver for GSM modems
    [    3.922882] UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB1926:0, written 0 bytes
    [    3.932452] UBI error: erase_worker: failed to erase PEB 1926, error -5
    [    3.939357] UBI: mark PEB 1926 as bad
    [    3.943733] UBI: 17 PEBs left in the reserve
    [    4.059312]  gadget: Mass Storage Function, version: 2009/09/11
    [    4.065486]  gadget: Number of LUNs=1
    [    4.069316]  lun0: LUN: removable file: (no medium)
    [    4.074636]  gadget: android_usb ready
    [    4.078593] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [    4.084193] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
    [    4.092026] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [    4.099103] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    4.106647] usb usb2: Product: MUSB HDRC host driver
    [    4.111833] usb usb2: Manufacturer: Linux 3.2.0-gb02ab39-dirty musb-hcd
    [    4.118724] usb usb2: SerialNumber: musb-hdrc.0
    [    4.123934] hub 2-0:1.0: USB hub found
    [    4.127855] hub 2-0:1.0: 1 port detected
    [    4.132585] mousedev: PS/2 mouse device common for all mice
    [    4.138969] input: matrix-keypad as /devices/platform/matrix-keypad/input/input0
    [    4.159913] input: ti-tsc-adcc as /devices/platform/omap/tsc/input/input1
    [    4.167789] rtc-ds1302 rtc-ds1302: Failed to probe
    [    4.172807] i2c /dev entries driver
    [    4.176941] Linux video capture interface: v2.00
    [    4.181928] usbcore: registered new interface driver uvcvideo
    [    4.187915] USB Video Class driver (1.1.1)
    [    4.192381] UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB1851:0, written 0 bytes
    [    4.201935] UBI error: erase_worker: failed to erase PEB 1851, error -5
    [    4.208831] UBI: mark PEB 1851 as bad
    [    4.212822] lm75: probe of 2-0048 failed with error -121
    [    4.218723] UBI: 16 PEBs left in the reserve
    [    4.449966] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    4.456484] device-mapper: uevent: version 1.0.3
    [    4.461509] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
    [    4.470335] Bluetooth: HCI UART driver ver 2.2
    [    4.474966] Bluetooth: HCI H4 protocol initialized
    [    4.479968] Bluetooth: HCILL protocol initialized
    [    4.484871] Bluetooth: Bluetooth Driver for TI WiLink - Version 1.0
    [    4.539803] cpuidle: using governor ladder
    [    4.544219] cpuidle: using governor menu
    [    4.550331] usbcore: registered new interface driver usbhid
    [    4.556144] usbhid: USB HID core driver
    [    4.569645] logger: created 256K log 'log_main'
    [    4.574470] logger: created 256K log 'log_events'
    [    4.579509] logger: created 256K log 'log_radio'
    [    4.584424] logger: created 256K log 'log_system'
    [    4.589843] usbcore: registered new interface driver snd-usb-audio
    [    4.597359] _regulator_get: 2-001b supply IOVDD not found, using dummy regulator
    [    4.605184] _regulator_get: 2-001b supply DVDD not found, using dummy regulator
    [    4.612872] _regulator_get: 2-001b supply AVDD not found, using dummy regulator
    [    4.620557] _regulator_get: 2-001b supply DRVDD not found, using dummy regulator
    [    4.630745] UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB1679:0, written 0 bytes
    [    4.640317] UBI error: erase_worker: failed to erase PEB 1679, error -5
    [    4.647216] UBI: mark PEB 1679 as bad
    [    4.652097] asoc: tlv320aic3x-hifi <-> davinci-mcasp.0 mapping ok
    [    4.659359] ALSA device list:
    [    4.662459]   #0: AM335X EVM
    [    4.665456] oprofile: hardware counters not available
    [    4.670730] oprofile: using timer interrupt.
    [    4.675367] nf_conntrack version 0.5.0 (3930 buckets, 15720 max)
    [    4.682081] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    4.687793] TCP cubic registered
    [    4.691354] NET: Registered protocol family 10
    [    4.696708] IPv6 over IPv4 tunneling driver
    [    4.701717] NET: Registered protocol family 17
    [    4.706370] can: controller area network core (rev 20090105 abi 8)
    [    4.712974] NET: Registered protocol family 29
    [    4.717606] can: raw protocol (rev 20090105)
    [    4.722077] can: broadcast manager protocol (rev 20090105 t)
    [    4.729151] UBI error: ubi_io_mark_bad: cannot mark PEB 1679 bad, error -5
    [    4.736354] UBI warning: ubi_ro_mode: switch to read-only mode
    [    4.742447] UBI error: do_work: work failed with error code -5
    [    4.748525] UBI error: ubi_thread: ubi_bgt0d: work failed with error code -5
    [    4.757960] Bluetooth: RFCOMM TTY layer initialized
    [    4.763076] Bluetooth: RFCOMM socket layer initialized
    [    4.768428] Bluetooth: RFCOMM ver 1.11
    [    4.772347] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [    4.777883] Bluetooth: BNEP filters: protocol multicast
    [    4.783338] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    [    4.789662] Registering the dns_resolver key type
    [    4.794632] VFP support v0.3: implementor 41 architecture 3 part 30 variant crev 3
    [    4.802648] ThumbEE CPU extension supported.
    [    4.807160] mux: Failed to setup hwmod io irq -22
    [    4.812774] Power Management for AM33XX family
    [    4.817609] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [    4.824288] Copied the M3 firmware to UMEM
    [    4.828572] omap_hwmod: wkup_m3: wkup_m3: hwmod data error: OMAP4 does not support st_shift
    [    4.842392] clock: disabling unused clocks to save power
    [    4.849516] Detected MACID=40:5f:c2:76:89:d4
    [    4.855038] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
    [    4.862370] UBIFS: read-only UBI device
    [    4.866380] UBIFS error (pid 1): mount_ubifs: cannot mount read-write - read-only media
    [    4.875095] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
    [    4.882508] Please append a correct "root=" boot option; here are the available partitions:
    [    4.891269] 1f00             128 mtdblock0  (driver?)
    [    4.896540] 1f01             128 mtdblock1  (driver?)
    [    4.901823] 1f02             128 mtdblock2  (driver?)
    [    4.907096] 1f03             128 mtdblock3  (driver?)
    [    4.912377] 1f04            1920 mtdblock4  (driver?)
    [    4.917646] 1f05             128 mtdblock5  (driver?)
    [    4.922929] 1f06            5120 mtdblock6  (driver?)
    [    4.928198] 1f07          254464 mtdblock7  (driver?)
    [    4.933476] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
    [    4.942099] Backtrace:
    [    4.944689] [<c001803c>] (dump_backtrace+0x0/0x10c) from [<c04d57f0>] (dump_stack+0x18/0x1c)
    [    4.953496]  r7:c068d0a0 r6:00008000 r5:c06f5290 r4:c06f5290
    [    4.959430] [<c04d57d8>] (dump_stack+0x0/0x1c) from [<c04d5858>] (panic+0x64/0x198)
    [    4.967424] [<c04d57f4>] (panic+0x0/0x198) from [<c0660d80>] (mount_block_root+0x174/0x228)
    [    4.976138]  r3:00000000 r2:00000000 r1:cf81df78 r0:c05c3778
    [    4.982070] [<c0660c0c>] (mount_block_root+0x0/0x228) from [<c0660f94>] (prep                                                                                                                     are_namespace+0x94/0x1c0)
    [    4.991791] [<c0660f00>] (prepare_namespace+0x0/0x1c0) from [<c06602f8>] (kernel_init+0xf0/0x124)
    [    5.001049]  r5:c069aed0 r4:c06f4280
    [    5.004797] [<c0660208>] (kernel_init+0x0/0x124) from [<c0040854>] (do_exit+0x0/0x6ac)
    [    5.013057]  r5:c0660208 r4:00000000

  • Weidong,

    Can you try using hamming code for ECC? There are some issues with BCH8 algorithm. 

  • Renjith,

    Thanks for suggestions.

    Could you tell why I can boot the board up successfully with the same MLO and u-boot in nand flash? Shouldn't MLO and u-boot use same BCH8 algorithm? The failure only happend during mount of UBIFS.

    Weidong

    [    1.230926] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.237911] omap2-nand driver initializing
    [    1.242598] NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
    [    1.252053] Creating 8 MTD partitions on "omap2-nand.0":
    [    1.257602] 0x000000000000-0x000000020000 : "SPL"
    [    1.263594] 0x000000020000-0x000000040000 : "SPL.backup1"
    [    1.270179] 0x000000040000-0x000000060000 : "SPL.backup2"
    [    1.276631] 0x000000060000-0x000000080000 : "SPL.backup3"
    [    1.283095] 0x000000080000-0x000000260000 : "U-Boot"
    [    1.289826] 0x000000260000-0x000000280000 : "U-Boot Env"
    [    1.296187] 0x000000280000-0x000000780000 : "Kernel"
    [    1.304270] 0x000000780000-0x000010000000 : "File System"
    [    1.414480] OneNAND driver initializing
    [    1.418896] UBI: attaching mtd7 to ubi0
    [    1.422946] UBI: physical eraseblock size:   131072 bytes (128 KiB)
    [    1.429494] UBI: logical eraseblock size:    126976 bytes
    [    1.435116] UBI: smallest flash I/O unit:    2048
    [    1.440023] UBI: sub-page size:              512
    [    1.444835] UBI: VID header offset:          2048 (aligned 2048)
    [    1.451100] UBI: data offset:                4096
    [    3.560373] UBI: max. sequence number:       506
    [    3.579432] UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 6, need 19
    [    3.591258] UBI: attached mtd7 to ubi0
    [    3.595167] UBI: MTD device name:            "File System"
    [    3.600923] UBI: MTD device size:            248 MiB
    [    3.606097] UBI: number of good PEBs:        1973
    [    3.611006] UBI: number of bad PEBs:         15
    [    3.615722] UBI: number of corrupted PEBs:   0
    [    3.620360] UBI: max. allowed volumes:       128
    [    3.625166] UBI: wear-leveling threshold:    4096
    [    3.630072] UBI: number of internal volumes: 1
    [    3.634697] UBI: number of user volumes:     1
    [    3.639334] UBI: available PEBs:             0
    [    3.643959] UBI: total number of reserved PEBs: 1973
    [    3.649128] UBI: number of PEBs reserved for bad PEB handling: 6
    [    3.655395] UBI: max/mean erase counter: 2/0
    [    3.659850] UBI: image sequence number:  1080923749
    [    3.665187] CAN device driver interface
    [    3.669185] CAN bus driver for Bosch D_CAN controller 1.0
    [    3.675357] UBI: background thread "ubi_bgt0d" started, PID 49
    [    3.719310] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [    3.725755] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
    [    3.733052] davinci_mdio.0: probed
    [    3.736613] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver SMSC LAN8710/LAN8720
    [    3.745210] PPP generic driver version 2.4.2
    [    3.749858] PPP BSD Compression module registered
    [    3.754772] PPP Deflate Compression module registered
    [    3.760173] usbcore: registered new interface driver cdc_ether
    [    3.766308] usbcore: registered new interface driver cdc_eem
    [    3.772285] usbcore: registered new interface driver dm9601
    [    3.778141] usbcore: registered new interface driver cdc_subset
    [    3.784373] cdc_ncm: 04-Aug-2011
    [    3.787791] usbcore: registered new interface driver cdc_ncm
    [    3.793791] usbcore: registered new interface driver cdc_acm
    [    3.799704] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    [    3.808042] Initializing USB Mass Storage driver...
    [    3.813250] usbcore: registered new interface driver usb-storage
    [    3.819526] USB Mass Storage support registered.
    [    3.824503] usbcore: registered new interface driver usbserial
    [    3.830656] USB Serial support registered for generic
    [    3.835984] usbcore: registered new interface driver usbserial_generic
    [    3.842799] usbserial: USB Serial Driver core
    [    3.847382] USB Serial support registered for GSM modem (1-port)
    [    3.853801] usbcore: registered new interface driver option
    [    3.859620] option: v0.7.2:USB Driver for GSM modems
    [    3.866605]  gadget: Mass Storage Function, version: 2009/09/11
    [    3.872819]  gadget: Number of LUNs=1
    [    3.876635]  lun0: LUN: removable file: (no medium)
    [    3.881968]  gadget: android_usb ready
    [    3.885915] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [    3.891519] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
    [    3.899366] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [    3.906444] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    3.913989] usb usb2: Product: MUSB HDRC host driver
    [    3.919161] usb usb2: Manufacturer: Linux 3.2.0-gb02ab39-dirty musb-hcd
    [    3.926062] usb usb2: SerialNumber: musb-hdrc.0
    [    3.931277] hub 2-0:1.0: USB hub found
    [    3.935197] hub 2-0:1.0: 1 port detected
    [    3.939914] mousedev: PS/2 mouse device common for all mice
    [    3.946280] input: matrix-keypad as /devices/platform/matrix-keypad/input/input0
    [    3.955022] input: ti-tsc-adcc as /devices/platform/omap/tsc/input/input1
    [    3.962943] rtc-ds1302 rtc-ds1302: Failed to probe
    [    3.967913] i2c /dev entries driver
    [    3.972096] Linux video capture interface: v2.00
    [    3.977040] usbcore: registered new interface driver uvcvideo
    [    3.983054] USB Video Class driver (1.1.1)
    [    3.987589] lm75: probe of 2-0048 failed with error -121
    [    3.995769] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    4.002317] device-mapper: uevent: version 1.0.3
    [    4.007303] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
    [    4.016134] Bluetooth: HCI UART driver ver 2.2
    [    4.020777] Bluetooth: HCI H4 protocol initialized
    [    4.025767] Bluetooth: HCILL protocol initialized
    [    4.030679] Bluetooth: Bluetooth Driver for TI WiLink - Version 1.0
    [    4.038195] cpuidle: using governor ladder
    [    4.042649] cpuidle: using governor menu
    [    4.048806] usbcore: registered new interface driver usbhid
    [    4.054663] usbhid: USB HID core driver
    [    4.059118] logger: created 256K log 'log_main'
    [    4.063981] logger: created 256K log 'log_events'
    [    4.068988] logger: created 256K log 'log_radio'
    [    4.073926] logger: created 256K log 'log_system'
    [    4.079358] usbcore: registered new interface driver snd-usb-audio
    [    4.086880] _regulator_get: 2-001b supply IOVDD not found, using dummy regulator
    [    4.094703] _regulator_get: 2-001b supply DVDD not found, using dummy regulator
    [    4.102386] _regulator_get: 2-001b supply AVDD not found, using dummy regulator
    [    4.110074] _regulator_get: 2-001b supply DRVDD not found, using dummy regulator
    [    4.120729] asoc: tlv320aic3x-hifi <-> davinci-mcasp.0 mapping ok
    [    4.127923] ALSA device list:
    [    4.131059]   #0: AM335X EVM
    [    4.134057] oprofile: hardware counters not available
    [    4.139329] oprofile: using timer interrupt.
    [    4.143971] nf_conntrack version 0.5.0 (3930 buckets, 15720 max)
    [    4.150702] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    4.156408] TCP cubic registered
    [    4.159956] NET: Registered protocol family 10
    [    4.165303] IPv6 over IPv4 tunneling driver
    [    4.170308] NET: Registered protocol family 17
    [    4.174972] can: controller area network core (rev 20090105 abi 8)
    [    4.181563] NET: Registered protocol family 29
    [    4.186194] can: raw protocol (rev 20090105)
    [    4.190663] can: broadcast manager protocol (rev 20090105 t)
    [    4.196755] Bluetooth: RFCOMM TTY layer initialized
    [    4.201877] Bluetooth: RFCOMM socket layer initialized
    [    4.207234] Bluetooth: RFCOMM ver 1.11
    [    4.211152] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [    4.216685] Bluetooth: BNEP filters: protocol multicast
    [    4.222143] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    [    4.228458] Registering the dns_resolver key type
    [    4.233456] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    4.241467] ThumbEE CPU extension supported.
    [    4.245977] mux: Failed to setup hwmod io irq -22
    [    4.251589] Power Management for AM33XX family
    [    4.256433] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [    4.263109] Copied the M3 firmware to UMEM
    [    4.267393] omap_hwmod: wkup_m3: wkup_m3: hwmod data error: OMAP4 does not support st_shift
    [    4.281273] clock: disabling unused clocks to save power
    [    4.288340] Detected MACID=40:5f:c2:76:89:d4
    [    4.293915] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
    [    4.366465] UBIFS: recovery needed
    [    4.405210] UBIFS error (pid 1): replay_log_leb: log error detected while replaying the log at LEB 3:0
    [    4.415412] List of all partitions:
    [    4.419105] 1f00             128 mtdblock0  (driver?)
    [    4.424408] 1f01             128 mtdblock1  (driver?)
    [    4.429690] 1f02             128 mtdblock2  (driver?)
    [    4.434963] 1f03             128 mtdblock3  (driver?)
    [    4.440246] 1f04            1920 mtdblock4  (driver?)
    [    4.445515] 1f05             128 mtdblock5  (driver?)
    [    4.450798] 1f06            5120 mtdblock6  (driver?)
    [    4.456066] 1f07          254464 mtdblock7  (driver?)
    [    4.461340] No filesystem could mount root, tried:  ubifs
    [    4.466981] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
    [    4.475601] Backtrace:
    [    4.478189] [<c001803c>] (dump_backtrace+0x0/0x10c) from [<c04d57f0>] (dump_stack+0x18/0x1c)
    [    4.486999]  r7:c068d0a0 r6:00008000 r5:c06f5290 r4:c06f5290
    [    4.492933] [<c04d57d8>] (dump_stack+0x0/0x1c) from [<c04d5858>] (panic+0x64/0x198)
    [    4.500941] [<c04d57f4>] (panic+0x0/0x198) from [<c0660df4>] (mount_block_root+0x1e8/0x228)
    [    4.509653]  r3:00000000 r2:cf81df78 r1:cf81df78 r0:c05c3778
    [    4.515578] [<c0660c0c>] (mount_block_root+0x0/0x228) from [<c0660f94>] (prepare_namespace+0x94/0x1c0)
    [    4.525297] [<c0660f00>] (prepare_namespace+0x0/0x1c0) from [<c06602f8>] (kernel_init+0xf0/0x124)
    [    4.534555]  r5:c069aed0 r4:c06f4280
    [    4.538302] [<c0660208>] (kernel_init+0x0/0x124) from [<c0040854>] (do_exit+0x0/0x6ac)
    [    4.546565]  r5:c0660208 r4:00000000

  • Weidong,

    I'm not sure about AM335x whether  BCH8 is used or not. Anyways, BCH8 is read using the BOOTROM's BCH implementation. There can't be issues there. Similarly, u-boot is read using X-loader's algorithm. But I haven't checked the x-loader implementation of BCH8. 

    The real problem with BCH8 algorithm is in the read routine. Write routine looks to be okay(not 100% sure). 

    Another problem when flashing from u-boot is:

    1. There are areas in ubi image where data is 0xFF. U-boot treats this as valid data and writes the ECC for this sector.

    2. While booting up the kernel UBI layer will consider it as already erased and will write the data again on the same sector. Data gets written properly, but the ECC will get corrupted.

    3. So when you do the next boot/read the ECC will not match with the data. 

    Actually this is not a bug with the u-boot, but because of this kernel will fail to read some pages. There are other issues with sub-page implementation etc. There is a lot to write.

  • Yes. I can confirm that kernel use OMAP_ECC_BCH8_CODE_HW to init nand flash inside evm_nand_init() function. And the TI boot.scr call 'nandecc hw 2' before nand write for MLO/U-boot/UBIFS images.

  • Can you try flashing the kernel using BCH8 and try booting from NAND?

  • of course I flashed the kernel under BCH8. you can find u-boot log in my first post.

  • Have you tried UBIFS using hamming code ecc algorithm? "nandecc hw 0"?

    I couldn't try this here as I dont have AM335x setup with me

  • kernel hardcode ecc algorithm in evm_nand_init(), could you tell me which one is corresponding for 'nandecc hw 0'?

    enum omap_ecc {
            /* 1-bit ecc: stored at end of spare area */
        OMAP_ECC_HAMMING_CODE_DEFAULT = 0, /* Default, s/w method */
        OMAP_ECC_HAMMING_CODE_HW, /* gpmc to detect the error */
            /* 1-bit ecc: stored at beginning of spare area as romcode */
        OMAP_ECC_HAMMING_CODE_HW_ROMCODE, /* gpmc method & romcode layout */
        OMAP_ECC_BCH4_CODE_HW, /* gpmc bch detection & s/w method correction */
        OMAP_ECC_BCH8_CODE_HW, /* gpmc bch detection & s/w method correction */
    };

  • Weidong,

    You have use the setting OMAP_ECC_HAMMING_CODE_HW_ROMCODE here. There is a hard coding to BCH8 in the file drivers/mtd/nand/omap2.c inside the function omap_nand_probe(). Comment of the line shown below.

    pdata->ecc_opt = OMAP_ECC_BCH8_CODE_HW;

  • In my version of omap_nand_probe(), pdata->ecc_opt is passed from platform data in board file.

    static int __devinit omap_nand_probe(struct platform_device *pdev)
    {
        struct omap_nand_info        *info;
        struct omap_nand_platform_data    *pdata;
        int                err;
        int                i, offset;

        pdata = pdev->dev.platform_data;
        if (pdata == NULL) {
            dev_err(&pdev->dev, "platform data missing\n");
            return -ENODEV;
        }

        info = kzalloc(sizeof(struct omap_nand_info), GFP_KERNEL);
        if (!info)
            return -ENOMEM;

        platform_set_drvdata(pdev, info);

        spin_lock_init(&info->controller.lock);
        init_waitqueue_head(&info->controller.wq);

        info->pdev = pdev;

        info->gpmc_cs        = pdata->cs;
        info->phys_base        = pdata->phys_base;

        info->mtd.priv        = &info->nand;
        info->mtd.name        = dev_name(&pdev->dev);
        info->mtd.owner        = THIS_MODULE;
        info->ecc_opt        = pdata->ecc_opt;

        info->nand.options    = pdata->devsize;
        info->nand.options    |= NAND_SKIP_BBTSCAN;

        /*
         * If ELM feature is used in OMAP NAND driver, then configure it
         */
        if (pdata->elm_used) {
            if (pdata->ecc_opt == OMAP_ECC_BCH8_CODE_HW)
                omap_configure_elm(&info->mtd, OMAP_BCH8_ECC);
        }

        if (pdata->ctrlr_suspend)
            info->ctrlr_suspend = pdata->ctrlr_suspend;
        if (pdata->ctrlr_resume)
            info->ctrlr_resume = pdata->ctrlr_resume;

        /* NAND write protect off */
        gpmc_cs_configure(info->gpmc_cs, GPMC_CONFIG_WP, 0);

        if (!request_mem_region(info->phys_base, NAND_IO_SIZE,
                    pdev->dev.driver->name)) {
            err = -EBUSY;
            goto out_free_info;
        }

        info->nand.IO_ADDR_R = ioremap(info->phys_base, NAND_IO_SIZE);
        if (!info->nand.IO_ADDR_R) {
            err = -ENOMEM;
            goto out_release_mem_region;
        }

        info->nand.controller = &info->controller;

        info->nand.IO_ADDR_W = info->nand.IO_ADDR_R;
        info->nand.cmd_ctrl  = omap_hwcontrol;

        /*
         * If RDY/BSY line is connected to OMAP then use the omap ready
         * funcrtion and the generic nand_wait function which reads the status
         * register after monitoring the RDY/BSY line.Otherwise use a standard
         * chip delay which is slightly more than tR (AC Timing) of the NAND
         * device and read status register until you get a failure or success
         */
        if (pdata->dev_ready) {
            info->nand.dev_ready = omap_dev_ready;
            info->nand.chip_delay = 0;
        } else {
            info->nand.waitfunc = omap_wait;
            info->nand.chip_delay = 50;
        }

        switch (pdata->xfer_type) {
        case NAND_OMAP_PREFETCH_POLLED:
            info->nand.read_buf   = omap_read_buf_pref;
            info->nand.write_buf  = omap_write_buf_pref;
            break;

        case NAND_OMAP_POLLED:
            if (info->nand.options & NAND_BUSWIDTH_16) {
                info->nand.read_buf   = omap_read_buf16;
                info->nand.write_buf  = omap_write_buf16;
            } else {
                info->nand.read_buf   = omap_read_buf8;
                info->nand.write_buf  = omap_write_buf8;
            }
            break;

        case NAND_OMAP_PREFETCH_DMA:
            err = omap_request_dma(OMAP24XX_DMA_GPMC, "NAND",
                    omap_nand_dma_cb, &info->comp, &info->dma_ch);
            if (err < 0) {
                info->dma_ch = -1;
                dev_err(&pdev->dev, "DMA request failed!\n");
                goto out_release_mem_region;
            } else {
                omap_set_dma_dest_burst_mode(info->dma_ch,
                        OMAP_DMA_DATA_BURST_16);
                omap_set_dma_src_burst_mode(info->dma_ch,
                        OMAP_DMA_DATA_BURST_16);

                info->nand.read_buf   = omap_read_buf_dma_pref;
                info->nand.write_buf  = omap_write_buf_dma_pref;
            }
            break;

        case NAND_OMAP_PREFETCH_IRQ:
            err = request_irq(pdata->gpmc_irq,
                    omap_nand_irq, IRQF_SHARED, "gpmc-nand", info);
            if (err) {
                dev_err(&pdev->dev, "requesting irq(%d) error:%d",
                                pdata->gpmc_irq, err);
                goto out_release_mem_region;
            } else {
                info->gpmc_irq         = pdata->gpmc_irq;
                info->nand.read_buf  = omap_read_buf_irq_pref;
                info->nand.write_buf = omap_write_buf_irq_pref;
            }
            break;

        default:
            dev_err(&pdev->dev,
                "xfer_type(%d) not supported!\n", pdata->xfer_type);
            err = -EINVAL;
            goto out_release_mem_region;
        }

        info->nand.verify_buf = omap_verify_buf;

        /* selsect the ecc type */
        if (pdata->ecc_opt == OMAP_ECC_HAMMING_CODE_DEFAULT)
            info->nand.ecc.mode = NAND_ECC_SOFT;
        else {
            if (pdata->ecc_opt == OMAP_ECC_BCH4_CODE_HW) {
                info->nand.ecc.bytes    = 4*7;
                info->nand.ecc.size     = 4*512;
            } else if (pdata->ecc_opt == OMAP_ECC_BCH8_CODE_HW) {
                info->nand.ecc.bytes     = OMAP_BCH8_ECC_SECT_BYTES;
                info->nand.ecc.size      = 512;
                info->nand.ecc.read_page = omap_read_page_bch;
            } else {
                info->nand.ecc.bytes    = 3;
                info->nand.ecc.size     = 512;
            }

            info->nand.ecc.calculate        = omap_calculate_ecc;
            info->nand.ecc.hwctl            = omap_enable_hwecc;
            info->nand.ecc.correct          = omap_correct_data;
            info->nand.ecc.mode             = NAND_ECC_HW;
        }

        /* DIP switches on some boards change between 8 and 16 bit
         * bus widths for flash.  Try the other width if the first try fails.
         */
        if (nand_scan_ident(&info->mtd, 1, NULL)) {
            info->nand.options ^= NAND_BUSWIDTH_16;
            if (nand_scan_ident(&info->mtd, 1, NULL)) {
                err = -ENXIO;
                goto out_release_mem_region;
            }
        }

        /* select ecc lyout */
        if (info->nand.ecc.mode != NAND_ECC_SOFT) {

            if (!(info->nand.options & NAND_BUSWIDTH_16))
                info->nand.badblock_pattern = &bb_descrip_flashbased;

            offset = JFFS2_CLEAN_MARKER_OFFSET;

            if (info->mtd.oobsize == 64)
                omap_oobinfo.eccbytes = info->nand.ecc.bytes *
                            2048/info->nand.ecc.size;
            else
                omap_oobinfo.eccbytes = info->nand.ecc.bytes;

            if (pdata->ecc_opt == OMAP_ECC_HAMMING_CODE_HW_ROMCODE) {
                omap_oobinfo.oobfree->offset =
                            offset + omap_oobinfo.eccbytes;
                omap_oobinfo.oobfree->length = info->mtd.oobsize -
                    (offset + omap_oobinfo.eccbytes);
            } else if (pdata->ecc_opt == OMAP_ECC_BCH8_CODE_HW) {
                offset = BCH_ECC_POS; /* Synchronize with U-boot */
                omap_oobinfo.oobfree->offset =
                    BCH_JFFS2_CLEAN_MARKER_OFFSET;
                omap_oobinfo.oobfree->length = info->mtd.oobsize -
                            offset - omap_oobinfo.eccbytes;
            } else {
                omap_oobinfo.oobfree->offset = offset;
                omap_oobinfo.oobfree->length = info->mtd.oobsize -
                            offset - omap_oobinfo.eccbytes;
                /*
                offset is calculated considering the following :
                1) 12 bytes ECC for 512 byte access and 24 bytes ECC for
                256 byte access in OOB_64 can be supported
                2)Ecc bytes lie to the end of OOB area.
                3)Ecc layout must match with u-boot's ECC layout.
                */
                offset = info->mtd.oobsize - MAX_HWECC_BYTES_OOB_64;
            }

            for (i = 0; i < omap_oobinfo.eccbytes; i++)
                omap_oobinfo.eccpos[i] = i+offset;

            info->nand.ecc.layout = &omap_oobinfo;
        }

        /* second phase scan */
        if (nand_scan_tail(&info->mtd)) {
            err = -ENXIO;
            goto out_release_mem_region;
        }

        mtd_device_parse_register(&info->mtd, NULL, 0,
                pdata->parts, pdata->nr_parts);

        platform_set_drvdata(pdev, &info->mtd);

        return 0;

    out_release_mem_region:
        release_mem_region(info->phys_base, NAND_IO_SIZE);
    out_free_info:
        kfree(info);

        return err;
    }

  • I just re-built a kernel image with option OMAP_ECC_HAMMING_CODE_HW_ROMCODE and test on my board. The result is same as before. Here are logs

    U-Boot SPL 2011.09 (Feb 13 2012 - 17:28:14)
    Texas Instruments Revision detection unimplemented


    U-Boot 2011.09 (Feb 11 2012 - 18:23:02)

    I2C:   ready
    DRAM:  256 MiB
    WARNING: Caches not enabled
    No daughter card present
    NAND:  HW ECC Hamming Code selected
    256 MiB
    MMC:   OMAP SD/MMC: 0
    Net:   cpsw
    Hit any key to stop autoboot:  0
    Booting from nand ...
    HW ECC Hamming Code selected

    NAND read: device 0 offset 0x280000, size 0x500000
     5242880 bytes read: OK
    ## Booting kernel from Legacy Image at 81000000 ...
       Image Name:   Linux-3.2.0-gb02ab39-dirty
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3575416 Bytes = 3.4 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK

    Starting kernel ...

    [    0.000000] Linux version 3.2.0-gb02ab39-dirty (root@NX-W-3) (gcc version 4.4.3 (GCC) ) #34 Tue Jul 24 17:56:41 CST 2012
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine: am335xevm
    [    0.000000] Memory policy: ECC disabled, Data cache writeback
    [    0.000000] AM335X ES1.0 (sgx neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
    [    0.000000] Kernel command line: console=ttyO1,115200n8 androidboot.console=ttyO1 mem=256M ro                                                                                                     ot=ubi0:rootfs rootfstype=ubifs ubi.mtd=7,2048 rw rootwait init=/init ip=off
    [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.000000] Memory: 256MB = 256MB total
    [    0.000000] Memory: 251520k/251520k available, 10624k 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]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0660000   (6496 kB)
    [    0.000000]       .init : 0xc0660000 - 0xc069c000   ( 240 kB)
    [    0.000000]       .data : 0xc069c000 - 0xc06f4220   ( 353 kB)
    [    0.000000]        .bss : 0xc06f4244 - 0xc08239c8   (1214 kB)
    [    0.000000] NR_IRQS:396
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] Total of 128 interrupts on 1 active controller
    [    0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
    [    0.000000] omap_dm_timer_switch_src: Switching to HW default clocksource(sys_clkin_ck) for timer1, this may impact timekeeping in low power state
    [    0.000000] OMAP clocksource: GPTIMER1 at 24000000 Hz
    [    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
    [    0.000000] Console: colour dummy device 80x30
    [    0.000194] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
    [    0.057167] pid_max: default: 32768 minimum: 301
    [    0.057298] Security Framework initialized
    [    0.057362] Mount-cache hash table entries: 512

    [    1.176877]  davinci-mcasp.0: alias fck already exists
    [    1.183035] _regulator_get: 2-0018 supply Vdd not found, using dummy regulator
    [    1.190687] _regulator_get: 2-0018 supply Vdd_IO not found, using dummy regulator
    [    1.218958] lis3lv02d: unknown sensor type 0x87
    [    1.223782] lis3lv02d_i2c: probe of 2-0018 failed with error -22
    [    1.230933] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.237927] omap2-nand driver initializing
    [    1.242610] NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
    [    1.252065] Creating 8 MTD partitions on "omap2-nand.0":
    [    1.257615] 0x000000000000-0x000000020000 : "SPL"
    [    1.263598] 0x000000020000-0x000000040000 : "SPL.backup1"
    [    1.270174] 0x000000040000-0x000000060000 : "SPL.backup2"
    [    1.276630] 0x000000060000-0x000000080000 : "SPL.backup3"
    [    1.283083] 0x000000080000-0x000000260000 : "U-Boot"
    [    1.289815] 0x000000260000-0x000000280000 : "U-Boot Env"
    [    1.296184] 0x000000280000-0x000000780000 : "Kernel"
    [    1.304270] 0x000000780000-0x000010000000 : "File System"
    [    1.414474] OneNAND driver initializing
    [    1.418880] UBI: attaching mtd7 to ubi0
    [    1.422931] UBI: physical eraseblock size:   131072 bytes (128 KiB)
    [    1.429477] UBI: logical eraseblock size:    126976 bytes
    [    1.435100] UBI: smallest flash I/O unit:    2048
    [    1.440007] UBI: sub-page size:              512
    [    1.444818] UBI: VID header offset:          2048 (aligned 2048)
    [    1.451083] UBI: data offset:                4096
    [    2.993757] UBI: max. sequence number:       0
    [    3.009329] UBI error: vtbl_check: bad CRC at record 0: 0x682a059f, not 0x23e79a61
    [    3.017222] UBI error: vtbl_check: bad CRC at record 0: 0x682a059f, not 0x23e79a61
    [    3.025125] UBI error: process_lvol: both volume tables are corrupted
    [    3.032473] UBI error: ubi_init: cannot attach mtd7
    [    3.037832] CAN device driver interface
    [    3.041872] CAN bus driver for Bosch D_CAN controller 1.0
    [    3.089323] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [    3.095772] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
    [    3.103111] davinci_mdio.0: probed
    [    3.106663] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver SMSC LAN8710/LAN8720

    [    3.658271] Detected MACID=40:5f:c2:76:89:d4
    [    3.663863] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
    [    3.670960] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
    [    3.678311] Please append a correct "root=" boot option; here are the available partitions:
    [    3.687094] 1f00             128 mtdblock0  (driver?)
    [    3.692385] 1f01             128 mtdblock1  (driver?)
    [    3.697654] 1f02             128 mtdblock2  (driver?)
    [    3.702939] 1f03             128 mtdblock3  (driver?)
    [    3.708208] 1f04            1920 mtdblock4  (driver?)
    [    3.713487] 1f05             128 mtdblock5  (driver?)
    [    3.718759] 1f06            5120 mtdblock6  (driver?)
    [    3.724038] 1f07          254464 mtdblock7  (driver?)
    [    3.729317] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
    [    3.737930] Backtrace:
    [    3.740528] [<c001803c>] (dump_backtrace+0x0/0x10c) from [<c04d57f0>] (dump_stack+0x18/0x1c)
    [    3.749334]  r7:c068d0a0 r6:00008000 r5:c06f5290 r4:c06f5290
    [    3.755260] [<c04d57d8>] (dump_stack+0x0/0x1c) from [<c04d5858>] (panic+0x64/0x198)
    [    3.763266] [<c04d57f4>] (panic+0x0/0x198) from [<c0660d80>] (mount_block_root+0x174/0x228)
    [    3.771980]  r3:00000000 r2:00000000 r1:cf81df78 r0:c05c3778
    [    3.777902] [<c0660c0c>] (mount_block_root+0x0/0x228) from [<c0660f94>] (prepare_namespace+0x94/0x1c0)
    [    3.787622] [<c0660f00>] (prepare_namespace+0x0/0x1c0) from [<c06602f8>] (kernel_init+0xf0/0x124)
    [    3.796876]  r5:c069aed0 r4:c06f4280
    [    3.800636] [<c0660208>] (kernel_init+0x0/0x124) from [<c0040854>] (do_exit+0x0/0x6ac)
    [    3.808885]  r5:c0660208 r4:00000000

  • PS.

    I burnt the kernel image into nand flash from u-boot with 'nandecc hw 0' option. Meanwhile I burnt the MLO/u-boot images into nandflash with option 'nandecc hw 2'. My MLO/u-boot image can not boot up from nand flash, if I burnt them using 'nandecc hw 0' option.

  • Weidong,

    Could you please mail me the following files to the id renjith.thomas@pathpartnertech.com

    1. In arch/arm/mach-omap2/

        a. gpmc.c,

        b. board-flash.c

        c. board file for your platform.

    2. In drivers/mtd/nand/

        a. omap2.c

        b. nand_base.c

  • Also bootrom needs hwecc 2 for booting the x-loader from NAND.

  • Today I made an ubi image by myself, I changed the sub-page setting from -s 512 to -s 2048. And then I re-built a kernel with sub-page calculation commented out.

    1. UBIFS making:

     $  ./mkfs.ubifs -r <path-to-rootfs>/ -o ubifs.img -m 2048 -e 126976 -c 1580
    Note: I did not use -F switch since my mtd-utils v1.3 does not support it.
     $ ./ubinize -o ubi.img -m 2048 -p 128KiB -s 2048 -O 2048 ubinize.cfg

    • ubinize.cfg:
       [ubifs]
        mode=ubi
        image=ubifs.img
        vol_id=0
        vol_size=192MiB
        vol_type=dynamic
        vol_name=rootfs
        vol_flags=autoresize

    2. Comment out those lines inside nand_scan_tail() :
        /* Allow subpage writes up to ecc.steps. Not possible for MLC flash */
        if (!(chip->options & NAND_NO_SUBPAGE_WRITE) &&
            !(chip->cellinfo & NAND_CI_CELLTYPE_MSK)) {
            switch (chip->ecc.steps) {
            case 2:
                mtd->subpage_sft = 1;
                break;
            case 4:
            case 8:
            case 16:
                mtd->subpage_sft = 2;
                break;
            }
        }

    And I still got failure when mount the ubifs.

    Board logs:

    [    1.237919] omap2-nand driver initializing
    [    1.242608] NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
    [    1.251612] info->nand.options=1011d, pdata->devsize=200, pdata->ecc_opt=4
    [    1.258782] chip->options=1011d, chip->cellinfo=10, mtd->subpage_sft=0
    [    1.265599] chip->ecc.steps=4, mtd->subpage_sft=0, chip->subpagesize=800
    [    1.273043] Creating 8 MTD partitions on "omap2-nand.0":
    [    1.278594] 0x000000000000-0x000000020000 : "SPL"
    [    1.284596] 0x000000020000-0x000000040000 : "SPL.backup1"
    [    1.291182] 0x000000040000-0x000000060000 : "SPL.backup2"
    [    1.297637] 0x000000060000-0x000000080000 : "SPL.backup3"
    [    1.304104] 0x000000080000-0x000000260000 : "U-Boot"
    [    1.310842] 0x000000260000-0x000000280000 : "U-Boot Env"
    [    1.317210] 0x000000280000-0x000000780000 : "Kernel"
    [    1.325295] 0x000000780000-0x000010000000 : "File System"
    [    1.435490] OneNAND driver initializing
    [    1.439957] UBI: attaching mtd7 to ubi0
    [    1.443962] UBI: physical eraseblock size:   131072 bytes (128 KiB)
    [    1.450520] UBI: logical eraseblock size:    126976 bytes
    [    1.456143] UBI: smallest flash I/O unit:    2048
    [    1.461055] UBI: VID header offset:          2048 (aligned 2048)
    [    1.467311] UBI: data offset:                4096
    [    3.560842] UBI: max. sequence number:       35
    [    3.579780] UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 8, need 19
    [    3.591625] UBI: attached mtd7 to ubi0
    [    3.595537] UBI: MTD device name:            "File System"
    [    3.601293] UBI: MTD device size:            248 MiB
    [    3.606468] UBI: number of good PEBs:        1957
    [    3.611377] UBI: number of bad PEBs:         31
    [    3.616093] UBI: number of corrupted PEBs:   0
    [    3.620731] UBI: max. allowed volumes:       128
    [    3.625537] UBI: wear-leveling threshold:    4096
    [    3.630444] UBI: number of internal volumes: 1
    [    3.635069] UBI: number of user volumes:     1
    [    3.639706] UBI: available PEBs:             0
    [    3.644335] UBI: total number of reserved PEBs: 1957
    [    3.649513] UBI: number of PEBs reserved for bad PEB handling: 8
    [    3.655772] UBI: max/mean erase counter: 5/0
    [    3.660225] UBI: image sequence number:  0
    [    3.664747] CAN device driver interface
    [    3.668741] CAN bus driver for Bosch D_CAN controller 1.0
    [    3.674918] UBI: background thread "ubi_bgt0d" started, PID 49

    [    4.059173] logger: created 256K log 'log_main'
    [    4.064034] logger: created 256K log 'log_events'
    [    4.069042] logger: created 256K log 'log_radio'
    [    4.073981] logger: created 256K log 'log_system'

    [    4.293971] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
    [    4.428983] UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read 126976 bytes
    [    4.567054] UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 4:4096, read 126976 bytes
    [    4.578753] UBIFS: recovery needed
    [    4.716916] UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 5:4096, read 126976 bytes
    [    4.789887] UBI error: ubi_io_read: error -74 (ECC error) while reading 16384 bytes from PEB 919:114688, read 16384 bytes
    [    5.236937] UBI error: ubi_io_read: error -74 (ECC error) while reading 60 bytes from PEB 919:114688, read 60 bytes
    [    5.247863] UBIFS error (pid 1): ubifs_leb_read: reading 60 bytes from LEB 917:110592 failed, error -74
    [    5.257669] UBIFS error (pid 1): try_read_node: cannot read node type 2 from LEB 917:110592, error -74
    [    5.268236] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
    [    5.275623] Please append a correct "root=" boot option; here are the available partitions:
    [    5.284389] 1f00             128 mtdblock0  (driver?)
    [    5.289673] 1f01             128 mtdblock1  (driver?)
    [    5.294945] 1f02             128 mtdblock2  (driver?)
    [    5.300225] 1f03             128 mtdblock3  (driver?)
    [    5.305494] 1f04            1920 mtdblock4  (driver?)
    [    5.310777] 1f05             128 mtdblock5  (driver?)
    [    5.316046] 1f06            5120 mtdblock6  (driver?)
    [    5.321327] 1f07          254464 mtdblock7  (driver?)
    [    5.326597] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
    [    5.335219] Backtrace:
    [    5.337808] [<c001803c>] (dump_backtrace+0x0/0x10c) from [<c04d57e4>] (dump_stack+0x18/0x1c)
    [    5.346616]  r7:c068d0a0 r6:00008000 r5:c06f5290 r4:c06f5290
    [    5.352548] [<c04d57cc>] (dump_stack+0x0/0x1c) from [<c04d584c>] (panic+0x64/0x198)
    [    5.360556] [<c04d57e8>] (panic+0x0/0x198) from [<c0660d80>] (mount_block_root+0x174/0x228)
    [    5.369257]  r3:00000000 r2:00000000 r1:cf81df78 r0:c05c3778
    [    5.375193] [<c0660c0c>] (mount_block_root+0x0/0x228) from [<c0660f94>] (prepare_namespace+0x94/0x1c0)
    [    5.384911] [<c0660f00>] (prepare_namespace+0x0/0x1c0) from [<c06602f8>] (kernel_init+0xf0/0x124)
    [    5.394167]  r5:c069aed0 r4:c06f4280
    [    5.397914] [<c0660208>] (kernel_init+0x0/0x124) from [<c0040854>] (do_exit+0x0/0x6ac)
    [    5.406173]  r5:c0660208 r4:00000000

  • I have replied to you. Please verify the same.

  • Here is log after applied your patch.

    U-Boot# nand info

    Device 0: nand0, sector size 128 KiB
    U-Boot# fatload mmc 0 0x81000000 uImage
    reading uImage

    3575224 bytes read
    U-Boot# nandecc hw 2
    HW ECC BCH8 Selected
    U-Boot# nand erase 0x00280000 0x00500000

    NAND erase: device 0 offset 0x280000, size 0x500000
    Erasing at 0x760000 -- 100% complete.
    OK
    U-Boot# nand write.i 0x81000000 0x00280000 0x00500000

    NAND write: device 0 offset 0x280000, size 0x500000
     5242880 bytes written: OK
    U-Boot# fatload mmc 0 0x81000000 ubi.img
    reading ubi.img

    121896960 bytes read
    U-Boot# nand erase 0x00780000 0x07460000

    NAND erase: device 0 offset 0x780000, size 0x7460000
    Erasing at 0x7bc0000 -- 100% complete.
    OK
    U-Boot# nand write.i 0x81000000 0x00780000 0x07460000

    NAND write: device 0 offset 0x780000, size 0x7460000
     122028032 bytes written: OK
    U-Boot# boot
    Booting from nand ...
    HW ECC BCH8 Selected

    NAND read: device 0 offset 0x280000, size 0x500000
     5242880 bytes read: OK
    ## Booting kernel from Legacy Image at 81000000 ...
       Image Name:   Linux-3.2.0-gb02ab39-dirty
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3575160 Bytes = 3.4 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK

    Starting kernel ...

    [    0.000000] Linux version 3.2.0-gb02ab39-dirty (root@NX-W-3) (gcc version 4.4.3 (GCC) ) #41 Thu Jul 26 13:14:02 CST 2012
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine: am335xevm
    [    0.000000] Memory policy: ECC disabled, Data cache writeback
    [    0.000000] AM335X ES1.0 (sgx neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
    [    0.000000] Kernel command line: console=ttyO1,115200n8 androidboot.console=ttyO1 mem=256M root=ubi0:rootfs rootfstype=ubifs ubi.mtd=7,2048 rw rootwait init=/init ip=off
    [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.000000] Memory: 256MB = 256MB total
    [    0.000000] Memory: 251520k/251520k available, 10624k 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]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0660000   (6496 kB)
    [    0.000000]       .init : 0xc0660000 - 0xc069c000   ( 240 kB)
    [    0.000000]       .data : 0xc069c000 - 0xc06f4220   ( 353 kB)
    [    0.000000]        .bss : 0xc06f4244 - 0xc08239c8   (1214 kB)
    [    0.000000] NR_IRQS:396
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] Total of 128 interrupts on 1 active controller
    [    0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
    [    0.000000] omap_dm_timer_switch_src: Switching to HW default clocksource(sys_clkin_ck) for timer1, this may impact timekeeping in low power state
    [    0.000000] OMAP clocksource: GPTIMER1 at 24000000 Hz
    [    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
    [    0.000000] Console: colour dummy device 80x30
    [    0.000203] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
    [    0.057165] pid_max: default: 32768 minimum: 301
    [    0.057296] Security Framework initialized
    [    0.057363] Mount-cache hash table entries: 512

    [    1.223769] lis3lv02d_i2c: probe of 2-0018 failed with error -22
    [    1.230936] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.237923] omap2-nand driver initializing
    [    1.242612] NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
    [    1.251625] chip->options=1011d, chip->cellinfo=10, mtd->subpage_sft=0
    [    1.258427] chip->ecc.steps=4, mtd->subpage_sft=0, chip->subpagesize=800
    [    1.265865] Creating 8 MTD partitions on "omap2-nand.0":
    [    1.271451] 0x000000000000-0x000000020000 : "SPL"
    [    1.277416] 0x000000020000-0x000000040000 : "SPL.backup1"
    [    1.283998] 0x000000040000-0x000000060000 : "SPL.backup2"
    [    1.290495] 0x000000060000-0x000000080000 : "SPL.backup3"
    [    1.296910] 0x000000080000-0x000000260000 : "U-Boot"
    [    1.303660] 0x000000260000-0x000000280000 : "U-Boot Env"
    [    1.310069] 0x000000280000-0x000000780000 : "Kernel"
    [    1.318120] 0x000000780000-0x000010000000 : "File System"
    [    1.428275] OneNAND driver initializing
    [    1.432740] UBI: attaching mtd7 to ubi0
    [    1.436746] UBI: physical eraseblock size:   131072 bytes (128 KiB)
    [    1.443306] UBI: logical eraseblock size:    126976 bytes
    [    1.448934] UBI: smallest flash I/O unit:    2048
    [    1.453845] UBI: VID header offset:          2048 (aligned 2048)
    [    1.460111] UBI: data offset:                4096
    [    3.498142] UBI: max. sequence number:       36
    [    3.516729] UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 8, need 19
    [    3.528604] UBI: attached mtd7 to ubi0
    [    3.532559] UBI: MTD device name:            "File System"
    [    3.538273] UBI: MTD device size:            248 MiB
    [    3.543460] UBI: number of good PEBs:        1957
    [    3.548357] UBI: number of bad PEBs:         31
    [    3.553083] UBI: number of corrupted PEBs:   0
    [    3.557711] UBI: max. allowed volumes:       128
    [    3.562528] UBI: wear-leveling threshold:    4096
    [    3.567425] UBI: number of internal volumes: 1
    [    3.572063] UBI: number of user volumes:     1
    [    3.576689] UBI: available PEBs:             0
    [    3.581325] UBI: total number of reserved PEBs: 1957
    [    3.586493] UBI: number of PEBs reserved for bad PEB handling: 8
    [    3.592762] UBI: max/mean erase counter: 5/0
    [    3.597208] UBI: image sequence number:  0
    [    3.601743] CAN device driver interface
    [    3.605741] CAN bus driver for Bosch D_CAN controller 1.0
    [    3.611920] UBI: background thread "ubi_bgt0d" started, PID 49
    [    3.659316] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [    3.665760] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
    [    3.673069] davinci_mdio.0: probed
    [    3.676620] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver SMSC LAN8710/LAN8720
    [    3.685228] PPP generic driver version 2.4.2
    [    3.689876] PPP BSD Compression module registered
    [    3.694784] PPP Deflate Compression module registered
    [    3.700184] usbcore: registered new interface driver cdc_ether
    [    3.706320] usbcore: registered new interface driver cdc_eem
    [    3.712298] usbcore: registered new interface driver dm9601
    [    3.718159] usbcore: registered new interface driver cdc_subset

    [    4.385803] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
    [    4.392119] UBIFS: file system size:   199225344 bytes (194556 KiB, 189 MiB, 1569 LEBs)
    [    4.400476] UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
    [    4.408092] UBIFS: media format:       w4/r0 (latest is w4/r0)
    [    4.414178] UBIFS: default compressor: lzo
    [    4.418445] UBIFS: reserved for root:  0 bytes (0 KiB)
    [    4.427443] VFS: Mounted root (ubifs filesystem) on device 0:13.
    [    4.434173] Freeing init memory: 240K
    [    4.481226] init (1): /proc/1/oom_adj is deprecated, please use /proc/1/oom_score_adj instead.
    [    4.541145] mmc0: host does not support reading read-only switch. assuming write-enable.
    [    4.559661] mmc0: new high speed SDHC card at address 1234
    [    4.569481] mmcblk0: mmc0:1234 SA04G 3.67 GiB
    [    4.579556]  mmcblk0: p1 p2
    [    4.608214] init: cannot open '/initlogo.rle'
    [    4.647135] Disabling lock debugging due to kernel taint
    [    4.653365] Compat-wireless backport release: compat-wireless-2011-12-05-1-g84dbe2c
    [    4.661401] Backport based on wl12xx.git v2.6.39-1328-g0890f48
    [    4.722957] cfg80211: Calling CRDA to update world regulatory domain
    [    5.147440] cfg80211: World regulatory domain updated:
    [    5.152878] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [    5.161600] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [    5.169867] cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [    5.178120] cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [    5.186383] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [    5.194645] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [    5.308970] init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
    [    5.504606] android_usb: already disabled
    [    5.509094] adb_bind_config
    root@android:/ # [    5.989455] adb_open
    [    9.999429] UBI error: ubi_io_write: error -5 while writing 2048 bytes to PEB 930:126976, written 0 bytes
    [   10.009463] UBI warning: ubi_eba_write_leb: failed to write data to PEB 930
    [   10.016743] UBI: recover PEB 930, move data to PEB 1200
    [   10.113891] UBI: data was successfully recovered
    [   10.147888] UBI: run torture test for PEB 930
    [   10.486036] UBI: PEB 930 passed torture test, do not mark it as bad
    [   10.609401] UBI error: ubi_io_write: error -5 while writing 2048 bytes to PEB 940:71680, written 0 bytes
    [   10.619327] UBI warning: ubi_eba_write_leb: failed to write data to PEB 940
    [   10.626613] UBI: recover PEB 940, move data to PEB 1478
    [   10.659361] UBI error: ubi_io_write: error -5 while writing 2048 bytes to PEB 1478:2048, written 0 bytes
    [   10.669311] UBI warning: recover_peb: failed to write to PEB 1478
    [   10.675674] UBI: try again
    [   10.678500] UBI: recover PEB 940, move data to PEB 1479
    [   10.685528] UBI: run torture test for PEB 1478
    [   10.702434] UBI error: ubi_io_write: error -5 while writing 2048 bytes to PEB 1479:2048, written 0 bytes
    [   10.712463] UBI warning: recover_peb: failed to write to PEB 1479
    [   10.718828] UBI: try again
    [   10.721670] UBI: recover PEB 940, move data to PEB 1480
    [   10.804470] UBI error: ubi_io_write: error -5 while writing 131072 bytes to PEB 1478:0, written 0 bytes
    [   10.814339] UBI error: erase_worker: failed to erase PEB 1478, error -5
    [   10.821256] UBI: mark PEB 1478 as bad
    [   10.839383] UBI error: ubi_io_mark_bad: cannot mark PEB 1478 bad, error -5
    [   10.846559] UBI warning: ubi_ro_mode: switch to read-only mode
    [   10.852676] UBI error: do_work: work failed with error code -5
    [   10.858755] UBI error: ubi_thread: ubi_bgt0d: work failed with error code -5
    [   10.882360] UBI error: ubi_io_write: read-only mode
    [   10.887444] UBI warning: recover_peb: failed to write to PEB 1480
    [   10.893819] UBI: try again
    [   10.896649] UBI: recover PEB 940, move data to PEB 1481
    [   10.902618] UBI error: ubi_io_write: read-only mode
    [   10.907699] UBI warning: recover_peb: failed to write to PEB 1481
    [   10.914078] UBIFS error (pid 131): ubifs_leb_write: writing 2048 bytes to LEB 938:67584 failed, error -30
    [   10.924062] UBIFS warning (pid 131): ubifs_ro_mode: switched to read-only mode, error -30
    [   10.932610] Backtrace:
    [   10.935199] [<c001803c>] (dump_backtrace+0x0/0x10c) from [<c04d5598>] (dump_stack+0x18/0x1c)
    [   10.944006]  r7:00010800 r6:000003aa r5:ffffffe2 r4:00000004
    [   10.949949] [<c04d5580>] (dump_stack+0x0/0x1c) from [<c01c2c7c>] (ubifs_ro_mode+0x6c/0x78)
    [   10.958568] [<c01c2c10>] (ubifs_ro_mode+0x0/0x78) from [<c01c3150>] (ubifs_leb_write+0x8c/0x98)
    [   10.967645]  r5:ffffffe2 r4:cfa72000
    [   10.971393] [<c01c30c4>] (ubifs_leb_write+0x0/0x98) from [<c01c33e8>] (ubifs_wbuf_write_nolock+0x21c/0x348)
    [   10.981555]  r8:000009e7 r7:000009e7 r6:cfa72000 r5:000009e8 r4:cfa6d930
    [   10.988581] [<c01c31cc>] (ubifs_wbuf_write_nolock+0x0/0x348) from [<c01b84c8>] (ubifs_jnl_write_data+0x178/0x200)
    [   10.999301] [<c01b8350>] (ubifs_jnl_write_data+0x0/0x200) from [<c01bb138>] (do_writepage+0x110/0x17c)
    [   11.009006] [<c01bb028>] (do_writepage+0x0/0x17c) from [<c01bb25c>] (ubifs_writepage+0xb8/0x184)
    [   11.018172]  r7:002cdfc0 r6:00000fc0 r5:cf555e58 r4:c09db5a0
    [   11.024117] [<c01bb1a4>] (ubifs_writepage+0x0/0x184) from [<c00847c4>] (__writepage+0x1c/0x64)
    [   11.033115] [<c00847a8>] (__writepage+0x0/0x64) from [<c00850ac>] (write_cache_pages+0x1d0/0x3c0)
    [   11.042382]  r5:c09db5a0 r4:ffffffff
    [   11.046124] [<c0084edc>] (write_cache_pages+0x0/0x3c0) from [<c00852e8>] (generic_writepages+0x4c/0x68)
    [   11.055936] [<c008529c>] (generic_writepages+0x0/0x68) from [<c0085340>] (do_writepages+0x3c/0x40)
    [   11.065283]  r6:ccc8fe40 r5:cfa72088 r4:cf555e58
    [   11.070126] [<c0085304>] (do_writepages+0x0/0x40) from [<c00cc654>] (writeback_single_inode+0xb0/0x2bc)
    [   11.079936] [<c00cc5a4>] (writeback_single_inode+0x0/0x2bc) from [<c00cce04>] (writeback_sb_inodes+0x17c/0x290)
    [   11.090457]  r9:c06c0158 r8:cfa720c0 r7:ccc8ff2c r6:cfa720b8 r5:cfa72088
    [   11.097278] r4:cf555e58
    [   11.100027] [<c00ccc88>] (writeback_sb_inodes+0x0/0x290) from [<c00cd4f4>] (__writeback_inodes_wb+0xd8/0x114)
    [   11.110379] [<c00cd41c>] (__writeback_inodes_wb+0x0/0x114) from [<c00cd754>] (wb_writeback+0x194/0x1a8)
    [   11.120186] [<c00cd5c0>] (wb_writeback+0x0/0x1a8) from [<c00cd894>] (wb_do_writeback+0x12c/0x20c)
    [   11.129451] [<c00cd768>] (wb_do_writeback+0x0/0x20c) from [<c00cda10>] (bdi_writeback_thread+0x9c/0x184)
    [   11.139361] [<c00cd974>] (bdi_writeback_thread+0x0/0x184) from [<c0056fd8>] (kthread+0x90/0x98)
    [   11.148442] [<c0056f48>] (kthread+0x0/0x98) from [<c0040834>] (do_exit+0x0/0x6ac)
    [   11.156250]  r7:00000013 r6:c0040834 r5:c0056f48 r4:cf88ff20
    [   11.162177] UBIFS error (pid 131): ubifs_wbuf_write_nolock: cannot write 2535 bytes to LEB 938:67584, error -30
    [   11.172715] UBIFS error (pid 131): do_writepage: cannot write page 344 of inode 1196, error -30
    [   11.184527] UBIFS error (pid 131): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
    [   11.194047] UBIFS error (pid 131): ubifs_write_inode: can't write inode 1196, error -30
    [   12.664583] request_suspend_state: wakeup (3->0) at 12665293794 (2012-07-26 13:23:50.921264459 UTC)
    [   12.684542] init: untracked pid 71 exited
    [   12.688832] init: untracked pid 77 exited
    [   13.638160] request_suspend_state: wakeup (0->0) at 13638871003 (2012-07-26 13:23:51.894841459 UTC)
    [   13.652536] init: untracked pid 134 exited
    [   13.656865] init: untracked pid 135 exited
    [   16.209389] UBIFS error (pid 131): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
    [   16.218840] UBIFS error (pid 131): ubifs_write_inode: can't write inode 1181, error -30
    [   16.227242] UBIFS error (pid 131): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
    [   16.236691] UBIFS error (pid 131): ubifs_write_inode: can't write inode 1185, error -30
    [   16.245497] UBIFS error (pid 131): make_reservation: cannot reserve 2840 bytes in jhead 2, error -30
    [   16.255061] UBIFS error (pid 131): do_writepage: cannot write page 345 of inode 1196, error -30
    [   16.267199] UBIFS error (pid 131): make_reservation: cannot reserve 2308 bytes in jhead 2, error -30
    [   16.276875] UBIFS error (pid 131): do_writepage: cannot write page 346 of inode 1196, error -30
    [   18.374373] request_suspend_state: wakeup (0->0) at 18375084422 (2012-07-26 13:23:56.631054962 UTC)
    [   18.388641] init: untracked pid 159 exited
    [   18.409572] init: untracked pid 160 exited
    [   21.280089] UBIFS error (pid 131): make_reservation: cannot reserve 2794 bytes in jhead 2, error -30
    [   21.289707] UBIFS error (pid 131): do_writepage: cannot write page 347 of inode 1196, error -30
    [   21.299334] UBIFS error (pid 131): make_reservation: cannot reserve 2694 bytes in jhead 2, error -30
    [   21.308867] UBIFS error (pid 131): do_writepage: cannot write page 348 of inode 1196, error -30
    [   23.105653] request_suspend_state: wakeup (0->0) at 23106363546 (2012-07-26 13:24:01.362334628 UTC)
    [   23.125235] init: untracked pid 185 exited
    [   23.139601] init: untracked pid 186 exited
    [   26.309737] UBIFS error (pid 131): make_reservation: cannot reserve 2192 bytes in jhead 2, error -30
    [   26.319319] UBIFS error (pid 131): do_writepage: cannot write page 349 of inode 1196, error -30
    [   26.328707] UBIFS error (pid 131): make_reservation: cannot reserve 2557 bytes in jhead 2, error -30
    [   26.338258] UBIFS error (pid 131): do_writepage: cannot write page 350 of inode 1196, error -30
    [   27.842812] request_suspend_state: wakeup (0->0) at 27843524089 (2012-07-26 13:24:06.099495087 UTC)
    [   27.857016] init: untracked pid 211 exited
    [   27.874825] init: untracked pid 212 exited
    [   31.339860] UBIFS error (pid 131): make_reservation: cannot reserve 2941 bytes in jhead 2, error -30
    [   31.349446] UBIFS error (pid 131): do_writepage: cannot write page 351 of inode 1196, error -30
    [   31.358889] UBIFS error (pid 131): make_reservation: cannot reserve 3057 bytes in jhead 2, error -30
    [   31.368438] UBIFS error (pid 131): do_writepage: cannot write page 352 of inode 1196, error -30
    [   33.583270] request_suspend_state: wakeup (0->0) at 33583980755 (2012-07-26 13:24:11.839951420 UTC)
    [   33.597450] init: untracked pid 237 exited
    [   33.619575] init: untracked pid 238 exited
    [   36.379788] UBIFS error (pid 131): make_reservation: cannot reserve 2570 bytes in jhead 2, error -30
    [   36.389377] UBIFS error (pid 131): do_writepage: cannot write page 353 of inode 1196, error -30
    [   36.401263] UBIFS error (pid 131): make_reservation: cannot reserve 1439 bytes in jhead 2, error -30
    [   36.410922] UBIFS error (pid 131): do_writepage: cannot write page 354 of inode 1196, error -30
    [   38.315978] request_suspend_state: wakeup (0->0) at 38316689006 (2012-07-26 13:24:16.572659338 UTC)
    [   38.335500] init: untracked pid 263 exited
    [   38.349602] init: untracked pid 264 exited
    [   41.420012] UBIFS error (pid 131): make_reservation: cannot reserve 2538 bytes in jhead 2, error -30
    [   41.429617] UBIFS error (pid 131): do_writepage: cannot write page 355 of inode 1196, error -30
    [   41.439106] UBIFS error (pid 131): make_reservation: cannot reserve 2302 bytes in jhead 2, error -30
    [   41.448676] UBIFS error (pid 131): do_writepage: cannot write page 356 of inode 1196, error -30
    [   43.047512] request_suspend_state: wakeup (0->0) at 43048223464 (2012-07-26 13:24:21.304194546 UTC)
    [   43.061847] init: untracked pid 289 exited
    [   43.066156] init: untracked pid 290 exited
    [   46.449806] UBIFS error (pid 131): make_reservation: cannot reserve 2849 bytes in jhead 2, error -30
    [   46.459395] UBIFS error (pid 131): do_writepage: cannot write page 357 of inode 1196, error -30
    [   46.468839] UBIFS error (pid 131): make_reservation: cannot reserve 3289 bytes in jhead 2, error -30
    [   46.478397] UBIFS error (pid 131): do_writepage: cannot write page 358 of inode 1196, error -30
    [   47.784864] request_suspend_state: wakeup (0->0) at 47785575301 (2012-07-26 13:24:26.041546132 UTC)
    [   47.799104] init: untracked pid 315 exited
    [   47.819557] init: untracked pid 316 exited
    [   51.479831] UBIFS error (pid 131): make_reservation: cannot reserve 3123 bytes in jhead 2, error -30
    [   51.489413] UBIFS error (pid 131): do_writepage: cannot write page 359 of inode 1196, error -30
    [   51.498782] UBIFS error (pid 131): make_reservation: cannot reserve 2827 bytes in jhead 2, error -30
    [   51.508331] UBIFS error (pid 131): do_writepage: cannot write page 360 of inode 1196, error -30
    [   53.517401] request_suspend_state: wakeup (0->0) at 53518112715 (2012-07-26 13:24:31.774083172 UTC)
    [   53.536892] init: untracked pid 341 exited
    [   53.549542] init: untracked pid 342 exited
    [   56.519825] UBIFS error (pid 131): make_reservation: cannot reserve 3104 bytes in jhead 2, error -30
    [   56.529407] UBIFS error (pid 131): do_writepage: cannot write page 361 of inode 1196, error -30
    [   56.541569] UBIFS error (pid 131): make_reservation: cannot reserve 2524 bytes in jhead 2, error -30
    [   56.551233] UBIFS error (pid 131): do_writepage: cannot write page 362 of inode 1196, error -30
    [   58.249804] request_suspend_state: wakeup (0->0) at 58250515259 (2012-07-26 13:24:36.506486007 UTC)
    [   58.264044] init: untracked pid 367 exited
    [   58.268374] init: untracked pid 368 exited
    [   61.559978] UBIFS error (pid 131): make_reservation: cannot reserve 2675 bytes in jhead 2, error -30
    [   61.569564] UBIFS error (pid 131): do_writepage: cannot write page 363 of inode 1196, error -30
    [   61.579230] UBIFS error (pid 131): make_reservation: cannot reserve 3052 bytes in jhead 2, error -30
    [   61.588808] UBIFS error (pid 131): do_writepage: cannot write page 364 of inode 1196, error -30
    [   62.989179] request_suspend_state: wakeup (0->0) at 62989888301 (2012-07-26 13:24:41.245858966 UTC)
    [   63.003550] init: untracked pid 393 exited
    [   63.007856] init: untracked pid 394 exited
    [   66.589845] UBIFS error (pid 131): make_reservation: cannot reserve 2972 bytes in jhead 2, error -30
    [   66.599428] UBIFS error (pid 131): do_writepage: cannot write page 365 of inode 1196, error -30
    [   66.608845] UBIFS error (pid 131): make_reservation: cannot reserve 3252 bytes in jhead 2, error -30
    [   66.618397] UBIFS error (pid 131): do_writepage: cannot write page 366 of inode 1196, error -30
    [   67.724697] request_suspend_state: wakeup (0->0) at 67725402135 (2012-07-26 13:24:45.981370925 UTC)
    [   67.739644] init: untracked pid 419 exited
    [   67.743952] init: untracked pid 420 exited
    [   71.619872] UBIFS error (pid 131): make_reservation: cannot reserve 3263 bytes in jhead 2, error -30
    [   71.629461] UBIFS error (pid 131): do_writepage: cannot write page 367 of inode 1196, error -30
    [   71.638907] UBIFS error (pid 131): make_reservation: cannot reserve 3271 bytes in jhead 2, error -30
    [   71.648469] UBIFS error (pid 131): do_writepage: cannot write page 368 of inode 1196, error -30
    [   73.443906] request_suspend_state: w[  137.079839] UBIFS error (pid 131): make_reservation: cannot reserve 3000 bytes in jhead 2, error -30
    [  137.089435] UBIFS error (pid 131): do_writepage: cannot write page 393 of inode 1196, error -30
    [  137.101839] UBIFS error (pid 131): make_reservation: cannot reserve 2675 bytes in jhead 2, error -30
    [  137.111489] UBIFS error (pid 131): do_writepage: cannot write page 394 of inode 1196, error -30
    [  138.007181] request_suspend_state: wakeup (0->0) at 138007891768 (2012-07-26 13:25:56.263862433 UTC)
    [  138.026835] init: untracked pid 783 exited
    [  138.038925] init: untracked pid 784 exited
    [  142.120088] UBIFS error (pid 131): make_reservation: cannot reserve 2541 bytes in jhead 2, error -30
    [  142.129705] UBIFS error (pid 131): do_writepage: cannot write page 395 of inode 1196, error -30
    [  142.149912] UBIFS error (pid 131): make_reservation: cannot reserve 2643 bytes in jhead 2, error -30
    [  142.159490] UBIFS error (pid 131): do_writepage: cannot write page 396 of inode 1196, error -30
    [  142.797128] request_suspend_state: wakeup (0->0) at 142797839227 (2012-07-26 13:26:01.053810601 UTC)
    [  142.811651] init: untracked pid 809 exited
    [  142.815979] init: untracked pid 810 exited
    [  147.189802] UBIFS error (pid 131): make_reservation: cannot reserve 2744 bytes in jhead 2, error -30
    [  147.199393] UBIFS error (pid 131): do_writepage: cannot write page 397 of inode 1196, error -30
    [  147.211626] UBIFS error (pid 131): make_reservation: cannot reserve 2730 bytes in jhead 2, error -30
    [  147.221303] UBIFS error (pid 131): do_writepage: cannot write page 398 of inode 1196, error -30
    [  148.532452] request_suspend_state: wakeup (0->0) at 148533163395 (2012-07-26 13:26:06.789134560 UTC)
    [  148.551661] init: untracked pid 835 exited
    [  148.555993] init: untracked pid 836 exited
    [  152.229986] UBIFS error (pid 131): make_reservation: cannot reserve 2426 bytes in jhead 2, error -30
    [  152.239604] UBIFS error (pid 131): do_writepage: cannot write page 399 of inode 1196, error -30
    [  152.249204] UBIFS error (pid 131): make_reservation: cannot reserve 3010 bytes in jhead 2, error -30
    [  152.258771] UBIFS error (pid 131): do_writepage: cannot write page 400 of inode 1196, error -30
    [  153.270489] request_suspend_state: wakeup (0->0) at 153271199479 (2012-07-26 13:26:11.527170311 UTC)
    [  153.284873] init: untracked pid 861 exited
    [  153.289208] init: untracked pid 862 exited
    [  157.259764] UBIFS error (pid 131): make_reservation: cannot reserve 2423 bytes in jhead 2, error -30
    [  157.269347] UBIFS error (pid 131): do_writepage: cannot write page 401 of inode 1196, error -30
    [  157.278744] UBIFS error (pid 131): make_reservation: cannot reserve 2722 bytes in jhead 2, error -30
    [  157.288297] UBIFS error (pid 131): do_writepage: cannot write page 402 of inode 1196, error -30
    [  158.015705] request_suspend_state: wakeup (0->0) at 158016414978 (2012-07-26 13:26:16.272386060 UTC)
    [  158.030151] init: untracked pid 887 exited
    [  158.034460] init: untracked pid 888 exited
    [  162.289864] UBIFS error (pid 131): make_reservation: cannot reserve 3081 bytes in jhead 2, error -30
    [  162.299451] UBIFS error (pid 131): do_writepage: cannot write page 403 of inode 1196, error -30
    [  162.308812] UBIFS error (pid 131): make_reservation: cannot reserve 2374 bytes in jhead 2, error -30
    [  162.318373] UBIFS error (pid 131): do_writepage: cannot write page 404 of inode 1196, error -30
    [  162.730482] request_suspend_state: wakeup (0->0) at 162731192272 (2012-07-26 13:26:20.987163562 UTC)
    [  162.748185] init: untracked pid 913 exited
    [  162.761378] init: untracked pid 914 exited
    [  167.329748] UBIFS error (pid 131): make_reservation: cannot reserve 2425 bytes in jhead 2, error -30
    [  167.339335] UBIFS error (pid 131): do_writepage: cannot write page 405 of inode 1196, error -30
    [  167.351682] UBIFS error (pid 131): make_reservation: cannot reserve 3199 bytes in jhead 2, error -30
    [  167.361350] UBIFS error (pid 131): do_writepage: cannot write page 406 of inode 1196, error -30
    [  168.462062] request_suspend_state: wakeup (0->0) at 168462773648 (2012-07-26 13:26:26.718744313 UTC)
    [  168.476446] init: untracked pid 939 exited
    [  168.499600] init: untracked pid 940 exited
    [  172.370020] UBIFS error (pid 131): make_reservation: cannot reserve 3054 bytes in jhead 2, error -30
    [  172.379597] UBIFS error (pid 131): do_writepage: cannot write page 407 of inode 1196, error -30
    [  172.389209] UBIFS error (pid 131): make_reservation: cannot reserve 2631 bytes in jhead 2, error -30
    [  172.398774] UBIFS error (pid 131): do_writepage: cannot write page 408 of inode 1196, error -30
    [  173.202620] request_suspend_state: wakeup (0->0) at 173203323230 (2012-07-26 13:26:31.459292812 UTC)
    [  173.217351] init: untracked pid 965 exited
    [  173.239553] init: untracked pid 966 exited
    [  177.399910] UBIFS error (pid 131): make_reservation: cannot reserve 2412 bytes in jhead 2, error -30
    [  177.409504] UBIFS error (pid 131): do_writepage: cannot write page 409 of inode 1196, error -30
    [  177.439926] UBIFS error (pid 131): make_reservation: cannot reserve 2976 bytes in jhead 2, error -30
    [  177.449519] UBIFS error (pid 131): do_writepage: cannot write page 410 of inode 1196, error -30
    [  177.983523] request_suspend_state: wakeup (0->0) at 177984231815 (2012-07-26 13:26:36.240202813 UTC)
    [  177.998022] init: untracked pid 991 exited
    [  178.019564] init: untracked pid 992 exited
    [  182.470180] UBIFS error (pid 131): make_reservation: cannot reserve 2932 bytes in jhead 2, error -30
    [  182.479795] UBIFS error (pid 131): do_writepage: cannot write page 411 of inode 1196, error -30
    [  182.489475] UBIFS error (pid 131): make_reservation: cannot reserve 2804 bytes in jhead 2, error -30
    [  182.499002] UBIFS error (pid 131): do_writepage: cannot write page 412 of inode 1196, error -30
    [  182.716196] request_suspend_state: wakeup (0->0) at 182716907024 (2012-07-26 13:26:40.972878230 UTC)
    [  182.735766] init: untracked pid 1017 exited
    [  182.747639] init: untracked pid 1018 exited
    [  187.499777] UBIFS error (pid 131): make_reservation: cannot reserve 2574 bytes in jhead 2, error -30
    [  187.509376] UBIFS error (pid 131): do_writepage: cannot write page 413 of inode 1196, error -30
    [  187.518838] UBIFS error (pid 131): make_reservation: cannot reserve 2684 bytes in jhead 2, error -30
    [  187.528400] UBIFS error (pid 131): do_writepage: cannot write page 414 of inode 1196, error -30
    [  188.464540] request_suspend_state: wakeup (0->0) at 188465250108 (2012-07-26 13:26:46.721220773 UTC)
    [  188.478924] init: untracked pid 1043 exited
    [  188.490052] init: untracked pid 1044 exited
    [  192.529880] UBIFS error (pid 131): make_reservation: cannot reserve 2595 bytes in jhead 2, error -30
    [  192.539466] UBIFS error (pid 131): do_writepage: cannot write page 415 of inode 1196, error -30
    [  192.569880] UBIFS error (pid 131): make_reservation: cannot reserve 2675 bytes in jhead 2, error -30
    [  192.579488] UBIFS error (pid 131): do_writepage: cannot write page 416 of inode 1196, error -30
    [  193.228066] request_suspend_state: wakeup (0->0) at 193228777358 (2012-07-26 13:26:51.484747982 UTC)
    [  193.242492] init: untracked pid 1069 exited
    [  193.246894] init: untracked pid 1070 exited
    [  197.600242] UBIFS error (pid 131): make_reservation: cannot reserve 2850 bytes in jhead 2, error -30
    [  197.609860] UBIFS error (pid 131): do_writepage: cannot write page 417 of inode 1196, error -30
    [  197.619566] UBIFS error (pid 131): make_reservation: cannot reserve 2971 bytes in jhead 2, error -30
    [  197.629107] UBIFS error (pid 131): do_writepage: cannot write page 418 of inode 1196, error -30
    [  197.969508] request_suspend_state: wakeup (0->0) at 197970217776 (2012-07-26 13:26:56.226189441 UTC)
    [  197.983788] init: untracked pid 1095 exited
    [  197.988186] init: untracked pid 1096 exited
    [  202.629808] UBIFS error (pid 131): make_reservation: cannot reserve 2755 bytes in jhead 2, error -30
    [  202.639393] UBIFS error (pid 131): do_writepage: cannot write page 419 of inode 1196, error -30
    [  202.648771] UBIFS error (pid 131): make_reservation: cannot reserve 2826 bytes in jhead 2, error -30
    [  202.658321] UBIFS error (pid 131): do_writepage: cannot write page 420 of inode 1196, error -30
    [  202.709536] request_suspend_state: wakeup (0->0) at 202710247985 (2012-07-26 13:27:00.966219192 UTC)
    [  202.723868] init: untracked pid 1121 exited
    [  202.728267] init: untracked pid 1122 exited
    [  207.659777] UBIFS error (pid 131): make_reservation: cannot reserve 2518 bytes in jhead 2, error -30
    [  207.669359] UBIFS error (pid 131): do_writepage: cannot write page 421 of inode 1196, error -30
    [  207.678764] UBIFS error (pid 131): make_reservation: cannot reserve 2778 bytes in jhead 2, error -30
    [  207.688319] UBIFS error (pid 131): do_writepage: cannot write page 422 of inode 1196, error -30
    [  208.443076] request_suspend_state: wakeup (0->0) at 208443788486 (2012-07-26 13:27:06.699758359 UTC)
    [  208.462699] init: untracked pid 1147 exited
    [  208.467121] init: untracked pid 1148 exited
    [  212.699884] UBIFS error (pid 131): make_reservation: cannot reserve 3379 bytes in jhead 2, error -30
    [  212.709477] UBIFS error (pid 131): do_writepage: cannot write page 423 of inode 1196, error -30
    [  212.722732] UBIFS error (pid 131): make_reservation: cannot reserve 2996 bytes in jhead 2, error -30
    [  212.732435] UBIFS error (pid 131): do_writepage: cannot write page 424 of inode 1196, error -30
    [  213.181499] request_suspend_state: wakeup (0->0) at 213182210236 (2012-07-26 13:27:11.438181192 UTC)
    [  213.195796] init: untracked pid 1173 exited
    [  213.222827] init: untracked pid 1174 exited
    [  217.740006] UBIFS error (pid 131): make_reservation: cannot reserve 2659 bytes in jhead 2, error -30
    [  217.749589] UBIFS error (pid 131): do_writepage: cannot write page 425 of inode 1196, error -30
    [  217.759187] UBIFS error (pid 131): make_reservation: cannot reserve 2703 bytes in jhead 2, error -30
    [  217.768764] UBIFS error (pid 131): do_writepage: cannot write page 426 of inode 1196, error -30
    [  217.924137] request_suspend_state: wakeup (0->0) at 217924848028 (2012-07-26 13:27:16.180818734 UTC)
    [  217.938558] init: untracked pid 1199 exited
    [  217.959564] init: untracked pid 1200 exited
    [  222.769841] UBIFS error (pid 131): make_reservation: cannot reserve 3048 bytes in jhead 2, error -30
    [  222.779430] UBIFS error (pid 131): do_writepage: cannot write page 427 of inode 1196, error -30
    [  222.788853] UBIFS error (pid 131): make_reservation: cannot reserve 3150 bytes in jhead 2, error -30
    [  222.798412] UBIFS error (pid 131): do_writepage: cannot write page 428 of inode 1196, error -30
    [  223.664010] request_suspend_state: wakeup (0->0) at 223664712779 (2012-07-26 13:27:21.920679486 UTC)
    [  223.678702] init: untracked pid 1225 exited
    [  223.699553] init: untracked pid 1226 exited

  • Weidong,

    Can you follow these steps while flashing the image? Please make sure that you erase the whole partition and write exactly the ubi.img file size.

    fatload mmc 0 0x81000000 ubi.img
    nandecc hw 2
    nand erase 0x00780000 0xF880000
    nand write.i 0x81000000 0x00780000 0x07440000

    If this doesn't work, could you please try creating the UBI volume from kernel and copy the filesystem to the UBI volume from kernel.


  • Renjith,

    Finally I got my Android UBIFS image boot up from my nand device successfully. Here is a summary of changes I made beyond TI TI-Android-ICS-4.0.3-DevKit-3.0.1.

    1. linux low level mtd driver:

    1a) Inhibit subpage support inside nand_scan_tail() function (My nand device K8F2G08 does not support subpage operation)

    1b) Increase nand_wait timing according this thread

    workaround: am3517 NAND (x8) write errors in Linux

    2. ubi.img

    set subpage size equal to page size

    $ ./ubinize -o ubi.img -m 2048 -p 128KiB -s 2048 -O 2048 ubinize.cfg

    3. erase the whole nandflash filesytem partition before burn the ubi.img

    fatload mmc 0 0x81000000 ubi.img
    nandecc hw 2
    nand erase 0x00780000 0xF880000
    nand write.i 0x81000000 0x00780000 0x07440000

    Thanks for your continous support on that issue.

    Weidong

  • Weidong,

    Good to know that the issue is solved.