2024-12-16 09:07 AM - edited 2024-12-16 12:06 PM
Hello everyone,
I’m working with an STM32MP157-DK2 board and want to increase the size of the rootfs partition to 10GB.
I followed the instructions from the https://wiki.st.com/stm32mpu/wiki/STM32MPU_Distribution_Package to create the image. However, I haven’t been able to find a working solution to resize the rootfs partition.
Here’s the current space information from my board:
root@stm32mp1:~# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 124M 0 124M 0% /dev
/dev/mmcblk0p10 3.8G 989M 2.6G 28% /
tmpfs 194M 0 194M 0% /dev/shm
tmpfs 78M 8.8M 69M 12% /run
tmpfs 194M 4.0K 194M 1% /tmp
/dev/mmcblk0p8 55M 22M 30M 43% /boot
/dev/mmcblk0p9 14M 6.7M 6.0M 53% /vendor
/dev/mmcblk0p11 220G 47M 208G 1% /usr/local
tmpfs 194M 20K 194M 1% /var/volatile
tmpfs 39M 8.0K 39M 1% /run/user/1000
tmpfs 39M 4.0K 39M 1% /run/user/0
I’ve come across some forum discussions, but none of the suggested solutions have worked for me.
Could someone please provide clear instructions to resize the rootfs partition to 10GB?
What I need add to my bitbake settings?
Thank you in advance!
Symeon Zapsis
2024-12-17 03:39 AM
I found a solution for this issue.
I modified the FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv file.
P | 0x12 | rootfs | FileSystem | mmc0 | 0x05984400 | st-image-weston-openstlinux-weston-stm32mp1.rootfs.ext4 |
P | 0x13 | userfs | FileSystem | mmc0 | 0x280598400 | st-image-userfs-openstlinux-weston-stm32mp1.userfs.ext4 |
I adjusted the userfs partition address, moving it from 0x105984400 to 0x280598400 (approximately 10GB). After the first boot, the partition layout looked like this:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mmcblk0 179:0 0 29.7G 0 disk
|-mmcblk0p1 179:1 0 256K 0 part
|-mmcblk0p2 179:2 0 256K 0 part
|-mmcblk0p3 179:3 0 256K 0 part
|-mmcblk0p4 179:4 0 256K 0 part
|-mmcblk0p5 179:5 0 4M 0 part
|-mmcblk0p6 179:6 0 4M 0 part
|-mmcblk0p7 179:7 0 512K 0 part
|-mmcblk0p8 179:8 0 64M 0 part /boot
|-mmcblk0p9 179:9 0 16M 0 part /vendor
|-mmcblk0p10 179:10 0 9.9G 0 part /
`-mmcblk0p11 179:11 0 19.7G 0 part /usr/local
Best Regards.
Symeon