本帖最后由 laobanliang 于 2022-4-20 17:37 编辑 添加一个vendordata分区,挂载到/mnt/vendordata下,结果挂载失败。 04-20 08:54:10.152 0 0 I e2fsck : Error reading block 3179522 (Invalid argument). Ignore error? yes 04-20 08:54:10.152 0 0 I e2fsck : 04-20 08:54:10.156 0 0 I EXT4-fs (mmcblk2p15): Using encoding defined by superblock: utf8-12.1.0 with flags 0x0 04-20 08:54:10.156 0 0 W EXT4-fs (mmcblk2p15): bad geometry: block count 6449656 exceeds size of device (26624 blocks) 04-20 08:54:10.203 1 1 W libc : Unable to set property "ro.boottime.init.fsck.vendordata" to "50": error code: 0xb 04-20 08:54:10.205 1 1 W libc : Unable to set property "ro.boottime.init.mount.vendordata" to "0": error code: 0xb 04-20 08:54:10.208 0 0 I EXT4-fs (mmcblk2p15): Using encoding defined by superblock: utf8-12.1.0 with flags 0x0 04-20 08:54:10.209 0 0 W EXT4-fs (mmcblk2p15): bad geometry: block count 6449656 exceeds size of device (26624 blocks) 主要修改内容: 添加分区:partition_list := $(partition_list),vendordata:104M 然后挂载: 1、--- a/device/rockchip/rk356x/rk3568_firefly_roc_pc/init.rk3568_firefly_roc_pc.rc +++ b/device/rockchip/rk356x/rk3568_firefly_roc_pc/init.rk3568_firefly_roc_pc.rc @@ -8,3 +8,9 @@ on zygote-start chmod 0666 /dev/ttyS3 # for RS485 chmod 0666 /dev/ttyS4 + + mkdir /mnt/vendordata 0777 root root + mount ext4 mtd@vendordata /mnt/vendordata wait noatime nodiratime nosuid nodev noauto_da_alloc + restorecon_recursive /mnt/vendordata + chown root root /mnt/vendordata + chmod 0777 /mnt/vendordata 2、--- a/device/rockchip/common/scripts/fstab_tools/fstab.in +++ b/device/rockchip/common/scripts/fstab_tools/fstab.in @@ -10,6 +10,7 @@ ${_block_prefix}system_ext /system_ext ext4 ro,barrier=1 ${_flags},first_stage_ /dev/block/by-name/metadata /metadata ext4 nodev,noatime,nosuid,discard,sync wait,formattable,first_stage_mount,check /dev/block/by-name/misc /misc emmc defaults defaults /dev/block/by-name/cache /cache ext4 noatime,nodiratime,nosuid,nodev,noauto_da_alloc,discard wait,check +/dev/block/by-name/vendordata /mnt/vendordata ext4 noatime,nodiratime,nosuid,nodev,noauto_da_alloc,discard wait,check /devices/platform/*usb* auto vfat defaults voldmanaged=usb:auto 3、--- a/device/rockchip/rk356x/rk3568_firefly_roc_pc/recovery.fstab +++ b/device/rockchip/rk356x/rk3568_firefly_roc_pc/recovery.fstab @@ -13,6 +13,7 @@ /dev/block/by-name/cust /cust ext4 defaults defaults /dev/block/by-name/custom /custom ext4 defaults defaults /dev/block/by-name/radical_update /radical_update ext4 defaults defaults +/dev/block/by-name/vendordata /mnt/vendordata ext4 defaults defaults /dev/block/by-name/misc /misc emmc defaults defaults /dev/block/by-name/uboot /uboot emmc defaults defaults /dev/block/by-name/charge /charge emmc defaults defaults 请问如何挂载新增分区? |
-
151.52 KB, 下载次数: 1, 下载积分: 灯泡 -1 , 经验 -1