【问题标题】:Brillo's partitioning schemeBrillo 的分区方案
【发布时间】:2018-03-31 04:29:04
【问题描述】:

我最近在 Google 的源代码网站上偶然发现了 Brillo。在它上面,我找到了几个扩展名为bpt 的文件。这些是似乎描述设备上的分区的 JSON 文件。 Here 是基础文件的内容:

{
    "settings": {
        "disk_size": "4 GiB"
    },
    "partitions": [
        {
            "ab": true,
            "label": "boot",
            "size": "32 MiB",
            "guid": "auto",
            "type_guid": "brillo_boot"
        },
        {
            "ab": true,
            "label": "system",
            "size": "512 MiB",
            "guid": "auto",
            "type_guid": "brillo_system"
        },
        {
            "ab": true,
            "label": "odm",
            "size": "512 MiB",
            "guid": "auto",
            "type_guid": "brillo_odm"
        },
        {
            "label": "misc",
            "size": "1 MiB",
            "type_guid": "brillo_misc"
        },
        {
            "label": "userdata",
            "grow": true,
            "guid": "auto",
            "type_guid": "brillo_userdata"
        }
    ]
}

我找不到任何关于此的文档。是不是新的分区方案(如MBR、GPT、APM、Tegra PT、MTD的命令行分区表解析等)?

【问题讨论】:

    标签: android linux android-things disk-partitioning brillo


    【解决方案1】:

    bpttool 使用带有 .bpt 扩展名的 JSON 文件 - 一种用于为 Brillo 和 Android 分区磁盘映像的工具。

    这是开源的,托管在 https://android.googlesource.com/platform/system/tools/bpt/+/master/

    分区指令在 .bpt JSON 文件中表示。

    查看存储库的历史(相对较新,只有 4 个月大)。这首先是为 Brillo 引入的,并且可能很快就会出现在 Android 版本中(也许是在 Nougat 中?)。这可能是 GPT 分区方案的替代品或其衍生方案。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-04-02
      • 2016-03-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多