TI论坛
直播中

郑涵

7年用户 237经验值
私信 关注

用的是AM3359处理器,把一个opt压缩文件拷到文件系统里面,解压缩之后出现问题,请问这是什么原因造成的?如何解决?

本帖最后由 一只耳朵怪 于 2018-6-21 15:05 编辑

我用的是AM3359处理器,把一个opt压缩文件拷到文件系统里面,解压缩之后出现这个问题:
opt/Qt4.8.1/lib/libQtGui.la
opt/Qt4.8.1/lib/libQtGui.so.4
opt/Qt4.8.1/lib/libQtGui.so.4.8.1
[ 112.087463] UBI error: ubi_io_write: error -5 while writing111 2048 bytes to PEB 1586:108544, written 0 bytes
[ 112.097991] UBI warning: ubi_eba_write_leb: failed to write data to PEB 1586
[ 112.105468] UBI: recover PEB 1586, move data to PEB 5531
[ 112.124694] UBI error: ubi_io_write: error -5 while writing111 512 bytes to PEB 5531:2048, written 0 bytes
[ 112.134918] UBI warning: recover_peb: failed to write to PEB 5531
[ 112.141326] UBI: try again
[ 112.144226] UBI: recover PEB 1586, move data to PEB 5532
[ 112.150512] UBI: run torture test for PEB 5531
[ 112.175964] UBI error: ubi_io_write: error -5 while writing111 512 bytes to PEB 5532:2048, written 0 bytes
[ 112.186187] UBI warning: recover_peb: failed to write to PEB 5532
[ 112.192626] UBI: try again
[ 112.195495] UBI: recover PEB 1586, move data to PEB 5533
[ 112.301269] UBI error: ubi_io_write: error -5 while writing111 131072 bytes to PEB 5531:0, written 0 bytes
[ 112.311523] UBI error: erase_worker: failed to erase PEB 5531, error -5
[ 112.318511] UBI: reserve more 1 PEBs
[ 112.322296] UBI: mark PEB 5531 as bad
[ 112.339813] UBI: 81 PEBs left in the reserve
[ 112.370269] UBI: run torture test for PEB 5532
[ 112.405151] UBI error: ubi_io_write: error -5 while writing111 106496 bytes to PEB 5533:4096, written 0 bytes
[ 112.415679] UBI warning: recover_peb: failed to write to PEB 5533
[ 112.422088] UBI: try again
[ 112.424987] UBI: recover PEB 1586, move data to PEB 5534
[ 112.443939] UBI error: ubi_io_write: error -5 while writing111 512 bytes to PEB 5534:2048, written 0 bytes
[ 112.454132] UBI warning: recover_peb: failed to write to PEB 5534
[ 112.460571] UBI warning: ubi_ro_mode: switch to read-only mode
[ 112.466766] UBIFS error (pid 865): ubifs_leb_write: writing 2048 bytes to LEB 1514:104448 failed, error -5
[ 112.476928] UBIFS warning (pid 865): ubifs_ro_mode: switched to read-only mode, error -5
[ 112.485473] Backtrace:
[ 112.488098] [] (dump_backtrace+0x0/0x108) from [] (dump_stack+0x18/0x1c)
[ 112.497009] r6:00019800 r5:cf0a1000 r4:fffffffb
[ 112.501892] [] (dump_stack+0x0/0x1c) from [] (ubifs_ro_mode+0x6c/0x78)
[ 112.510620] [] (ubifs_ro_mode+0x0/0x78) from [] (ubifs_leb_write+0xf8/0x1
求大神!!!

回帖(10)

柴扉

2018-6-21 07:15:17
请参考如下链接:
http://www.linux-mtd.infradead.org/faq/ubi.html#L_subpage_verify_fail
I get "ubi_io_write: error -5 while writing 512 bytes to PEB 5:512"

If you have a 2048 bytes per NAND page device, and haveCONFIG_MTD_NAND_VERIFY_WRITE enabled in your kernel, you will need to turn it off. The code does not currently (as of 2.6.26) perform verification of sub-page writes correctly. As UBI is one of the few users of sub-page writes, not much else seems to be affected by this bug.
建议找到uboot和内核中的CONFIG_MTD_NAND_VERIFY_WRITE 宏定义尝试注释后,看能否解决。
 
 
 
                                                                          
 
举报

郑涵

2018-6-21 07:25:26
引用: btywyrww 发表于 2018-6-21 07:15
请参考如下链接:
http://www.linux-mtd.infradead.org/faq/ubi.html#L_subpage_verify_fail
I get "ubi_io_write: error -5 while writing 512 bytes to PEB 5:512"

都已经去注释掉了,还是不行
举报

曹丽娜

2018-6-21 07:45:17
引用: dlanny 发表于 2018-6-21 07:25
都已经去注释掉了,还是不行

请认真对比下 http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/p/11199/48044.aspx#48044里面的实验步骤。
                                                                         如果我的回答解决了您的问题,请确认答案,谢谢!:)
