尊敬的 TI 团队:
我尝试使用 GPT 在 u-boot 中创建分区、但我只能创建一个分区。
setenv uuid_gpt_disk f43769e7-1e42-4be4-89e3-2a35089d4dF1
setenv uuid_gpt_rootfs 61dbad71-217b-4d17-bbd4-d85ae640aff8
GPT 写入 MMC 0 ${partitions}
如何使用 u-boot 创建两个参数? 谢谢。
此致、
三雄汉
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.
尊敬的 TI 团队:
我尝试使用 GPT 在 u-boot 中创建分区、但我只能创建一个分区。
setenv uuid_gpt_disk f43769e7-1e42-4be4-89e3-2a35089d4dF1
setenv uuid_gpt_rootfs 61dbad71-217b-4d17-bbd4-d85ae640aff8
GPT 写入 MMC 0 ${partitions}
如何使用 u-boot 创建两个参数? 谢谢。
此致、
三雄汉
您好、Keerty、
我需要两个参数、如 mmcblk0p1 mmcblk0p2.mmcblk0p1=30MB、mmcblk0p2=4GB、我想在 eMMC 中创建这两个 rootfs 参数。 我尝试修改 u-boot env :partitions=uuuid_disk=${uid_gppt_disk};name=root0,start=6150MiB, size=30MiB, size=${uid_gp_t_rootfs0};name=rootfs,start=0,size=6144MiB, uufs={uuuuuuuid_rootfs0};name=rootfs_uuuuuuuuuuuuuuuuuuuuuuuuuuifes0},但不能修改 u-
如何创建分区? 谢谢。
此致、
三雄汉
你好,sicong,
请按照以下步骤创建两个 rootfs 分区。
步骤
在主机 PC 上使用命令生成 uuid
超大
2.分配 genrated uuid
setenv uuid_gpt_rootfs_2 ...second uid...
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.创建分区
GPT 写入 MMC 0 $(分区)
5.重新启动
您可以看到另一个分区
此致
Diwakar
您好、Diwakar、
我想创建 Linux 类型的参数。当我要将 MV 文件(20M)添加到 P2 (6G)时、它显示没有空格。我将 Tiny.img (20M)写入 eMMC P2。 文件系统映像是否会影响分区的空间?是否有任何创建 Linux FS 类型分区的方法?我在 u-boot 文件夹 README.GPT 中找到分区文档,是否需要修改 tispl.bin?

谢谢。
此致、
三雄汉
你好 ,sicong,
以下是创建两个 rootfs 分区所需执行的所有步骤:
# STEP 1 On host genrate the uid
uuidgen
# STEP 2 On device set the uid
setenv uuid_gpt_rootfs_2 <genrated_uid_key>
# STEP 3 Set partition topology
setenv partitions uuid_disk=\${uuid_gpt_disk}\;name=rootfs,start=6150MiB,size=30MiB,uuid=\${uuid_gpt_rootfs}\;name=rootfs_2,start=0,size=6144MiB,uuid=\${uuid_gpt_rootfs_2}
# STEP 4 save env
saveenv
# STEP 5 create partion table
gpt write mmc 0 ${partitions}
# STEP 6 Reboot the device
reboot
# STEP 7 Now you will be able to see two partion use command "lsblk" to confirm
# Now we will make fs type as ext4
mkfs.ext4 /dev/mmcblk0p1 //rootfs_1
mkfs.ext4 /dev/mmcblk0p2 //rootfs_2
# STEP 8 create a mount handle
mkdir /mnt/rootfs_1
mkdir /mnt/rootfs_2
# STEP 9 mount
mount dev/mmcblk0p1 /mnt/rootfs_1
mount dev/mmcblk0p2 /mnt/rootfs_2
Now You can copy the file between two partition
注意:由于我们现在在重新启动后创建了一个 fs 类型作为 ext4、因此您无需显式安装它、Linux 将自动将其安装在 /run/media 下 目录。
此致
Diwakar