Increasing the rootfs size on a stm32mp157f-dk2
- April 23, 2021
- 2 replies
- 3418 views
Hi,
i´m using a stm32mp157-dk2 and want to increase the size of the rootfs partition to 2GB.
To create the image follwed the instructions from https://wiki.st.com/stm32mpu/index.php/STM32MP1_Distribution_Package#Installing_the_OpenSTLinux_distribution .
Before running the bitbake command changed as suggested in https://community.st.com/s/question/0D53W00000EaFPwSAN/rootfs-size-increasing-on-avenger96
1) /meta-st/meta-st-stm32mp/conf/machine/include/st-nachine-common-stm32mp.inc
IMAGE_ROOTFS_MAXSIZE ?= "2097152"
ROOTFS_PARTITION_SIZE ?= "2097152"2) /meta-st/meta-st-stm32mp/recipes-devtools/sdcard-raw-tools/sdcard-raw-tools/create_sdcard_from_flashlayout.sh
DEFAULT_RAW_SIZE=4096
DEFAULT_ROOTFS_PARTITION_SIZE=2097152Then while running the bitbake command an error showed up "The initramfs size 181612 (K) exceeds INITRAMFS_MAXSIZE: 131072 (K) You can set INITRAMFS_MAXSIZE a larger value.... ". To avoid this error i increased INITRAMFS_MAXSIZE to 262144 in layers/openembedded-core/meta/conf/bitbake.conf
After restarting the process with bitbake the following errors showed up:
Please let me know, if i missed some steps to increase the rootfs size or did something fundamentally wrong.
Thanks,
stefan_r
