挂载ubi文件系统 出错。

jidonghui 2013-06-03 04:48:17
内核配置如下:
File systems --->
  • Miscellaneous filesystems--->
    <*>UBIFS file system
  • [ ]Extended attributes support
  • Advanced compression options
  • LZO compression support
  • ZLIB compression support
  • [ ]Enable debugging
    Device Drivers---->
    <*>Memory Technology Device(MTD) support--->
    <*>Enable UBI - Unsorted block images --->
    --- Enable UBI - Unsorted block images
    (4096) UBI wear-leveling threshold
    (1) Percentage of reserved eraseblocks for bad eraseblocks handling
    <*> MTD devices emulation driver (gluebi)
    *** UBI debugging options ***
    [ ] UBI debugging



    文件系统类型cramfs文件系统
    /opt目录 挂载为 ubi文件系统。
    挂载命令
    第一次启动执行:
    ubiattach /dev/ubi_ctrl -m 3
    ubimkvol /dev/ubi0 -N usrfolder -s 80MiB
    mount -t ubifs ubi0_0 /opt
    第n次启动(n>1)执行 :
    ubiattach /dev/ubi_ctrl -m 3
    mount -t ubifs ubi0_0 /opt


    挂载成功后,使用正常。有时会出现:
    UBIFS error (pid 76): ubifs_read_node: bad node type (255 but expected 1)
    UBIFS error (pid 76): ubifs_read_node: bad node at LEB 31:20480, LEB mapping status 0
    UBIFS error (pid 76): do_readpage: cannot read page 0 of inode 70, error -22

    知道是哪里错误不?
    哪位前辈可以帮忙,分全给你。
...全文
2197 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
大家可参考我的解决,虽然不全面 http://blog.csdn.net/davion_zhang/article/details/47400553
yang-zxy 2015-07-24
  • 打赏
  • 举报
回复
我也遇到了类似的问题,我是从u-boot中使用u-boot提供的UBI命令挂载,你这个问题解决了吗,能告诉我解决方法吗,谢谢。
jidonghui 2013-06-05
  • 打赏
  • 举报
回复
我是 cramfs文件系 挂在一个分区为 ubifs uboot里面 不进行 这些设置的。
JaggerJiao 2013-06-04
  • 打赏
  • 举报
回复 1
1.在uboot里,setenv nand_root ubi0:rootfs rw ubi.mtd= (此处对应),2048 2.制作imgae时,mkfs.ubifs -c 这个参数要仔细计算,些参数影响较大,再就是改一下ubinize.cfg这个文件的相关参数,要经过计算 3.看驱动,以用硬件连接,不要造成flash的只读情况出现

21,620

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 驱动开发/核心开发
社区管理员
  • 驱动开发/核心开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