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.

[参考译文] AM625:如何在适用于 Linux 的 TI AM625中创建分区。

Guru**** 2549060 points
Other Parts Discussed in Thread: AM625

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1386075/am625-how-to-create-partitions-in-ti-am625-for-linux

器件型号:AM625

工具与软件:

各位专家、您好!

请指导我、如何在 Linux 下启动 TI AM625中的器件之前拥有/获取/制作分区。

此致、

NP。

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

    您好!

    您指的是 SD 卡分区吗?

    此致、
    Aparna

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

    不需要、我们需要 eMMC 的自定义分区。

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

    请按照提到的步骤操作:
    software-dl.ti.com/.../UG-Memory.html

    此致、
    Aparna

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

    您好 Aparna、  

    请遵循上述步骤:
    software-dl.ti.com/.../UG-Memory.html

    这些步骤现在对我有效、但我需要更多的分区。 我的要求总共有4个分区、这些要求如下:

    分区1:8 GB

    分区2:2 GB

    分区3:1.5 GB

    分区4:1.5 GB

    我需要在 u-boot 本身内完成所有这些分区。

    谢谢、此致、

    Aditya

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

    您好!

    请参阅 U-Boot GPT 指南以了解如何创建多个分区

    https://github.com/u-boot/u-boot/blob/6fd2aad04ec96116e58631b7f92d8bf518bfd353/doc/README.gpt#L151

    如有疑问、您也可以参考以下主题

    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1349733/am625-not-able-to-create-boot-partition/5143574#5143574

    此致、

    Prashant

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

    您好!

    如何知道 eMMC 中有多少个扇区
    当前分区包括:
    "partitions=uuid_disk=${uuid_gpt_disk};name=rootfs、start=0、size=-、uuid=${uuuid_gpt_rootfs}"
    在上面的陈述中,它指出分区的大小是从第0个扇区到最后一个扇区,我是对的,还是它说明了其他东西?

    那么、如果我想添加一个新分区并在 u-boot 中指定其大小、这些变量的值应该是多少?
    "开始=0、大小=-"

    谢谢、此致、
    Aditya T

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

    您好!

    如之前分享的 U-Boot 指南中所述、start 参数是可选的。 最好让 U-Boot 来确定分区的起始地址。 对于 size 参数、您应该为每个(n-1)分区定义大小(以字节为单位)、同时为 U-Boot 的最后一个分区定义"size=-"以自动分配剩余的所有空间。

    => setenv uuid_gpt_rootfs1 9c8ee2e7-ae89-4902-a3ac-b24e95d0c96e
    => setenv uuid_gpt_rootfs2 48c67753-d716-4f06-9ed9-f8b368effcec
    => setenv uuid_gpt_rootfs3 de99b29a-43b9-4bfc-8bb2-5c5d94a6f779
    => setenv partitions "name=rootfs1,size=2G,uuid=$uuid_gpt_rootfs1;name=rootfs2,size=3G,uuid=$uuid_gpt_rootfs2;name=rootfs3,size=-,uuid=$uuid_gpt_rootfs3"
    => gpt write mmc 0 $partitions
    Writing GPT: success!
    => mmc part
    
    Partition Map for MMC device 0  --   Partition Type: EFI
    
    Part     Start LBA       End LBA         Name
     Attributes
     Type GUID
     Partition GUID
      1      0x00000022      0x00400021      "rootfs1"
     attrs:  0x0000000000000000
     type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
     guid:   9c8ee2e7-ae89-4902-a3ac-b24e95d0c96e
      2      0x00400022      0x00a00021      "rootfs2"
     attrs:  0x0000000000000000
     type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
     guid:   48c67753-d716-4f06-9ed9-f8b368effcec
      3      0x00a00022      0x01da3fde      "rootfs3"
     attrs:  0x0000000000000000
     type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
     guid:   de99b29a-43b9-4bfc-8bb2-5c5d94a6f779
    =>

    此致、

    Prashant