20240806吃干榨尽飞凌OK3588-C的8+64的核心板的eMMC存储空间resize2fs

20240806吃干榨尽飞凌OK3588-C的8+64的核心板的eMMC存储空间
2024/8/6 11:25


缘起,使用了飞凌OK3588-C的8+64的核心板,但是默认的LINUX R4版本的SDK编译的IMG固件,刷机之后貌似默认只使用了32GB?的eMCC空间。
联系飞凌提供了resize2fs命令来扩大userdata分区即可!
实际上,我是想扩大/这个根分区的。
飞凌答复说需要修改分区表parameter.txt

viewpro@viewpro-ThinkBook-16-G5-IRH:~/OK3588_Linux_fs$ find . -name parameter.txt
./device/rockchip/rk3399/parameter.txt
./device/rockchip/px30/parameter.txt
./device/rockchip/rk3588/parameter.txt
./device/rockchip/rk3328/parameter.txt
./device/rockchip/rv1126_rv1109/prebuilt-packages/build-busybox/partition/parameter.txt
./device/rockchip/rk3288/parameter.txt
./device/rockchip/rk3399pro/parameter.txt
./device/rockchip/rk3358/parameter.txt
./device/rockchip/rk3326/parameter.txt
./device/forlinx/ok3588/parameter.txt
./rockdev/parameter.txt
./IMAGE/OK3588-C-LINUX_20240727.2027_RELEASE_TEST/IMAGES/parameter.txt
./IMAGE/OK3588-C-LINUX_20240802.2052_RELEASE_TEST/IMAGES/parameter.txt
./IMAGE/OK3588-C-LINUX_20240802.2010_RELEASE_TEST/IMAGES/parameter.txt
./IMAGE/OK3588-C-LINUX_20240726.1938_RELEASE_TEST/IMAGES/parameter.txt
./IMAGE/OK3588-C-LINUX_20240727.1731_RELEASE_TEST/IMAGES/parameter.txt
./IMAGE/OK3588-C-LINUX_20240802.2033_RELEASE_TEST/IMAGES/parameter.txt
viewpro@viewpro-ThinkBook-16-G5-IRH:~/OK3588_Linux_fs$ 


root@ok3588:/# ls -l
root@ok3588:/# df -h
root@ok3588:/# ls -l
root@ok3588:/# df -h
root@ok3588:/# resize2fs /dev/mmcblk0p8
root@ok3588:/# df -h
root@ok3588:/# ls -l
root@ok3588:/# cd /userdata/
root@ok3588:/userdata# 
root@ok3588:/userdata# ls -l
root@ok3588:/userdata# df -h
root@ok3588:/userdata# ls -l
root@ok3588:/userdata# df -T

root@ok3588://run/media/mmcblk1p1# cd /run/media/mmcblk1p1/
root@ok3588:/run/media/mmcblk1p1/405b# ls -l
root@ok3588:/run/media/mmcblk1p1/405b# cd /userdata/


input-event-daemon: Start listening on 4 devices...
done
root@ok3588:/# [08:00:16.832] Detected a monitor change on head 'HDMI-A-1', not bothering to do anything about it.
[08:00:16.832] Detected a monitor change on head 'DSI-1', not bothering to do anything about it.
[08:00:16.832] Detected a monitor change on head 'DSI-2', not bothering to do anything about it.

