UBIFS switched to read only mode on i.MX6ULL

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

UBIFS switched to read only mode on i.MX6ULL

14 Views
yunshengouyang
Contributor I

Linux version 4.9.11, gcc version 4.9.4

Toshiba NAND 128MiB 3.3V 8-bit, SLC,erase size:128KiB, page size :2048, OOB size:64

nand: ecc-size:512, ecc-strength: 8

some boards have been working for a few days and the application program is unable to write data to FASH, because the ubifs switched to ready only mode.

We searched online and found that TI's AM3352 had similar malfunctions before, which were ultimately resolved through TI's updated SDK.

Please help analyze the cause of the problem together, thank you

items:0[157340]
checkItems:8001,1[157340]
items:0[157340]
ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 816:4096, read only 126976 bytes, retry
checkItems:8001,1[157350]
items:0[157350]
checkItems:8001,1[157350]

items:0[162500]
ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 814:4096, read only 126976 bytes, retry
checkItems:8001,1[162510]
items:1[162510]

checkItems:8001,1[878840]
items:0[878840]
ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 804:4096, read only 126976 bytes, retry
ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 804:4096, read only 126976 bytes, retry
ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 804:4096, read only 126976 bytes, retry
checkItems:8001,1[878850]

items:0[1058240]
ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 334:4096, read only 126976 bytes, retry
checkItems:8001,1[1058250]
items:0[1058250]

items:0[1242740]
gpmi_ecc_read_page: page 0xc3bf, flip = 8.
ubi0: fixable bit-flip detected at PEB 582
ubi0: schedule PEB 582 for scrubbing
ubi0: scrubbed PEB 582 (LEB 0:655), data moved to PEB 210
checkItems:8001,1[1242750]
items:0[1242750]

items:0[1348940]
ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 66:4096, read only 126976 bytes, retry
checkItems:8001,1[1348950]
items:0[1348950]

items:0[1380320]
ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 64:4096, read only 126976 bytes, retry
checkItems:8001,1[1380330]
items:0[1380330]

items:0[1424120]
ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 177:4096, read only 126976 bytes, retry
ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 177:4096, read only 126976 bytes, retry
checkItems:8001,1[1424130]
items:1[1424130]

items:0[1570820]
ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 744:4096, read only 126976 bytes, retry
checkItems:8001,1[1570830]
items:1[1570830]

