6928
- 收藏
- 点赞
- 分享
- 举报
UBIFS在ubiattach或者ubimkvol或ubiupdatevol时随机报错
本帖最后由 kenzhang1031 于 2018-7-4 11:43 编辑
HI3531D系统,linux内核3.18.20
rootfs在spi nor flash的mtd3分区中,rootfs启动之后,想把spi nand的其中一个分区/dev/mtd5挂载为ubifs。
spi nand分区mtd5为150MB,规格为:4kB页大小,ecc 24bit/1024。
以下几步:
1. flash_erase /dev/mtd5 0 0 # 擦除成功
2. ubiattach /dev/ubi_ctrl -m 5 -d 1
3. ubimkvol /dev/ubi1 -N rescue -m
4. ubiupdatevol /dev/ubi1_0 rescue.ubiimg
其中2,3,4步之一可能会偶尔报错。报错之后重新执行就会正确。比如:ubiattach报如下错误,这个时候只要再ubidetach -m 5之后,再执行ubiattach就会正确。通常reboot之后,第一次执行报错几率比较大,之后重新执行不出错。不清楚问题出在哪里?(请勿在意坏区超过了40这个警告,之前没坏区的时候一样有同样的错误,不是坏区超过了40引起的)
[code]UBI: attaching mtd5 to ubi1
UBI: scanning is finished
UBI warning: ubi_calculate_reserved: number of bad PEBs (58) is above the expected limit (40), not reserving any PEBs for bad PEB handling, will use available PEBs (if any)
UBI: attached mtd5 (name "rescue", size 150 MiB) to ubi1
UBI: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
UBI: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
UBI: VID header offset: 4096 (aligned 4096), data offset: 8192
UBI: good PEBs: 542, bad PEBs: 58, corrupted PEBs: 0
UBI: user volume: 0, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 0/0, WL threshold: 4096, image sequence number: 1243604547
UBI: available PEBs: 538, total reserved PEBs: 4, PEBs reserved for bad PEB handling: 0
UBI: background thread "ubi_bgt1d" started, PID 215
UBIFS error (pid 220): ubifs_read_node: bad node type (255 but expected 1)
UBIFS error (pid 220): ubifs_read_node: bad node at LEB 281:36632, LEB mapping status 1
Not a node, first 24 bytes:
00000000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ........................
CPU: 0 PID: 220 Comm: ubimkvol Tainted: G O 3.18.20 #26
[<80016664>] (unwind_backtrace) from [<80012024>] (show_stack+0x10/0x14)
[<80012024>] (show_stack) from [<804a8794>] (dump_stack+0x88/0x98)
[<804a8794>] (dump_stack) from [<801d6784>] (ubifs_read_node+0x260/0x2d8)
[<801d6784>] (ubifs_read_node) from [<801f2e60>] (ubifs_tnc_read_node+0x120/0x12c)
[<801f2e60>] (ubifs_tnc_read_node) from [<801d9d0c>] (ubifs_tnc_locate+0x1fc/0x224)
[<801d9d0c>] (ubifs_tnc_locate) from [<801cc97c>] (do_readpage+0x128/0x3b0)
[<801cc97c>] (do_readpage) from [<801cda30>] (ubifs_readpage+0x38/0x4b0)
[<801cda30>] (ubifs_readpage) from [<80089c74>] (filemap_fault+0x2a0/0x474)
[<80089c74>] (filemap_fault) from [<800a66c8>] (__do_fault+0x34/0x88)
[<800a66c8>] (__do_fault) from [<800a8d24>] (do_read_fault+0x1e4/0x2c4)
[<800a8d24>] (do_read_fault) from [<800a95b8>] (handle_mm_fault+0x438/0xd14)
[<800a95b8>] (handle_mm_fault) from [<800184b8>] (do_page_fault+0x1e0/0x290)
[<800184b8>] (do_page_fault) from [<80008548>] (do_PrefetchAbort+0x34/0x98)
[<80008548>] (do_PrefetchAbort) from [<80012f5c>] (ret_from_exception+0x0/0x24)
Exception stack(0xbe9e5fb0 to 0xbe9e5ff8)
5fa0: 0007b0bb 0007b0ba 00000001 0007b0bc
5fc0: 0008b21c 000a2090 7ecaeb38 00000000 00000002 0007b0b8 0007b0b8 7ecaeb5c
5fe0: 00000020 7ecae640 000428c0 000461ac 80000010 ffffffff
UBIFS error (pid 220): do_readpage: cannot read page 54 of inode 650, error -22
UBIFS error (pid 228): ubifs_read_node: bad node length 1837, expected 2730
UBIFS error (pid 228): ubifs_read_node: bad node at LEB 262:39120, LEB mapping status 1
[/code]
HI3531D系统,linux内核3.18.20
rootfs在spi nor flash的mtd3分区中,rootfs启动之后,想把spi nand的其中一个分区/dev/mtd5挂载为ubifs。
spi nand分区mtd5为150MB,规格为:4kB页大小,ecc 24bit/1024。
以下几步:
1. flash_erase /dev/mtd5 0 0 # 擦除成功
2. ubiattach /dev/ubi_ctrl -m 5 -d 1
3. ubimkvol /dev/ubi1 -N rescue -m
4. ubiupdatevol /dev/ubi1_0 rescue.ubiimg
其中2,3,4步之一可能会偶尔报错。报错之后重新执行就会正确。比如:ubiattach报如下错误,这个时候只要再ubidetach -m 5之后,再执行ubiattach就会正确。通常reboot之后,第一次执行报错几率比较大,之后重新执行不出错。不清楚问题出在哪里?(请勿在意坏区超过了40这个警告,之前没坏区的时候一样有同样的错误,不是坏区超过了40引起的)
[code]UBI: attaching mtd5 to ubi1
UBI: scanning is finished
UBI warning: ubi_calculate_reserved: number of bad PEBs (58) is above the expected limit (40), not reserving any PEBs for bad PEB handling, will use available PEBs (if any)
UBI: attached mtd5 (name "rescue", size 150 MiB) to ubi1
UBI: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
UBI: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
UBI: VID header offset: 4096 (aligned 4096), data offset: 8192
UBI: good PEBs: 542, bad PEBs: 58, corrupted PEBs: 0
UBI: user volume: 0, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 0/0, WL threshold: 4096, image sequence number: 1243604547
UBI: available PEBs: 538, total reserved PEBs: 4, PEBs reserved for bad PEB handling: 0
UBI: background thread "ubi_bgt1d" started, PID 215
UBIFS error (pid 220): ubifs_read_node: bad node type (255 but expected 1)
UBIFS error (pid 220): ubifs_read_node: bad node at LEB 281:36632, LEB mapping status 1
Not a node, first 24 bytes:
00000000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ........................
CPU: 0 PID: 220 Comm: ubimkvol Tainted: G O 3.18.20 #26
[<80016664>] (unwind_backtrace) from [<80012024>] (show_stack+0x10/0x14)
[<80012024>] (show_stack) from [<804a8794>] (dump_stack+0x88/0x98)
[<804a8794>] (dump_stack) from [<801d6784>] (ubifs_read_node+0x260/0x2d8)
[<801d6784>] (ubifs_read_node) from [<801f2e60>] (ubifs_tnc_read_node+0x120/0x12c)
[<801f2e60>] (ubifs_tnc_read_node) from [<801d9d0c>] (ubifs_tnc_locate+0x1fc/0x224)
[<801d9d0c>] (ubifs_tnc_locate) from [<801cc97c>] (do_readpage+0x128/0x3b0)
[<801cc97c>] (do_readpage) from [<801cda30>] (ubifs_readpage+0x38/0x4b0)
[<801cda30>] (ubifs_readpage) from [<80089c74>] (filemap_fault+0x2a0/0x474)
[<80089c74>] (filemap_fault) from [<800a66c8>] (__do_fault+0x34/0x88)
[<800a66c8>] (__do_fault) from [<800a8d24>] (do_read_fault+0x1e4/0x2c4)
[<800a8d24>] (do_read_fault) from [<800a95b8>] (handle_mm_fault+0x438/0xd14)
[<800a95b8>] (handle_mm_fault) from [<800184b8>] (do_page_fault+0x1e0/0x290)
[<800184b8>] (do_page_fault) from [<80008548>] (do_PrefetchAbort+0x34/0x98)
[<80008548>] (do_PrefetchAbort) from [<80012f5c>] (ret_from_exception+0x0/0x24)
Exception stack(0xbe9e5fb0 to 0xbe9e5ff8)
5fa0: 0007b0bb 0007b0ba 00000001 0007b0bc
5fc0: 0008b21c 000a2090 7ecaeb38 00000000 00000002 0007b0b8 0007b0b8 7ecaeb5c
5fe0: 00000020 7ecae640 000428c0 000461ac 80000010 ffffffff
UBIFS error (pid 220): do_readpage: cannot read page 54 of inode 650, error -22
UBIFS error (pid 228): ubifs_read_node: bad node length 1837, expected 2730
UBIFS error (pid 228): ubifs_read_node: bad node at LEB 262:39120, LEB mapping status 1
[/code]
我来回答
回答0个
时间排序
认可量排序
暂无数据
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2020-06-01 18:04:03
-
2016-03-18 13:47:44
-
2020-04-21 14:08:51
-
2024-07-29 21:01:57
-
2021-01-12 13:43:52
-
2020-10-01 16:31:00
-
2015-02-09 10:22:48
-
2017-04-05 16:37:03
-
2018-10-24 13:41:39
-
2018-12-25 13:22:30
-
2024-04-03 10:44:55
-
2019-01-18 10:52:47
-
2024-06-18 09:01:15
-
2016-08-12 09:33:28
-
2014-12-04 09:22:06
-
2016-09-22 16:26:31
-
2013-03-29 11:41:31
-
2019-07-17 16:20:24
-
2023-07-22 11:49:18
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
50如何获取vpss chn的图像修改后发送至vo
-
5FPGA通过Bt1120传YUV422数据过来,vi接收不到数据——3516dv500
-
50SS928 运行PQtools 拼接 推到设备里有一半画面会异常
-
53536AV100的sample_vdec输出到CVBS显示
-
10海思板子mpp怎么在vi阶段改变视频数据尺寸
-
10HI3559AV100 多摄像头同步模式
-
9海思ss928单路摄像头vio中加入opencv处理并显示
-
10EB-RV1126-BC-191板子运行自己编码的程序
-
10求HI3519DV500_SDK_V2.0.1.1
-
5有偿求HI3516DV500 + OV5647驱动
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认