Increase partition size in emmc

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Increase partition size in emmc

跳至解决方案
2,627 次查看
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 项奖励
回复
1 解答
2,591 次查看
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 项奖励
回复
2 回复数
2,592 次查看
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 项奖励
回复
2,616 次查看
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 项奖励
回复