root@ok3588:/# 
root@ok3588:/# 
root@ok3588:/# ls -l
total 72
drwxr-xr-x   2 root root  4096 Mar  9  2023 bin
-rw-r--r--   1 root root   351 Mar  9  2023 busybox.fragment
lrwxrwxrwx   1 root root     8 Mar  9  2023 data -> userdata
drwxr-xr-x  14 root root  3840 Jan  1 08:00 dev
drwxr-xr-x  23 root root  4096 Jan  1 08:00 etc
drwxr-xr-x   4 root root  4096 Jan  1 08:00 home
drwxr-xr-x   6 root root  4096 Aug 17  2023 lib
lrwxrwxrwx   1 root root     3 Mar  9  2023 lib64 -> lib
lrwxrwxrwx   1 root root    11 Mar  9  2023 linuxrc -> bin/busybox
drwx------   2 root root 16384 Mar  9  2023 lost+found
drwxr-xr-x  14 root root  4096 Mar  9  2023 media
lrwxrwxrwx   1 root root    23 Mar  9  2023 misc -> /dev/block/by-name/misc
drwxr-xr-x   4 root root  4096 Mar  9  2023 mnt
drwxr-xr-x   3 root root  4096 Jul 26  2024 oem
drwxr-xr-x   2 root root  4096 Mar  9  2023 opt
dr-xr-xr-x 254 root root     0 Jan  1 08:00 proc
drwx------   2 root root  4096 Mar  9  2023 root
drwxr-xr-x   7 root root   340 Jan  1 08:00 run
drwxr-xr-x   2 root root  4096 Sep 14  2023 sbin
lrwxrwxrwx   1 root root    10 Mar  9  2023 sdcard -> mnt/sdcard
dr-xr-xr-x  14 root root     0 Jan  1 08:00 sys
drwxrwxrwt   8 root root   420 Jan  1 08:00 tmp
lrwxrwxrwx   1 root root     9 Mar  9  2023 udisk -> mnt/udisk
drwxr-xr-x   5 root root  4096 Jan  1 08:00 userdata
drwxr-xr-x  11 root root  4096 Sep 14  2023 usr
drwxr-xr-x   5 root root  4096 Mar  9  2023 var
root@ok3588:/# 
root@ok3588:/# 
root@ok3588:/# 
root@ok3588:/# 
root@ok3588:/# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        14G  1.3G   12G  10% /
devtmpfs        3.6G  8.0K  3.6G   1% /dev
tmpfs           3.8G     0  3.8G   0% /dev/shm
tmpfs           3.8G  396K  3.8G   1% /tmp
tmpfs           3.8G  320K  3.8G   1% /run
/dev/mmcblk0p7  128M   12M  110M  10% /oem
/dev/mmcblk0p8  291M  289M     0 100% /userdata
root@ok3588:/# 
root@ok3588:/# 
root@ok3588:/# 
root@ok3588:/# 
root@ok3588:/# ls -l
total 72
drwxr-xr-x   2 root root  4096 Mar  9  2023 bin
-rw-r--r--   1 root root   351 Mar  9  2023 busybox.fragment
lrwxrwxrwx   1 root root     8 Mar  9  2023 data -> userdata
drwxr-xr-x  14 root root  3840 Jan  1 08:00 dev
drwxr-xr-x  23 root root  4096 Jan  1 08:00 etc
drwxr-xr-x   4 root root  4096 Jan  1 08:00 home
drwxr-xr-x   6 root root  4096 Aug 17  2023 lib
lrwxrwxrwx   1 root root     3 Mar  9  2023 lib64 -> lib
lrwxrwxrwx   1 root root    11 Mar  9  2023 linuxrc -> bin/busybox
drwx------   2 root root 16384 Mar  9  2023 lost+found
drwxr-xr-x  14 root root  4096 Mar  9  2023 media
lrwxrwxrwx   1 root root    23 Mar  9  2023 misc -> /dev/block/by-name/misc
drwxr-xr-x   4 root root  4096 Mar  9  2023 mnt
drwxr-xr-x   3 root root  4096 Jul 26  2024 oem
drwxr-xr-x   2 root root  4096 Mar  9  2023 opt
dr-xr-xr-x 254 root root     0 Jan  1 08:00 proc
drwx------   2 root root  4096 Mar  9  2023 root
drwxr-xr-x   7 root root   340 Jan  1 08:00 run
drwxr-xr-x   2 root root  4096 Sep 14  2023 sbin
lrwxrwxrwx   1 root root    10 Mar  9  2023 sdcard -> mnt/sdcard
dr-xr-xr-x  14 root root     0 Jan  1 08:00 sys
drwxrwxrwt   8 root root   420 Jan  1 08:00 tmp
lrwxrwxrwx   1 root root     9 Mar  9  2023 udisk -> mnt/udisk
drwxr-xr-x   5 root root  4096 Jan  1 08:00 userdata
drwxr-xr-x  11 root root  4096 Sep 14  2023 usr
drwxr-xr-x   5 root root  4096 Mar  9  2023 var
root@ok3588:/# 
root@ok3588:/# 
root@ok3588:/# 
root@ok3588:/# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        14G  1.3G   12G  10% /
devtmpfs        3.6G  8.0K  3.6G   1% /dev
tmpfs           3.8G     0  3.8G   0% /dev/shm
tmpfs           3.8G  396K  3.8G   1% /tmp
tmpfs           3.8G  320K  3.8G   1% /run
/dev/mmcblk0p7  128M   12M  110M  10% /oem
/dev/mmcblk0p8  291M  289M     0 100% /userdata
root@ok3588:/# 
root@ok3588:/# 
root@ok3588:/# 
root@ok3588:/# 
root@ok3588:/# resize2fs /dev/mmcblk0p8
resize2fs 1.46.4 (18-Aug-2021)
Filesystem at /dev/mmcblk0p8 is mounted on /run/media/mmcblk0p8; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 3
The filesystem on /dev/mmcblk0p8 is now 11339768 (4k) blocks long.

