UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read 126976 bytes

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read 126976 bytes

11,476 Views
hyun-moyang
Contributor III

when i mount the library like libfont.img that is for UBI file format, there is mount error as below,

==================

root@freescale /$ mount -t ubifs ubi1:libfont_vol /mnt

UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read 126976 bytes

UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read 126976 bytes

UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 4:4096, read 126976 bytes

UBIFS error (pid 2754): ubifs_recover_master_node: failed to recover master node

mount: mounting ubi1:libfont_vol on /mnt failed: Invalid argument

==================

bootargs : bootargs=noinitrd console=ttymxc3,115200n8 ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs rootwait rw mtdparts=gpmi-nand:16m(boot),16m(kernel),128m(rootfs),32m(libfont),-(user)

NAND flash : Spansion S34ML08G1

==================

root@freescale /$ ubiattach /dev/ubi_ctrl -m 3

UBI: attaching mtd3 to ubi1

UBI: physical eraseblock size:   131072 bytes (128 KiB)

UBI: logical eraseblock size:    126976 bytes

UBI: smallest flash I/O unit:    2048

UBI: VID header offset:          2048 (aligned 2048)

UBI: data offset:                4096

UBI: max. sequence number:       3

UBI: attached mtd3 to ubi1

UBI: MTD device name:            "libfont"

UBI: MTD device size:            32 MiB

UBI: number of good PEBs:        256

UBI: number of bad PEBs:         0

UBI: number of corrupted PEBs:   0

UBI: max. allowed volumes:       128

UBI: wear-leveling threshold:    4096

UBI: number of internal volumes: 1

UBI: number of user volumes:     1

UBI: available PEBs:             0

UBI: total number of reserved PEBs: 256

UBI: number of PEBs reserved for bad PEB handling: 2

UBI: max/mean erase counter: 1/0

UBI: image sequence number:  0

UBI: background thread "ubi_bgt1d" started, PID 2751

root@freescale /$ mount -t ubifs ubi1:libfont_vol /mnt

UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read 126976 bytes

UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read 126976 bytes

UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 4:4096, read 126976 bytes

UBIFS error (pid 2754): ubifs_recover_master_node: failed to recover master node

mount: mounting ubi1:libfont_vol on /mnt failed: Invalid argument

=========================

Please help me to resolve this issue.

Regards

HM

Labels (2)
3 Replies

7,636 Views
anuragraghavan
Contributor I

I am also facing the following issue, while mounting the appdata partition

[    1.797141] UBI error: ubi_io_read: error -74 (ECC error) while reading 253952 bytes from PEB 445:8192, read 253952 bytes
[    1.808274] UBIFS error (pid 491): ubifs_scan: corrupt empty space at LEB 489:233760
[    1.816037] UBIFS error (pid 491): ubifs_scanned_corruption: corruption at LEB 489:233760
[    1.828660] UBIFS error (pid 491): ubifs_scan: LEB 489 scanning failed
[    1.835215] UBIFS warning (pid 491): ubifs_ro_mode: switched to read-only mode, error -117
[    1.843502] UBIFS error (pid 491): make_reservation: cannot reserve 58 bytes in jhead 2, error -117
[    1.852569] UBIFS error (pid 491): do_writepage: cannot write page 0 of inode 76584, error -117
dpkg: error: unable to sync new file '/var/lib/dpkg/arch-new': Structure needs cleaning

0 Kudos
Reply

7,636 Views
BiyongSUN
NXP Employee
NXP Employee

Firstly, please make sure you have use the ubiformat to flash the image as the mfg tool does or use the "free space fixup" flag set.

http://www.linux-mtd.infradead.org/faq/ubi.html#L_ecc_error

pastedImage_1.png

0 Kudos
Reply

7,634 Views
jimmychan
NXP TechSupport
NXP TechSupport

Are you want to program the NAND? You can use the MFGtool. Or you may take the ubi commands in the ucl2.xml (from the MFGtool)  for reference.

0 Kudos
Reply