举报

郑涵

2018-6-21 07:57:07
引用: jvwueurw 发表于 2018-6-21 07:45
请认真对比下 http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/p/11199/48044.aspx#48044里面的实验步骤。
                                                                         如果我的回答解决了您的问题,请确认答案,谢谢!:)

我做的ubi.img怎么弄都不行,就不去弄了,改成内核烧写,步骤如下:
flash_erase /dev/mtd7 0 0
ubiattach /dev/ubi_ctrl -m 7 -O 2048
ubimkvol /dev/ubi0 -N rootfs -s 500MiB
mount -t ubifs ubi0_0 /mnt
cd /mnt
tar zxvf ../base-rootfs-am335x-evm.tar.gz
cd ..
umount /mnt
halt
在解压过程中也会报错:
[ 109.827847] UBI error: ubi_io_write: error -5 while writing111 2048 bytes to PEB 177:71680, written 0 bytes
[ 109.838236] UBI warning: ubi_eba_write_leb: failed to write data to PEB 177
有时候还有这种错误:
[ 108.396450] UBI error: ubi_io_write: error -5 while writing111 2048 bytes to PEB 343:0, written 0 bytes
[ 108.406470] UBI error: erase_worker: failed to erase PEB 343, error -5
[ 108.413354] UBI: reserve more 1 PEBs
[ 108.417142] UBI: mark PEB 343 as bad
[ 108.436947] UBI error: ubi_io_mark_bad: cannot mark PEB 343 bad, error -5
[ 108.444154] UBI warning: ubi_ro_mode: switch to read-only mode
[ 108.450357] UBI error: do_work: work failed with error code -5
[ 108.456533] UBI error: ubi_thread: ubi_bgt0d: work failed with error code -5
[ 108.509195] UBIFS: un-mount UBI device 0, volume 0
[ 108.514949] UBIFS error (pid 976): ubifs_leb_write: writing 2048 bytes to LEB 1:8192 failed, error -30
[ 108.524861] UBIFS warning (pid 976): ubifs_ro_mode: switched to read-only mode, error -30
[ 108.533507] Backtrace:
[ 108.536184] [] (dump_backtrace+0x0/0x108) from [] (dump_stack+0x18/0x1c)
[ 108.545083] r6:00002000 r5:cf3ad000 r4:ffffffe2
[ 108.550010] [] (dump_stack+0x0/0x1c) from [] (ubifs_ro_mode+0x6c/0x78)
[ 108.558756] [] (ubifs_ro_mode+0x0/0x78) from [] (ubifs_leb_write+0xf8/0x13c)
[ 108.568029] r4:ffffffe2
[ 108.570711] [] (ubifs_leb_write+0x0/0x13c) from [] (ubifs_write_node+0xec/0x1d8)
[ 108.580349] r7:00002000 r6:00000200 r5:00000001 r4:cf3ad000
[ 108.586367] [] (ubifs_write_node+0x0/0x1d8) from [] (ubifs_write_master+0xa4/0x13c)
[ 108.596298] [] (ubifs_write_master+0x0/0x13c) from [] (ubifs_put_super+0x174/0x2b8)
[ 108.606214] r6:000001c8 r5:cf198b58 r4:cf198b30
[ 108.611117] [] (ubifs_put_super+0x0/0x2b8) from [] (generic_shutdown_super+0x64/0xac)
[ 108.621229] [] (generic_shutdown_super+0x0/0xac) from [] (kill_anon_super+0x18/0x24)
[ 108.631242] r6:00000000 r5:c0666174 r4:00000013
[ 108.636177] [] (kill_anon_super+0x0/0x24) from [] (kill_ubifs_super+0x18/0x24)
[ 108.645625] r4:cf3ad000
[ 108.648324] [] (kill_ubifs_super+0x0/0x24) from [] (deactivate_locked_super+0x48/0x70)
[ 108.658512] r4:cf198200
[ 108.661200] [] (deactivate_locked_super+0x0/0x70) from [] (deactivate_super+0x6c/0x70)
[ 108.671387] r5:cf198200 r4:cf198200
[ 108.675182] [] (deactivate_super+0x0/0x70) from [] (mntput_no_expire+0x60/0xb4)
[ 108.684731] r4:cf2bb180
[ 108.687428] [] (mntput_no_expire+0x0/0xb4) from [] (sys_umount+0x78/0x370)
[ 108.696518] r5:cf2bb1a0 r4:cf2bb178
[ 108.700329] [] (sys_umount+0x0/0x370) from [] (ret_fast_syscall+0x0/0x30)
[ 108.709322] Backtrace:
[ 108.711919] [] (dump_backtrace+0x0/0x108) from [] (dump_stack+0x18/0x1c)
[ 108.720827] r6:00002000 r5:cf3ad000 r4:ffffffe2
[ 108.725733] [] (dump_stack+0x0/0x1c) from [] (ubifs_leb_write+0xfc/0x13c)
[ 108.734730] [] (ubifs_leb_write+0x0/0x13c) from [] (ubifs_write_node+0xec/0x1d8)
[ 108.744371] r7:00002000 r6:00000200 r5:00000001 r4:cf3ad000
[ 108.750381] [] (ubifs_write_node+0x0/0x1d8) from [] (ubifs_write_master+0xa4/0x13c)
[ 108.760309] [] (ubifs_write_master+0x0/0x13c) from [] (ubifs_put_super+0x174/0x2b8)
[ 108.770222] r6:000001c8 r5:cf198b58 r4:cf198b30
[ 108.775116] [] (ubifs_put_super+0x0/0x2b8) from [] (generic_shutdown_super+0x64/0xac)
[ 108.785221] [] (generic_shutdown_super+0x0/0xac) from [] (kill_anon_super+0x18/0x24)
[ 108.795227] r6:00000000 r5:c0666174 r4:00000013
[ 108.800136] [] (kill_anon_super+0x0/0x24) from [] (kill_ubifs_super+0x18/0x24)
[ 108.809596] r4:cf3ad000
[ 108.812279] [] (kill_ubifs_super+0x0/0x24) from [] (deactivate_locked_super+0x48/0x70)
[ 108.822471] r4:cf198200
[ 108.825153] [] (deactivate_locked_super+0x0/0x70) from [] (deactivate_super+0x6c/0x70)
[ 108.835347] r5:cf198200 r4:cf198200
[ 108.839149] [] (deactivate_super+0x0/0x70) from [] (mntput_no_expire+0x60/0xb4)
[ 108.848696] r4:cf2bb180
[ 108.851378] [] (mntput_no_expire+0x0/0xb4) from [] (sys_umount+0x78/0x370)
[ 108.860459] r5:cf2bb1a0 r4:cf2bb178
[ 108.864248] [] (sys_umount+0x0/0x370) from [] (ret_fast_syscall+0x0/0x30)
[ 108.873685] UBIFS error (pid 976): ubifs_put_super: failed to write master node, error -30

我用的内核是beaglebone的。版本3.2.0
举报

更多回帖

发帖
×
20
完善资料,
赚取积分