Increase partition size in emmc

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Increase partition size in emmc

Jump to solution
2,626 Views
Aakash_Sharma
Contributor II

Hi,

We are using custom board based on IMX8MQ, we want to increase user data partition size (custom partition) to 24GB. Our emmc is capable of 32GB and we have two rootfs image each with size of 4GB configured in yocto build system. Below mentioned are the contents of our wks file but these doesn't seems to work as while flashing with uuu utility it says :Request would exceed partition size!

Contents of wks file:-

part u-boot --source rawcopy --sourceparams="file=imx-boot" --ondisk mmcblk --no-table --align ${IMX_BOOT_SEEK}
part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 8192
part /mnt --source rootfs --ondisk mmcblk --fstype=ext4 --label rootfs-bkup --align 8192
part /media --ondisk mmcblk --fstype=ext4 --label data --align 8192 --size 24576

Let me know if we are missing something or how to do the same.

Thanks.

0 Kudos
Reply
1 Solution
2,590 Views
Aakash_Sharma
Contributor II

Hi All, 

the changes I mentioned are working but needs to reduce the size of the /media partition as per the available space after rootfs and other partition have populated.

View solution in original post

0 Kudos
Reply
2 Replies
2,591 Views
Aakash_Sharma
Contributor II

Hi All, 

the changes I mentioned are working but needs to reduce the size of the /media partition as per the available space after rootfs and other partition have populated.

0 Kudos
Reply
2,615 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

You can try to add --fixed-size in root partition

part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 8192 --fixed-size xxxx

 

Please refer kickstart document:

https://docs.yoctoproject.org/ref-manual/kickstart.html

https://pykickstart.readthedocs.io/en/latest/kickstart-docs.html

0 Kudos
Reply