root@ok3588:/# 
root@ok3588:/# 
(arg: 9) ^C
root@ok3588:/# 
(arg: 9) ^C
root@ok3588:/# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        14G  1.3G   12G  10% /
devtmpfs        3.6G  8.0K  3.6G   1% /dev
tmpfs           3.8G     0  3.8G   0% /dev/shm
tmpfs           3.8G  396K  3.8G   1% /tmp
tmpfs           3.8G  320K  3.8G   1% /run
/dev/mmcblk0p7  128M   12M  110M  10% /oem
/dev/mmcblk0p8   43G  290M   41G   1% /userdata
root@ok3588:/# 
root@ok3588:/# ls -l
total 72
drwxr-xr-x   2 root root  4096 Mar  9  2023 bin
-rw-r--r--   1 root root   351 Mar  9  2023 busybox.fragment
lrwxrwxrwx   1 root root     8 Mar  9  2023 data -> userdata
drwxr-xr-x  14 root root  3840 Jan  1 08:00 dev
drwxr-xr-x  23 root root  4096 Jan  1 08:00 etc
drwxr-xr-x   4 root root  4096 Jan  1 08:00 home
drwxr-xr-x   6 root root  4096 Aug 17  2023 lib
lrwxrwxrwx   1 root root     3 Mar  9  2023 lib64 -> lib
lrwxrwxrwx   1 root root    11 Mar  9  2023 linuxrc -> bin/busybox
drwx------   2 root root 16384 Mar  9  2023 lost+found
drwxr-xr-x  14 root root  4096 Mar  9  2023 media
lrwxrwxrwx   1 root root    23 Mar  9  2023 misc -> /dev/block/by-name/misc
drwxr-xr-x   4 root root  4096 Mar  9  2023 mnt
drwxr-xr-x   3 root root  4096 Jul 26  2024 oem
drwxr-xr-x   2 root root  4096 Mar  9  2023 opt
dr-xr-xr-x 235 root root     0 Jan  1 08:00 proc
drwx------   2 root root  4096 Mar  9  2023 root
drwxr-xr-x   7 root root   340 Jan  1 08:00 run
drwxr-xr-x   2 root root  4096 Sep 14  2023 sbin
lrwxrwxrwx   1 root root    10 Mar  9  2023 sdcard -> mnt/sdcard
dr-xr-xr-x  14 root root     0 Jan  1 08:00 sys
drwxrwxrwt   8 root root   420 Jan  1 08:00 tmp
lrwxrwxrwx   1 root root     9 Mar  9  2023 udisk -> mnt/udisk
drwxr-xr-x   5 root root  4096 Jan  1 08:00 userdata
drwxr-xr-x  11 root root  4096 Sep 14  2023 usr
drwxr-xr-x   5 root root  4096 Mar  9  2023 var
root@ok3588:/# cd /userdata/
root@ok3588:/userdata# 
root@ok3588:/userdata# ls -l
total 304
-rwxr-xr-x 1 root root  87402 Dec 21  2023 200frames_count.h264
-rwxr-xr-x 1 root root  81582 Dec 21  2023 belle-nuit-testchart-1080p.png
drwx------ 2 root root  16384 Jul 26  2024 lost+found
drwxr-xr-x 2 root root   4096 Dec 21  2023 media
-rwxr-xr-x 1 root root 101760 Dec 21  2023 piano2-CoolEdit.mp3
drwxr-xr-x 2 root root   4096 Jan  1 08:00 recovery
root@ok3588:/userdata# 
root@ok3588:/userdata# 
root@ok3588:/userdata# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        14G  1.3G   12G  10% /
devtmpfs        3.6G  8.0K  3.6G   1% /dev
tmpfs           3.8G     0  3.8G   0% /dev/shm
tmpfs           3.8G  396K  3.8G   1% /tmp
tmpfs           3.8G  320K  3.8G   1% /run
/dev/mmcblk0p7  128M   12M  110M  10% /oem
/dev/mmcblk0p8   43G  290M   41G   1% /userdata
root@ok3588:/userdata# 
root@ok3588:/userdata# 
p4 t. ! queue ! waylandsink ! qtmux ! filesink location=fpga110000-405-1080p60.mp
Setting pipeline to PAUSED ...
Using mplane plugin for capture 
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
Redistribute latency...
Got EOS from element "pipeline0".
Execution ended after 0:30:54.105067456
Setting pipeline to NULL ...
Freeing pipeline ...
 t. ! queue ! waylandsinke ! qtmux ! filesink location=fpga18000-405-1080p60.mp4 
