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.

Flashing UBIFS from uboot level in am335x evm



I am trying to flash ubi fs from uboot level . But ii am facing problem in uboot level if i flash from user level it works fine

In Uboot:

tftp 0x82000000 ubi.img
nandecc hw 2
nand erase 0x00780000 0xF880000
nand write.i 0x82000000 0x780000 0xFC0000

[    1.028715] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    1.035354] UBI: logical eraseblock size:    126976 bytes
[    1.041028] UBI: smallest flash I/O unit:    2048
[    1.045995] UBI: sub-page size:              512
[    1.050848] UBI: VID header offset:          2048 (aligned 2048)
[    1.057176] UBI: data offset:                4096
[    1.457702] UBI: max. sequence number:       0

[    1.473071] UBI error: ubi_read_volume_table: the layout volume was not found
[    1.480728] UBI error: ubi_attach_mtd_dev: failed to attach by scanning, error -22


ubiformat /dev/mtd7 -f ubi.img -s 512 -O 2048
ubiattach /dev/ubi_ctrl -m 7 -O 2048

setenv bootargs 'console=ttyO0,115200n8 noinitrd ip=off mem=256M rootwait=1 rw ubi.mtd=7,2048 rootfstype=ubifs root=ubi0:rootfs init=/init'

[    1.038950] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    1.045601] UBI: logical eraseblock size:    126976 bytes
[    1.051275] UBI: smallest flash I/O unit:    2048
[    1.056237] UBI: sub-page size:              512
[    1.061089] UBI: VID header offset:          2048 (aligned 2048)
[    1.067417] UBI: data offset:                4096
[    1.595819] UBI: max. sequence number:       6
[    1.614291] UBI: attached mtd7 to ubi0
[    1.618241] UBI: MTD device name:            "Filesystem"
[    1.623970] UBI: MTD device size:            64 MiB
[    1.629097] UBI: number of good PEBs:        512
[    1.633962] UBI: number of bad PEBs:         0
[    1.638630] UBI: number of corrupted PEBs:   0
[    1.643312] UBI: max. allowed volumes:       128
[    1.648163] UBI: wear-leveling threshold:    4096
[    1.653118] UBI: number of internal volumes: 1
[    1.657786] UBI: number of user volumes:     1