items:0[2355560]
ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 232:4096, read only 126976 bytes, retry
ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 232:4096, read only 126976 bytes, retry
ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 232:4096, read only 126976 bytes, retry
ubi0 error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 232:4096, read 126976 bytes
CPU: 0 PID: 2888 Comm: kworker/u2:1 Not tainted 4.9.11 #1
Hardware name: Freescale i.MX6 UltraLite (Device Tree)
Workqueue: writeback wb_workfn (flush-ubifs_0_0)
[<8010cfdc>] (unwind_backtrace) from [<8010ae20>] (show_stack+0x10/0x14)
[<8010ae20>] (show_stack) from [<803aa4dc>] (ubi_io_read+0x128/0x310)
[<803aa4dc>] (ubi_io_read) from [<803a82e8>] (ubi_eba_read_leb+0xa4/0x43c)
[<803a82e8>] (ubi_eba_read_leb) from [<803a6fbc>] (ubi_leb_read+0x70/0xc0)
[<803a6fbc>] (ubi_leb_read) from [<802521fc>] (ubifs_leb_read+0x2c/0x78)
[<802521fc>] (ubifs_leb_read) from [<80259784>] (ubifs_start_scan+0x78/0xcc)
[<80259784>] (ubifs_start_scan) from [<80259a1c>] (ubifs_scan+0x28/0x2bc)
[<80259a1c>] (ubifs_scan) from [<8025d754>] (ubifs_garbage_collect_leb+0x6c/0x76c)
[<8025d754>] (ubifs_garbage_collect_leb) from [<8025df60>] (ubifs_garbage_collect+0x10c/0x3c8)
[<8025df60>] (ubifs_garbage_collect) from [<8024613c>] (make_reservation+0xfc/0x3a8)
[<8024613c>] (make_reservation) from [<80246d00>] (ubifs_jnl_write_data+0xe8/0x26c)
[<80246d00>] (ubifs_jnl_write_data) from [<8024919c>] (do_writepage+0x78/0x1c4)
[<8024919c>] (do_writepage) from [<80198d40>] (__writepage+0x14/0x5c)
[<80198d40>] (__writepage) from [<80198628>] (write_cache_pages+0x184/0x3bc)
[<80198628>] (write_cache_pages) from [<801988a0>] (generic_writepages+0x40/0x60)
[<801988a0>] (generic_writepages) from [<801f845c>] (__writeback_single_inode+0x28/0x1b4)
[<801f845c>] (__writeback_single_inode) from [<801f87fc>] (writeback_sb_inodes+0x214/0x474)
[<801f87fc>] (writeback_sb_inodes) from [<801f8ad0>] (__writeback_inodes_wb+0x74/0xac)
[<801f8ad0>] (__writeback_inodes_wb) from [<801f8ce0>] (wb_writeback+0x1d8/0x208)
[<801f8ce0>] (wb_writeback) from [<801f97c8>] (wb_workfn+0xe8/0x390)
[<801f97c8>] (wb_workfn) from [<80135cf8>] (process_one_work+0x11c/0x350)
[<80135cf8>] (process_one_work) from [<80135f64>] (worker_thread+0x38/0x55c)
[<80135f64>] (worker_thread) from [<8013b300>] (kthread+0xd4/0xec)
[<8013b300>] (kthread) from [<801076d8>] (ret_from_fork+0x14/0x3c)
UBIFS error (ubi0:0 pid 2888): ubifs_scan: garbage
UBIFS error (ubi0:0 pid 2888): ubifs_scanned_corruption: corruption at LEB 492:125016
UBIFS error (ubi0:0 pid 2888): ubifs_scanned_corruption: first 1960 bytes from LEB 492:125016
UBIFS error (ubi0:0 pid 2888): ubifs_scan: LEB 492 scanning failed
UBIFS warning (ubi0:0 pid 2888): ubifs_ro_mode.part.0: switched to read-only mode, error -117
CPU: 0 PID: 2888 Comm: kworker/u2:1 Not tainted 4.9.11 #1
Hardware name: Freescale i.MX6 UltraLite (Device Tree)
Workqueue: writeback wb_workfn (flush-ubifs_0_0)
[<8010cfdc>] (unwind_backtrace) from [<8010ae20>] (show_stack+0x10/0x14)
[<8010ae20>] (show_stack) from [<8025e01c>] (ubifs_garbage_collect+0x1c8/0x3c8)
[<8025e01c>] (ubifs_garbage_collect) from [<8024613c>] (make_reservation+0xfc/0x3a8)
[<8024613c>] (make_reservation) from [<80246d00>] (ubifs_jnl_write_data+0xe8/0x26c)
[<80246d00>] (ubifs_jnl_write_data) from [<8024919c>] (do_writepage+0x78/0x1c4)
[<8024919c>] (do_writepage) from [<80198d40>] (__writepage+0x14/0x5c)
[<80198d40>] (__writepage) from [<80198628>] (write_cache_pages+0x184/0x3bc)
[<80198628>] (write_cache_pages) from [<801988a0>] (generic_writepages+0x40/0x60)
[<801988a0>] (generic_writepages) from [<801f845c>] (__writeback_single_inode+0x28/0x1b4)
[<801f845c>] (__writeback_single_inode) from [<801f87fc>] (writeback_sb_inodes+0x214/0x474)
[<801f87fc>] (writeback_sb_inodes) from [<801f8ad0>] (__writeback_inodes_wb+0x74/0xac)
[<801f8ad0>] (__writeback_inodes_wb) from [<801f8ce0>] (wb_writeback+0x1d8/0x208)
[<801f8ce0>] (wb_writeback) from [<801f97c8>] (wb_workfn+0xe8/0x390)
[<801f97c8>] (wb_workfn) from [<80135cf8>] (process_one_work+0x11c/0x350)
[<80135cf8>] (process_one_work) from [<80135f64>] (worker_thread+0x38/0x55c)
[<80135f64>] (worker_thread) from [<8013b300>] (kthread+0xd4/0xec)
[<8013b300>] (kthread) from [<801076d8>] (ret_from_fork+0x14/0x3c)
UBIFS error (ubi0:0 pid 2888): make_reservation: cannot reserve 390 bytes in jhead 2, error -117
UBIFS error (ubi0:0 pid 2888): do_writepage: cannot write page 357 of inode 2362, error -117
UBIFS error (ubi0:0 pid 2888): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
items:1[2355570]
items:0[2355570]
UBIFS error (ubi0:0 pid 2888): ubifs_write_inode: can't write inode 2362, error -30
UBIFS error (ubi0:0 pid 2888): make_reservation: cannot reserve 461 bytes in jhead 2, error -30
UBIFS error (ubi0:0 pid 2888): do_writepage: cannot write page 0 of inode 185, error -30
UBIFS error (ubi0:0 pid 2888): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (ubi0:0 pid 2888): ubifs_write_inode: can't write inode 185, error -30
UBIFS error (ubi0:0 pid 2888): make_reservation: cannot reserve 1890 bytes in jhead 2, error -30
UBIFS error (ubi0:0 pid 2888): do_writepage: cannot write page 0 of inode 2362, error -30
UBIFS error (ubi0:0 pid 2888): make_reservation: cannot reserve 2906 bytes in jhead 2, error -30
UBIFS error (ubi0:0 pid 2888): do_writepage: cannot write page 1 of inode 185, error -30
items:0[2355580]
items:0[2355580]
items:1[2355590]

Labels (2)
0 Kudos
0 Replies