Yocto partition layout modify » History » Version 1
Lion Wang, 08/06/2021 01:34 PM
1 | 1 | Lion Wang | h1. Yocto partition layout modify |
---|---|---|---|
2 | |||
3 | If your partition size are too small. |
||
4 | Here is example, please follow the steps in below to adjust it. |
||
5 | |||
6 | *1. Currently , size of system_a/system_b partition is %{color:red}1145044992% bytes* |
||
7 | *2. To increase system_a/system_b, please adjust following file* |
||
8 | |||
9 | *meta/meta-innocomm/recipes-bsp/scatter/files/sb52/partition_emmc.xml* |
||
10 | |||
11 | Examples of increasing size of system_a/system_b from 1145044992 bytes to 1228800000 bytes (size must be multiple of 4096) |
||
12 | |||
13 | !{width: 60%}partition1.png! |
||
14 | |||
15 | |||
16 | *3. Remove %{color:red}/build/tmp/deploy/images/sb52/MT8183_Yocto_AIV_scatter.txt% and %{color:red}/build/tmp/deploy/images/sb52/MBR% |
||
17 | 4. Issue cmd %{color:red}“bitbake innocomm-image-openmm-aiv”% to build images. (If not work please remove /build folder then re-build it) |
||
18 | 5. Flash images to verify the modification.* |
||
19 | |||
20 | *%{color:red}PS1. How to get 1145044992 ?%* |
||
21 | * %{background:lightgreen}2494527-258112+1=2236416*512(each block size is 512 bytes)=1145044992 bytes = 1092MB% |
||
22 | |||
23 | |||
24 | *%{color:red}PS2. 8200000 is max value in this partition table.%* |
||
25 | * Because this partition table is emmC 4GB example ,so it define 8200000 blocks (for satisfy multiples of 4096). |
||
26 | But emmC real size will less then that, therefore user partition end in %{color:red}8138815%. |