Can you point some hints





  • Hi Nikhil,

    It seems that from U-boot you are erasing NAND partition with size 248.5 MB (0xf880000).

    But UBI logs showing 64 MB ([    1.623970] UBI: MTD device size:            64 MiB).

    Can you please confirm the size of NAND partition using by

    mtd_debug info /dev/mtd7

    Also please provide complete logs fashing from U-boot case.

    Please have a look on the http://processors.wiki.ti.com/index.php/AM335x_U-Boot_User%27s_Guide#UBIFS_file_system_flashing

    Thanks,

    Avinash Philip

  • I'm facing the same issue.

    Flashing UBIFS image to a NAND partition on UBOOT

    mw.b 0x82000000 0xFF 0x3000000

    tftp 0x82000000 ubi.img

    nand erase 0x780000 0x3000000

    nandecc hw 2

    nand write 0x82000000 0x780000 0x3000000

    but can't boot it

    mtd_debug info /dev/mtd7
    mtd.type = MTD_NANDFLASH
    mtd.flags = MTD_CAP_NANDFLASH
    mtd.size = 260571136 (248M)
    mtd.erasesize = 131072 (128K)
    mtd.writesize = 2048 (2K)
    mtd.oobsize = 64
    regions = 0

    but I can boot sucessfully  the ubi  filesystem after flashing the image on Linux .

    #ubiformat /dev/mtd7 -f ubi.img -s 512 -O 2048

     

     

  • Jacky,

    Could you please send me the logs when you are getting the errors?

  • Thanks for  your reply.

    U-Boot SPL 2011.09-00000-g518a597 (Apr 11 2012 - 16:55:25)
    Texas Instruments Revision detection unimplemented
    
    
    U-Boot 2011.09-svn45 (Jul 10 2012 - 15:42:36)
    
    I2C:   ready
    DRAM:  256 MiB
    WARNING: Caches not enabled
    Found a daughter card connected
    NAND:  HW ECC Hamming Code selected
    256 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Net:   cpsw
    Hit any key to stop autoboot:  0 
    
    U-Boot# 
    U-Boot# 
    U-Boot# 
    U-Boot# mw.b 0x82000000 0xFF 0x3000000
    U-Boot# tftp 0x82000000 ubi.img
    link up on port 0, speed 100, full duplex
    Using cpsw device
    TFTP from server 192.168.5.103; our IP address is 192.168.5.104
    Filename 'ubi.img'.
    Load address: 0x82000000
    Loading: #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             ###################################################
    done
    Bytes transferred = 18874368 (1200000 hex)
    U-Boot# nand erase 0x780000 0x3000000
    
    NAND erase: device 0 offset 0x780000, size 0x3000000
    Erasing at 0x3760000 -- 100% complete.
    OK
    U-Boot# nandecc hw 2
    HW ECC BCH8 Selected
    U-Boot# nand write 0x82000000 0x780000 0x3000000
    
    NAND write: device 0 offset 0x780000, size 0x3000000
     50331648 bytes written: OK
    U-Boot# setenv bootargs 'console=ttyO0,115200n8 noinitrd ip=off mem=256M rootwait=1 rw ubi.mtd=7,2048 rootfstype=ubifs root=ubi0:rootfs init=/init'
    U-Boot# saveenv
    Saving Environment to NAND...
    Erasing Nand...
    Erasing at 0x260000 -- 100% complete.
    Writing to Nand... done
    U-Boot# boot 
    link up on port 0, speed 100, full duplex
    BOOTP broadcast 1
    DHCP client bound to address 192.168.5.107
    link up on port 0, speed 100, full duplex
    Using cpsw device
    TFTP from server 192.168.5.103; our IP address is 192.168.5.107
    Filename 'uImage'.
    Load address: 0x82000000
    Loading: #################################################################
             #################################################################
             #################################################################
             ##################
    done
    Bytes transferred = 3113000 (2f8028 hex)
    ## Booting kernel from Legacy Image at 82000000 ...
       Image Name:   Linux-3.2.0-svn68
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3112936 Bytes = 3 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK
    
    Starting kernel ...
    
    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Linux version 3.2.0-svn68 (sitara@sitara-desktop) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #17 Tue Jul 24 16:54:50 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=ttyO0,115200n8 noinitrd ip=off mem=256M rootwait=1 rw ubi.mtd=7,2048 rootfstype=ubifs root=ubi0:rootfs init=/init
    [    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: 253360k/253360k available, 8784k 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 - 0xc0593000   (5676 kB)
    [    0.000000]       .init : 0xc0593000 - 0xc05cf000   ( 240 kB)
    [    0.000000]       .data : 0xc05d0000 - 0xc062b028   ( 365 kB)
    [    0.000000]        .bss : 0xc062b04c - 0xc0657ea4   ( 180 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 clocksource: GPTIMER1 at 32768 Hz
    [    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
    [    0.000000] Console: colour dummy device 80x30
    [    0.000152] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
    [    0.058929] pid_max: default: 32768 minimum: 301
    [    0.059051] Security Framework initialized
    [    0.059143] Mount-cache hash table entries: 512
    [    0.059539] CPU: Testing write buffer coherency: ok
    [    0.079528] omap_hwmod: gfx: failed to hardreset
    [    0.095794] omap_hwmod: pruss: failed to hardreset
    [    0.096893] print_constraints: dummy: 
    [    0.097259] NET: Registered protocol family 16
    [    0.099426] OMAP GPIO hardware version 0.1
    [    0.101898] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.104095]  omap_i2c.1: alias fck already exists
    [    0.104980]  omap2_mcspi.1: alias fck already exists
    [    0.105194]  omap2_mcspi.2: alias fck already exists
    [    0.105438]  edma.0: alias fck already exists
    [    0.105468]  edma.0: alias fck already exists
    [    0.105468]  edma.0: alias fck already exists
    [    0.128234] bio: create slab <bio-0> at 0
    [    0.130462] SCSI subsystem initialized
    [    0.132080] usbcore: registered new interface driver usbfs
    [    0.132385] usbcore: registered new interface driver hub
    [    0.132568] usbcore: registered new device driver usb
    [    0.132720] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [    0.133026] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [    0.148986] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [    0.150878] tps65910 1-002d: JTAGREVNUM 0x0
    [    0.153259] print_constraints: VRTC: 
    [    0.154724] print_constraints: VIO: at 1800 mV 
    [    0.157043] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal 
    [    0.159332] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal 
    [    0.160339] print_constraints: VDD3: 5000 mV 
    [    0.161773] print_constraints: VDIG1: at 1800 mV 
    [    0.163208] print_constraints: VDIG2: at 1800 mV 
    [    0.164642] print_constraints: VPLL: at 1800 mV 
    [    0.166046] print_constraints: VDAC: at 1800 mV 
    [    0.167480] print_constraints: VAUX1: at 1800 mV 
    [    0.168884] print_constraints: VAUX2: at 3300 mV 
    [    0.170318] print_constraints: VAUX33: at 3300 mV 
    [    0.171752] print_constraints: VMMC: at 3300 mV 
    [    0.172271] tps65910 1-002d: No interrupt support, no core IRQ
    [    0.174133] Switching to clocksource gp timer
    [    0.189605] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [    0.189788] musb-hdrc musb-hdrc.0: dma type: pio
    [    0.190673] musb-hdrc musb-hdrc.0: USB OTG mode controller at d081c000 using PIO, IRQ 18
    [    0.190826] musb-hdrc musb-hdrc.1: dma type: pio
    [    0.191223] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    0.191284] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [    0.191436] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.191436] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.191467] usb usb1: Product: MUSB HDRC host driver
    [    0.191467] usb usb1: Manufacturer: Linux 3.2.0-svn68 musb-hcd
    [    0.191497] usb usb1: SerialNumber: musb-hdrc.1
    [    0.192260] hub 1-0:1.0: USB hub found
    [    0.192291] hub 1-0:1.0: 1 port detected
    [    0.192840] musb-hdrc musb-hdrc.1: USB Host mode controller at d081e800 using PIO, IRQ 19
    [    0.193267] NET: Registered protocol family 2
    [    0.193450] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.193786] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.193939] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.194030] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.194030] TCP reno registered
    [    0.194061] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.194091] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.194335] NET: Registered protocol family 1
    [    0.194610] RPC: Registered named UNIX socket transport module.
    [    0.194610] RPC: Registered udp transport module.
    [    0.194641] RPC: Registered tcp transport module.
    [    0.194641] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.194885] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.207000] VFS: Disk quotas dquot_6.5.2
    [    0.207061] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.207611] NTFS driver 2.1.30 [Flags: R/W DEBUG].
    [    0.207733] msgmni has been set to 494
    [    0.208496] io scheduler noop registered
    [    0.208526] io scheduler deadline registered
    [    0.208587] io scheduler cfq registered (default)
    [    0.211914] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [    0.820648] console [ttyO0] enabled
    [    0.824920] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [    0.832733] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [    0.840515] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [    0.848327] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [    0.856079] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [    0.873138] brd: module loaded
    [    0.881286] loop: module loaded
    [    0.884796] i2c-core: driver [tsl2550] using legacy suspend method
    [    0.891235] i2c-core: driver [tsl2550] using legacy resume method
    [    0.897674] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    0.911590] Detected a daughter card on AM335x EVM..
    [    0.916595] Unknown CPLD version found, falling back to 1.0A
    [    0.922729] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    0.937896] Board name: A335GPBD
    [    0.941253] Board version: 1.2A
    [    0.944519] SKU: SKU#01
    [    0.947631] The board is general purpose EVM in profile 0
    [    0.953247] Found invalid GP EVM revision, falling back to Rev1.1A
    [    0.960021]  da8xx_lcdc.0: alias fck already exists
    [    0.965850] da8xx_lcdc da8xx_lcdc.0: GLCD: Found TFC_S9700RTWV35TR_01B panel
    [    0.989471] Console: switching to colour frame buffer device 100x30
    [    1.004852] TSC connected to beta GP EVM
    [    1.010345] omap-gpmc omap-gpmc: GPMC revision 6.0
    [    1.015411] Registering NAND on CS0
    [    1.019744]  omap_i2c.2: alias fck already exists
    [    1.044891] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
    [    1.051605] tsl2550 2-0039: standard operating mode
    [    1.057403] tsl2550 2-0039: support ver. 1.2 enabled
    [    1.063079]  omap_hsmmc.0: alias fck already exists
    [    1.068389] usb 1-1: new high-speed USB device number 2 using musb-hdrc
    [    1.075714]  omap_hsmmc.2: alias fck already exists
    [    1.081207] Configure Bluetooth Enable pin...
    [    1.087066] _regulator_get: 2-0018 supply Vdd not found, using dummy regulator
    [    1.094665] _regulator_get: 2-0018 supply Vdd_IO not found, using dummy regulator
    [    1.123107] lis3lv02d: 8 bits 3DLH sensor found
    [    1.215332] input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3lv02d/input/input0
    [    1.224639] usb 1-1: New USB device found, idVendor=0451, idProduct=9261
    [    1.231658] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    1.239105] usb 1-1: Product: TUSB9261 Firmware v1
    [    1.244110] usb 1-1: Manufacturer: Texas Instruments
    [    1.249298] usb 1-1: SerialNumber: 9F23F760201105281DAC5E5C9FD1517C7
    [    1.259033] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.266357] omap2-nand driver initializing
    [    1.270965] ONFI flash detected
    [    1.274383] ONFI param page 0 valid
    [    1.278045] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08ABAEAWP)
    [    1.286621] Creating 8 MTD partitions on "omap2-nand.0":
    [    1.292175] 0x000000000000-0x000000020000 : "SPL"
    [    1.298645] 0x000000020000-0x000000040000 : "SPL.backup1"
    [    1.305603] 0x000000040000-0x000000060000 : "SPL.backup2"
    [    1.312438] 0x000000060000-0x000000080000 : "SPL.backup3"
    [    1.319366] 0x000000080000-0x000000260000 : "U-Boot"
    [    1.326568] 0x000000260000-0x000000280000 : "U-Boot Env"
    [    1.333404] 0x000000280000-0x000000780000 : "Kernel"
    [    1.341949] 0x000000780000-0x000010000000 : "File System"
    [    1.452026] OneNAND driver initializing
    [    1.456848] UBI: attaching mtd7 to ubi0
    [    1.460876] UBI: physical eraseblock size:   131072 bytes (128 KiB)
    [    1.467437] UBI: logical eraseblock size:    126976 bytes
    [    1.473052] UBI: smallest flash I/O unit:    2048
    [    1.477966] UBI: sub-page size:              512
    [    1.482788] UBI: VID header offset:          2048 (aligned 2048)
    [    1.489044] UBI: data offset:                4096
    [    4.296600] UBI: max. sequence number:       44
    [    4.312957] UBI warning: process_lvol: volume table copy #2 is corrupted
    [    4.319946] UBI: create volume table (copy #2)
    [    4.332031] UBI: volume table was restored
    [    4.353759] UBI: volume 0 ("rootfs") re-sized from 1586 to 1965 LEBs
    [    4.361480] UBI: attached mtd7 to ubi0
    [    4.365417] UBI: MTD device name:            "File System"
    [    4.371154] UBI: MTD device size:            248 MiB
    [    4.376342] UBI: number of good PEBs:        1988
    [    4.381256] UBI: number of bad PEBs:         0
    [    4.385894] UBI: number of corrupted PEBs:   0
    [    4.390533] UBI: max. allowed volumes:       128
    [    4.395355] UBI: wear-leveling threshold:    4096
    [    4.400238] UBI: number of internal volumes: 1
    [    4.404876] UBI: number of user volumes:     1
    [    4.409515] UBI: available PEBs:             0
    [    4.414154] UBI: total number of reserved PEBs: 1988
    [    4.419311] UBI: number of PEBs reserved for bad PEB handling: 19
    [    4.425689] UBI: max/mean erase counter: 7/5
    [    4.430145] UBI: image sequence number:  1056791937
    [    4.435394] UBI: background thread "ubi_bgt0d" started, PID 553
    [    4.454895] CAN device driver interface
    [    4.458892] CAN bus driver for Bosch D_CAN controller 1.0
    [    4.524810] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [    4.531280] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
    [    4.555053] davinci_mdio.0: probed
    [    4.558624] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
    [    4.575134] usbcore: registered new interface driver zd1201
    [    4.584899] usbcore: registered new interface driver cdc_ether
    [    4.604827] usbcore: registered new interface driver cdc_eem
    [    4.610900] usbcore: registered new interface driver dm9601
    [    4.616760] cdc_ncm: 04-Aug-2011
    [    4.634948] usbcore: registered new interface driver cdc_ncm
    [    4.640869] Initializing USB Mass Storage driver...
    [    4.654968] scsi0 : usb-storage 1-1:1.0
    [    4.665161] usbcore: registered new interface driver usb-storage
    [    4.671447] USB Mass Storage support registered.
    [    4.684844] usbcore: registered new interface driver usbtest
    [    4.704895] mousedev: PS/2 mouse device common for all mice
    [    4.711639] input: matrix-keypad as /devices/platform/matrix-keypad/input/input1
    [    4.735809] input: ti-tsc-adcc as /devices/platform/omap/tsc/input/input2
    [    4.755737] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    [    4.774932] i2c /dev entries driver
    [    4.779235] Linux video capture interface: v2.00
    [    4.794921] usbcore: registered new interface driver uvcvideo
    [    4.800903] USB Video Class driver (1.1.1)
    [    4.815307] lm75 2-0048: hwmon0: sensor 'tmp275'
    [    4.996276] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    5.004913] cpuidle: using governor ladder
    [    5.009704] cpuidle: using governor menu
    [    5.089599] usbcore: registered new interface driver usbhid
    [    5.095458] usbhid: USB HID core driver
    [    5.099456] oprofile: hardware counters not available
    [    5.104705] oprofile: using timer interrupt.
    [    5.109222] nf_conntrack version 0.5.0 (3958 buckets, 15832 max)
    [    5.115997] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    5.121673] TCP cubic registered
    [    5.125061] NET: Registered protocol family 17
    [    5.129699] can: controller area network core (rev 20090105 abi 8)
    [    5.136260] NET: Registered protocol family 29
    [    5.140899] can: raw protocol (rev 20090105)
    [    5.145385] can: broadcast manager protocol (rev 20090105 t)
    [    5.151306] Registering the dns_resolver key type
    [    5.156311] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    5.164306] ThumbEE CPU extension supported.
    [    5.168823] mux: Failed to setup hwmod io irq -22
    [    5.174407] Power Management for AM33XX family
    [    5.179290] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [    5.185943] Copied the M3 firmware to UMEM
    [    5.190246] omap_hwmod: wkup_m3: wkup_m3: hwmod data error: OMAP4 does not support st_shift
    [    5.203826] clock: disabling unused clocks to save power
    [    5.211456] Detected MACID=0:18:31:e0:93:a8
    [    5.217987] input: gpio-keys as /devices/platform/gpio-keys/input/input3
    [    5.225708] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    [    5.303710] UBIFS error (pid 1): ubifs_read_node: bad node type (255 but expected 9)
    [    5.311828] UBIFS error (pid 1): ubifs_read_node: bad node at LEB 143:19032, LEB mapping status 0
    [    5.321136] Backtrace: 
    [    5.323730] [<c00178f8>] (dump_backtrace+0x0/0x110) from [<c0421b3c>] (dump_stack+0x18/0x1c)
    [    5.332550]  r6:cfa01000 r5:cf95f3c0 r4:00004a58 r3:00000018
    [    5.338500] [<c0421b24>] (dump_stack+0x0/0x1c) from [<c01a50bc>] (ubifs_read_node+0x280/0x2e0)
    [    5.347503] [<c01a4e3c>] (ubifs_read_node+0x0/0x2e0) from [<c01af53c>] (dbg_old_index_check_init+0x6c/0xdc)
    [    5.357666] [<c01af4d0>] (dbg_old_index_check_init+0x0/0xdc) from [<c01ab560>] (ubifs_read_master+0xb4c/0xd80)
    [    5.368133] [<c01aaa14>] (ubifs_read_master+0x0/0xd80) from [<c019fffc>] (ubifs_mount+0xf18/0x1dc8)
    [    5.377593] [<c019f0e4>] (ubifs_mount+0x0/0x1dc8) from [<c00aac30>] (mount_fs+0x4c/0x188)
    [    5.386169] [<c00aabe4>] (mount_fs+0x0/0x188) from [<c00c0ea4>] (vfs_kern_mount+0x54/0x94)
    [    5.394805] [<c00c0e50>] (vfs_kern_mount+0x0/0x94) from [<c00c1068>] (do_kern_mount+0x3c/0xd8)
    [    5.403778]  r8:00008000 r7:cf37ed00 r6:00000000 r5:cf37ed40 r4:c060200c
    [    5.410614] r3:00000000
    [    5.413360] [<c00c102c>] (do_kern_mount+0x0/0xd8) from [<c00c26cc>] (do_mount+0x168/0x6d8)
    [    5.421997]  r8:00000020 r7:cf37ed40 r6:cf37ed00 r5:00000000 r4:00008000
    [    5.428833] r3:00000000
    [    5.431579] [<c00c2564>] (do_mount+0x0/0x6d8) from [<c00c2f20>] (sys_mount+0x8c/0xcc)
    [    5.439758] [<c00c2e94>] (sys_mount+0x0/0xcc) from [<c0593aa4>] (do_mount_root+0x30/0xbc)
    [    5.448303]  r7:00008000 r6:cf919000 r5:c05c0514 r4:cf919000
    [    5.454223] [<c0593a74>] (do_mount_root+0x0/0xbc) from [<c0593c2c>] (mount_block_root+0xfc/0x228)
    [    5.463500]  r6:cf919000 r5:c05c0514 r4:cf919000
    [    5.468322] [<c0593b30>] (mount_block_root+0x0/0x228) from [<c0593fd0>] (prepare_namespace+0xac/0x1d4)
    [    5.478057] [<c0593f24>] (prepare_namespace+0x0/0x1d4) from [<c059390c>] (kernel_init+0x124/0x130)
    [    5.487396]  r5:c05ce698 r4:c05ce698
    [    5.491149] [<c05937e8>] (kernel_init+0x0/0x130) from [<c0040368>] (do_exit+0x0/0x67c)
    [    5.499420]  r5:c05937e8 r4:00000000
    [    5.503875] List of all partitions:
    [    5.507598] 1f00             128 mtdblock0  (driver?)
    [    5.512878] 1f01             128 mtdblock1  (driver?)
    [    5.518157] 1f02             128 mtdblock2  (driver?)
    [    5.523437] 1f03             128 mtdblock3  (driver?)
    [    5.528717] 1f04            1920 mtdblock4  (driver?)
    [    5.533996] 1f05             128 mtdblock5  (driver?)
    [    5.539276] 1f06            5120 mtdblock6  (driver?)
    [    5.544555] 1f07          254464 mtdblock7  (driver?)
    [    5.549835] No filesystem could mount root, tried:  ubifs
    [    5.555480] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
    [    5.564117] Backtrace: 
    [    5.566680] [<c00178f8>] (dump_backtrace+0x0/0x110) from [<c0421b3c>] (dump_stack+0x18/0x1c)
    [    5.575500]  r6:cf919006 r5:c05c0514 r4:c062c048 r3:c05f1388
    [    5.581420] [<c0421b24>] (dump_stack+0x0/0x1c) from [<c0421bac>] (panic+0x6c/0x1a0)
    [    5.589447] [<c0421b40>] (panic+0x0/0x1a0) from [<c0593d3c>] (mount_block_root+0x20c/0x228)
    [    5.598144]  r3:cf81df4c r2:cf81df78 r1:cf81df78 r0:c04eaa40
    [    5.604064]  r7:00008000
    [    5.606750] [<c0593b30>] (mount_block_root+0x0/0x228) from [<c0593fd0>] (prepare_namespace+0xac/0x1d4)
    [    5.616455] [<c0593f24>] (prepare_namespace+0x0/0x1d4) from [<c059390c>] (kernel_init+0x124/0x130)
    [    5.625823]  r5:c05ce698 r4:c05ce698
    [    5.629577] [<c05937e8>] (kernel_init+0x0/0x130) from [<c0040368>] (do_exit+0x0/0x67c)
    [    5.637817]  r5:c05937e8 r4:00000000
    

  • Can you change the erase command like this.

    nand erase 0x780000 0xF880000

    And the write command like this

    nand write 0x82000000 0x780000 0x1200000

    where 0x1200000 is the exact size of the image.

  • Thomas, I tried it again but the problem still exits.

    U-Boot SPL 2011.09-00000-g518a597 (Apr 11 2012 - 16:55:25)
    Texas Instruments Revision detection unimplemented
    
    
    U-Boot 2011.09-svn45 (Jul 10 2012 - 15:42:36)
    
    I2C:   ready
    DRAM:  256 MiB
    WARNING: Caches not enabled
    Found a daughter card connected
    NAND:  HW ECC Hamming Code selected
    256 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Net:   cpsw
    Hit any key to stop autoboot:  0 
    U-Boot# mw.b 0x82000000 0xFF 0x3000000
    U-Boot# tftp 0x82000000 ubi.img
    link up on port 0, speed 100, full duplex
    Using cpsw device
    TFTP from server 192.168.5.103; our IP address is 192.168.5.107
    Filename 'ubi.img'.
    Load address: 0x82000000
    Loading: #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             ###################################################
    done
    Bytes transferred = 18874368 (1200000 hex)
    U-Boot# nand erase 0x780000 0xF880000
    
    NAND erase: device 0 offset 0x780000, size 0xf880000
    Erasing at 0xffe0000 -- 100% complete.
    OK
    U-Boot# nandecc hw 2
    HW ECC BCH8 Selected
    U-Boot# nand write 0x82000000 0x780000 0x1200000
    
    NAND write: device 0 offset 0x780000, size 0x1200000
     18874368 bytes written: OK
    U-Boot#  setenv bootargs 'console=ttyO0,115200n8 noinitrd ip=off mem=256M rootwait=1 rw ubi.mtd=7,2048 rootfstype=ubifs root=ubi0:rootfs init=/init'
    U-Boot# saveenv
    Saving Environment to NAND...
    Erasing Nand...
    Erasing at 0x260000 -- 100% complete.
    Writing to Nand... done
    U-Boot# boot
    link up on port 0, speed 100, full duplex
    BOOTP broadcast 1
    DHCP client bound to address 192.168.5.107
    Using cpsw device
    TFTP from server 192.168.5.103; our IP address is 192.168.5.107
    Filename 'ubi.img'.
    Load address: 0x82000000
    Loading: ######################################
    Abort
    link up on port 0, speed 100, full duplex
    Using cpsw device
    TFTP from server 192.168.5.103; our IP address is 192.168.5.107
    Filename 'uImage'.
    Load address: 0x82000000
    Loading: #################################################################
             #################################################################
             #################################################################
             ##################
    done
    Bytes transferred = 3113000 (2f8028 hex)
    ## Booting kernel from Legacy Image at 82000000 ...
       Image Name:   Linux-3.2.0-svn68
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3112936 Bytes = 3 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK
    
    Starting kernel ...
    
    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Linux version 3.2.0-svn68 (sitara@sitara-desktop) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #17 Tue Jul 24 16:54:50 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=ttyO0,115200n8 noinitrd ip=off mem=256M rootwait=1 rw ubi.mtd=7,2048 rootfstype=ubifs root=ubi0:rootfs init=/init
    [    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: 253360k/253360k available, 8784k 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 - 0xc0593000   (5676 kB)
    [    0.000000]       .init : 0xc0593000 - 0xc05cf000   ( 240 kB)
    [    0.000000]       .data : 0xc05d0000 - 0xc062b028   ( 365 kB)
    [    0.000000]        .bss : 0xc062b04c - 0xc0657ea4   ( 180 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 clocksource: GPTIMER1 at 32768 Hz
    [    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
    [    0.000000] Console: colour dummy device 80x30
    [    0.000122] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
    [    0.058929] pid_max: default: 32768 minimum: 301
    [    0.059051] Security Framework initialized
    [    0.059173] Mount-cache hash table entries: 512
    [    0.059539] CPU: Testing write buffer coherency: ok
    [    0.079559] omap_hwmod: gfx: failed to hardreset
    [    0.095825] omap_hwmod: pruss: failed to hardreset
    [    0.096954] print_constraints: dummy: 
    [    0.097320] NET: Registered protocol family 16
    [    0.099487] OMAP GPIO hardware version 0.1
    [    0.101959] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.104156]  omap_i2c.1: alias fck already exists
    [    0.105041]  omap2_mcspi.1: alias fck already exists
    [    0.105255]  omap2_mcspi.2: alias fck already exists
    [    0.105499]  edma.0: alias fck already exists
    [    0.105529]  edma.0: alias fck already exists
    [    0.105529]  edma.0: alias fck already exists
    [    0.128326] bio: create slab <bio-0> at 0
    [    0.130523] SCSI subsystem initialized
    [    0.132141] usbcore: registered new interface driver usbfs
    [    0.132476] usbcore: registered new interface driver hub
    [    0.132659] usbcore: registered new device driver usb
    [    0.132812] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [    0.133117] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [    0.148986] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [    0.150878] tps65910 1-002d: JTAGREVNUM 0x0
    [    0.153259] print_constraints: VRTC: 
    [    0.154724] print_constraints: VIO: at 1800 mV 
    [    0.157012] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal 
    [    0.159301] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal 
    [    0.160339] print_constraints: VDD3: 5000 mV 
    [    0.161743] print_constraints: VDIG1: at 1800 mV 
    [    0.163177] print_constraints: VDIG2: at 1800 mV 
    [    0.164611] print_constraints: VPLL: at 1800 mV 
    [    0.166046] print_constraints: VDAC: at 1800 mV 
    [    0.167449] print_constraints: VAUX1: at 1800 mV 
    [    0.168884] print_constraints: VAUX2: at 3300 mV 
    [    0.170318] print_constraints: VAUX33: at 3300 mV 
    [    0.171722] print_constraints: VMMC: at 3300 mV 
    [    0.172241] tps65910 1-002d: No interrupt support, no core IRQ
    [    0.174133] Switching to clocksource gp timer
    [    0.189605] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [    0.189788] musb-hdrc musb-hdrc.0: dma type: pio
    [    0.190673] musb-hdrc musb-hdrc.0: USB OTG mode controller at d081c000 using PIO, IRQ 18
    [    0.190826] musb-hdrc musb-hdrc.1: dma type: pio
    [    0.191253] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    0.191314] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [    0.191467] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.191467] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.191497] usb usb1: Product: MUSB HDRC host driver
    [    0.191497] usb usb1: Manufacturer: Linux 3.2.0-svn68 musb-hcd
    [    0.191497] usb usb1: SerialNumber: musb-hdrc.1
    [    0.192260] hub 1-0:1.0: USB hub found
    [    0.192291] hub 1-0:1.0: 1 port detected
    [    0.192840] musb-hdrc musb-hdrc.1: USB Host mode controller at d081e800 using PIO, IRQ 19
    [    0.193267] NET: Registered protocol family 2
    [    0.193481] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.193786] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.193939] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.194030] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.194061] TCP reno registered
    [    0.194061] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.194091] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.194366] NET: Registered protocol family 1
    [    0.194610] RPC: Registered named UNIX socket transport module.
    [    0.194641] RPC: Registered udp transport module.
    [    0.194641] RPC: Registered tcp transport module.
    [    0.194671] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.194915] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.207000] VFS: Disk quotas dquot_6.5.2
    [    0.207061] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.207611] NTFS driver 2.1.30 [Flags: R/W DEBUG].
    [    0.207733] msgmni has been set to 494
    [    0.208496] io scheduler noop registered
    [    0.208526] io scheduler deadline registered
    [    0.208587] io scheduler cfq registered (default)
    [    0.211883] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [    0.820465] console [ttyO0] enabled
    [    0.824768] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [    0.832580] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [    0.840362] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [    0.848144] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [    0.855895] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [    0.872924] brd: module loaded
    [    0.881072] loop: module loaded
    [    0.884552] i2c-core: driver [tsl2550] using legacy suspend method
    [    0.891021] i2c-core: driver [tsl2550] using legacy resume method
    [    0.897460] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    0.911376] Detected a daughter card on AM335x EVM..
    [    0.916381] Unknown CPLD version found, falling back to 1.0A
    [    0.922485] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    0.937683] Board name: A335GPBD
    [    0.941040] Board version: 1.2A
    [    0.944305] SKU: SKU#01
    [    0.947387] The board is general purpose EVM in profile 0
    [    0.953033] Found invalid GP EVM revision, falling back to Rev1.1A
    [    0.959777]  da8xx_lcdc.0: alias fck already exists
    [    0.965606] da8xx_lcdc da8xx_lcdc.0: GLCD: Found TFC_S9700RTWV35TR_01B panel
    [    0.989257] Console: switching to colour frame buffer device 100x30
    [    1.004638] TSC connected to beta GP EVM
    [    1.010162] omap-gpmc omap-gpmc: GPMC revision 6.0
    [    1.015228] Registering NAND on CS0
    [    1.019561]  omap_i2c.2: alias fck already exists
    [    1.044860] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
    [    1.051574] tsl2550 2-0039: standard operating mode
    [    1.057373] tsl2550 2-0039: support ver. 1.2 enabled
    [    1.063049]  omap_hsmmc.0: alias fck already exists
    [    1.068359] usb 1-1: new high-speed USB device number 2 using musb-hdrc
    [    1.075683]  omap_hsmmc.2: alias fck already exists
    [    1.081146] Configure Bluetooth Enable pin...
    [    1.087005] _regulator_get: 2-0018 supply Vdd not found, using dummy regulator
    [    1.094604] _regulator_get: 2-0018 supply Vdd_IO not found, using dummy regulator
    [    1.123046] lis3lv02d: 8 bits 3DLH sensor found
    [    1.215301] input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3lv02d/input/input0
    [    1.224578] usb 1-1: New USB device found, idVendor=0451, idProduct=9261
    [    1.231597] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    1.239074] usb 1-1: Product: TUSB9261 Firmware v1
    [    1.244049] usb 1-1: Manufacturer: Texas Instruments
    [    1.249237] usb 1-1: SerialNumber: 9F23F760201105281DAC5E5C9FD1517C7
    [    1.258972] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.266326] omap2-nand driver initializing
    [    1.270935] ONFI flash detected
    [    1.274322] ONFI param page 0 valid
    [    1.277984] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08ABAEAWP)
    [    1.286590] Creating 8 MTD partitions on "omap2-nand.0":
    [    1.292144] 0x000000000000-0x000000020000 : "SPL"
    [    1.298583] 0x000000020000-0x000000040000 : "SPL.backup1"
    [    1.305511] 0x000000040000-0x000000060000 : "SPL.backup2"
    [    1.312377] 0x000000060000-0x000000080000 : "SPL.backup3"
    [    1.319274] 0x000000080000-0x000000260000 : "U-Boot"
    [    1.326507] 0x000000260000-0x000000280000 : "U-Boot Env"
    [    1.333343] 0x000000280000-0x000000780000 : "Kernel"
    [    1.341857] 0x000000780000-0x000010000000 : "File System"
    [    1.451904] OneNAND driver initializing
    [    1.456695] UBI: attaching mtd7 to ubi0
    [    1.460723] UBI: physical eraseblock size:   131072 bytes (128 KiB)
    [    1.467285] UBI: logical eraseblock size:    126976 bytes
    [    1.472930] UBI: smallest flash I/O unit:    2048
    [    1.477844] UBI: sub-page size:              512
    [    1.482635] UBI: VID header offset:          2048 (aligned 2048)
    [    1.488922] UBI: data offset:                4096
    [    2.673339] UBI: max. sequence number:       0
    [    2.709106] UBI: volume 0 ("rootfs") re-sized from 1586 to 1965 LEBs
    [    2.716827] UBI: attached mtd7 to ubi0
    [    2.720733] UBI: MTD device name:            "File System"
    [    2.726501] UBI: MTD device size:            248 MiB
    [    2.731689] UBI: number of good PEBs:        1988
    [    2.736602] UBI: number of bad PEBs:         0
    [    2.741210] UBI: number of corrupted PEBs:   0
    [    2.745849] UBI: max. allowed volumes:       128
    [    2.750671] UBI: wear-leveling threshold:    4096
    [    2.755584] UBI: number of internal volumes: 1
    [    2.760223] UBI: number of user volumes:     1
    [    2.764862] UBI: available PEBs:             0
    [    2.769470] UBI: total number of reserved PEBs: 1988
    [    2.774658] UBI: number of PEBs reserved for bad PEB handling: 19
    [    2.781036] UBI: max/mean erase counter: 1/0
    [    2.785491] UBI: image sequence number:  0
    [    2.789916] UBI: background thread "ubi_bgt0d" started, PID 553
    [    2.805297] CAN device driver interface
    [    2.809295] CAN bus driver for Bosch D_CAN controller 1.0
    [    2.874847] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [    2.881317] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
    [    2.905181] davinci_mdio.0: probed
    [    2.908752] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
    [    2.925079] usbcore: registered new interface driver zd1201
    [    2.934844] usbcore: registered new interface driver cdc_ether
    [    2.954803] usbcore: registered new interface driver cdc_eem
    [    2.960845] usbcore: registered new interface driver dm9601
    [    2.966735] cdc_ncm: 04-Aug-2011
    [    2.984893] usbcore: registered new interface driver cdc_ncm
    [    2.990783] Initializing USB Mass Storage driver...
    [    3.004913] scsi0 : usb-storage 1-1:1.0
    [    3.015167] usbcore: registered new interface driver usb-storage
    [    3.021453] USB Mass Storage support registered.
    [    3.034820] usbcore: registered new interface driver usbtest
    [    3.054870] mousedev: PS/2 mouse device common for all mice
    [    3.061645] input: matrix-keypad as /devices/platform/matrix-keypad/input/input1
    [    3.086029] input: ti-tsc-adcc as /devices/platform/omap/tsc/input/input2
    [    3.106140] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    [    3.124847] i2c /dev entries driver
    [    3.129119] Linux video capture interface: v2.00
    [    3.144866] usbcore: registered new interface driver uvcvideo
    [    3.150878] USB Video Class driver (1.1.1)
    [    3.164886] lm75 2-0048: hwmon0: sensor 'tmp275'
    [    3.394897] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    3.415313] cpuidle: using governor ladder
    [    3.425262] cpuidle: using governor menu
    [    3.535491] usbcore: registered new interface driver usbhid
    [    3.541320] usbhid: USB HID core driver
    [    3.545318] oprofile: hardware counters not available
    [    3.550598] oprofile: using timer interrupt.
    [    3.555084] nf_conntrack version 0.5.0 (3958 buckets, 15832 max)
    [    3.561859] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    3.567565] TCP cubic registered
    [    3.570922] NET: Registered protocol family 17
    [    3.575592] can: controller area network core (rev 20090105 abi 8)
    [    3.582153] NET: Registered protocol family 29
    [    3.586791] can: raw protocol (rev 20090105)
    [    3.591247] can: broadcast manager protocol (rev 20090105 t)
    [    3.597198] Registering the dns_resolver key type
    [    3.602203] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    3.610198] ThumbEE CPU extension supported.
    [    3.614715] mux: Failed to setup hwmod io irq -22
    [    3.620300] Power Management for AM33XX family
    [    3.625152] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [    3.631805] Copied the M3 firmware to UMEM
    [    3.636108] omap_hwmod: wkup_m3: wkup_m3: hwmod data error: OMAP4 does not support st_shift
    [    3.688812] clock: disabling unused clocks to save power
    [    3.706878] Detected MACID=0:18:31:e0:93:a8
    [    3.729492] input: gpio-keys as /devices/platform/gpio-keys/input/input3
    [    3.736785] mmc1: card claims to support voltages below the defined range. These will be ignored.
    [    3.746520] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801)
    [    3.866668] UBIFS: start fixing up free space
    [    3.910491] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
    [    3.927276] mmc1: new SDIO card at address 0001
    [    4.063385] scsi 0:0:0:0: Direct-Access     ATA      OCZ-VERTEX2      1.25 PQ: 0 ANSI: 6
    [    4.095916] sd 0:0:0:0: [sda] 234441648 512-byte logical blocks: (120 GB/111 GiB)
    [    4.104736] sd 0:0:0:0: [sda] Write Protect is off
    [    4.114990] sd 0:0:0:0: [sda] No Caching mode page present
    [    4.120697] sd 0:0:0:0: [sda] Assuming drive cache: write through
    [    4.174865] sd 0:0:0:0: [sda] No Caching mode page present
    [    4.180633] sd 0:0:0:0: [sda] Assuming drive cache: write through
    [    4.195037]  sda: sda1
    [    4.209350] sd 0:0:0:0: [sda] No Caching mode page present
    [    4.215118] sd 0:0:0:0: [sda] Assuming drive cache: write through
    [    4.221496] sd 0:0:0:0: [sda] Attached SCSI disk
    [    5.596649] UBIFS: free space fixup complete
    [    5.603240] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
    [    5.609558] UBIFS: file system size:   199225344 bytes (194556 KiB, 189 MiB, 1569 LEBs)
    [    5.617919] UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
    [    5.625549] UBIFS: media format:       w4/r0 (latest is w4/r0)
    [    5.631622] UBIFS: default compressor: lzo
    [    5.635894] UBIFS: reserved for root:  0 bytes (0 KiB)
    [    5.643981] VFS: Mounted root (ubifs filesystem) on device 0:13.
    [    5.650665] Freeing init memory: 240K
    [    5.655059] Failed to execute /init.  Attempting defaults...
    [    7.096466] alignment: ignoring faults is unsafe on this CPU.  Defaulting to fixup mode.
    [   10.581268] 
    [   10.581268] CPSW phy found : id is : 0x4dd074
    [   10.588226] PHY 0:01 not found
    [   13.576202] PHY: 0:00 - Link is Up - 100/Full
    
    U-Boot SPL 2011.09-00000-g518a597 (Apr 11 2012 - 16:55:25)
    Texas Instruments Revision detection unimplemented
    
    
    U-Boot 2011.09-svn45 (Jul 10 2012 - 15:42:36)
    
    I2C:   ready
    DRAM:  256 MiB
    WARNING: Caches not enabled
    Found a daughter card connected
    NAND:  HW ECC Hamming Code selected
    256 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Error: Bad compare! failed
    Error: Bad compare! failed
    Error: Bad compare! failed
    NAND read from offset 260000 failed -74
    *** Warning - readenv() failed, using default environment
    
    Net:   cpsw
    Hit any key to stop autoboot:  0 
    Card did not respond to voltage select!
    Booting from nand ...
    HW ECC BCH8 Selected
    
    NAND read: device 0 offset 0x280000, size 0x500000
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    
    U-Boot SPL 2011.09-00000-g518a597 (Apr 11 2012 - 16:55:25)
    Texas Instruments Revision detection unimplemented
    

  • Jacky,

    Are you referring to the u-boot error "ECC: uncorrectable."? This is happening because of mismatch in ECC algorithm when kernel is flashed. Make sure that you flash kernel and read the kernel using the same algorithm. 

    If you are still facing UBIFS related issues could you please send me the files to my email renjith.thomas@pathpartnertech.com?

    arch/arm/mach-omap2/board-am335xevm.c
    arch/arm/mach-omap2/board-flash.c
    arch/arm/mach-omap2/gpmc.c
    drivers/mtd/nand/nand_base.c
    drivers/mtd/nand/omap2.c