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.

Processor SDK v2.00.00.00: UBIFS Issue on AM335x EVM



I'm unable to mount the pre-built UBI images, using the pre-built U-Boot, Kernel, and File system from TI Processor SDK 02.00.00.00 on an AM335x EVM. I encounter a Kernel crash when attempting to mount the image. Here are the steps to reproduce the issue.

1. Use the bin/create-sdcard.sh script, and select "Install pre-buil images from SDK"
2. Copy "arago-base-tisdk-image-am335x-evm.ubi" to sd-card under "/home/root"
3. Install card to AM335x EVM and power on the device
4. Create a mount directory
  # mkdir /media/mnt
4. Prepare NAND Partition from processors.wiki.ti.com/.../UBIFS_Support
  # flash_eraseall /dev/mtd9
5. Flash UBIFS Image to NAND Partition (also tried option '-s 512')
  # ubiformat /dev/mtd9 -f arago-base-tisdk-image-am335x-evm.ubi -s 2048 -O 2048
6. Mount UBIFS image
  # ubiattach /dev/ubi_ctrl -m 9 -O 2048
  # mount -t ubifs ubi0:rootfs /media/mnt

root@am335x-evm:~# mkdir /media/mnt
root@am335x-evm:~# flash_eraseall /dev/mtd9
flash_eraseall has been replaced by `flash_erase <mtddev> 0 0`; please use it
Erasing 128 Kibyte @ f5e0000 -- 100 % complete
root@am335x-evm:~# ubiformat /dev/mtd9 -f arago-base-tisdk-image-am335x-evm.ubi -s 2048 -O 2048
ubiformat: mtd9 (nand), size 257949696 bytes (246.0 MiB), 1968 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 1967 -- 100 % complete
ubiformat: 1968 eraseblocks are supposedly empty
ubiformat: flashing eraseblock 374 -- 100 % complete
ubiformat: formatting eraseblock 1967 -- 100 % complete
root@am335x-evm:~# ubiattach /dev/ubi_ctrl -m 9 -O 2048
[  179.514486] ubi0: attaching mtd9
[  180.603946] ubi0: scanning is finished
[  180.628431] ubi0: volume 0 ("rootfs") re-sized from 373 to 1924 LEBs
[  180.640154] ubi0: attached mtd9 (name "NAND.file-system", size 246 MiB)
[  180.647379] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[  180.654352] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[  180.661081] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[  180.669241] ubi0: good PEBs: 1968, bad PEBs: 0, corrupted PEBs: 0
[  180.675442] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[  180.682708] ubi0: max/mean erase counter: 0/0, WL threshold: 4096, image sequence number: 254640703
[  180.692120] ubi0: available PEBs: 0, total reserved PEBs: 1968, PEBs reserved for bad PEB handling: 40
[  180.701514] ubi0: background thread "ubi_bgt0d" started, PID 1212
UBI device number 0, total 1968 LEBs (249888768 bytes, 238.3 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB)
root@am335x-evm:~# mount -t ubifs ubi0:rootfs /media/mnt
[  221.403460] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 1216
[  221.440598] ubi0: fixable bit-flip detected at PEB 10
[  221.445887] ubi0: schedule PEB 10 for scrubbing
[  221.464915] UBIFS (ubi0:0): start fixing up free space
[  221.499315] ubi0: fixable bit-flip detected at PEB 10
[  221.508793] ubi0: fixable bit-flip detected at PEB 2
[  221.515055] ubi0: run torture test for PEB 2
[  221.519787] ubi0: fixable bit-flip detected at PEB 10
[  221.533363] ubi0: schedule PEB 10 for scrubbing
[  221.593361] ubi0: fixable bit-flip detected at PEB 21
[  221.598494] ubi0: schedule PEB 21 for scrubbing
[  221.712854] omap2-nand 8000000.nand: uncorrectable bit-flips found
[  221.721177] omap2-nand 8000000.nand: uncorrectable bit-flips found
[  221.743284] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 124928 bytes from PEB 23:4096, read only 124928 bytes, retry
[  221.811061] omap2-nand 8000000.nand: uncorrectable bit-flips found
[  221.824743] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 124928 bytes from PEB 23:4096, read only 124928 bytes, retry
[  221.884161] omap2-nand 8000000.nand: uncorrectable bit-flips found
[  221.891660] omap2-nand 8000000.nand: uncorrectable bit-flips found
[  221.913316] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 124928 bytes from PEB 23:4096, read only 124928 bytes, retry
[  221.982814] omap2-nand 8000000.nand: uncorrectable bit-flips found
[  222.003342] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 124928 bytes from PEB 23:4096, read 124928 bytes
[  222.021980] ubi0: PEB 2 passed torture test, do not mark it as bad
[  222.029549] CPU: 0 PID: 1215 Comm: mount Tainted: G           O    4.1.6-g52c4aa7 #1
[  222.043247] Hardware name: Generic AM33XX (Flattened Device Tree)
[  222.049745] Backtrace:
[  222.052248] [<c0012b10>] (dump_backtrace) from [<c0012d30>] (show_stack+0x18/0x1c)
[  222.060138]  r7:00000000 r6:0001e800 r5:ed312000 r4:ffffffb6
[  222.065956] [<c0012d18>] (show_stack) from [<c0619ab8>] (dump_stack+0x20/0x28)
[  222.073236] [<c0619a98>] (dump_stack) from [<c046db80>] (ubi_io_read+0x124/0x300)
[  222.081059] [<c046da5c>] (ubi_io_read) from [<c046b0d4>] (ubi_eba_read_leb+0x174/0x480)
[  222.089134]  r10:f0a66000 r9:00000015 r8:00000000 r7:00000017 r6:ee5f9800 r5:ed312000
[  222.097196]  r4:ee5f9800
[  222.099753] [<c046af60>] (ubi_eba_read_leb) from [<c046a368>] (ubi_leb_read+0x7c/0xd4)
[  222.108709]  r10:00000000 r9:f0a66000 r8:00000015 r7:ed312000 r6:00000000 r5:0001e800
[  222.116721]  r4:ee5f9800
[  222.119289] [<c046a2ec>] (ubi_leb_read) from [<c0261c30>] (ubifs_leb_read+0x30/0x98)
[  222.127436]  r10:00000000 r9:00000000 r8:00000000 r7:00000015 r6:0001e800 r5:ed315000
[  222.135368]  r4:ed315000
[  222.137932] [<c0261c00>] (ubifs_leb_read) from [<c025fdb8>] (fixup_leb+0x68/0x140)
[  222.146108]  r8:ed315008 r7:00000000 r6:00000015 r5:0001e800 r4:ed315000
[  222.152898] [<c025fd50>] (fixup_leb) from [<c02618b0>] (ubifs_fixup_free_space+0x330/0x3ac)
[  222.161561]  r6:ed315834 r5:ed315000 r4:00000016
[  222.166312] [<c0261580>] (ubifs_fixup_free_space) from [<c025f854>] (ubifs_mount+0x13d0/0x1828)
[  222.175345]  r7:ed315000 r6:ed1c0c00 r5:ebaa4c40 r4:00000000
[  222.181074] [<c025e484>] (ubifs_mount) from [<c010c3c8>] (mount_fs+0x4c/0x16c)
[  222.189316]  r10:c089703c r9:ebaa4bc0 r8:00008000 r7:00000000 r6:c089703c r5:00000000
[  222.197287]  r4:c025e484
[  222.199855] [<c010c37c>] (mount_fs) from [<c012780c>] (vfs_kern_mount+0x50/0x11c)
[  222.207733]  r10:c089703c r9:c088cee8 r8:00000000 r7:c089703c r6:00008000 r5:ebaa4bc0
[  222.215711]  r4:ee620900
[  222.218282] [<c01277bc>] (vfs_kern_mount) from [<c012a748>] (do_mount+0x1c0/0xcb8)
[  222.226175]  r9:c088cee8 r8:00008000 r7:ebaa4780 r6:ebaa4bc0 r5:00000020 r4:00000000
[  222.234033] [<c012a588>] (do_mount) from [<c012b580>] (SyS_mount+0x7c/0xa8)
[  222.241024]  r10:00000000 r9:ebbfc000 r8:00008000 r7:be854e53 r6:00000000 r5:ebaa4bc0
[  222.249150]  r4:ebaa4780
[  222.251714] [<c012b504>] (SyS_mount) from [<c000f880>] (ret_fast_syscall+0x0/0x3c)
[  222.259587]  r8:c000fa24 r7:00000015 r6:b6fd44d0 r5:00008000 r4:00000000
[  222.266957] UBIFS error (ubi0:0 pid 1215): ubifs_leb_read: reading 124928 bytes from LEB 21:0 failed, error -74
[  222.278200] CPU: 0 PID: 1215 Comm: mount Tainted: G           O    4.1.6-g52c4aa7 #1
[  222.286021] Hardware name: Generic AM33XX (Flattened Device Tree)
[  222.292140] Backtrace:
[  222.294864] [<c0012b10>] (dump_backtrace) from [<c0012d30>] (show_stack+0x18/0x1c)
[  222.302477]  r7:00000015 r6:0001e800 r5:ed315000 r4:ffffffb6
[  222.308448] [<c0012d18>] (show_stack) from [<c0619ab8>] (dump_stack+0x20/0x28)
[  222.316365] [<c0619a98>] (dump_stack) from [<c0261c8c>] (ubifs_leb_read+0x8c/0x98)
[  222.324019] [<c0261c00>] (ubifs_leb_read) from [<c025fdb8>] (fixup_leb+0x68/0x140)
[  222.331625]  r8:ed315008 r7:00000000 r6:00000015 r5:0001e800 r4:ed315000
[  222.338633] [<c025fd50>] (fixup_leb) from [<c02618b0>] (ubifs_fixup_free_space+0x330/0x3ac)
[  222.347955]  r6:ed315834 r5:ed315000 r4:00000016
[  222.352637] [<c0261580>] (ubifs_fixup_free_space) from [<c025f854>] (ubifs_mount+0x13d0/0x1828)
[  222.361715]  r7:ed315000 r6:ed1c0c00 r5:ebaa4c40 r4:00000000
[  222.367529] [<c025e484>] (ubifs_mount) from [<c010c3c8>] (mount_fs+0x4c/0x16c)
[  222.375011]  r10:c089703c r9:ebaa4bc0 r8:00008000 r7:00000000 r6:c089703c r5:00000000
[  222.382912]  r4:c025e484
[  222.385617] [<c010c37c>] (mount_fs) from [<c012780c>] (vfs_kern_mount+0x50/0x11c)
[  222.393128]  r10:c089703c r9:c088cee8 r8:00000000 r7:c089703c r6:00008000 r5:ebaa4bc0
[  222.401214]  r4:ee620900
[  222.403946] [<c01277bc>] (vfs_kern_mount) from [<c012a748>] (do_mount+0x1c0/0xcb8)
[  222.411551]  r9:c088cee8 r8:00008000 r7:ebaa4780 r6:ebaa4bc0 r5:00000020 r4:00000000
[  222.419578] [<c012a588>] (do_mount) from [<c012b580>] (SyS_mount+0x7c/0xa8)
[  222.427315]  r10:00000000 r9:ebbfc000 r8:00008000 r7:be854e53 r6:00000000 r5:ebaa4bc0
[  222.435443]  r4:ebaa4780
[  222.438012] [<c012b504>] (SyS_mount) from [<c000f880>] (ret_fast_syscall+0x0/0x3c)
[  222.445972]  r8:c000fa24 r7:00000015 r6:b6fd44d0 r5:00008000 r4:00000000
[  222.452816] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" stops
mount: mounting ubi0:rootfs on /media/mnt failed: Bad message

  • I will ask the software team to look at this.
  • Hi,

    Sorry for the delayed response.
    I have a couple of suggestions:
    1. Have you tried formatting your nand chip?
    2. The ubi image is created for am335x gp evm, can you verify if your nand device with similar parameters? Maybe you need to build your custom ubi image, using the same minimum input/output unit size of the, same logical erase blocks, supported sub-page size, etc... Refer to the following guide:
    www.linux-mtd.infradead.org/.../ubifs.html
    3. Have you verified that your nand is OK (not somehow damaged)?

    Best Regards,
    Yordan
  • 1. Yes.

    2. I have tried different parameters.

    3. Yes.

    Here are a couple things I've tried that lead me to believe it has to do with the NAND kernel driver or configuration.


    1. I used u-boot to write the UBIFS pre-built image and verified that I can mount the image in u-boot.

    2. I used the Sitara am335x sdk v6.0.0.0 to create an SD Card. Booting from the older SDK SD Card I was able to burn the old pre-built image and the new pre-built image.

  • Hi,

    David G60 said:
    Here are a couple things I've tried that lead me to believe it has to do with the NAND kernel driver or configuration.

     

    Have you tried different ECC scheme, see the following table: 

    Best Regards, 
    Yordan

  • I have not tried changing ECC schemes, I've been trying to do it with pre-built images. I thought U-Boot was already doing BCH8 as well as the kernel.

    Should I rebuild U-Boot with the NANDECC command?
    Do I need to do anything in the kernel to use BCH8?
  • I confirmed I'm using BCH8 in U-Boot and the kernel.

    am335x_evm.h

    #define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_BCH8_CODE_HW

    am335x-evm.dts

    &gpmc {

      ....

    ti,nand-ecc-opt = "bch8";

      ...

    }


    Has anyone been able to validate the Processor SDK v2.00.00.00 pre-built images on a AM335x EVM?

  • Hi,

    David G60 said:
    Has anyone been able to validate the Processor SDK v2.00.00.00 pre-built images on a AM335x EVM?

     

    Yes, the images are built for the AM335x EVM. They should work, and the procedure to flash the ubifs is as described in the following wiki: 
    http://processors.wiki.ti.com/index.php/AM335x_U-Boot_User's_Guide#UBIFS_file_system_flashing

     

  • The only directions in your link, is a link to the guide I posted in my original post.

  • Have you tested your nand device? Can you share the result?
    Commands are part of the mtdutils package, you should build the kernel with the /drivers/mtd/tests drivers.

    Best Regards,
    Yordan
  • Let me know if I ran the tests correctly, or if you want me to pass some other parameters?

    root@am335x-evm:~# ls -al /dev/mtd*
    crw-------    1 root     root       90,   0 Jan  1  1970 /dev/mtd0
    crw-------    1 root     root       90,   1 Jan  1  1970 /dev/mtd0ro
    crw-------    1 root     root       90,   2 Jan  1  1970 /dev/mtd1
    crw-------    1 root     root       90,   3 Jan  1  1970 /dev/mtd1ro
    crw-------    1 root     root       90,   4 Jan  1  1970 /dev/mtd2
    crw-------    1 root     root       90,   5 Jan  1  1970 /dev/mtd2ro
    crw-------    1 root     root       90,   6 Jan  1  1970 /dev/mtd3
    crw-------    1 root     root       90,   7 Jan  1  1970 /dev/mtd3ro
    crw-------    1 root     root       90,   8 Jan  1  1970 /dev/mtd4
    crw-------    1 root     root       90,   9 Jan  1  1970 /dev/mtd4ro
    crw-------    1 root     root       90,  10 Jan  1  1970 /dev/mtd5
    crw-------    1 root     root       90,  11 Jan  1  1970 /dev/mtd5ro
    crw-------    1 root     root       90,  12 Jan  1  1970 /dev/mtd6
    crw-------    1 root     root       90,  13 Jan  1  1970 /dev/mtd6ro
    crw-------    1 root     root       90,  14 Jan  1  1970 /dev/mtd7
    crw-------    1 root     root       90,  15 Jan  1  1970 /dev/mtd7ro
    crw-------    1 root     root       90,  16 Jan  1  1970 /dev/mtd8
    crw-------    1 root     root       90,  17 Jan  1  1970 /dev/mtd8ro
    crw-------    1 root     root       90,  18 Jan  1  1970 /dev/mtd9
    crw-------    1 root     root       90,  19 Jan  1  1970 /dev/mtd9ro
    brw-rw----    1 root     disk       31,   0 Jan  1  1970 /dev/mtdblock0
    brw-rw----    1 root     disk       31,   1 Jan  1  1970 /dev/mtdblock1
    brw-rw----    1 root     disk       31,   2 Jan  1  1970 /dev/mtdblock2
    brw-rw----    1 root     disk       31,   3 Jan  1  1970 /dev/mtdblock3
    brw-rw----    1 root     disk       31,   4 Jan  1  1970 /dev/mtdblock4
    brw-rw----    1 root     disk       31,   5 Jan  1  1970 /dev/mtdblock5
    brw-rw----    1 root     disk       31,   6 Jan  1  1970 /dev/mtdblock6
    brw-rw----    1 root     disk       31,   7 Jan  1  1970 /dev/mtdblock7
    brw-rw----    1 root     disk       31,   8 Jan  1  1970 /dev/mtdblock8
    brw-rw----    1 root     disk       31,   9 Jan  1  1970 /dev/mtdblock9
    root@am335x-evm:~# ./nandtest /dev/mtd0
    -sh: ./nandtest: No such file or directory
    root@am335x-evm:~# ./nandtest
    -sh: ./nandtest: No such file or directory
    root@am335x-evm:~# nandtest /dev/mtd0
    ECC corrections: 0
    ECC failures   : 0
    Bad blocks     : 0
    BBT blocks     : 0
    00000000: reading...
     258 bit(s) ECC corrected at 00000000
    00000000: checking...
    compare failed. seed 2030935066
    Byte 0x1d14 is 0e should be 0a
    Byte 0x6a7e is 2c should be 28
    Byte 0xc298 is 0c should be 08
    Byte 0x16ff5 is 1c should be 18
    Byte 0x19c3f is 1c should be 18
    root@am335x-evm:~# nandtest /dev/mtd1
    ECC corrections: 0
    ECC failures   : 0
    Bad blocks     : 0
    BBT blocks     : 0
    00000000: reading...
     231 bit(s) ECC corrected at 00000000
    00000000: checking...
    compare failed. seed 1284209556
    Byte 0x3d62 is 5e should be 5a
    Byte 0x4a08 is 35 should be 31
    Byte 0x1d0fc is 4c should be 48
    root@am335x-evm:~# nandtest /dev/mtd2
    ECC corrections: 0
    ECC failures   : 0
    Bad blocks     : 0
    BBT blocks     : 0
    00000000: reading...
     224 bit(s) ECC corrected at 00000000
    00000000: checking...
    compare failed. seed 223863733
    Byte 0x9dcf is 6c should be 68
    Byte 0x17fca is 2c should be 28
    Byte 0x18b4c is 26 should be 22
    Byte 0x1b554 is de should be da
    root@am335x-evm:~# nandtest /dev/mtd3
    ECC corrections: 0
    ECC failures   : 0
    Bad blocks     : 0
    BBT blocks     : 0
    00000000: reading...
     248 bit(s) ECC corrected at 00000000
    00000000: checking...
    compare failed. seed 387927090
    Byte 0x3fd8 is 4c should be 48
    Byte 0x7b5f is 0c should be 08
    Byte 0xbb9a is de should be da
    Byte 0x12eff is 5c should be 58
    Byte 0x1e11f is 0c should be 08
    root@am335x-evm:~# nandtest /dev/mtd4
    ECC corrections: 0
    ECC failures   : 0
    Bad blocks     : 0
    BBT blocks     : 0
    00000000: reading...
     235 bit(s) ECC corrected at 00000000
    00000000: checking...
    compare failed. seed 93723854
    Byte 0x7a13 is 9c should be 98
    Byte 0xc30e is dc should be d8
    Byte 0x113f3 is 2c should be 28
    Byte 0x147ef is 8e should be 8a
    Byte 0x1a88e is 1c should be 18
    Byte 0x1e5aa is 3c should be 38
    root@am335x-evm:~# nandtest /dev/mtd5
    ECC corrections: 0
    ECC failures   : 0
    Bad blocks     : 0
    BBT blocks     : 0
    00000000: reading...
     216 bit(s) ECC corrected at 00000000
    00000000: checking...
    compare failed. seed 562557890
    Byte 0x18b42 is 8c should be 88
    Byte 0x19580 is ec should be e8
    root@am335x-evm:~# nandtest /dev/mtd6
    ECC corrections: 0
    ECC failures   : 0
    Bad blocks     : 0
    BBT blocks     : 0
    00000000: reading...
     222 bit(s) ECC corrected at 00000000
    00000000: checking...
    compare failed. seed 254606688
    Byte 0x4f43 is 1c should be 18
    Byte 0x1c73c is 87 should be 83
    root@am335x-evm:~# nandtest /dev/mtd7
    ECC corrections: 0
    ECC failures   : 0
    Bad blocks     : 0
    BBT blocks     : 0
    00000000: reading...
     227 bit(s) ECC corrected at 00000000
    00000000: checking...
    compare failed. seed 123097740
    Byte 0x32ac is cc should be c8
    Byte 0x9a35 is 9c should be 98
    Byte 0xb89e is ce should be ca
    Byte 0xe9aa is 2c should be 28
    Byte 0xf6d4 is cf should be cb
    Byte 0x15e53 is 7c should be 78
    Byte 0x17974 is 4c should be 48
    Byte 0x1a76c is 8e should be 8a
    Byte 0x1b8e1 is 0c should be 08
    root@am335x-evm:~# nandtest /dev/mtd8
    ECC corrections: 0
    ECC failures   : 0
    Bad blocks     : 0
    BBT blocks     : 0
    00000000: reading...
     220 bit(s) ECC corrected at 00000000
    00000000: checking...
    compare failed. seed 907831966
    Byte 0x3257 is 0c should be 08
    Byte 0xb3f9 is 0f should be 0b
    Byte 0x1250d is 06 should be 02
    Byte 0x14c89 is 4c should be 48
    Byte 0x1a613 is 87 should be 83
    root@am335x-evm:~# nandtest /dev/mtd9
    ECC corrections: 0
    ECC failures   : 0
    Bad blocks     : 0
    BBT blocks     : 0
    00000000: reading...
     254 bit(s) ECC corrected at 00000000
    00000000: checking...
    compare failed. seed 1368726406
    Byte 0x2845 is 1e should be 1a
    Byte 0x1dffc is 0c should be 08
    Byte 0x1e112 is 0c should be 08

  • I believe nandtest is not the best tool for testing NAND. I find ubifs errors after running nandtest.

    I followed the steps from the first post, but omitted the -s 2048 from ubiformat. I kept the -O 2048 for both format and attach.  Everything worked fine.

    Steve K.

  • I just tried that and it didn't fix my issue.

    Attached are logs for some mtd tests. Let me know if there is a specific one you want me to run.

    mtd_subpage.log

    root@am335x-evm:/# insmod lib/modules/4.1.6-g52c4aa7/kernel/drivers/mtd/tests/mtd_nandecctest.ko
    [ 1185.264986] mtd_nandecctest: ok - no-bit-error-256
    [ 1185.269913] mtd_nandecctest: ok - single-bit-error-in-data-correct-256
    [ 1185.277626] mtd_nandecctest: ok - single-bit-error-in-ecc-correct-256
    [ 1185.284410] __nand_correct_data: uncorrectable ECC error
    [ 1185.289769] mtd_nandecctest: ok - double-bit-error-in-data-detect-256
    [ 1185.297158] __nand_correct_data: uncorrectable ECC error
    [ 1185.302551] mtd_nandecctest: ok - single-bit-error-in-data-and-ecc-detect-256
    [ 1185.310329] __nand_correct_data: uncorrectable ECC error
    [ 1185.315769] mtd_nandecctest: ok - double-bit-error-in-ecc-detect-256
    [ 1185.322209] mtd_nandecctest: ok - no-bit-error-512
    [ 1185.327704] mtd_nandecctest: ok - single-bit-error-in-data-correct-512
    [ 1185.334436] mtd_nandecctest: ok - single-bit-error-in-ecc-correct-512
    [ 1185.340930] __nand_correct_data: uncorrectable ECC error
    [ 1185.346951] mtd_nandecctest: ok - double-bit-error-in-data-detect-512
    [ 1185.353506] __nand_correct_data: uncorrectable ECC error
    [ 1185.358857] mtd_nandecctest: ok - single-bit-error-in-data-and-ecc-detect-512
    [ 1185.366673] __nand_correct_data: uncorrectable ECC error
    [ 1185.372033] mtd_nandecctest: ok - double-bit-error-in-ecc-detect-512
    mtd_readtest.log

  • I got this working on a Beagle Bone Black with a NAND cape. It might be a hardware issue, I'll see if I can get another AM335X EVM to test against.