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.

AM3352 : ubi_io_read error

Other Parts Discussed in Thread: AM3352

Hi,

I'm using AM3352/ezsdk v5.5/NAND booting/UBIFS.

By the way, I face ubi_io_read error during the kerne loading like below.

What can cause this kind of error?

 

Here is the entire log.

6740.NAND_booting_error.txt

[    0.704467] Creating 8 MTD partitions on "omap2-nand.0":
[    0.710068] 0x000000000000-0x000000020000 : "SPL"
[    0.716985] 0x000000020000-0x000000040000 : "SPL.backup1"
[    0.724380] 0x000000040000-0x000000060000 : "SPL.backup2"
[    0.731763] 0x000000060000-0x000000080000 : "SPL.backup3"
[    0.739117] 0x000000080000-0x000000260000 : "U-Boot"
[    0.746848] 0x000000260000-0x000000280000 : "U-Boot Env"
[    0.754217] 0x000000280000-0x000000780000 : "Kernel"
[    0.763282] 0x000000780000-0x000008000000 : "File System"
[    0.821385] OneNAND driver initializing
[    0.826333] UBI: attaching mtd7 to ubi0
[    0.830422] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    0.837012] UBI: logical eraseblock size:    126976 bytes
[    0.842700] UBI: smallest flash I/O unit:    2048
[    0.847645] UBI: sub-page size:              512
[    0.852511] UBI: VID header offset:          2048 (aligned 2048)
[    0.858824] UBI: data offset:                4096
[    0.867771] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read 64 bytes
[    0.881857] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 0:2048, read 512 bytes
[    0.896446] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 1:0, read 64 bytes
[    0.910538] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 1:2048, read 512 bytes
[    0.925119] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 2:0, read 64 bytes
[    0.939184] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 2:2048, read 512 bytes
[    0.953769] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 3:0, read 64 bytes
[    0.967838] UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 3:2048, read 512 bytes

 

Thanks,

Devin

  • Hi Devin,

    Please note that this version of the SDK is very old and no longer supported.

    Please try using a newer version of the SDK. You can find detailed instructions on how to create a UBI file system, how to flash everything to NAND and how to boot from NAND. The instructions are based on the AM335x GP EVM board and SDK 05.06.00.00, but they should apply to any of the later versions of the SDK.

    Please also note that your version of the SDK requires that you use the "nandecc" command in U-Boot before you write the binaries to the NAND flash. More details about flashing the NAND and ECC selection in older versions of the SDK can be seen in the history of this page: http://processors.wiki.ti.com/index.php/AM335x_U-Boot_User%27s_Guide#NAND_ECC_algorithm_selection

    Since PSP version 04.06.00.09-rc2 (SDK version 05.06.00.00) U-Boot uses BCH8 ECC scheme by default in all cases. Hamming Code should be used only for flashing the U-Boot environment variables. To switch between BCH8 and Hamming Code in your version of the SDK/PSP use "nandecc hw 2" and "nandecc hw 0".

    Best regards,
    Miroslav

  • Hi Miroslav,

    Thanks for your answer,

    I cound find the differences in the NAND driver  between ezsdk 6.0 and 5.5.

    As you said, psp in v5.5 is very old and so its NAND driver seems to have some bugs.

     

    Thanks,

    Devin