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.

ecc error in nand

Hi,

it is usually write flash with the commands bellow. But when I write just a part of whole system, for example: 

fatload mmc 0   0x81280000 uImage.bin
nand write 0x81280000 0x280000 0x500000
in general ECC errors appear or the system initialization stops in uboot. The same happen when use nandwrite command in linux. Someone has any idea about it? how to resolve it?
 

whole system writing:

------------------------------------------

mmc rescan
nand erase.chip
fatload mmc 0 0x81000000 MLO
cp.b 0x81000000 0x81020000 20000
cp.b 0x81000000 0x81040000 20000
cp.b 0x81000000 0x81060000 20000
fatload mmc 0   0x81080000 u-boot.img
fatload mmc 0   0x81260000 uEnv.txt
fatload mmc 0   0x81280000 uImage.bin
fatload mmc 0   0x81780000 ubi.img
nand write 0x81000000 0x0 0x2000000
saveenv
  • solved the problem with a basic procedure. Always need erase the block before write in it: nand erase command.

  • Hi,

    I am also following the same above steps for flashing the images to my NAND.  when i booted the systems from NAND is booting, but it is not mounting to rootfs (ubi). 

    Please find the log issue and resolve my issue.

    -------------------------------------------------------------------------------------------------------------

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

    [ 5.552276] Please append a correct "root=" boot option; here are the available partitions:
    [ 5.561065] 1f00 128 mtdblock0 (driver?)
    [ 5.566345] 1f01 128 mtdblock1 (driver?)
    [ 5.571624] 1f02 128 mtdblock2 (driver?)
    [ 5.576904] 1f03 128 mtdblock3 (driver?)
    [ 5.582183] 1f04 1920 mtdblock4 (driver?)
    [ 5.587463] 1f05 128 mtdblock5 (driver?)
    [ 5.592742] 1f06 5120 mtdblock6 (driver?)
    [ 5.598022] 1f07 516608 mtdblock7 (driver?)
    [ 5.603271] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
    [ 5.611907] Backtrace:
    [ 5.614501] [<c0017828>] (dump_backtrace+0x0/0x10c) from [<c045d66c>] (dump_stack+0x18/0x1c)
    [ 5.623291] r6:c060c0c4 r5:00000000 r4:c06d7508 r3:c0699e88
    [ 5.629211] [<c045d654>] (dump_stack+0x0/0x1c) from [<c045d97c>] (panic+0x64/0x188)
    [ 5.637237] [<c045d918>] (panic+0x0/0x188) from [<c05dec58>] (mount_block_root+0x178/0x22c)
    [ 5.645935] r3:df3c2000 r2:00000000 r1:df82df78 r0:c053d170
    [ 5.651855] r7:00008000
    [ 5.654510] [<c05deae0>] (mount_block_root+0x0/0x22c) from [<c05def70>] (prepare_namespace+0x94/0x1cc)
    [ 5.664215] [<c05deedc>] (prepare_namespace+0x0/0x1cc) from [<c05de8c4>] (kernel_init+0xf0/0x11c)
    [ 5.673461] r5:c06765d8 r4:c06765d8
    [ 5.677215] [<c05de7d4>] (kernel_init+0x0/0x11c) from [<c003f3b0>] (do_exit+0x0/0x66c)
    [ 5.685485] r5:c05de7d4 r4:00000000

    -------------------------------------------------------------------------------------------------------------

    could you provide me your uEnv.txt arguments.. Please do the needful.

    Thanks

  • Hello Lofna,

    It seems that your NAND is not detected by the kernel or you have passed wrong boot arguments. Could you attach all the logs from the beginning and provide more information about your board and SDK?

    Best regards,
    Kemal

  • HI Kemal,

    I am using AM335x Linux 3.2 Version & u-boot from SDK6 version.

    Please find the booting log which says NAND detection

    --------------------------------------------------------------------------------------------------------------------------
    U-Boot Stage #

    U-Boot 2013.01.01 (Apr 07 2015 - 11:26:16)

    I2C: ready
    DRAM: 512 MiB
    WARNING: Caches not enabled
    NAND: 1024 MiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1

    *** Warning - readenv() failed, using default environment
    --------------------------------------------------------------------------------------------------------------------------
    Kernel Stage #

    [ 3.365099] omap2-nand driver initializing

    [ 3.369777] NAND device: Manufacturer ID: 0x01, Chip ID: 0xf3 (Spansion NAND 1GiB 3,3V spansion 8-bit)
    [ 3.379716] Creating 8 MTD partitions on "omap2-nand.0":
    [ 3.385275] 0x000000000000-0x000000020000 : "SPL"
    [ 3.391500] 0x000000020000-0x000000040000 : "SPL.backup1"
    [ 3.398260] 0x000000040000-0x000000060000 : "SPL.backup2"
    [ 3.405079] 0x000000060000-0x000000080000 : "SPL.backup3"
    [ 3.411894] 0x000000080000-0x000000260000 : "U-Boot"
    [ 3.418982] 0x000000260000-0x000000280000 : "U-Boot Env"
    [ 3.425669] 0x000000280000-0x000000780000 : "Kernel"
    [ 3.434005] 0x000000780000-0x000040000000 : "File System"
    [ 3.857905] OneNAND driver initializing
    [ 3.908644] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [ 3.915110] davinci_mdio davinci_mdio.0: detected phy mask 7fffffff
    [ 3.922229] davinci_mdio.0: probed
    [ 3.925788] davinci_mdio davinci_mdio.0: phy[31]: device 0:1f, driver unknown
    ------------------------------------------------------------------------------------------------------------------------------

    I am using the below boot args for my 4Gib(1G byte NAND)

    U-Boot# setenv nand_src_addr 0x00280000
    U-Boot# setenv nand_img_siz 0x500000
    U-Boot# setenv initrd_src_addr 0x00780000
    U-Boot# setenv initrd_img_siz 0x320000
    U-Boot# setenv bootcmd 'nand read ${kloadaddr} ${nand_src_addr} ${nand_img_siz};nand read ${loadaddr} ${initrd_src_addr} ${initrd_img_siz};bootm ${kloadaddr};run nandboot'
    U-Boot# setenv bootargs 'console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=7,2048 noinitrd rootfstype=ubifs mem=256M rootwait=1'

    If there is any changes please let us know.

    Thanks,
  • Hello Lofna,

    If you use the UBI image provided by SDK6 you should change the value of the U-Boot argument  "nandroot"  from  "ubi0:rootfs" to "ubi0:am335x-evm-rootfs".

    In order to boot from NAND the following changes should be enough.

    U-Boot# setenv nandroot ubi0:am335x-evm-rootfs rw ubi.mtd=7,2048
    U-Boot# setenv bootcmd run nandboot
    U-Boot# saveenv

    Best regards,

    Kemal

  • Hi Kemel,

    I have given the above NAND boot arguments in my u-boot. But still the errors are occurred.

     Find attached log for your reference.

    Thanks

    -Boot 2013.01.01 (Apr 08 2015 - 18:25:05)
    
    I2C:   ready
    DRAM:  512 MiB
    WARNING: Caches not enabled
    Incorrect magic number (0xffffffff) in EEPROM
    Could not get board ID #01
    NAND:  ###Chip Detecting######
    ####02---NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron NAND 1GiB 3,3V Micron 8-bit)
    1024 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    *** Warning - bad CRC, using default environment
    
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Peripheral mode controller at 47401000 using PIO, IRQ 0
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Host mode controller at 47401800 using PIO, IRQ 0
    Net:   <ethaddr> not set. Validating first E-fuse MAC
    PHY reset timed out
    cpsw, usb_ether
    Hit any key to stop autoboot:  0
    U-boot#
    U-boot# setenv nandroot ubi0:am335x-evm-rootfs rw ubi.mtd=7,2048
    U-boot# setenv bootcmd run nandboot
    U-boot# saveenv
    Saving Environment to NAND...
    Erasing Nand...
    Attempt to erase non block-aligned data
    U-boot# boot
    Booting from nand ...
    
    NAND read: device 0 offset 0x280000, size 0x500000
     5242880 bytes read: OK
    Wrong Image Format for bootm command
    ERROR: can't get kernel image!
    U-boot# mmc rescan;nand erase.chip;env default -f -a;saveenv
    
    NAND erase.chip: device 0 whole chip
    Erasing at 0x3ffc0000 -- 100% complete.
    OK
    ## Resetting to default environment
    Saving Environment to NAND...
    Erasing Nand...
    Attempt to erase non block-aligned data
    U-boot# fatload mmc 0 0x82000000 MLO;nand write 0x82000000 0x00000 0x20000;nand write 0x82000000 0x20000 0x20000;nand write 0x82000000 0x40000 0x20000;nand write 0x82000000 0x60000 0x20000;fatload mmc 0 0x82000000 u-boot.img;nand write 0x82000000 0x80000 0x60000;fatload mmc 0 0x82000000 uImage;nand write 0x82000000 0x280000 0x500000;fatload mmc 0 0x82000000 ubi.img;nand write 0x82000000 0x780000 0xFC0000;
    reading MLO
    101993 bytes read in 14 ms (6.9 MiB/s)
    
    NAND write: device 0 offset 0x0, size 0x20000
     131072 bytes written: OK
    
    NAND write: device 0 offset 0x20000, size 0x20000
     131072 bytes written: OK
    
    NAND write: device 0 offset 0x40000, size 0x20000
     131072 bytes written: OK
    
    NAND write: device 0 offset 0x60000, size 0x20000
     131072 bytes written: OK
    reading u-boot.img
    367232 bytes read in 41 ms (8.5 MiB/s)
    
    NAND write: device 0 offset 0x80000, size 0x60000
     393216 bytes written: OK
    reading uImage
    3212160 bytes read in 325 ms (9.4 MiB/s)
    
    NAND write: device 0 offset 0x280000, size 0x500000
     5242880 bytes written: OK
    reading ubi.img
    18874368 bytes read in 1900 ms (9.5 MiB/s)
    
    NAND write: device 0 offset 0x780000, size 0xfc0000
     16515072 bytes written: OK
    U-boot# setenv nandroot ubi0:am335x-evm-rootfs rw ubi.mtd=7,2048
    U-boot# setenv bootcmd run nandboot
    U-boot# saveenv
    Saving Environment to NAND...
    Erasing Nand...
    Attempt to erase non block-aligned data
    U-boot# boot
    Booting from nand ...
    
    NAND read: device 0 offset 0x280000, size 0x500000
     5242880 bytes read: OK
    ## Booting kernel from Legacy Image at 80200000 ...
       Image Name:   Linux-3.2.0
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3212096 Bytes = 3.1 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 (root@ubuntu) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #228 Wed Apr 8 18:43:08 IST 2015
    [    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: 130048
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:am335x-evm-rootfs rw ubi.mtd=7,2048 rootfstype=ubifs rootwait=1
    [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Memory: 512MB = 512MB total
    [    0.000000] Memory: 512836k/512836k available, 11452k 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 : 0xe0800000 - 0xff000000   ( 488 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc05a0000   (5728 kB)
    [    0.000000]       .init : 0xc05a0000 - 0xc0637000   ( 604 kB)
    [    0.000000]       .data : 0xc0638000 - 0xc0694358   ( 369 kB)
    [    0.000000]        .bss : 0xc069437c - 0xc06c08d4   ( 178 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.000167] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.087742] pid_max: default: 32768 minimum: 301
    [    0.087844] Security Framework initialized
    [    0.087929] Mount-cache hash table entries: 512
    [    0.088264] CPU: Testing write buffer coherency: ok
    [    0.088933] devtmpfs: initialized
    [    0.107423] omap_hwmod: gfx: failed to hardreset
    [    0.123195] omap_hwmod: pruss: failed to hardreset
    [    0.124267] print_constraints: dummy:
    [    0.124554] NET: Registered protocol family 16
    [    0.126263] OMAP GPIO hardware version 0.1
    [    0.128277] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.130070]  omap_i2c.1: alias fck already exists
    [    0.130789]  omap2_mcspi.1: alias fck already exists
    [    0.130957]  omap2_mcspi.2: alias fck already exists
    [    0.131163]  edma.0: alias fck already exists
    [    0.131178]  edma.0: alias fck already exists
    [    0.131192]  edma.0: alias fck already exists
    [    0.150209] bio: create slab <bio-0> at 0
    [    0.151949] SCSI subsystem initialized
    [    0.153237] usbcore: registered new interface driver usbfs
    [    0.153480] usbcore: registered new interface driver hub
    [    0.153644] usbcore: registered new device driver usb
    [    0.153770] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [    0.153993] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [    0.154864] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [    0.156399] tps65910 1-002d: JTAGREVNUM 0x0
    [    0.158695] print_constraints: VRTC:
    [    0.160069] print_constraints: VIO: at 1800 mV
    [    0.162284] print_constraints: VDD1: 600 <--> 1500 mV at 1325 mV normal
    [    0.164479] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
    [    0.165406] print_constraints: VDD3: 5000 mV
    [    0.166742] print_constraints: VDIG1: at 1800 mV
    [    0.168093] print_constraints: VDIG2: at 1800 mV
    [    0.169439] print_constraints: VPLL: at 1800 mV
    [    0.170784] print_constraints: VDAC: at 1800 mV
    [    0.172134] print_constraints: VAUX1: at 1800 mV
    [    0.173485] print_constraints: VAUX2: at 3300 mV
    [    0.174832] print_constraints: VAUX33: at 3300 mV
    [    0.176173] print_constraints: VMMC: at 3300 mV
    [    0.176563] tps65910 1-002d: No interrupt support, no core IRQ
    [    0.177560] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [    0.178609] Switching to clocksource gp timer
    [    0.192418] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [    0.192582] musb-hdrc musb-hdrc.0: dma type: pio
    [    0.193295] musb-hdrc musb-hdrc.0: USB OTG mode controller at e081c000 using PIO, IRQ 18
    [    0.193431] musb-hdrc musb-hdrc.1: dma type: pio
    [    0.193752] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    0.193816] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [    0.193936] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.193947] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.193958] usb usb1: Product: MUSB HDRC host driver
    [    0.193966] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
    [    0.193974] usb usb1: SerialNumber: musb-hdrc.1
    [    0.194685] hub 1-0:1.0: USB hub found
    [    0.194710] hub 1-0:1.0: 1 port detected
    [    0.195192] musb-hdrc musb-hdrc.1: USB Host mode controller at e081e800 using PIO, IRQ 19
    [    0.195562] NET: Registered protocol family 2
    [    0.195739] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.196008] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
    [    0.196225] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.196352] TCP: Hash tables configured (established 16384 bind 16384)
    [    0.196362] TCP reno registered
    [    0.196373] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.196390] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.196544] NET: Registered protocol family 1
    [    0.196765] RPC: Registered named UNIX socket transport module.
    [    0.196775] RPC: Registered udp transport module.
    [    0.196782] RPC: Registered tcp transport module.
    [    0.196789] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.196989] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.216623] VFS: Disk quotas dquot_6.5.2
    [    0.216680] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.217114] msgmni has been set to 1001
    [    0.217759] io scheduler noop registered
    [    0.217769] io scheduler deadline registered
    [    0.217821] io scheduler cfq registered (default)
    [    0.219039] usbcore: registered new interface driver udlfb
    [    0.219797] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [    0.871241] console [ttyO0] enabled
    [    0.875478] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [    0.883307] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [    0.891072] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [    0.898840] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [    0.906557] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [    0.922088] brd: module loaded
    [    0.929440] loop: module loaded
    [    0.932873] i2c-core: driver [tsl2550] using legacy suspend method
    [    0.939360] i2c-core: driver [tsl2550] using legacy resume method
    [    0.945904] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    1.028661] No daughter card found
    [    1.032251] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    1.041618] Board name: A33515BB
    [    1.044989] Board version: 1.4A
    [    1.048266] SKU: SKU#01
    [    1.068645] The board is general purpose EVM in profile 0
    [    1.074286] Found invalid GP EVM revision, falling back to Rev1.1A
    [    1.126498]  da8xx_lcdc.0: alias fck already exists
    [    1.131815] usb 1-1: new high-speed USB device number 2 using musb-hdrc
    [    1.139156] da8xx_lcdc da8xx_lcdc.0: GLCD: Found TFC_S9700RTWV35TR_01B panel
    [    1.160208] Console: switching to colour frame buffer device 100x30
    [    1.179269] omap-gpmc omap-gpmc: GPMC revision 6.0
    [    1.184292] Registering NAND on CS0
    [    1.188518]  omap_i2c.2: alias fck already exists
    [    1.193783] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
    [    1.200251] tsl2550 2-0039: standard operating mode
    [    1.309931] usb 1-1: New USB device found, idVendor=04b4, idProduct=6572
    [    1.316939] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    [    1.324415] usb 1-1: Product: USB2.0 Hub
    [    1.329535] hub 1-1:1.0: USB hub found
    [    1.333751] hub 1-1:1.0: 4 ports detected
    [    1.618884] usb 1-1.2: new full-speed USB device number 3 using musb-hdrc
    [    1.720086] usb 1-1.2: New USB device found, idVendor=10c4, idProduct=ea60
    [    1.727275] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    1.734928] usb 1-1.2: Product: CP2102 USB to UART Bridge Controller
    [    1.741579] usb 1-1.2: Manufacturer: Silicon Labs
    [    1.746494] usb 1-1.2: SerialNumber: 0001
    [    1.828881] usb 1-1.3: new full-speed USB device number 4 using musb-hdrc
    [    1.930085] usb 1-1.3: New USB device found, idVendor=10c4, idProduct=ea60
    [    1.937273] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    1.944926] usb 1-1.3: Product: CP2102 USB to UART Bridge Controller
    [    1.951581] usb 1-1.3: Manufacturer: Silicon Labs
    [    1.956495] usb 1-1.3: SerialNumber: 0001
    [    2.218646] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [    2.224773] tsl2550: probe of 2-0039 failed with error -110
    [    2.238954]  omap_hsmmc.0: alias fck already exists
    [    2.244361]  omap_hsmmc.2: alias fck already exists
    [    2.264135] Configure Bluetooth Enable pin...
    [    2.283727] _regulator_get: 2-0018 supply Vdd not found, using dummy regulator
    [    2.291381] _regulator_get: 2-0018 supply Vdd_IO not found, using dummy regulator
    [    3.338646] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [    3.344755] lis3lv02d: unknown sensor type 0x92
    [    3.349572] lis3lv02d_i2c: probe of 2-0018 failed with error -22
    [    3.357864] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    3.365084] omap2-nand driver initializing
    [    3.369697] ONFI flash detected
    [    3.373103] ONFI param page 0 valid
    [    3.376754] NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron MT29F8G08ABABAWP)
    [    3.385331] Creating 8 MTD partitions on "omap2-nand.0":
    [    3.390913] 0x000000000000-0x000000020000 : "SPL"
    [    3.395828] mtd: partition "SPL" doesn't end on an erase block -- force read-only
    [    3.404958] 0x000000020000-0x000000040000 : "SPL.backup1"
    [    3.410642] mtd: partition "SPL.backup1" doesn't start on an erase block boundary -- force read-only
    [    3.421334] 0x000000040000-0x000000060000 : "SPL.backup2"
    [    3.426980] mtd: partition "SPL.backup2" doesn't start on an erase block boundary -- force read-only
    [    3.437701] 0x000000060000-0x000000080000 : "SPL.backup3"
    [    3.443375] mtd: partition "SPL.backup3" doesn't start on an erase block boundary -- force read-only
    [    3.454075] 0x000000080000-0x000000260000 : "U-Boot"
    [    3.459293] mtd: partition "U-Boot" doesn't end on an erase block -- force read-only
    [    3.468705] 0x000000260000-0x000000280000 : "U-Boot Env"
    [    3.474259] mtd: partition "U-Boot Env" doesn't start on an erase block boundary -- force read-only
    [    3.484869] 0x000000280000-0x000000780000 : "Kernel"
    [    3.491664] 0x000000780000-0x000040000000 : "File System"
    [    3.602824] OneNAND driver initializing
    [    3.607474] UBI: attaching mtd7 to ubi0
    [    3.611532] UBI: physical eraseblock size:   524288 bytes (512 KiB)
    [    3.618086] UBI: logical eraseblock size:    520192 bytes
    [    3.623734] UBI: smallest flash I/O unit:    4096
    [    3.628654] UBI: sub-page size:              1024
    [    3.633569] UBI: VID header offset:          2048 (aligned 2048)
    [    3.639852] UBI: data offset:                4096
    [    3.683707] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 32:0, read 64 bytes
    [    3.700586] UBI error: ubi_io_read: error -74 (ECC error) while reading 1024 bytes from PEB 32:2048, read 1024 bytes
    [    3.718146] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 33:0, read 64 bytes
    [    3.735019] UBI error: ubi_io_read: error -74 (ECC error) while reading 1024 bytes from PEB 33:2048, read 1024 bytes
    [    3.752582] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 34:0, read 64 bytes

  • Hello Lofna,

    You are not writing the whole UBI image to the NAND. Try this command.

    fatload mmc 0 0x82000000 MLO;nand write 0x82000000 0x00000 0x20000;nand write 0x82000000 0x20000 0x20000;nand write 0x82000000 0x40000 0x20000;nand write 0x82000000 0x60000 0x20000;fatload mmc 0 0x82000000 u-boot.img;nand write 0x82000000 0x80000 0x60000;fatload mmc 0 0x82000000 uImage;nand write 0x82000000 0x280000 0x500000;fatload mmc 0 0x82000000 ubi.img;nand write 0x82000000 0x780000 0x1200000;

    Best regards,

    Kemal

  • Hi Kemel,

    Still i am getting the same error.

    Could you send the required source files in U-boot & kernel for my understanding.

    THanks

  • Hello Lofna,

    I haven't changed anything on my Kernel and U-boot source. I use the prebuilt images from SDK6:

    filename: bytes: md5sum:

    MLO-am335x-evm 100549 70b894689451f22fe10e254cc4ad273f

    u-boot-am335x-evm.img 364376 3a357e6217e68529d6041ca755e37f0a

    uImage-am335x-evm.bin 3194336 f0c550e17905c6840e5d73e25d1ce329

    arago-base-tisdk-image-am335x-evm.ubi 26607616 b251aae1e4124566684cfa14155619ba

    Flashed them by the following commands:

    nand erase.chip
    
    fatload mmc 0 0x82000000 MLO
    
    nand erase 0x0 0x20000
    
    nand write 0x82000000 0x0 0x20000
    
    fatload mmc 0 0x82000000 MLO
    
    nand erase 0x40000 0x20000
    
    nand write 0x82000000 0x40000 0x20000
    
    fatload mmc 0 0x82000000 MLO
    
    nand erase 0x60000 0x20000
    
    nand write 0x82000000 0x60000 0x20000
    
    fatload mmc 0 0x82000000 u-boot.img
    
    nand erase 0x80000 0x40000
    
    nand write 0x82000000 0x80000 0x40000
    
    fatload mmc 0 0x82000000 uImage
    
    nand erase 0x00280000 0x00500000
    
    nand write 0x82000000 0x00280000 0x500000
    
    mw.b 0x82000000 0xFF 0x1960000
    
    fatload mmc 0 0x82000000 arago-base-tisdk-image-am335x-evm.ubi
    
    nand erase 0x780000 0x0f880000
    
    nand write 0x82000000 0x780000 0x1960000

    U-boot env:

    setenv nandroot ubi0:am335x-evm-rootfs rw ubi.mtd=7,2048
    
    setenv bootcmd run nandboot
    
    saveenv

    It boots and works like a charm.

    Have you ever tryed to flash the ubi image from user space.

    flash_erase /dev/mtd7 0 0
    
    ubiformat /dev/mtd7 -f ubi.img -s <subpagesize> -O 2048

    Could you also post the feedback from these commands?

    #U-Boot:

    mtdparts

    Boot from SD card

    #Linux:

    mtdinfo -a
    
    mtdinfo -u /dev/mtd7

    Best regards,

    Kemal

  • Hi Kemal,

    I am using Spansion S34ML08G2 (8 Gb, 4-bit ECC) Still i am unable to boot from NAND with my ubi file system. Kernel is booted but my file system is not booting. I am using SDK7 u-boot and changed some parameters in my config files. as per your steps followed below:

    U-Boot# nand info

    Device 0: nand0, sector size 128 KiB

     Page size      2048 b

     OOB size        128 b

     Erase size   131072 b

    U-Boot# mtdparts

    device nand0 <omap2-nand.0>, # parts = 8

    #: name                size            offset          mask_flags

    0: SPL                   0x00020000      0x00000000      0

    1: SPL.backup1      0x00020000      0x00020000      0

    2: SPL.backup2         0x00020000      0x00040000      0

    3: SPL.backup3         0x00020000      0x00060000      0

    4: u-boot              0x001e0000      0x00080000      0

    5: u-boot-env          0x00020000      0x00260000      0

    6: kernel              0x00500000      0x00280000      0

    7: rootfs              0x3f880000      0x00780000      0

    active partition: nand0,0 - (SPL) 0x00020000 @ 0x00000000

    defaults:

    mtdids  : nand0=omap2-nand.0

    mtdparts: mtdparts=omap2-nand.0:128k(SPL),128k(SPL.backup1),128k(SPL.backup2),128k(SPL.backup3),1920k(u-boot),128k(u-boot-env),5m(kernel),-(rootfs)

    U-Boot# nand erase.chip;fatload mmc 0 0x82000000 MLO;nand erase 0x0 0x20000;nand write 0x82000000 0x0 0x20000;fatload mmc 0 0x82000000 MLO;nand erase 0x40000 0x20000;nand write 0x82000000 0x40000 0x20000;fatload mmc 0 0x82000000 MLO;nand erase 0x60000 0x20000;nand write 0x82000000 0x60000 0x20000;fatload mmc 0 0x82000000 u-boot.img;nand erase 0x80000 0x40000;nand write 0x82000000 0x80000 0x40000;fatload mmc 0 0x82000000 uImage;nand erase 0x00280000 0x00500000;nand write 0x82000000 0x00280000 0x500000;mw.b 0x82000000 0xFF 0x1960000;fatload mmc 0 0x82000000 arago-base-tisdk-image-am335x-evm.ubi;nand erase 0x780000 0x0f880000;nand write 0x82000000 0x780000 0x1960000;

    Please suggest me there is some portion my kernel crash and memory also is shows 16Mb actual DDR2 is 512MB. Find attahced kernel booting log.

    Thanks

    U-Boot SPL 2013.10-00189-g78d8ebd-dirty (Apr 17 2015 - 20:03:00)
    U-boot from SDK7
    NAND FLASH - SPANSION
    # Lofna made modifications on 17 APR 2015,7:45PM#
    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Linux version 3.2.0 (root@ubuntu) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #236 Fri Apr 17 12:36:55 IST 2015
    [    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] Warning: Neither atags nor dtb found
    [    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 off.  Total pages: 4064
    [    0.000000] Kernel command line: root=/dev/mmcblk0p2 rootwait console=ttyO0,115200
    [    0.000000] PID hash table entries: 64 (order: -4, 256 bytes)
    [    0.000000] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000000] Memory: 16MB = 16MB total
    [    0.000000] Memory: 9284k/9284k available, 7100k 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 : 0xc1800000 - 0xff000000   ( 984 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xc1000000   (  16 MB)
    [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc05a0000   (5728 kB)
    [    0.000000]       .init : 0xc05a0000 - 0xc0637000   ( 604 kB)
    [    0.000000]       .data : 0xc0638000 - 0xc0694358   ( 369 kB)
    [    0.000000]        .bss : 0xc069437c - 0xc06c08d4   ( 178 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.000160] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.087773] pid_max: default: 32768 minimum: 301
    [    0.087866] Security Framework initialized
    [    0.087952] Mount-cache hash table entries: 512
    [    0.088278] CPU: Testing write buffer coherency: ok
    [    0.088946] devtmpfs: initialized
    [    0.107413] omap_hwmod: gfx: failed to hardreset
    [    0.123178] omap_hwmod: pruss: failed to hardreset
    [    0.124285] print_constraints: dummy:
    [    0.124580] NET: Registered protocol family 16
    [    0.126301] OMAP GPIO hardware version 0.1
    [    0.128332] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.130051]  omap_i2c.1: alias fck already exists
    [    0.130755]  omap2_mcspi.1: alias fck already exists
    [    0.130917]  omap2_mcspi.2: alias fck already exists
    [    0.131121]  edma.0: alias fck already exists
    [    0.131136]  edma.0: alias fck already exists
    [    0.131149]  edma.0: alias fck already exists
    [    0.150143] bio: create slab <bio-0> at 0
    [    0.151923] SCSI subsystem initialized
    [    0.153252] usbcore: registered new interface driver usbfs
    [    0.153506] usbcore: registered new interface driver hub
    [    0.153675] usbcore: registered new device driver usb
    [    0.153802] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [    0.154023] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [    0.167797] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [    0.169386] tps65910 1-002d: JTAGREVNUM 0x0
    [    0.171659] print_constraints: VRTC:
    [    0.173027] print_constraints: VIO: at 1800 mV
    [    0.175247] print_constraints: VDD1: 600 <--> 1500 mV at 1325 mV normal
    [    0.177448] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
    [    0.178375] print_constraints: VDD3: 5000 mV
    [    0.179721] print_constraints: VDIG1: at 1800 mV
    [    0.181087] print_constraints: VDIG2: at 1800 mV
    [    0.182434] print_constraints: VPLL: at 1800 mV
    [    0.183783] print_constraints: VDAC: at 1800 mV
    [    0.185125] print_constraints: VAUX1: at 1800 mV
    [    0.186478] print_constraints: VAUX2: at 3300 mV
    [    0.187831] print_constraints: VAUX33: at 3300 mV
    [    0.189173] print_constraints: VMMC: at 3300 mV
    [    0.189557] tps65910 1-002d: No interrupt support, no core IRQ
    [    0.190552] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [    0.191550] Switching to clocksource gp timer
    [    0.205346] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [    0.205509] musb-hdrc musb-hdrc.0: dma type: pio
    [    0.206226] musb-hdrc musb-hdrc.0: USB OTG mode controller at c181c000 using PIO, IRQ 18
    [    0.206364] musb-hdrc musb-hdrc.1: dma type: pio
    [    0.206692] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    0.206761] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [    0.206879] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.206891] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.206901] usb usb1: Product: MUSB HDRC host driver
    [    0.206909] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
    [    0.206917] usb usb1: SerialNumber: musb-hdrc.1
    [    0.207638] hub 1-0:1.0: USB hub found
    [    0.207663] hub 1-0:1.0: 1 port detected
    [    0.208127] musb-hdrc musb-hdrc.1: USB Host mode controller at c181e800 using PIO, IRQ 19
    [    0.208503] NET: Registered protocol family 2
    [    0.208680] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.208932] TCP established hash table entries: 512 (order: 0, 4096 bytes)
    [    0.208952] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
    [    0.208966] TCP: Hash tables configured (established 512 bind 512)
    [    0.208976] TCP reno registered
    [    0.208986] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.209003] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.209158] NET: Registered protocol family 1
    [    0.209379] RPC: Registered named UNIX socket transport module.
    [    0.209388] RPC: Registered udp transport module.
    [    0.209395] RPC: Registered tcp transport module.
    [    0.209402] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.209600] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.212561] VFS: Disk quotas dquot_6.5.2
    [    0.212609] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.213024] msgmni has been set to 18
    [    0.213635] io scheduler noop registered
    [    0.213644] io scheduler deadline registered
    [    0.213698] io scheduler cfq registered (default)
    [    0.214723] usbcore: registered new interface driver udlfb
    [    0.215463] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [    0.864926] console [ttyO0] enabled
    [    0.869161] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [    0.876987] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [    0.884738] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [    0.892478] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [    0.900186] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [    0.915616] brd: module loaded
    [    0.922944] loop: module loaded
    [    0.926375] i2c-core: driver [tsl2550] using legacy suspend method
    [    0.932864] i2c-core: driver [tsl2550] using legacy resume method
    [    0.939406] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    1.021605] No daughter card found
    [    1.025193] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    1.034551] Board name: A33515BB
    [    1.037920] Board version: 1.4A
    [    1.041198] SKU: SKU#01
    [    1.043893] The board is general purpose EVM in profile 0
    [    1.049534] Found invalid GP EVM revision, falling back to Rev1.1A
    [    1.101770]  da8xx_lcdc.0: alias fck already exists
    [    1.107062] usb 1-1: new high-speed USB device number 2 using musb-hdrc
    [    1.114436] da8xx_lcdc da8xx_lcdc.0: GLCD: Found TFC_S9700RTWV35TR_01B panel
    [    1.123010] swapper: page allocation failure: order:10, mode:0xd1
    [    1.129378] Backtrace:
    [    1.131980] [<c00179a4>] (dump_backtrace+0x0/0x10c) from [<c0426c38>] (dump_stack+0x18/0x1c)
    [    1.140801]  r6:00000000 r5:000000d1 r4:00000001 r3:c0659448
    [    1.146755] [<c0426c20>] (dump_stack+0x0/0x1c) from [<c007bddc>] (warn_alloc_failed+0xc8/0x108)
    [    1.155864] [<c007bd14>] (warn_alloc_failed+0x0/0x108) from [<c007de70>] (__alloc_pages_nodemask+0x448/0x644)
    [    1.166235]  r3:00000000 r2:00000000
    [    1.169972]  r8:00000000 r7:c068b910 r6:c063a0b8 r5:0000000a r4:000000d1
    [    1.177012] [<c007da28>] (__alloc_pages_nodemask+0x0/0x644) from [<c00197c8>] (__dma_alloc+0xec/0x338)
    [    1.186755] [<c00196dc>] (__dma_alloc+0x0/0x338) from [<c001a0e8>] (dma_alloc_coherent+0x5c/0x68)
    [    1.196042] [<c001a08c>] (dma_alloc_coherent+0x0/0x68) from [<c041db80>] (fb_probe+0xad0/0xb34)
    [    1.205140]  r7:c06579ec r6:c0f58680 r5:c0f4f008 r4:c066c75c
    [    1.211082] [<c041d0b0>] (fb_probe+0x0/0xb34) from [<c0227dd4>] (platform_drv_probe+0x20/0x24)
    [    1.220099] [<c0227db4>] (platform_drv_probe+0x0/0x24) from [<c0226820>] (driver_probe_device+0xb8/0x2c0)
    [    1.230114] [<c0226768>] (driver_probe_device+0x0/0x2c0) from [<c0226b04>] (__device_attach+0x44/0x48)
    [    1.239848]  r8:c06b7a4c r7:c0658c38 r6:c0226ac0 r5:c0f4f008 r4:c066c6a0
    [    1.246882] [<c0226ac0>] (__device_attach+0x0/0x48) from [<c0225510>] (bus_for_each_drv+0x64/0x90)
    [    1.256252]  r5:00000000 r4:c0f4f008
    [    1.259996] [<c02254ac>] (bus_for_each_drv+0x0/0x90) from [<c02266f8>] (device_attach+0x90/0xa8)
    [    1.269185]  r6:00000000 r5:c0f4f03c r4:c0f4f008
    [    1.274031] [<c0226668>] (device_attach+0x0/0xa8) from [<c0225e2c>] (bus_probe_device+0x2c/0x48)
    [    1.283219]  r6:00000000 r5:c0f4f010 r4:c0f4f008 r3:00000001
    [    1.289151] [<c0225e00>] (bus_probe_device+0x0/0x48) from [<c0224138>] (device_add+0x498/0x584)
    [    1.298258] [<c0223ca0>] (device_add+0x0/0x584) from [<c02283b8>] (platform_device_add+0x108/0x1dc)
    [    1.307733] [<c02282b0>] (platform_device_add+0x0/0x1dc) from [<c0034054>] (omap_device_register+0x38/0x5c)
    [    1.317922]  r7:c050500c r6:00000000 r5:c0f56280 r4:c0f4f000
    [    1.323862] [<c003401c>] (omap_device_register+0x0/0x5c) from [<c0034174>] (omap_device_build_ss+0xfc/0x148)
    [    1.334141]  r4:c0f4f000 r3:00000000
    [    1.337885] [<c0034078>] (omap_device_build_ss+0x0/0x148) from [<c0034214>] (omap_device_build+0x54/0x5c)
    [    1.347912] [<c00341c0>] (omap_device_build+0x0/0x5c) from [<c05a8428>] (am33xx_register_lcdc+0x64/0xb0)
    [    1.357837] [<c05a83c4>] (am33xx_register_lcdc+0x0/0xb0) from [<c0030d44>] (lcdc_init+0x64/0xac)
    [    1.367025]  r6:00000001 r5:00000000 r4:c064b09c
    [    1.371872] [<c0030ce0>] (lcdc_init+0x0/0xac) from [<c0426e5c>] (_configure_device+0xb8/0xe0)
    [    1.380782]  r5:c06574a4 r4:00000001
    [    1.384533] [<c0426da4>] (_configure_device+0x0/0xe0) from [<c00310a8>] (am335x_evm_setup+0x31c/0x428)
    [    1.394266]  r7:ffffffff r6:00000000 r5:c0656668 r4:c0695124
    [    1.400204] [<c0030d8c>] (am335x_evm_setup+0x0/0x428) from [<c0238134>] (at24_probe+0x45c/0x50c)
    [    1.409393]  r7:00000000 r6:c0f5bec0 r5:c087b820 r4:c087b800
    [    1.415345] [<c0237cd8>] (at24_probe+0x0/0x50c) from [<c02e33fc>] (i2c_device_probe+0xd4/0x12c)
    [    1.424452] [<c02e3328>] (i2c_device_probe+0x0/0x12c) from [<c0226820>] (driver_probe_device+0xb8/0x2c0)
    [    1.434375] [<c0226768>] (driver_probe_device+0x0/0x2c0) from [<c0226abc>] (__driver_attach+0x94/0x98)
    [    1.444110]  r8:00000000 r7:00000000 r6:c087b854 r5:c0671448 r4:c087b820
    [    1.451136] [<c0226a28>] (__driver_attach+0x0/0x98) from [<c022581c>] (bus_for_each_dev+0x64/0x90)
    [    1.460507]  r6:c0226a28 r5:00000000 r4:c0671448 r3:c0226a28
    [    1.466446] [<c02257b8>] (bus_for_each_dev+0x0/0x90) from [<c0226448>] (driver_attach+0x24/0x28)
    [    1.475635]  r6:c0f38140 r5:c067cef8 r4:c0671448
    [    1.480474] [<c0226424>] (driver_attach+0x0/0x28) from [<c02260a4>] (bus_add_driver+0x18c/0x26c)
    [    1.489669] [<c0225f18>] (bus_add_driver+0x0/0x26c) from [<c0226fd4>] (driver_register+0x80/0x138)
    [    1.499048] [<c0226f54>] (driver_register+0x0/0x138) from [<c02e54a0>] (i2c_register_driver+0x34/0xe8)
    [    1.508783]  r8:00000000 r7:00000013 r6:00000000 r5:c0812000 r4:c0671420
    [    1.515624] r3:c067cef8
    [    1.518378] [<c02e546c>] (i2c_register_driver+0x0/0xe8) from [<c05be8e8>] (at24_init+0x48/0x54)
    [    1.527477]  r5:c0812000 r4:c0694380
    [    1.531223] [<c05be8a0>] (at24_init+0x0/0x54) from [<c00085fc>] (do_one_initcall+0x40/0x184)
    [    1.540057] [<c00085bc>] (do_one_initcall+0x0/0x184) from [<c05a0854>] (kernel_init+0x80/0x11c)
    [    1.549170] [<c05a07d4>] (kernel_init+0x0/0x11c) from [<c003f4ac>] (do_exit+0x0/0x66c)
    [    1.557450]  r5:c05a07d4 r4:00000000
    [    1.561188] Mem-info:
    [    1.563564] Normal per-cpu:
    [    1.566480] CPU    0: hi:    0, btch:   1 usd:   0
    [    1.571492] active_anon:0 inactive_anon:0 isolated_anon:0
    [    1.571496]  active_file:0 inactive_file:0 isolated_file:0
    [    1.571501]  unevictable:0 dirty:0 writeback:0 unstable:0
    [    1.571506]  free:1846 slab_reclaimable:24 slab_unreclaimable:369
    [    1.571511]  mapped:0 shmem:0 pagetables:0 bounce:0
    [    1.599977] Normal free:7384kB min:508kB low:632kB high:760kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:16256kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:96kB slab_unreclaimable:1476kB kernel_stack:224kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
    [    1.638511] lowmem_reserve[]: 0 0
    [    1.641986] Normal: 2*4kB 0*8kB 1*16kB 0*32kB 1*64kB 1*128kB 0*256kB 0*512kB 3*1024kB 2*2048kB 0*4096kB 0*8192kB = 7384kB
    [    1.653492] 0 total pagecache pages
    [    1.657133] 0 pages in swap cache
    [    1.660592] Swap cache stats: add 0, delete 0, find 0/0
    [    1.666056] Free swap  = 0kB
    [    1.669060] Total swap = 0kB
    [    1.672642] 4096 pages of RAM
    [    1.675742] 1877 free pages
    [    1.678654] 1775 reserved pages
    [    1.681948] 393 slab pages
    [    1.684771] 0 pages shared
    [    1.687593] 0 pages swap cached
    [    1.690879] da8xx_lcdc da8xx_lcdc.0: GLCD: kmalloc for frame buffer failed
    [    1.698109] da8xx_lcdc: probe of da8xx_lcdc.0 failed with error -22
    [    1.705881] omap-gpmc omap-gpmc: GPMC revision 6.0
    [    1.710900] Registering NAND on CS0
    [    1.715183]  omap_i2c.2: alias fck already exists
    [    1.731648] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
    [    1.738100] tsl2550 2-0039: standard operating mode
    [    1.782883] usb 1-1: New USB device found, idVendor=04b4, idProduct=6572
    [    1.789891] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    [    1.797361] usb 1-1: Product: USB2.0 Hub
    [    1.802463] hub 1-1:1.0: USB hub found
    [    1.806688] hub 1-1:1.0: 4 ports detected
    [    2.091826] usb 1-1.2: new full-speed USB device number 3 using musb-hdrc
    [    2.193012] usb 1-1.2: New USB device found, idVendor=10c4, idProduct=ea60
    [    2.200202] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    2.207855] usb 1-1.2: Product: CP2102 USB to UART Bridge Controller
    [    2.214508] usb 1-1.2: Manufacturer: Silicon Labs
    [    2.219422] usb 1-1.2: SerialNumber: 0001
    [    2.301830] usb 1-1.3: new full-speed USB device number 4 using musb-hdrc
    [    2.403014] usb 1-1.3: New USB device found, idVendor=10c4, idProduct=ea60
    [    2.410202] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    2.417853] usb 1-1.3: Product: CP2102 USB to UART Bridge Controller
    [    2.424502] usb 1-1.3: Manufacturer: Silicon Labs
    [    2.429416] usb 1-1.3: SerialNumber: 0001
    [    2.751586] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [    2.757708] tsl2550: probe of 2-0039 failed with error -110
    [    2.771877]  omap_hsmmc.0: alias fck already exists
    [    2.777297]  omap_hsmmc.2: alias fck already exists
    [    2.797085] Configure Bluetooth Enable pin...
    [    2.816666] _regulator_get: 2-0018 supply Vdd not found, using dummy regulator
    [    2.824316] _regulator_get: 2-0018 supply Vdd_IO not found, using dummy regulator
    [    3.871586] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [    3.877693] lis3lv02d: unknown sensor type 0x92
    [    3.882497] lis3lv02d_i2c: probe of 2-0018 failed with error -22
    [    3.890778] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    3.898004] omap2-nand driver initializing
    [    3.902613] ONFI flash detected
    [    3.906014] ONFI param page 0 valid
    [    3.909664] NAND device: Manufacturer ID: 0x01, Chip ID: 0xd3 (Spansion S34ML08G2)
    [    3.917784] Creating 8 MTD partitions on "omap2-nand.0":
    [    3.923363] 0x000000000000-0x000000020000 : "SPL"
    [    3.929562] 0x000000020000-0x000000040000 : "SPL.backup1"
    [    3.936355] 0x000000040000-0x000000060000 : "SPL.backup2"
    [    3.943127] 0x000000060000-0x000000080000 : "SPL.backup3"
    [    3.949856] 0x000000080000-0x000000260000 : "U-Boot"
    [    3.956951] 0x000000260000-0x000000280000 : "U-Boot Env"
    [    3.963675] 0x000000280000-0x000000780000 : "Kernel"
    [    3.972036] 0x000000780000-0x000020000000 : "File System"
    [    4.185610] OneNAND driver initializing
    [    4.231597] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [    4.238065] davinci_mdio davinci_mdio.0: detected phy mask 7fffffff
    [    4.245196] davinci_mdio.0: probed
    [    4.248755] davinci_mdio davinci_mdio.0: phy[31]: device 0:1f, driver unknown
    [    4.256342] PPP generic driver version 2.4.2
    [    4.261156] PPP BSD Compression module registered
    [    4.266094] PPP Deflate Compression module registered
    [    4.271719] PPP MPPE Compression module registered
    [    4.277004] usbcore: registered new interface driver zd1201
    [    4.283029] usbcore: registered new interface driver cdc_ether
    [    4.289245] usbcore: registered new interface driver cdc_eem
    [    4.295299] usbcore: registered new interface driver dm9601
    [    4.301161] cdc_ncm: 04-Aug-2011
    [    4.304677] usbcore: registered new interface driver cdc_ncm
    [    4.310591] Initializing USB Mass Storage driver...
    [    4.315919] usbcore: registered new interface driver usb-storage
    [    4.322209] USB Mass Storage support registered.
    [    4.327331] usbcore: registered new interface driver usbserial
    [    4.333443] usbserial: USB Serial Driver core
    [    4.338104] USB Serial support registered for cp210x
    [    4.343382] cp210x 1-1.2:1.0: cp210x converter detected
    [    4.421832] usb 1-1.2: reset full-speed USB device number 3 using musb-hdrc
    [    4.522743] usb 1-1.2: cp210x converter now attached to ttyUSB0
    [    4.528988] cp210x 1-1.3:1.0: cp210x converter detected
    [    4.611837] usb 1-1.3: reset full-speed USB device number 4 using musb-hdrc
    [    4.712695] usb 1-1.3: cp210x converter now attached to ttyUSB1
    [    4.719037] usbcore: registered new interface driver cp210x
    [    4.724881] cp210x: v0.09:Silicon Labs CP210x RS232 serial adaptor driver
    [    4.732095] USB Serial support registered for pl2303
    [    4.737458] usbcore: registered new interface driver pl2303
    [    4.743295] pl2303: Prolific PL2303 USB to serial adaptor driver
    [    4.750020] mousedev: PS/2 mouse device common for all mice
    [    4.756787] input: adp5588-keys as /devices/platform/omap/omap_i2c.1/i2c-1/1-0034/input/input0
    [    4.772114] adp5588_keys 1-0034: Rev.4 keypad, irq 217
    [    4.778441] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input1
    [    4.787157] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    [    4.794004] i2c /dev entries driver
    [    4.798216] Linux video capture interface: v2.00
    [    5.821586] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [    5.827711] lm75: probe of 2-0048 failed with error -110
    [    6.971588] omap_i2c omap_i2c.2: controller timed out
    [    8.011582] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [    9.031579] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [   10.051580] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [   11.071582] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [   12.091580] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [   13.111579] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [   13.118531] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [   13.129554] cpuidle: using governor ladder
    [   13.134357] cpuidle: using governor menu
    [   13.138585] sdhci: Secure Digital Host Controller Interface driver
    [   13.145042] sdhci: Copyright(c) Pierre Ossman
    [   13.155254] usbcore: registered new interface driver usbhid
    [   13.161074] usbhid: USB HID core driver
    [   13.166102] tiadc tiadc: attached adc driver
    [   13.170861] i2c-core: driver [hmc5843] using legacy suspend method
    [   13.177331] i2c-core: driver [hmc5843] using legacy resume method
    [   13.184549] usbcore: registered new interface driver snd-usb-audio
    [   13.191032] ALSA device list:
    [   13.194144]   No soundcards found.
    [   13.197685] oprofile: hardware counters not available
    [   13.202955] oprofile: using timer interrupt.
    [   13.207439] nf_conntrack version 0.5.0 (145 buckets, 580 max)
    [   13.213900] ip_tables: (C) 2000-2006 Netfilter Core Team
    [   13.219563] TCP cubic registered
    [   13.222963] NET: Registered protocol family 17
    [   13.227709] Bridge firewalling registered
    [   13.231949] lib80211: common routines for IEEE802.11 drivers
    [   13.237891] Registering the dns_resolver key type
    [   13.242847] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [   13.250838] ThumbEE CPU extension supported.
    [   13.255360] mux: Failed to setup hwmod io irq -22
    [   13.260875] Power Management for AM33XX family
    [   13.265734] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [   13.272401] Copied the M3 firmware to UMEM
    [   13.276683] omap_hwmod: wkup_m3: wkup_m3: hwmod data error: OMAP4 does not support st_shift
    [   13.291508] clock: disabling unused clocks to save power
    [   13.299209] Detected MACID=d0:5f:b8:87:7:5b
    [   13.305090] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    [   13.314333] Waiting for root device /dev/mmcblk0p2...

  • Hi Kemal,

     After changed the offset in u-boot, now i am able to boot uImage from NAND, but still i am facing UBI ecc error. My file system is not linking.

    getting the error:

    UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read 64 bytes
    UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 0:2048, read 512 bytes

    Please find attached log.

    Thanks

    U-Boot SPL 2013.10-00189-g78d8ebd-dirty (Apr 20 2015 - 13:45:12)
    U-boot from SDK7
    NAND FLASH - SPANSION
    # Lofna made modifications on 20 APR 2015,12:30PM#
    Trying to start u-boot now...
    
    U-Boot 2013.10-00189-g78d8ebd-dirty (Apr 20 2015 - 13:45:12)
    
    I2C:   ready
    DRAM:  512 MiB
    NAND:  1024 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Hit any key to stop autoboot:  0
    
    NAND read: device 0 offset 0x280000, size 0x500000
     5242880 bytes read: OK
    ## Booting kernel from Legacy Image at 80200000 ...
       Image Name:   Linux-3.2.0
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3212048 Bytes = 3.1 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    
    Starting kernel ...
    
    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Linux version 3.2.0 (root@ubuntu) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #236 Fri Apr 17 12:36:55 IST 2015
    [    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: 130048
    [    0.000000] Kernel command line: console=ttyO0,115200 root=ubi0:root ubi.mtd=7,2048 rootfstype=ubifs noinitrd mtdparts=omap2-nand.0:128k(SPL),128k(SPL.backup1),128k(SPL.backup2),128k(SPL.backup3),1920k(u-boot),128k(u-boot-env),5m(kernel),-(root)
    [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Memory: 512MB = 512MB total
    [    0.000000] Memory: 512836k/512836k available, 11452k 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 : 0xe0800000 - 0xff000000   ( 488 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc05a0000   (5728 kB)
    [    0.000000]       .init : 0xc05a0000 - 0xc0637000   ( 604 kB)
    [    0.000000]       .data : 0xc0638000 - 0xc0694358   ( 369 kB)
    [    0.000000]        .bss : 0xc069437c - 0xc06c08d4   ( 178 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.000171] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.087751] pid_max: default: 32768 minimum: 301
    [    0.087852] Security Framework initialized
    [    0.087937] Mount-cache hash table entries: 512
    [    0.088278] CPU: Testing write buffer coherency: ok
    [    0.088934] devtmpfs: initialized
    [    0.107430] omap_hwmod: gfx: failed to hardreset
    [    0.123206] omap_hwmod: pruss: failed to hardreset
    [    0.124284] print_constraints: dummy:
    [    0.124568] NET: Registered protocol family 16
    [    0.126249] OMAP GPIO hardware version 0.1
    [    0.128246] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.130021]  omap_i2c.1: alias fck already exists
    [    0.130746]  omap2_mcspi.1: alias fck already exists
    [    0.130910]  omap2_mcspi.2: alias fck already exists
    [    0.131113]  edma.0: alias fck already exists
    [    0.131129]  edma.0: alias fck already exists
    [    0.131142]  edma.0: alias fck already exists
    [    0.150091] bio: create slab <bio-0> at 0
    [    0.151842] SCSI subsystem initialized
    [    0.153148] usbcore: registered new interface driver usbfs
    [    0.153395] usbcore: registered new interface driver hub
    [    0.153556] usbcore: registered new device driver usb
    [    0.153685] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [    0.153901] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [    0.167775] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [    0.169327] tps65910 1-002d: JTAGREVNUM 0x0
    [    0.171583] print_constraints: VRTC:
    [    0.172950] print_constraints: VIO: at 1800 mV
    [    0.175167] print_constraints: VDD1: 600 <--> 1500 mV at 1325 mV normal
    [    0.177361] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
    [    0.178290] print_constraints: VDD3: 5000 mV
    [    0.179633] print_constraints: VDIG1: at 1800 mV
    [    0.180983] print_constraints: VDIG2: at 1800 mV
    [    0.182329] print_constraints: VPLL: at 1800 mV
    [    0.183674] print_constraints: VDAC: at 1800 mV
    [    0.185020] print_constraints: VAUX1: at 1800 mV
    [    0.186371] print_constraints: VAUX2: at 3300 mV
    [    0.187713] print_constraints: VAUX33: at 3300 mV
    [    0.189079] print_constraints: VMMC: at 3300 mV
    [    0.189465] tps65910 1-002d: No interrupt support, no core IRQ
    [    0.190445] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [    0.191447] Switching to clocksource gp timer
    [    0.205198] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [    0.205358] musb-hdrc musb-hdrc.0: dma type: pio
    [    0.206072] musb-hdrc musb-hdrc.0: USB OTG mode controller at e081c000 using PIO, IRQ 18
    [    0.206208] musb-hdrc musb-hdrc.1: dma type: pio
    [    0.206520] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    0.206586] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [    0.206706] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.206718] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.206728] usb usb1: Product: MUSB HDRC host driver
    [    0.206736] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
    [    0.206744] usb usb1: SerialNumber: musb-hdrc.1
    [    0.207477] hub 1-0:1.0: USB hub found
    [    0.207505] hub 1-0:1.0: 1 port detected
    [    0.207975] musb-hdrc musb-hdrc.1: USB Host mode controller at e081e800 using PIO, IRQ 19
    [    0.208343] NET: Registered protocol family 2
    [    0.208517] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.208792] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
    [    0.209007] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.209134] TCP: Hash tables configured (established 16384 bind 16384)
    [    0.209144] TCP reno registered
    [    0.209154] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.209171] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.209326] NET: Registered protocol family 1
    [    0.209546] RPC: Registered named UNIX socket transport module.
    [    0.209555] RPC: Registered udp transport module.
    [    0.209562] RPC: Registered tcp transport module.
    [    0.209569] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.209766] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.229268] VFS: Disk quotas dquot_6.5.2
    [    0.229325] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.229773] msgmni has been set to 1001
    [    0.230420] io scheduler noop registered
    [    0.230430] io scheduler deadline registered
    [    0.230482] io scheduler cfq registered (default)
    [    0.231672] usbcore: registered new interface driver udlfb
    [    0.232448] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [    0.894507] console [ttyO0] enabled
    [    0.898730] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [    0.906555] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [    0.914298] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [    0.922058] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [    0.929775] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [    0.945135] brd: module loaded
    [    0.952396] loop: module loaded
    [    0.955829] i2c-core: driver [tsl2550] using legacy suspend method
    [    0.962316] i2c-core: driver [tsl2550] using legacy resume method
    [    0.968858] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    1.051601] No daughter card found
    [    1.055193] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    1.064562] Board name: A33515BB
    [    1.067931] Board version: 1.4A
    [    1.071209] SKU: SKU#01
    [    1.091480] The board is general purpose EVM in profile 0
    [    1.097120] Found invalid GP EVM revision, falling back to Rev1.1A
    [    1.149344]  da8xx_lcdc.0: alias fck already exists
    [    1.154644] usb 1-1: new high-speed USB device number 2 using musb-hdrc
    [    1.161999] da8xx_lcdc da8xx_lcdc.0: GLCD: Found TFC_S9700RTWV35TR_01B panel
    [    1.183457] Console: switching to colour frame buffer device 100x30
    [    1.201881] omap-gpmc omap-gpmc: GPMC revision 6.0
    [    1.206900] Registering NAND on CS0
    [    1.211121]  omap_i2c.2: alias fck already exists
    [    1.231532] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
    [    1.237996] tsl2550 2-0039: standard operating mode
    [    1.332771] usb 1-1: New USB device found, idVendor=04b4, idProduct=6572
    [    1.339780] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    [    1.347254] usb 1-1: Product: USB2.0 Hub
    [    1.352354] hub 1-1:1.0: USB hub found
    [    1.356574] hub 1-1:1.0: 4 ports detected
    [    1.641716] usb 1-1.2: new full-speed USB device number 3 using musb-hdrc
    [    1.742926] usb 1-1.2: New USB device found, idVendor=10c4, idProduct=ea60
    [    1.750115] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    1.757768] usb 1-1.2: Product: CP2102 USB to UART Bridge Controller
    [    1.764418] usb 1-1.2: Manufacturer: Silicon Labs
    [    1.769333] usb 1-1.2: SerialNumber: 0001
    [    1.851716] usb 1-1.3: new full-speed USB device number 4 using musb-hdrc
    [    1.952925] usb 1-1.3: New USB device found, idVendor=10c4, idProduct=ea60
    [    1.960114] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    1.967767] usb 1-1.3: Product: CP2102 USB to UART Bridge Controller
    [    1.974420] usb 1-1.3: Manufacturer: Silicon Labs
    [    1.979334] usb 1-1.3: SerialNumber: 0001
    [    2.261483] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [    2.267605] tsl2550: probe of 2-0039 failed with error -110
    [    2.281783]  omap_hsmmc.0: alias fck already exists
    [    2.287177]  omap_hsmmc.2: alias fck already exists
    [    2.306959] Configure Bluetooth Enable pin...
    [    2.326547] _regulator_get: 2-0018 supply Vdd not found, using dummy regulator
    [    2.334195] _regulator_get: 2-0018 supply Vdd_IO not found, using dummy regulator
    [    3.381480] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [    3.387591] lis3lv02d: unknown sensor type 0x92
    [    3.392404] lis3lv02d_i2c: probe of 2-0018 failed with error -22
    [    3.400703] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    3.407925] omap2-nand driver initializing
    [    3.412540] ONFI flash detected
    [    3.415939] ONFI param page 0 valid
    [    3.419589] NAND device: Manufacturer ID: 0x01, Chip ID: 0xd3 (Spansion S34ML08G2)
    [    3.427560] 8 cmdlinepart partitions found on MTD device omap2-nand.0
    [    3.434301] Creating 8 MTD partitions on "omap2-nand.0":
    [    3.439858] 0x000000000000-0x000000020000 : "SPL"
    [    3.446077] 0x000000020000-0x000000040000 : "SPL.backup1"
    [    3.452859] 0x000000040000-0x000000060000 : "SPL.backup2"
    [    3.459601] 0x000000060000-0x000000080000 : "SPL.backup3"
    [    3.466404] 0x000000080000-0x000000260000 : "u-boot"
    [    3.473450] 0x000000260000-0x000000280000 : "u-boot-env"
    [    3.480109] 0x000000280000-0x000000780000 : "kernel"
    [    3.488439] 0x000000780000-0x000020000000 : "root"
    [    3.701443] OneNAND driver initializing
    [    3.706138] UBI: attaching mtd7 to ubi0
    [    3.710154] UBI: physical eraseblock size:   131072 bytes (128 KiB)
    [    3.716732] UBI: logical eraseblock size:    126976 bytes
    [    3.722383] UBI: smallest flash I/O unit:    2048
    [    3.727295] UBI: sub-page size:              512
    [    3.732124] UBI: VID header offset:          2048 (aligned 2048)
    [    3.738401] UBI: data offset:                4096
    [    3.747065] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read 64 bytes
    [    3.760923] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 0:2048, read 512 bytes
    [    3.775303] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 1:0, read 64 bytes
    [    3.789139] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 1:2048, read 512 bytes
    [    3.803480] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 2:0, read 64 bytes
    [    3.817312] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:2048, read 512 bytes
    [    3.831653] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 3:0, read 64 bytes
    [    3.845482] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 3:2048, read 512 bytes
    [    3.859818] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 4:0, read 64 bytes
    [    3.873651] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 4:2048, read 512 bytes

  • Hello Lofna,

    According this wiki, currently sub-pages are not supported. Check whether these errors will continue to appear if the subpage-size is equal to the page-size.

    Best regards,
    Kemal