Yocto partition layout modify¶
If your partition size are too small.
Here is example, please follow the steps in below to adjust it.
1. Currently , size of system_a/system_b partition is 1145044992 bytes
2. To increase system_a/system_b, please adjust following file
meta/meta-innocomm/recipes-bsp/scatter/files/sb52/partition_emmc.xml
Examples of increasing size of system_a/system_b from 1145044992 bytes to 1228800000 bytes (size must be multiple of 4096)
3. Remove /build/tmp/deploy/images/sb52/MT8183_Yocto_AIV_scatter.txt and /build/tmp/deploy/images/sb52/MBR
4. Issue cmd “bitbake innocomm-image-openmm-aiv” to build images. (If not work please remove /build folder then re-build it)
5. Flash images to verify the modification.
- 2494527-258112+1=2236416*512(each block size is 512 bytes)=1145044992 bytes = 1092MB
- Because this partition table is emmC 4GB example ,so it define 8200000 blocks (for satisfy multiples of 4096).
But emmC real size will less then that, therefore user partition end in 8138815.
Updated by Lion Wang over 3 years ago · 1 revisions