Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    ubifs卷挂载问题

    D1系列-RISC-V
    1
    2
    71
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      y97788 LV 4 last edited by xiaowenge

      # cat /proc/mtd
      dev:    size   erasesize  name
      mtd0: 00100000 00040000 "boot0"
      mtd1: 00300000 00040000 "uboot"
      mtd2: 00100000 00040000 "secure_storage"
      mtd3: 0fb00000 00040000 "sys"
      

      mtd分为4个分区,mtd3关联ubi0
      ubi0分了7个卷

      UBI version:                    1
      Count of UBI devices:           1
      UBI control device major/minor: 10:123
      Present UBI devices:            ubi0
      
      ubi0
      Volumes count:                           8
      Logical eraseblock size:                 258048 bytes, 252.0 KiB
      Total amount of logical eraseblocks:     1004 (259080192 bytes, 247.0 MiB)
      Amount of available logical eraseblocks: 0 (0 bytes)
      Maximum count of volumes                 128
      Count of bad physical eraseblocks:       0
      Count of reserved physical eraseblocks:  40
      Current maximum erase counter value:     2
      Minimum input/output unit size:          4096 bytes
      Character device major/minor:            244:0
      Present volumes:                         0, 1, 2, 3, 4, 5, 6, 7
      
      Volume ID:   0 (on ubi0)
      Type:        static
      Alignment:   1
      Size:        66 LEBs (17031168 bytes, 16.2 MiB)
      Data bytes:  16777216 bytes (16.0 MiB)
      State:       OK
      Name:        mbr
      Character device major/minor: 244:1
      -----------------------------------
      Volume ID:   1 (on ubi0)
      Type:        dynamic
      Alignment:   1
      Size:        69 LEBs (17805312 bytes, 16.9 MiB)
      State:       OK
      Name:        boot-resource
      Character device major/minor: 244:2
      -----------------------------------
      Volume ID:   2 (on ubi0)
      Type:        dynamic
      Alignment:   1
      Size:        5 LEBs (1290240 bytes, 1.2 MiB)
      State:       OK
      Name:        env
      Character device major/minor: 244:3
      -----------------------------------
      Volume ID:   3 (on ubi0)
      Type:        dynamic
      Alignment:   1
      Size:        5 LEBs (1290240 bytes, 1.2 MiB)
      State:       OK
      Name:        env-redund
      Character device major/minor: 244:4
      -----------------------------------
      Volume ID:   4 (on ubi0)
      Type:        dynamic
      Alignment:   1
      Size:        70 LEBs (18063360 bytes, 17.2 MiB)
      State:       OK
      Name:        boot
      Character device major/minor: 244:5
      -----------------------------------
      Volume ID:   5 (on ubi0)
      Type:        dynamic
      Alignment:   1
      Size:        732 LEBs (188891136 bytes, 180.1 MiB)
      State:       OK
      Name:        rootfs
      Character device major/minor: 244:6
      -----------------------------------
      Volume ID:   6 (on ubi0)
      Type:        dynamic
      Alignment:   1
      Size:        5 LEBs (1290240 bytes, 1.2 MiB)
      State:       OK
      Name:        dsp0
      Character device major/minor: 244:7
      -----------------------------------
      Volume ID:   7 (on ubi0)
      Type:        dynamic
      Alignment:   1
      Size:        8 LEBs (2064384 bytes, 1.9 MiB)
      State:       OK
      Name:        UDISK
      Character device major/minor: 244:8
      

      我想挂载ubi0_1卷(boot-resource)修改里面的开机logo

      # mount -t ubifs ubi0_1 /mnt/boot
      mount: mounting ubi0_1 on /mnt/boot failed: Invalid argument
      

      挂载失败!

      ubi0_5 (rootfs)可以挂载,ubi0_7 (UDisk)也可以挂载。
      其他卷都无法挂载。

      1 Reply Last reply Reply Quote Share 0
      • Y
        y97788 LV 4 last edited by

        ubiupdatevol /dev/ubi0_1 boot-resource.fex
        这样可以修改整个卷的数据,但是如何修改boot-resource.fex里bootlogo.bmp,或者如何将新的bootlogo.bmp打包生成boot-resource.fex文件,然后再用上面命令来更新卷数据

        1 Reply Last reply Reply Quote Share 0
        • 1 / 1
        • First post
          Last post

        Copyright © 2022 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

        行为准则 | 用户协议 | 隐私权政策