Setting pipeline to PAUSED ...
Using mplane plugin for capture 
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
Redistribute latency...
Got EOS from element "pipeline0".
Execution ended after 0:05:01.492928293
Setting pipeline to NULL ...
Freeing pipeline ...
root@ok3588:/userdata# ls -l
total 4067484
-rwxr-xr-x 1 root root      87402 Dec 21  2023 200frames_count.h264
-rwxr-xr-x 1 root root      81582 Dec 21  2023 belle-nuit-testchart-1080p.png
-rw-r--r-- 1 root root 3576110700 Jan  1 08:37 fpga110000-405-1080p60.mp4
-rw-r--r-- 1 root root  584605025 Jan  1 08:44 fpga18000-405-1080p60.mp4
drwx------ 2 root root      16384 Jul 26  2024 lost+found
drwxr-xr-x 2 root root       4096 Dec 21  2023 media
-rwxr-xr-x 1 root root     101760 Dec 21  2023 piano2-CoolEdit.mp3
drwxr-xr-x 2 root root       4096 Jan  1 08:00 recovery
root@ok3588:/userdata# 
root@ok3588:/userdata# 
root@ok3588:/userdata# df -T
Filesystem     Type     1K-blocks    Used Available Use% Mounted on
/dev/root      ext4      14425456 1271520  12536600  10% /
devtmpfs       devtmpfs   3761228       8   3761220   1% /dev
tmpfs          tmpfs      3895692       0   3895692   0% /dev/shm
tmpfs          tmpfs      3895692     472   3895220   1% /tmp
tmpfs          tmpfs      3895692     328   3895364   1% /run
/dev/mmcblk0p7 ext2        130520   12000    111972  10% /oem
/dev/mmcblk0p8 ext2      44244300 4363776  38516240  11% /userdata
/dev/mmcblk1p1 ext4     122441328   61464 116117080   1% /run/media/mmcblk1p1
root@ok3588:/userdata# 
root@ok3588:/userdata# cd //run/media/mmcblk1p1
root@ok3588://run/media/mmcblk1p1# cd /run/media/mmcblk1p1
root@ok3588:/run/media/mmcblk1p1# 
root@ok3588:/run/media/mmcblk1p1# ls -l
total 16
drwx------ 2 root root 16384 Aug  6  2024 lost+found
root@ok3588:/run/media/mmcblk1p1# 
root@ok3588:/run/media/mmcblk1p1# mkdir 405b
root@ok3588:/run/media/mmcblk1p1# cd -
//run/media/mmcblk1p1
root@ok3588://run/media/mmcblk1p1# 
root@ok3588://run/media/mmcblk1p1# 
root@ok3588://run/media/mmcblk1p1# cd /run/media/mmcblk1p1/
root@ok3588:/run/media/mmcblk1p1# ls -l
total 20
drwxr-xr-x 2 root root  4096 Jan  1 08:50 405b
drwx------ 2 root root 16384 Aug  6  2024 lost+found
root@ok3588:/run/media/mmcblk1p1# cd 405b/
root@ok3588:/run/media/mmcblk1p1/405b# ls -l
total 0
root@ok3588:/run/media/mmcblk1p1/405b# cd /userdata/
root@ok3588:/userdata# ls -l
total 4067484
-rwxr-xr-x 1 root root      87402 Dec 21  2023 200frames_count.h264
-rwxr-xr-x 1 root root      81582 Dec 21  2023 belle-nuit-testchart-1080p.png
-rw-r--r-- 1 root root 3576110700 Jan  1 08:37 fpga110000-405-1080p60.mp4
-rw-r--r-- 1 root root  584605025 Jan  1 08:44 fpga18000-405-1080p60.mp4
drwx------ 2 root root      16384 Jul 26  2024 lost+found
drwxr-xr-x 2 root root       4096 Dec 21  2023 media
-rwxr-xr-x 1 root root     101760 Dec 21  2023 piano2-CoolEdit.mp3
drwxr-xr-x 2 root root       4096 Jan  1 08:00 recovery
root@ok3588:/userdata# du -sh
4.2G    .
root@ok3588:/userdata# mv * /run/media/mmcblk1p1/
rroot@ok3588:/userdata# r

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值