您尚未登录。

楼主 # 2022-06-15 14:41:57

yhf997
会员
注册时间: 2020-12-08
已发帖子: 13
积分: 9

T113S使用spi-nand文件系统的分区大小怎么修改

_20220615143342.png

使用256m的spi-nand

mtd的分区:
mtd0: 00100000 00040000 "boot0"
mtd1: 00300000 00040000 "uboot"
mtd2: 00100000 00040000 "secure_storage"
mtd3: 0fb00000 00040000 "sys"

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:        407 LEBs (105025536 bytes, 100.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:        5 LEBs (1290240 bytes, 1.2 MiB)
State:       OK
Name:        private
Character device major/minor: 244:8
-----------------------------------
Volume ID:   8 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        328 LEBs (84639744 bytes, 80.7 MiB)
State:       OK
Name:        UDISK
Character device major/minor: 244:9

修改sys_partition.fex分区文件,ubi卷大小是改变了。

但是df命令查看 / 只有29m,不懂这个大小是在哪里修改的。

# df -h
Filesystem                Size      Used Available Use% Mounted on
ubi0_5                   29.9M     29.2M    672.0K  98% /
devtmpfs                 49.2M         0     49.2M   0% /dev
tmpfs                    54.4M         0     54.4M   0% /dev/shm
tmpfs                    54.4M     24.0K     54.4M   0% /tmp
tmpfs                    54.4M     24.0K     54.4M   0% /run

请教下各位大佬们ubi0_5这个size如何修改

最近编辑记录 yhf997 (2022-06-15 14:43:30)

离线

#1 2022-06-16 11:41:40

笃学
会员
注册时间: 2022-05-07
已发帖子: 14
积分: 14

Re: T113S使用spi-nand文件系统的分区大小怎么修改

修改 build/mkcmd.sh文件中的make_ubifs函数
你的初始格式应该是这样的:mkfs.ubifs -m * -e * -c xxx ....../rootfs.ubifs
将 -c 后面的参数根据你的nand大小适当调整

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn