AnsweredAssumed Answered

imx8qxp android9.0.0 vendor partition resize fail

Question asked by jiu jin hong on Jul 29, 2019
Latest reply on Jul 30, 2019 by G.Y. CHEN

Hi, we try to resize vendor 112M to 1.2G in device-partitions-28GB-ab. bpt, but it didn't make any sense.

Can you give some help?

 

console:/data # df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/root             1.6G  1.0G  712M  59% /
tmpfs                 1.2G  448K  1.2G   1% /dev
tmpfs                 1.2G     0  1.2G   0% /mnt
/dev/block/mmcblk0p10 107M   74M   32M  70% /vendor
/dev/block/mmcblk0p12  22G  152M   22G   1% /data
/data/media            22G  152M   22G   1% /mnt/runtime/default/emulated

 

device-partitions-28GB-ab. bpt

{
    "settings": {
        "disk_size": "28 GiB",
        "disk_alignment": 2097152,
        "first_partition_offset": 8388608
    },
    "partitions": [
        {
            "ab": true,
            "label": "dtbo",
            "size": "4 MiB",
            "guid": "auto",
            "type_guid": "b3c54657-8b47-48bc-9792-37b7c091ae69"
        },
        {
            "ab": true,
            "label": "boot",
            "size": "48 MiB",
            "guid": "auto",
            "type_guid": "bb499290-b57e-49f6-bf41-190386693794"
        },
        {
            "ab": true,
            "label": "system",
            "size": "1792 MiB",
            "guid": "auto",
            "type_guid": "0f2778c4-5cc1-4300-8670-6c88b7e57ed6"
        },
        {
            "label": "misc",
            "size": "4 MiB",
            "guid": "auto",
            "type_guid": "6b2378b0-0fbc-4aa9-a4f6-4d6e17281c47"
        },
        {
            "label": "metadata",
            "size": "2 MiB",
            "guid": "auto",
            "type_guid": "b598858a-5fe3-418e-b8c4-824b41f4adfc"
        },
        {
            "label": "presistdata",
            "size": "1 MiB",
            "guid": "auto",
            "type_guid": "e99d84d7-2c1b-44cf-8c58-effae2dc2558"
        },
        {
            "ab": true,
            "label": "vendor",
            "size": "1120 MiB",
            "guid": "auto",
            "type_guid": "2578eab2-a534-43e2-92c0-fed1b01c5d1d"
        },
        {
            "label": "userdata",
            "grow": true,
            "guid": "auto",
            "type_guid": "0bb7e6ed-4424-49c0-9372-7fbab465ab4c"
        },
        {
            "label": "fbmisc",
            "size": "1 MiB",
            "guid": "auto",
            "type_guid": "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7"
        },
        {
            "ab": true,
            "label": "vbmeta",
            "size": "1 MiB",
            "guid": "auto",
            "type_guid": "7d6ea677-fe98-4ffe-9771-f5c3ef6d282c"
        }
    ]
}

 

partition-table-28GB.bpt

 

{
  "settings": {
    "ab_suffixes": ["_a", "_b"],
    "disk_size": 30064771072,
    "disk_alignment": 2097152,
    "disk_guid": "497339ea-7155-4ce9-85ff-73a2f7705fc4"
  },
  "partitions": [
    {
      "label": "dtbo_a",
      "offset": 8388608,
      "size": 4194304,
      "grow": false,
      "guid": "3b89bf4b-a719-4017-88e9-26cd78e35c62",
      "type_guid": "b3c54657-8b47-48bc-9792-37b7c091ae69",
      "flags": "0x0000000000000000",
      "ignore": false,
      "ab": true,
      "ab_expanded": true,
      "position": 0
    },
    {
      "label": "dtbo_b",
      "offset": 12582912,
      "size": 4194304,
      "grow": false,
      "guid": "048876c9-af6b-425c-8a0f-dc7e62de5725",
      "type_guid": "b3c54657-8b47-48bc-9792-37b7c091ae69",
      "flags": "0x0000000000000000",
      "ignore": false,
      "ab": true,
      "ab_expanded": true,
      "position": 0
    },
    {
      "label": "boot_a",
      "offset": 16777216,
      "size": 50331648,
      "grow": false,
      "guid": "4d884569-acc9-466f-b567-ae4f81db7d05",
      "type_guid": "bb499290-b57e-49f6-bf41-190386693794",
      "flags": "0x0000000000000000",
      "ignore": false,
      "ab": true,
      "ab_expanded": true,
      "position": 0
    },
    {
      "label": "boot_b",
      "offset": 67108864,
      "size": 50331648,
      "grow": false,
      "guid": "acb00e20-bcbf-4aad-a04f-7bf2297c7389",
      "type_guid": "bb499290-b57e-49f6-bf41-190386693794",
      "flags": "0x0000000000000000",
      "ignore": false,
      "ab": true,
      "ab_expanded": true,
      "position": 0
    },
    {
      "label": "system_a",
      "offset": 117440512,
      "size": 1879048192,
      "grow": false,
      "guid": "d0bcdec0-bc54-4614-b6f0-3b073e3a916d",
      "type_guid": "0f2778c4-5cc1-4300-8670-6c88b7e57ed6",
      "flags": "0x0000000000000000",
      "ignore": false,
      "ab": true,
      "ab_expanded": true,
      "position": 0
    },
    {
      "label": "system_b",
      "offset": 1996488704,
      "size": 1879048192,
      "grow": false,
      "guid": "da47690a-5d5e-4f32-9d80-b16a488f4556",
      "type_guid": "0f2778c4-5cc1-4300-8670-6c88b7e57ed6",
      "flags": "0x0000000000000000",
      "ignore": false,
      "ab": true,
      "ab_expanded": true,
      "position": 0
    },
    {
      "label": "misc",
      "offset": 3875536896,
      "size": 4194304,
      "grow": false,
      "guid": "c823440d-9f2e-426d-ae8f-769e43c11f92",
      "type_guid": "6b2378b0-0fbc-4aa9-a4f6-4d6e17281c47",
      "flags": "0x0000000000000000",
      "ignore": false,
      "ab": false,
      "ab_expanded": false,
      "position": 0
    },
    {
      "label": "metadata",
      "offset": 3879731200,
      "size": 2097152,
      "grow": false,
      "guid": "03c8e617-d808-48ba-bf90-0cb2ee7ba60e",
      "type_guid": "b598858a-5fe3-418e-b8c4-824b41f4adfc",
      "flags": "0x0000000000000000",
      "ignore": false,
      "ab": false,
      "ab_expanded": false,
      "position": 0
    },
    {
      "label": "presistdata",
      "offset": 3881828352,
      "size": 1048576,
      "grow": false,
      "guid": "364b213b-ed62-41bc-9ae9-6519b825cda6",
      "type_guid": "e99d84d7-2c1b-44cf-8c58-effae2dc2558",
      "flags": "0x0000000000000000",
      "ignore": false,
      "ab": false,
      "ab_expanded": false,
      "position": 0
    },
    {
      "label": "vendor_a",
      "offset": 3883925504,
      "size": 1174405120,
      "grow": false,
      "guid": "a5cebad0-42f7-4848-b4cb-b3896f01ec64",
      "type_guid": "2578eab2-a534-43e2-92c0-fed1b01c5d1d",
      "flags": "0x0000000000000000",
      "ignore": false,
      "ab": true,
      "ab_expanded": true,
      "position": 0
    },
    {
      "label": "vendor_b",
      "offset": 5058330624,
      "size": 1174405120,
      "grow": false,
      "guid": "3fb280ce-4522-4e5c-8e1a-7d4b59e7eee8",
      "type_guid": "2578eab2-a534-43e2-92c0-fed1b01c5d1d",
      "flags": "0x0000000000000000",
      "ignore": false,
      "ab": true,
      "ab_expanded": true,
      "position": 0
    },
    {
      "label": "userdata",
      "offset": 6232735744,
      "size": 23823646720,
      "grow": true,
      "guid": "8993a605-52ba-41b5-acfd-cc0be08adff9",
      "type_guid": "0bb7e6ed-4424-49c0-9372-7fbab465ab4c",
      "flags": "0x0000000000000000",
      "ignore": false,
      "ab": false,
      "ab_expanded": false,
      "position": 0
    },
    {
      "label": "fbmisc",
      "offset": 30056382464,
      "size": 1048576,
      "grow": false,
      "guid": "87342291-93f2-4c41-8c24-6b771769b62f",
      "type_guid": "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7",
      "flags": "0x0000000000000000",
      "ignore": false,
      "ab": false,
      "ab_expanded": false,
      "position": 0
    },
    {
      "label": "vbmeta_a",
      "offset": 30058479616,
      "size": 1048576,
      "grow": false,
      "guid": "d928b0e8-a564-475c-a82d-eb1dfe952282",
      "type_guid": "7d6ea677-fe98-4ffe-9771-f5c3ef6d282c",
      "flags": "0x0000000000000000",
      "ignore": false,
      "ab": true,
      "ab_expanded": true,
      "position": 0
    },
    {
      "label": "vbmeta_b",
      "offset": 30060576768,
      "size": 1048576,
      "grow": false,
      "guid": "162f22ad-e0b3-406f-bd1f-d96b40439220",
      "type_guid": "7d6ea677-fe98-4ffe-9771-f5c3ef6d282c",
      "flags": "0x0000000000000000",
      "ignore": false,
      "ab": true,
      "ab_expanded": true,
      "position": 0
    }
  ]
}

Outcomes