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.

Linux/AM3352: NAND test fails

Part Number: AM3352

Tool/software: Linux

Hi All,

I needs your help.

The following two Nand Flash are referred  in project.

a)  MT29F4G08ABAEAWP :   4096 byte per page, 224 byte per page OOB

b). TC58NVG2S0HTA00:        4096 byte per page, 256 byte per page OOB

After NAND parameter porting, the mtd test embed in Linux has been used for testing. 

However there are some errors after test.

Here it's the test result of MTD test code.

  mtd_nandbiterrs.ko  mtd_oobtest.ko  others
MT29F4G08ABAEAWP OK OK OK
TC58NVG2S0HTA00 NG, the 1st OOB data has been corrupted during write data area only. NG,
1 bitflip exist more than 10 units data
OK

From the test result, I don't know what's the actual reason. therefore I  doubt that weather the GPMC timing is reasonable. But I do not find the details for how to configure the nand timing in the specification.

Can you help to check the timing parameters for TC58NVG2S0HTA00? 

Thank you in advanced.

1) MPU Setting Timing

2) Toshiba TC58 Timing

       

  • Hi,
    What Linux version is this? What ECC correction are you using?
  • Thank you for your prompt response. 

    The BSP Version(Linux-RT): BSP_02_00_02_11
    Linux Version: 4.1.18
    ECC : BCH16
              (Both MT29F4G08ABAEAWP & TC58NVG2S0HTA00)

  • Hi,

    Can you make sure in drivers/mtd/nand/nand_ids.c, there is proper entry for the Toshiba NAND, specifically the oobsize entry is properly set ?
  • // I refer

    {"TC58NVG2S0H 4G 3.3V 8-bit",
    { .id = {0x98, 0xdc, 0x90, 0x26, 0x76, 0x16, 0x08, 0x00} },
    SZ_4K, SZ_512, SZ_256K, 0, 8, 256, NAND_ECC_INFO(8, SZ_512) },

  • Hi,

    Can you share more logs ? Boot logs and further logs for commands like
    # flash_eraseall /dev/mtdX X->valid partition
  • startup_log.txt
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Initializing cgroup subsys cpu
    [    0.000000] Initializing cgroup subsys cpuacct
    [    0.000000] Linux version 4.1.18-rt17-g4415f52 (root@schneider-VirtualBox) (gcc version 4.9.3 20150413 (prerelease) (Linaro GCC 4.9-2015.05) ) #5 PREEMPT RT Sat Jun 3 07:55:31 CST 2017
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine model: TI AM335x Schneider HMI
    [    0.000000] cma: Reserved 24 MiB at 0x9d000000
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129920
    [    0.000000] Kernel command line: console=ttyO0,115200n8 consoleblank=0 root=PARTUUID=00001cf5-02 rw rootfstype=ext4 rootwait
    [    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: 485376K/524288K available (6087K kernel code, 258K rwdata, 2156K rodata, 264K init, 259K bss, 14336K reserved, 24576K cma-reserved, 0K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc08150b4   (8245 kB)
    [    0.000000]       .init : 0xc0816000 - 0xc0858000   ( 264 kB)
    [    0.000000]       .data : 0xc0858000 - 0xc08989a0   ( 259 kB)
    [    0.000000]        .bss : 0xc089b000 - 0xc08dbf68   ( 260 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000] 	Additional per-CPU info printed with stalls.
    [    0.000000] 	RCU kthread priority: 1.
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [    0.000020] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000036] clocksource timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000044] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000251] Console: colour dummy device 80x30
    [    0.000456] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.000458] This ensures that you still see kernel messages. Please
    [    0.000461] update your kernel commandline.
    [    0.058895] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
    [    0.058901] pid_max: default: 32768 minimum: 301
    [    0.059035] Security Framework initialized
    [    0.059095] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.059104] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.059967] Initializing cgroup subsys blkio
    [    0.059984] Initializing cgroup subsys memory
    [    0.060032] Initializing cgroup subsys devices
    [    0.060046] Initializing cgroup subsys freezer
    [    0.060059] Initializing cgroup subsys perf_event
    [    0.060143] CPU: Testing write buffer coherency: ok
    [    0.060558] Setting up static identity map for 0x80008200 - 0x80008270
    [    0.063183] devtmpfs: initialized
    [    0.078464] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.096594] omap_hwmod: debugss: _wait_target_disable failed
    [    0.153726] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.156488] pinctrl core: initialized pinctrl subsystem
    [    0.158188] NET: Registered protocol family 16
    [    0.161552] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.168699] OMAP GPIO hardware version 0.1
    [    0.180722] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_default, deferring probe
    [    0.182897] No ATAGs?
    [    0.182929] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.232640] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.236970] vgaarb: loaded
    [    0.237642] SCSI subsystem initialized
    [    0.238299] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0, deferring probe
    [    0.238362] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c1, deferring probe
    [    0.238514] media: Linux media interface: v0.10
    [    0.238611] Linux video capture interface: v2.00
    [    0.238681] pps_core: LinuxPPS API ver. 1 registered
    [    0.238692] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.238732] PTP clock support registered
    [    0.239994] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.240302] Advanced Linux Sound Architecture Driver Initialized.
    [    0.241399] Switched to clocksource timer1
    [    0.256381] NET: Registered protocol family 2
    [    0.257512] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.257616] TCP bind hash table entries: 4096 (order: 4, 98304 bytes)
    [    0.257865] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.257957] UDP hash table entries: 256 (order: 2, 16384 bytes)
    [    0.258010] UDP-Lite hash table entries: 256 (order: 2, 16384 bytes)
    [    0.258285] NET: Registered protocol family 1
    [    0.258826] RPC: Registered named UNIX socket transport module.
    [    0.258847] RPC: Registered udp transport module.
    [    0.258856] RPC: Registered tcp transport module.
    [    0.258865] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.259928] CPU PMU: Failed to parse /pmu/interrupt-affinity[0]
    [    0.259985] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.262943] futex hash table entries: 256 (order: 1, 8192 bytes)
    [    0.263070] audit: initializing netlink subsys (disabled)
    [    0.263161] audit: type=2000 audit(0.260:1): initialized
    [    0.273655] VFS: Disk quotas dquot_6.6.0
    [    0.273930] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.277302] NFS: Registering the id_resolver key type
    [    0.277392] Key type id_resolver registered
    [    0.277403] Key type id_legacy registered
    [    0.277517] jffs2: version 2.2. (NAND) (SUMMARY)  ?2001-2006 Red Hat, Inc.
    [    0.279942] NET: Registered protocol family 38
    [    0.280021] io scheduler noop registered
    [    0.280037] io scheduler deadline registered
    [    0.280291] io scheduler cfq registered (default)
    [    0.281828] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.284727] backlight supply power not found, using dummy regulator
    [    0.287209] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
    [    0.288656] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.293047] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
    [    0.945173] console [ttyS0] enabled
    [    0.949796] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 159, base_baud = 3000000) is a 8250
    [    0.959907] [drm] Initialized drm 1.1.0 20060810
    [    0.966941] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    0.973657] [drm] No driver support for vblank timestamp query.
    [    0.991637] Console: switching to colour frame buffer device 128x37
    [    1.003601] tilcdc 4830e000.lcdc: fb0:  frame buffer device
    [    1.009205] tilcdc 4830e000.lcdc: registered panic notifier
    [    1.041457] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
    [    1.061802] brd: module loaded
    [    1.071995] loop: module loaded
    [    1.076363] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.085267] m25p80 spi1.0: m25p40 (512 Kbytes)
    [    1.089794] 3 ofpart partitions found on MTD device spi1.0
    [    1.095315] Creating 3 MTD partitions on "spi1.0":
    [    1.100144] 0x000000000000-0x000000020000 : "NOR.MLO"
    [    1.106772] 0x000000020000-0x000000030000 : "NOR.hwinfo"
    [    1.113452] 0x000000030000-0x000000080000 : "NOR.usr2"
    [    1.181491] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    1.187628] davinci_mdio 4a101000.mdio: detected phy mask fffffffd
    [    1.194923] libphy: 4a101000.mdio: probed
    [    1.198977] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver TI DP83848C 10/100 Mbps PHY
    [    1.209617] cpsw 4a100000.ethernet: Detected MACID = 1c:ba:8c:da:a4:39
    [    1.218840] mousedev: PS/2 mouse device common for all mice
    [    1.224557] i2c /dev entries driver
    [    1.229423] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.272664]  remoteproc0: wkup_m3 is available
    [    1.280116]  remoteproc0: Note: remoteproc is still under development and considered experimental.
    [    1.291960]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [    1.302686]  remoteproc0: Direct firmware load for am335x-pm-firmware.elf failed with error -2
    [    1.308748] mmc0: host does not support reading read-only switch, assuming write-enable
    [    1.310789] mmc0: new high speed SDHC card at address 0007
    [    1.321865] Initializing XFRM netlink socket
    [    1.321918] NET: Registered protocol family 17
    [    1.321982] NET: Registered protocol family 15
    [    1.322156] Key type dns_resolver registered
    [    1.322371] omap_voltage_late_init: Voltage driver support not added
    [    1.322963] ThumbEE CPU extension supported.
    [    1.322994] Registering SWP/SWPB emulation handler
    [    1.323383] mmcblk0: mmc0:0007 SD16G 14.5 GiB 
    [    1.325246]  mmcblk0: p1 p2
    [    1.328512] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    1.328526] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    1.330309] nand: device found, Manufacturer ID: 0x98, Chip ID: 0xdc
    [    1.330315] nand: Toshiba TC58NVG2S0H 4G 3.3V 8-bit
    [    1.330323] nand: 512 MiB, SLC, erase size: 256 KiB, page size: 4096, OOB size: 256
    [    1.330415] using OMAP_ECC_BCH16_CODE_HW ECC scheme
    [    1.330532] 10 ofpart partitions found on MTD device 8000000.nand
    [    1.330538] Creating 10 MTD partitions on "8000000.nand":
    [    1.330564] 0x000000000000-0x000000040000 : "NAND.dt"
    [    1.332461] 0x000000040000-0x000000080000 : "NAND.dt.backup"
    [    1.333830] 0x000000080000-0x000000100000 : "NAND.hardinfo"
    [    1.335222] 0x000000100000-0x0000001c0000 : "NAND.u-boot"
    [    1.341576] 0x0000001c0000-0x000000200000 : "NAND.u-boot-env"
    [    1.342938] 0x000000200000-0x000000a00000 : "NAND.userdata"
    [    1.345687] 0x000000a00000-0x000001000000 : "NAND.kernel"
    [    1.352499] 0x000001000000-0x000006000000 : "NAND.file-system"
    [    1.392171] 0x000006000000-0x000010000000 : "NAND.hmidata"
    [    1.452496] 0x000010000000-0x000020000000 : "NAND.prjdata"
    [    1.589434] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [    1.589478] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    1.595228] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
    [    1.602118] hctosys: unable to open rtc device (rtc0)
    [    1.607689] ALSA device list:
    [    1.607695]   No soundcards found.
    [    1.632450]  remoteproc0: Falling back to user helper
    [   12.703438] EXT4-fs (mmcblk0p2): recovery complete
    [   12.716631] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [   12.724852] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [   12.740172] devtmpfs: mounted
    [   12.743889] Freeing unused kernel memory: 264K (c0816000 - c0858000)
    INIT: version 2.88 booting
    Starting udev
    udev: Not using udev cache because of changes detected in the following files:
    udev:     /proc/version /proc/cmdline /proc/devices
    udev:     lib/udev/rules.d/* etc/udev/rules.d/*
    udev: The udev cache will be regenerated. To identify the detected changes,
    udev: compare the cached sysconf at   /etc/udev/cache.data
    udev: against the current sysconf at  /dev/shm/udev.cache
    [   13.588659] udevd[104]: starting version 182
    [   14.142027] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [   14.154657] input: ti-tsc as /devices/platform/ocp/44e0d000.tscadc/TI-am335x-tsc/input/input0
    [   14.220397] 47401300.usb-phy supply vcc not found, using dummy regulator
    [   14.304422] 47401b00.usb-phy supply vcc not found, using dummy regulator
    [   14.552837] rtc-ds1307 1-0068: rtc core: registered m41t00 as rtc0
    [   14.622577] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc1
    [   14.897351] spi_nor: exports duplicate symbol spi_nor_scan (owned by kernel)
    [   14.907490] PM: bootloader does not support rtc-only!
    [   14.952141] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [   15.877497]  remoteproc0: powering up wkup_m3
    [   15.896328]  remoteproc0: Booting fw image am335x-pm-firmware.elf, size 219807
    [   15.988663]  remoteproc0: remote processor wkup_m3 is now up
    [   15.988735] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x191
    [   19.077916] usbcore: registered new interface driver usbfs
    [   19.161924] usbcore: registered new interface driver hub
    [   19.254014] usbcore: registered new device driver usb
    [   19.496070] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
    [   19.533651] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
    [   19.574695] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [   19.595904] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [   19.615355] usb usb1: Product: MUSB HDRC host driver
    [   19.631179] usb usb1: Manufacturer: Linux 4.1.18-rt17-g4415f52 musb-hcd
    [   19.648405] usb usb1: SerialNumber: musb-hdrc.1.auto
    [   19.678602] hub 1-0:1.0: USB hub found
    [   19.686610] hub 1-0:1.0: 1 port detected
    [   19.972764] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [   20.363434] using random self ethernet address
    [   20.367934] using random host ethernet address
    [   20.372546] using host ethernet address: 1C:BA:8C:DA:A4:3B
    [   20.377962] using random self ethernet address
    [   20.382692] using random host ethernet address
    [   20.387172] using host ethernet address: 1C:BA:8C:DA:A4:3B
    [   20.397439] usb0: HOST MAC 1c:ba:8c:da:a4:3b
    [   20.412351] usb0: MAC d6:8a:36:c0:9f:f3
    [   20.453664] Mass Storage Function, version: 2009/09/11
    [   20.458859] LUN: removable file: (no medium)
    [   20.473541] LUN: file: /dev/mmcblk0p1
    [   20.477225] Number of LUNs=1
    [   20.480284] Number of LUNs=1
    [   20.499261] g_multi gadget: Multifunction Composite Gadget
    [   20.504881] g_multi gadget: userspace failed to provide iSerialNumber
    [   20.511357] g_multi gadget: g_multi ready
    [   20.573770] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
    bootlogd: cannot allocate pseudo tty: No such file or directory
    [   20.734528] random: dd urandom read with 79 bits of entropy available
    Populating dev cache
    ALSA: Restoring mixer settings...
    /usr/sbin/alsactl: load_state:1729: No soundcards found...
    hwclock: RTC_RD_TIME: Invalid argument
    Wed Apr  6 15:03:58 UTC 2016
    INIT: Entering runlevel: 5
    Configuring network interfaces... [   22.147644] net eth0: initializing cpsw version 1.12 (0)
    [   22.231826] net eth0: phy found : id is : 0x20005c90
    [   22.236892] libphy: PHY 4a101000.mdio:02 not found
    [   22.241715] net eth0: phy 4a101000.mdio:02 not found on slave 1
    udhcpc (v1.23.1) started
    Sending discover...
    Sending discover...
    Sending discover...
    No lease, forking to background
    done.
    Starting system message bus: dbus.
    Starting telnet daemon.
    Starting rpcbind daemon...[   32.043803] NET: Registered protocol family 10
    [   32.066622] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [   32.079046] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
    done.
    starting statd: done
    Starting syslogd/klogd: done
    Starting thttpd.
    Enabling thermal zones...
    /etc/rc5.d/S98thermal-zone-init: line 7: /sys/class/thermal/thermal_zone*/mode: No such file or directory
    [   33.167626] random: nonblocking pool is initialized
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages:
    	autoconf
    	binutils
    	cpp-symlinks
    	cpp
    	g++-symlinks
    	g++
    	gcc-symlinks
    	gcc
    	gdb
    	gdbserver
    	gstreamer1.0-libav
    	libgmp10
    	libmpc3
    	libmpfr4
    	make
    
    If you do not wish to distribute GPLv3 components please remove
    the above packages prior to distribution.  This can be done using
    the opkg remove command.  i.e.:
        opkg remove <package>
    Where <package> is the name printed in the list above
    
    NOTE: If the package is a dependency of another package you
          will be notified of the dependent packages.  You should
          use the --force-removal-of-dependent-packages option to
          also remove the dependent packages as well
    ***************************************************************
    ***************************************************************
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org am335x-evm /dev/ttyO0
    
    Arago 2016.03 am335x-evm /dev/ttyO0
    
    am335x-evm login: root
    root@am335x-evm:~# cd   d mt    at /proc/me te d
    dev:    size   erasesize  name
    mtd0: 00020000 00010000 "NOR.MLO"
    mtd1: 00010000 00010000 "NOR.hwinfo"
    mtd2: 00050000 00010000 "NOR.usr2"
    mtd3: 00040000 00040000 "NAND.dt"
    mtd4: 00040000 00040000 "NAND.dt.backup"
    mtd5: 00080000 00040000 "NAND.hardinfo"
    mtd6: 000c0000 00040000 "NAND.u-boot"
    mtd7: 00040000 00040000 "NAND.u-boot-env"
    mtd8: 00800000 00040000 "NAND.userdata"
    mtd9: 00600000 00040000 "NAND.kernel"
    mtd10: 05000000 00040000 "NAND.file-system"
    mtd11: 0a000000 00040000 "NAND.hmidata"
    mtd12: 10000000 00040000 "NAND.prjdata"
    root@am335x-evm:~# flash_erase /dev/mtd8 0 0
    Erasing 256 Kibyte @ 0 --  0 % complete Erasing 256 Kibyte @ 40000 --  3 % complete Erasing 256 Kibyte @ 80000 --  6 % complete Erasing 256 Kibyte @ c0000 --  9 % complete Erasing 256 Kibyte @ 100000 -- 12 % complete Erasing 256 Kibyte @ 140000 -- 15 % complete Erasing 256 Kibyte @ 180000 -- 18 % complete Erasing 256 Kibyte @ 1c0000 -- 21 % complete Erasing 256 Kibyte @ 200000 -- 25 % complete Erasing 256 Kibyte @ 240000 -- 28 % complete Erasing 256 Kibyte @ 280000 -- 31 % complete Erasing 256 Kibyte @ 2c0000 -- 34 % complete Erasing 256 Kibyte @ 300000 -- 37 % complete Erasing 256 Kibyte @ 340000 -- 40 % complete Erasing 256 Kibyte @ 380000 -- 43 % complete Erasing 256 Kibyte @ 3c0000 -- 46 % complete Erasing 256 Kibyte @ 400000 -- 50 % complete Erasing 256 Kibyte @ 440000 -- 53 % complete Erasing 256 Kibyte @ 480000 -- 56 % complete Erasing 256 Kibyte @ 4c0000 -- 59 % complete Erasing 256 Kibyte @ 500000 -- 62 % complete Erasing 256 Kibyte @ 540000 -- 65 % complete Erasing 256 Kibyte @ 580000 -- 68 % complete Erasing 256 Kibyte @ 5c0000 -- 71 % complete Erasing 256 Kibyte @ 600000 -- 75 % complete Erasing 256 Kibyte @ 640000 -- 78 % complete Erasing 256 Kibyte @ 680000 -- 81 % complete Erasing 256 Kibyte @ 6c0000 -- 84 % complete Erasing 256 Kibyte @ 700000 -- 87 % complete Erasing 256 Kibyte @ 740000 -- 90 % complete Erasing 256 Kibyte @ 780000 -- 93 % complete Erasing 256 Kibyte @ 7c0000 -- 96 % complete Erasing 256 Kibyte @ 7c0000 -- 100 % complete 
    root@am335x-evm:~# 
    root@am335x-evm:~# cat /proc/mtd
    dev: size erasesize name
    mtd0: 00020000 00010000 "NOR.MLO"
    mtd1: 00010000 00010000 "NOR.hwinfo"
    mtd2: 00050000 00010000 "NOR.usr2"
    mtd3: 00040000 00040000 "NAND.dt"
    mtd4: 00040000 00040000 "NAND.dt.backup"
    mtd5: 00080000 00040000 "NAND.hardinfo"
    mtd6: 000c0000 00040000 "NAND.u-boot"
    mtd7: 00040000 00040000 "NAND.u-boot-env"
    mtd8: 00800000 00040000 "NAND.userdata"
    mtd9: 00600000 00040000 "NAND.kernel"
    mtd10: 05000000 00040000 "NAND.file-system"
    mtd11: 0a000000 00040000 "NAND.hmidata"
    mtd12: 10000000 00040000 "NAND.prjdata"
    root@am335x-evm:~# flash_eraseall /dev/mtd8
    flash_eraseall has been replaced by `flash_erase <mtddev> 0 0`; please use it
    Erasing 256 Kibyte @ 7c0000 -- 100 % complete
    root@am335x-evm:~# flash_erase /dev/mtd8 0 0
    Erasing 256 Kibyte @ 7c0000 -- 100 % complete
    root@am335x-evm:~#

  • Hi,

    It looks fine. Are you able to do read and write ? Let me look into the oob test and see what makes it fail
  • Hi,

    Thank your for your response.

    1). For single Read/write, it can be work normally.

    2). MTD Test

    Besides the mtd_nandbiterrs.ko and oobtest.ko, others test cases are OK.

    3) Error log

      3731.toshiba_log.txt

    micorn_log.txt
     insmod mtd_oobtest.ko dev=12
    [  821.718757] 
    [  821.720316] =================================================
    [  821.726760] mtd_oobtest: MTD device: 12
    [  821.730637] mtd_oobtest: MTD device size 268435456, eraseblock size 262144, page size 4096, count of eraseblocks 1024, pages per eraseblock 64, OOB size 224
    [  821.745080] mtd_test: scanning for bad eraseblocks
    [  821.804257] mtd_test: scanned 1024 eraseblocks, 0 are bad
    [  821.809688] mtd_oobtest: test 1 of 5
    [  822.584916] mtd_oobtest: writing OOBs of whole device
    [  822.605694] mtd_oobtest: written up to eraseblock 0
    [  826.634057] mtd_oobtest: written up to eraseblock 256
    [  830.658779] mtd_oobtest: written up to eraseblock 512
    [  834.674156] mtd_oobtest: written up to eraseblock 768
    [  838.686695] mtd_oobtest: written 1024 eraseblocks
    [  838.691448] mtd_oobtest: verifying all eraseblocks
    [  838.701130] mtd_oobtest: verified up to eraseblock 0
    [  839.954051] mtd_oobtest: verified up to eraseblock 256
    [  841.204201] mtd_oobtest: verified up to eraseblock 512
    [  842.456118] mtd_oobtest: verified up to eraseblock 768
    [  843.701555] mtd_oobtest: verified 1024 eraseblocks
    [  843.706380] mtd_oobtest: test 2 of 5
    [  844.971751] mtd_oobtest: writing OOBs of whole device
    [  844.992620] mtd_oobtest: written up to eraseblock 0
    [  848.997011] mtd_oobtest: written up to eraseblock 256
    [  852.991850] mtd_oobtest: written up to eraseblock 512
    [  856.981292] mtd_oobtest: written up to eraseblock 768
    [  860.971264] mtd_oobtest: written 1024 eraseblocks
    [  860.976014] mtd_oobtest: verifying all eraseblocks
    [  860.986287] mtd_oobtest: verified up to eraseblock 0
    [  862.219171] mtd_oobtest: verified up to eraseblock 256
    [  863.452666] mtd_oobtest: verified up to eraseblock 512
    [  864.684980] mtd_oobtest: verified up to eraseblock 768
    [  865.913437] mtd_oobtest: verified 1024 eraseblocks
    [  865.918264] mtd_oobtest: test 3 of 5
    [  867.170243] mtd_oobtest: writing OOBs of whole device
    [  867.190784] mtd_oobtest: written up to eraseblock 0
    [  871.103866] mtd_oobtest: written up to eraseblock 256
    [  875.052347] mtd_oobtest: written up to eraseblock 512
    [  878.965620] mtd_oobtest: written up to eraseblock 768
    [  882.866419] mtd_oobtest: written 1024 eraseblocks
    [  882.871168] mtd_oobtest: verifying all eraseblocks
    [  882.886334] mtd_oobtest: verified up to eraseblock 0
    [  885.371149] mtd_oobtest: verified up to eraseblock 256
    [  887.857515] mtd_oobtest: verified up to eraseblock 512
    [  890.343104] mtd_oobtest: verified up to eraseblock 768
    [  892.819897] mtd_oobtest: verified 1024 eraseblocks
    [  892.824732] mtd_oobtest: test 4 of 5
    [  894.050535] mtd_oobtest: attempting to start write past end of OOB
    [  894.056762] mtd_oobtest: an error is expected...
    [  894.061773] mtd_oobtest: error occurred as expected
    [  894.066680] mtd_oobtest: attempting to start read past end of OOB
    [  894.072989] mtd_oobtest: an error is expected...
    [  894.077634] mtd_oobtest: error occurred as expected
    [  894.082702] mtd_oobtest: attempting to write past end of device
    [  894.088652] mtd_oobtest: an error is expected...
    [  894.093466] mtd_oobtest: error occurred as expected
    [  894.098367] mtd_oobtest: attempting to read past end of device
    [  894.104447] mtd_oobtest: an error is expected...
    [  894.109090] mtd_oobtest: error occurred as expected
    [  894.114889] mtd_oobtest: attempting to write past end of device
    [  894.120838] mtd_oobtest: an error is expected...
    [  894.125612] mtd_oobtest: error occurred as expected
    [  894.130515] mtd_oobtest: attempting to read past end of device
    [  894.136478] mtd_oobtest: an error is expected...
    [  894.141119] mtd_oobtest: error occurred as expected
    [  894.146176] mtd_oobtest: test 5 of 5
    [  894.921116] mtd_oobtest: writing OOBs of whole device
    [  894.926460] mtd_oobtest: written up to eraseblock 0
    [  894.931950] mtd_oobtest: written up to eraseblock 0
    [  895.060895] mtd_oobtest: written up to eraseblock 256
    [  895.066236] mtd_oobtest: written up to eraseblock 256
    [  895.195471] mtd_oobtest: written up to eraseblock 512
    [  895.200790] mtd_oobtest: written up to eraseblock 512
    [  895.329930] mtd_oobtest: written up to eraseblock 768
    [  895.335248] mtd_oobtest: written up to eraseblock 768
    [  895.463659] mtd_oobtest: written 1023 eraseblocks
    [  895.468391] mtd_oobtest: verifying all eraseblocks
    [  895.473544] mtd_oobtest: verified up to eraseblock 0
    [  895.517393] mtd_oobtest: verified up to eraseblock 256
    [  895.561416] mtd_oobtest: verified up to eraseblock 512
    [  895.605414] mtd_oobtest: verified up to eraseblock 768
    [  895.649103] mtd_oobtest: verified 1023 eraseblocks
    [  895.653921] mtd_oobtest: finished with 0 errors
    [  895.658512] =================================================
    root@am335x-evm:/home/mtdtest# rmmod mtd_nan   nandbiterro s .ko   s.kp   
    rmmod: ERROR: Module mtd_nandbiterrs is not currently loaded
    root@am335x-evm:/home/mtdtest# insmod mtd_nandbiterrs.ko dev=8 page_offset=0 see d=110 mode=0
    [  967.385392] 
    [  967.386927] ==================================================
    [  967.393401] mtd_nandbiterrs: MTD device: 8
    [  967.397537] mtd_nandbiterrs: MTD device size 8388608, eraseblock=262144, page=4096, oob=224
    [  967.406291] mtd_nandbiterrs: Device uses 4 subpages of 1024 bytes
    [  967.412584] mtd_nandbiterrs: Using page=0, offset=0, eraseblock=0
    [  967.419486] mtd_nandbiterrs: incremental biterrors test
    [  967.425219] mtd_nandbiterrs: write_page
    [  967.429799] mtd_nandbiterrs: rewrite page
    [  967.434585] mtd_nandbiterrs: read_page
    [  967.438907] mtd_nandbiterrs: verify_page
    [  967.443323] mtd_nandbiterrs: Successfully corrected 0 bit errors per subpage
    [  967.450410] mtd_nandbiterrs: Inserted biterror @ 0/5
    [  967.455580] mtd_nandbiterrs: Inserted biterror @ 1024/2
    [  967.460830] mtd_nandbiterrs: Inserted biterror @ 2048/5
    [  967.466237] mtd_nandbiterrs: Inserted biterror @ 3072/4
    [  967.471529] mtd_nandbiterrs: rewrite page
    [  967.476179] mtd_nandbiterrs: read_page
    [  967.480886] mtd_nandbiterrs: verify_page
    [  967.485471] mtd_nandbiterrs: Successfully corrected 1 bit errors per subpage
    [  967.492672] mtd_nandbiterrs: Inserted biterror @ 0/1
    [  967.497662] mtd_nandbiterrs: Inserted biterror @ 1024/1
    [  967.503130] mtd_nandbiterrs: Inserted biterror @ 2048/4
    [  967.508383] mtd_nandbiterrs: Inserted biterror @ 3072/2
    [  967.513795] mtd_nandbiterrs: rewrite page
    [  967.518439] mtd_nandbiterrs: read_page
    [  967.523338] mtd_nandbiterrs: verify_page
    [  967.527571] mtd_nandbiterrs: Successfully corrected 2 bit errors per subpage
    [  967.534844] mtd_nandbiterrs: Inserted biterror @ 0/0
    [  967.539835] mtd_nandbiterrs: Inserted biterror @ 1025/7
    [  967.545182] mtd_nandbiterrs: Inserted biterror @ 2048/0
    [  967.550434] mtd_nandbiterrs: Inserted biterror @ 3073/7
    [  967.555784] mtd_nandbiterrs: rewrite page
    [  967.560421] mtd_nandbiterrs: read_page
    [  967.565248] mtd_nandbiterrs: Read reported 12 corrected bit errors
    [  967.571532] mtd_nandbiterrs: verify_page
    [  967.575763] mtd_nandbiterrs: Successfully corrected 3 bit errors per subpage
    [  967.582999] mtd_nandbiterrs: Inserted biterror @ 1/7
    [  967.587991] mtd_nandbiterrs: Inserted biterror @ 1025/2
    [  967.593344] mtd_nandbiterrs: Inserted biterror @ 2049/7
    [  967.598596] mtd_nandbiterrs: Inserted biterror @ 3073/4
    [  967.603946] mtd_nandbiterrs: rewrite page
    [  967.608535] mtd_nandbiterrs: read_page
    [  967.613417] mtd_nandbiterrs: Read reported 16 corrected bit errors
    [  967.619628] mtd_nandbiterrs: verify_page
    [  967.623990] mtd_nandbiterrs: Successfully corrected 4 bit errors per subpage
    [  967.631072] mtd_nandbiterrs: Inserted biterror @ 1/5
    [  967.636228] mtd_nandbiterrs: Inserted biterror @ 1025/1
    [  967.641522] mtd_nandbiterrs: Inserted biterror @ 2049/5
    [  967.646773] mtd_nandbiterrs: Inserted biterror @ 3073/2
    [  967.652142] mtd_nandbiterrs: rewrite page
    [  967.656782] mtd_nandbiterrs: read_page
    [  967.661691] mtd_nandbiterrs: Read reported 20 corrected bit errors
    [  967.667904] mtd_nandbiterrs: verify_page
    [  967.672235] mtd_nandbiterrs: Successfully corrected 5 bit errors per subpage
    [  967.679317] mtd_nandbiterrs: Inserted biterror @ 1/1
    [  967.684479] mtd_nandbiterrs: Inserted biterror @ 1026/7
    [  967.689731] mtd_nandbiterrs: Inserted biterror @ 2049/4
    [  967.695081] mtd_nandbiterrs: Inserted biterror @ 3074/7
    [  967.700331] mtd_nandbiterrs: rewrite page
    [  967.705123] mtd_nandbiterrs: read_page
    [  967.709841] mtd_nandbiterrs: Read reported 24 corrected bit errors
    [  967.716255] mtd_nandbiterrs: verify_page
    [  967.720490] mtd_nandbiterrs: Successfully corrected 6 bit errors per subpage
    [  967.727719] mtd_nandbiterrs: Inserted biterror @ 1/0
    [  967.732752] mtd_nandbiterrs: Inserted biterror @ 1026/5
    [  967.738006] mtd_nandbiterrs: Inserted biterror @ 2049/0
    [  967.743429] mtd_nandbiterrs: Inserted biterror @ 3074/5
    [  967.748680] mtd_nandbiterrs: rewrite page
    [  967.753424] mtd_nandbiterrs: read_page
    [  967.758148] mtd_nandbiterrs: Read reported 28 corrected bit errors
    [  967.764488] mtd_nandbiterrs: verify_page
    [  967.768721] mtd_nandbiterrs: Successfully corrected 7 bit errors per subpage
    [  967.775963] mtd_nandbiterrs: Inserted biterror @ 2/7
    [  967.780954] mtd_nandbiterrs: Inserted biterror @ 1026/4
    [  967.786310] mtd_nandbiterrs: Inserted biterror @ 2050/7
    [  967.791612] mtd_nandbiterrs: Inserted biterror @ 3074/3
    [  967.796862] mtd_nandbiterrs: rewrite page
    [  967.801757] mtd_nandbiterrs: read_page
    [  967.806494] mtd_nandbiterrs: Read reported 32 corrected bit errors
    [  967.812836] mtd_nandbiterrs: verify_page
    [  967.817069] mtd_nandbiterrs: Successfully corrected 8 bit errors per subpage
    [  967.824307] mtd_nandbiterrs: Inserted biterror @ 2/4
    [  967.829298] mtd_nandbiterrs: Inserted biterror @ 1026/3
    [  967.834655] mtd_nandbiterrs: Inserted biterror @ 2050/3
    [  967.839908] mtd_nandbiterrs: Inserted biterror @ 3074/2
    [  967.845257] mtd_nandbiterrs: rewrite page
    [  967.849894] mtd_nandbiterrs: read_page
    [  967.854814] mtd_nandbiterrs: Read reported 36 corrected bit errors
    [  967.861024] mtd_nandbiterrs: verify_page
    [  967.865390] mtd_nandbiterrs: Successfully corrected 9 bit errors per subpage
    [  967.872578] mtd_nandbiterrs: Inserted biterror @ 2/3
    [  967.877568] mtd_nandbiterrs: Inserted biterror @ 1026/2
    [  967.882996] mtd_nandbiterrs: Inserted biterror @ 2050/0
    [  967.888251] mtd_nandbiterrs: Inserted biterror @ 3075/5
    [  967.893595] mtd_nandbiterrs: rewrite page
    [  967.898235] mtd_nandbiterrs: read_page
    [  967.903096] mtd_nandbiterrs: Read reported 40 corrected bit errors
    [  967.909310] mtd_nandbiterrs: verify_page
    [  967.913640] mtd_nandbiterrs: Successfully corrected 10 bit errors per subpage
    [  967.920811] mtd_nandbiterrs: Inserted biterror @ 2/1
    [  967.926010] mtd_nandbiterrs: Inserted biterror @ 1026/1
    [  967.931260] mtd_nandbiterrs: Inserted biterror @ 2051/3
    [  967.936683] mtd_nandbiterrs: Inserted biterror @ 3075/3
    [  967.941961] mtd_nandbiterrs: rewrite page
    [  967.946598] mtd_nandbiterrs: read_page
    [  967.951600] mtd_nandbiterrs: Read reported 44 corrected bit errors
    [  967.957816] mtd_nandbiterrs: verify_page
    [  967.962152] mtd_nandbiterrs: Successfully corrected 11 bit errors per subpage
    [  967.969323] mtd_nandbiterrs: Inserted biterror @ 2/0
    [  967.974481] mtd_nandbiterrs: Inserted biterror @ 1027/5
    [  967.979733] mtd_nandbiterrs: Inserted biterror @ 2051/0
    [  967.985084] mtd_nandbiterrs: Inserted biterror @ 3075/2
    [  967.990334] mtd_nandbiterrs: rewrite page
    [  967.995079] mtd_nandbiterrs: read_page
    [  967.999821] mtd_nandbiterrs: Read reported 48 corrected bit errors
    [  968.006187] mtd_nandbiterrs: verify_page
    [  968.010420] mtd_nandbiterrs: Successfully corrected 12 bit errors per subpage
    [  968.017715] mtd_nandbiterrs: Inserted biterror @ 3/4
    [  968.022748] mtd_nandbiterrs: Inserted biterror @ 1027/4
    [  968.028002] mtd_nandbiterrs: Inserted biterror @ 2052/7
    [  968.033341] mtd_nandbiterrs: Inserted biterror @ 3076/7
    [  968.038590] mtd_nandbiterrs: rewrite page
    [  968.043280] mtd_nandbiterrs: read_page
    [  968.048029] mtd_nandbiterrs: Read reported 52 corrected bit errors
    [  968.054540] mtd_nandbiterrs: verify_page
    [  968.058778] mtd_nandbiterrs: Successfully corrected 13 bit errors per subpage
    [  968.066129] mtd_nandbiterrs: Inserted biterror @ 3/3
    [  968.071120] mtd_nandbiterrs: Inserted biterror @ 1027/3
    [  968.076537] mtd_nandbiterrs: Inserted biterror @ 2052/6
    [  968.081912] mtd_nandbiterrs: Inserted biterror @ 3076/6
    [  968.087163] mtd_nandbiterrs: rewrite page
    [  968.091768] mtd_nandbiterrs: read_page
    [  968.096536] mtd_nandbiterrs: Read reported 56 corrected bit errors
    [  968.102925] mtd_nandbiterrs: verify_page
    [  968.107158] mtd_nandbiterrs: Successfully corrected 14 bit errors per subpage
    [  968.114487] mtd_nandbiterrs: Inserted biterror @ 3/1
    [  968.119477] mtd_nandbiterrs: Inserted biterror @ 1027/2
    [  968.124825] mtd_nandbiterrs: Inserted biterror @ 2052/3
    [  968.130075] mtd_nandbiterrs: Inserted biterror @ 3076/5
    [  968.135431] mtd_nandbiterrs: rewrite page
    [  968.140074] mtd_nandbiterrs: read_page
    [  968.145002] mtd_nandbiterrs: Read reported 60 corrected bit errors
    [  968.151213] mtd_nandbiterrs: verify_page
    [  968.155592] mtd_nandbiterrs: Successfully corrected 15 bit errors per subpage
    [  968.162857] mtd_nandbiterrs: Inserted biterror @ 3/0
    [  968.167848] mtd_nandbiterrs: Inserted biterror @ 1027/1
    [  968.173265] mtd_nandbiterrs: Inserted biterror @ 2052/0
    [  968.178519] mtd_nandbiterrs: Inserted biterror @ 3076/3
    [  968.183864] mtd_nandbiterrs: rewrite page
    [  968.188504] mtd_nandbiterrs: read_page
    [  968.193383] mtd_nandbiterrs: Read reported 64 corrected bit errors
    [  968.199593] mtd_nandbiterrs: verify_page
    [  968.203988] mtd_nandbiterrs: Successfully corrected 16 bit errors per subpage
    [  968.211161] mtd_nandbiterrs: Inserted biterror @ 4/7
    [  968.216315] mtd_nandbiterrs: Inserted biterror @ 1028/7
    [  968.221616] mtd_nandbiterrs: Inserted biterror @ 2053/6
    [  968.226869] mtd_nandbiterrs: Inserted biterror @ 3076/2
    [  968.232292] mtd_nandbiterrs: rewrite page
    [  968.236927] mtd_nandbiterrs: read_page
    [  968.241692] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [  968.247914] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [  968.254263] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [  968.260481] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [  968.266844] mtd_nandbiterrs: error: read failed at 0x0
    [  968.272056] mtd_nandbiterrs: After 17 biterrors per subpage, read reported error -74
    [  968.281034] mtd_nandbiterrs: finished successfully.
    [  968.286052] ==================================================
    insmod: ERROR: could not insert module mtd_nandbiterrs.ko: Input/output error
    root@am335x-evm:/home/mtdtest# insmod mtd_nandbiterrs.ko dev=8 page_offset=0 seedd=110 mode=0
    [  974.434691] 
    [  974.436225] ==================================================
    [  974.442668] mtd_nandbiterrs: MTD device: 8
    [  974.446800] mtd_nandbiterrs: MTD device size 8388608, eraseblock=262144, page=4096, oob=224
    [  974.455634] mtd_nandbiterrs: Device uses 4 subpages of 1024 bytes
    [  974.461897] mtd_nandbiterrs: Using page=0, offset=0, eraseblock=0
    [  974.468796] mtd_nandbiterrs: incremental biterrors test
    [  974.474521] mtd_nandbiterrs: write_page
    [  974.479104] mtd_nandbiterrs: rewrite page
    [  974.483929] mtd_nandbiterrs: read_page
    [  974.488247] mtd_nandbiterrs: verify_page
    [  974.492624] mtd_nandbiterrs: Successfully corrected 0 bit errors per subpage
    [  974.499708] mtd_nandbiterrs: Inserted biterror @ 0/5
    [  974.504854] mtd_nandbiterrs: Inserted biterror @ 1024/2
    [  974.510105] mtd_nandbiterrs: Inserted biterror @ 2048/5
    [  974.515582] mtd_nandbiterrs: Inserted biterror @ 3072/4
    [  974.520833] mtd_nandbiterrs: rewrite page
    [  974.525570] mtd_nandbiterrs: read_page
    [  974.530280] mtd_nandbiterrs: verify_page
    [  974.534701] mtd_nandbiterrs: Successfully corrected 1 bit errors per subpage
    [  974.541891] mtd_nandbiterrs: Inserted biterror @ 0/1
    [  974.546881] mtd_nandbiterrs: Inserted biterror @ 1024/1
    [  974.552301] mtd_nandbiterrs: Inserted biterror @ 2048/4
    [  974.557554] mtd_nandbiterrs: Inserted biterror @ 3072/2
    [  974.562908] mtd_nandbiterrs: rewrite page
    [  974.567551] mtd_nandbiterrs: read_page
    [  974.572527] mtd_nandbiterrs: verify_page
    [  974.576762] mtd_nandbiterrs: Successfully corrected 2 bit errors per subpage
    [  974.583971] mtd_nandbiterrs: Inserted biterror @ 0/0
    [  974.588961] mtd_nandbiterrs: Inserted biterror @ 1025/7
    [  974.594308] mtd_nandbiterrs: Inserted biterror @ 2048/0
    [  974.599559] mtd_nandbiterrs: Inserted biterror @ 3073/7
    [  974.604911] mtd_nandbiterrs: rewrite page
    [  974.609496] mtd_nandbiterrs: read_page
    [  974.614380] mtd_nandbiterrs: Read reported 12 corrected bit errors
    [  974.620591] mtd_nandbiterrs: verify_page
    [  974.624947] mtd_nandbiterrs: Successfully corrected 3 bit errors per subpage
    [  974.632142] mtd_nandbiterrs: Inserted biterror @ 1/7
    [  974.637131] mtd_nandbiterrs: Inserted biterror @ 1025/2
    [  974.642474] mtd_nandbiterrs: Inserted biterror @ 2049/7
    [  974.647727] mtd_nandbiterrs: Inserted biterror @ 3073/4
    [  974.653113] mtd_nandbiterrs: rewrite page
    [  974.657697] mtd_nandbiterrs: read_page
    [  974.662559] mtd_nandbiterrs: Read reported 16 corrected bit errors
    [  974.668769] mtd_nandbiterrs: verify_page
    [  974.673116] mtd_nandbiterrs: Successfully corrected 4 bit errors per subpage
    [  974.680201] mtd_nandbiterrs: Inserted biterror @ 1/5
    [  974.685356] mtd_nandbiterrs: Inserted biterror @ 1025/1
    [  974.690606] mtd_nandbiterrs: Inserted biterror @ 2049/5
    [  974.695957] mtd_nandbiterrs: Inserted biterror @ 3073/2
    [  974.701207] mtd_nandbiterrs: rewrite page
    [  974.705952] mtd_nandbiterrs: read_page
    [  974.710665] mtd_nandbiterrs: Read reported 20 corrected bit errors
    [  974.717016] mtd_nandbiterrs: verify_page
    [  974.721247] mtd_nandbiterrs: Successfully corrected 5 bit errors per subpage
    [  974.728521] mtd_nandbiterrs: Inserted biterror @ 1/1
    [  974.733545] mtd_nandbiterrs: Inserted biterror @ 1026/7
    [  974.738796] mtd_nandbiterrs: Inserted biterror @ 2049/4
    [  974.744216] mtd_nandbiterrs: Inserted biterror @ 3074/7
    [  974.749465] mtd_nandbiterrs: rewrite page
    [  974.754153] mtd_nandbiterrs: read_page
    [  974.758870] mtd_nandbiterrs: Read reported 24 corrected bit errors
    [  974.765187] mtd_nandbiterrs: verify_page
    [  974.769419] mtd_nandbiterrs: Successfully corrected 6 bit errors per subpage
    [  974.776663] mtd_nandbiterrs: Inserted biterror @ 1/0
    [  974.781700] mtd_nandbiterrs: Inserted biterror @ 1026/5
    [  974.786951] mtd_nandbiterrs: Inserted biterror @ 2049/0
    [  974.792296] mtd_nandbiterrs: Inserted biterror @ 3074/5
    [  974.797546] mtd_nandbiterrs: rewrite page
    [  974.802283] mtd_nandbiterrs: read_page
    [  974.807004] mtd_nandbiterrs: Read reported 28 corrected bit errors
    [  974.813346] mtd_nandbiterrs: verify_page
    [  974.817578] mtd_nandbiterrs: Successfully corrected 7 bit errors per subpage
    [  974.824831] mtd_nandbiterrs: Inserted biterror @ 2/7
    [  974.829823] mtd_nandbiterrs: Inserted biterror @ 1026/4
    [  974.835175] mtd_nandbiterrs: Inserted biterror @ 2050/7
    [  974.840425] mtd_nandbiterrs: Inserted biterror @ 3074/3
    [  974.845779] mtd_nandbiterrs: rewrite page
    [  974.850413] mtd_nandbiterrs: read_page
    [  974.855302] mtd_nandbiterrs: Read reported 32 corrected bit errors
    [  974.861627] mtd_nandbiterrs: verify_page
    [  974.865857] mtd_nandbiterrs: Successfully corrected 8 bit errors per subpage
    [  974.873088] mtd_nandbiterrs: Inserted biterror @ 2/4
    [  974.878081] mtd_nandbiterrs: Inserted biterror @ 1026/3
    [  974.883431] mtd_nandbiterrs: Inserted biterror @ 2050/3
    [  974.888681] mtd_nandbiterrs: Inserted biterror @ 3074/2
    [  974.894037] mtd_nandbiterrs: rewrite page
    [  974.898621] mtd_nandbiterrs: read_page
    [  974.903532] mtd_nandbiterrs: Read reported 36 corrected bit errors
    [  974.909741] mtd_nandbiterrs: verify_page
    [  974.914077] mtd_nandbiterrs: Successfully corrected 9 bit errors per subpage
    [  974.921160] mtd_nandbiterrs: Inserted biterror @ 2/3
    [  974.926320] mtd_nandbiterrs: Inserted biterror @ 1026/2
    [  974.931614] mtd_nandbiterrs: Inserted biterror @ 2050/0
    [  974.936864] mtd_nandbiterrs: Inserted biterror @ 3075/5
    [  974.942229] mtd_nandbiterrs: rewrite page
    [  974.946863] mtd_nandbiterrs: read_page
    [  974.951669] mtd_nandbiterrs: Read reported 40 corrected bit errors
    [  974.957881] mtd_nandbiterrs: verify_page
    [  974.962245] mtd_nandbiterrs: Successfully corrected 10 bit errors per subpage
    [  974.969416] mtd_nandbiterrs: Inserted biterror @ 2/1
    [  974.974572] mtd_nandbiterrs: Inserted biterror @ 1026/1
    [  974.979825] mtd_nandbiterrs: Inserted biterror @ 2051/3
    [  974.985175] mtd_nandbiterrs: Inserted biterror @ 3075/3
    [  974.990426] mtd_nandbiterrs: rewrite page
    [  974.995163] mtd_nandbiterrs: read_page
    [  974.999902] mtd_nandbiterrs: Read reported 44 corrected bit errors
    [  975.006238] mtd_nandbiterrs: verify_page
    [  975.010471] mtd_nandbiterrs: Successfully corrected 11 bit errors per subpage
    [  975.017802] mtd_nandbiterrs: Inserted biterror @ 2/0
    [  975.022839] mtd_nandbiterrs: Inserted biterror @ 1027/5
    [  975.028091] mtd_nandbiterrs: Inserted biterror @ 2051/0
    [  975.033516] mtd_nandbiterrs: Inserted biterror @ 3075/2
    [  975.038765] mtd_nandbiterrs: rewrite page
    [  975.043455] mtd_nandbiterrs: read_page
    [  975.048197] mtd_nandbiterrs: Read reported 48 corrected bit errors
    [  975.054719] mtd_nandbiterrs: verify_page
    [  975.058952] mtd_nandbiterrs: Successfully corrected 12 bit errors per subpage
    [  975.066314] mtd_nandbiterrs: Inserted biterror @ 3/4
    [  975.071305] mtd_nandbiterrs: Inserted biterror @ 1027/4
    [  975.076707] mtd_nandbiterrs: Inserted biterror @ 2052/7
    [  975.082081] mtd_nandbiterrs: Inserted biterror @ 3076/7
    [  975.087332] mtd_nandbiterrs: rewrite page
    [  975.092161] mtd_nandbiterrs: read_page
    [  975.096916] mtd_nandbiterrs: Read reported 52 corrected bit errors
    [  975.103277] mtd_nandbiterrs: verify_page
    [  975.107510] mtd_nandbiterrs: Successfully corrected 13 bit errors per subpage
    [  975.114841] mtd_nandbiterrs: Inserted biterror @ 3/3
    [  975.119831] mtd_nandbiterrs: Inserted biterror @ 1027/3
    [  975.125175] mtd_nandbiterrs: Inserted biterror @ 2052/6
    [  975.130428] mtd_nandbiterrs: Inserted biterror @ 3076/6
    [  975.135778] mtd_nandbiterrs: rewrite page
    [  975.140418] mtd_nandbiterrs: read_page
    [  975.145298] mtd_nandbiterrs: Read reported 56 corrected bit errors
    [  975.151623] mtd_nandbiterrs: verify_page
    [  975.155854] mtd_nandbiterrs: Successfully corrected 14 bit errors per subpage
    [  975.163208] mtd_nandbiterrs: Inserted biterror @ 3/1
    [  975.168199] mtd_nandbiterrs: Inserted biterror @ 1027/2
    [  975.173610] mtd_nandbiterrs: Inserted biterror @ 2052/3
    [  975.178861] mtd_nandbiterrs: Inserted biterror @ 3076/5
    [  975.184209] mtd_nandbiterrs: rewrite page
    [  975.188843] mtd_nandbiterrs: read_page
    [  975.193731] mtd_nandbiterrs: Read reported 60 corrected bit errors
    [  975.199943] mtd_nandbiterrs: verify_page
    [  975.204340] mtd_nandbiterrs: Successfully corrected 15 bit errors per subpage
    [  975.211621] mtd_nandbiterrs: Inserted biterror @ 3/0
    [  975.216613] mtd_nandbiterrs: Inserted biterror @ 1027/1
    [  975.222033] mtd_nandbiterrs: Inserted biterror @ 2052/0
    [  975.227283] mtd_nandbiterrs: Inserted biterror @ 3076/3
    [  975.232642] mtd_nandbiterrs: rewrite page
    [  975.237277] mtd_nandbiterrs: read_page
    [  975.242141] mtd_nandbiterrs: Read reported 64 corrected bit errors
    [  975.248352] mtd_nandbiterrs: verify_page
    [  975.252792] mtd_nandbiterrs: Successfully corrected 16 bit errors per subpage
    [  975.259963] mtd_nandbiterrs: Inserted biterror @ 4/7
    [  975.265096] mtd_nandbiterrs: Inserted biterror @ 1028/7
    [  975.270351] mtd_nandbiterrs: Inserted biterror @ 2053/6
    [  975.275700] mtd_nandbiterrs: Inserted biterror @ 3076/2
    [  975.280951] mtd_nandbiterrs: rewrite page
    [  975.285684] mtd_nandbiterrs: read_page
    [  975.290438] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [  975.296774] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [  975.303022] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [  975.309237] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [  975.315622] mtd_nandbiterrs: error: read failed at 0x0
    [  975.320790] mtd_nandbiterrs: After 17 biterrors per subpage, read reported error -74
    [  975.329858] mtd_nandbiterrs: finished successfully.
    [  975.334837] ==================================================
    insmod: ERROR: could not insert module mtd_nandbiterrs.ko: Input/output error
    root@am335x-evm:/home/mtdtest# 

  • Two questions:

    1. How did you flash the board?

    2. Can you move to the latest SDK?

    Steve K.

  • Hi,

       Thank you for your suggestion:

          1. The nand flash data are flashed by MMC.

              the boot device is MMC, we can flash the board by nand command in uboot.

       

          2. I has compared the different between AM335X  02_00_02_11 and the latest BSP.

            There are no much different.

            Weather it's necessary to porting to new BSP? 

  • any update ? I hit the same issue.

    thanks

    James

  • Hi James,

    You can start a new thread for quick reply, pointing your NAND device being used and the configuration set.