This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[FAQ] [参考译文] [常见问题解答] TDA4VM:如何创建 eMMC 的多个 rootfs 分区?

Guru**** 657500 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1185543/faq-tda4vm-how-to-create-multiple-rootfs-partition-of-emmc

器件型号:TDA4VM

如何在 uboot 中创建多个 rootfs,如 eMMC 分区?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    请按照以下步骤创建两个 rootfs 分区。

    #第1步:主机 genrate the uid
    超大
    #器件上的步骤2设置 uid
    setenv uuid_gpt_rootfs_2
    #步骤3设置分区拓扑
    setenv 分区 rootid_disk=\${uuuuid_gppt_disk}\;name=rootfs, start=6150MiB, size=30MiB, uuuid=\${uuid_gppt_rootfs}\;name=rootfs_2,start=0,size=6144MiB, size=\${uuuuuid_rootfs_2}
    #步骤4保存 env
    保存
    #步骤5创建分区表
    GPT 写入 MMC 0 ${partitions}
    #步骤6重新启动设备
    重新启动
    #步骤7现在、您将能够看到两个说明使用命令"lsblk"进行确认
    #现在、我们将使 fs 类型成为 ext4
    mkfs.ext4 /dev/mmcblk0p1 //rootfs_1
    mkfs.ext4 /dev/mmcblk0p2 //rootfs_2

    #步骤8创建安装手柄
    mkdir /mnt/rootfs_1
    mkdir /mnt/rootfs_2

    #步骤9安装
    安装 dev/mmcblk0p1 /mnt/rootfs_1
    安装 dev/mmcblk0p2 /mnt/rootfs_2

    现在您可以在两个分区之间复制文件