如何在 uboot 中创建多个 rootfs,如 eMMC 分区?
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.
如何在 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
现在您可以在两个分区之间复制文件