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.

[参考译文] J784S4XEVM:在 U-Boot 中对 eMMC 进行分区

Guru**** 2487425 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1441143/j784s4xevm-partitioning-the-emmc-in-u-boot

器件型号:J784S4XEVM

工具与软件:

您好!

我对在 U-Boot eMMC 中进行分区感到有点困惑。 我正在使用 ti-processor-sdk-linux-adas-j784s4-evm-10_00_00_08。
我已通过 dfu-util 加载 U-boot、并且正在尝试对位于 dev 0上的 eMMC 进行分区。  

如果我打印 eMMC 开发信息、将显示以下信息:

=> mmc info
Device: mmc@4f80000
Manufacturer ID: 13
OEM: 4e
Name: G1M15L 
Bus Speed: 200000000
Mode: HS400 (200MHz)
Rd Block Len: 512
MMC version 5.1
High Capacity: Yes
Capacity: 31.5 MiB
Bus Width: 8-bit DDR
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 29.6 GiB WRREL
Boot Capacity: 31.5 MiB ENH
RPMB Capacity: 4 MiB ENH
Boot area 0 is not write protected
Boot area 1 is not write protected
=> 

  1. 问题:此 eMMC 是否已分区?

如果我想读取分区表、我只能看到使用 GPT 命令创建的0分区中的分区。

=> mmc dev 0
switch to partitions #0, OK
mmc0(part 0) is current device
=> mmc part

Partition Map for MMC device 0  --   Partition Type: EFI

Part    Start LBA       End LBA         Name
        Attributes
        Type GUID
        Partition GUID
  1     0x00000022      0x03a98021      "boot"
        attrs:  0x0000000000000000
        type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
        guid:   4bee5e8a-8c35-8744-9cc4-16dc1e9d2d94
=> mmc dev 0 1
switch to partitions #1, OK
mmc0(part 1) is current device
=> mmc part

Partition Map for MMC device 0  --   Partition Type: EFI

=>

      2. 问题:然而,我尝试了许多方法的分区整个 eMMC ,不仅部分0, GPT 命令只做了两个单独的分区在 MMC dev 0 0。
(我遵循了许多线程和示例:

但是、使用 ext4ls 命令、我可以在 MMC dev 0上看到 Linux 文件系统1:

=> ext4ls mmc 0:1 
<DIR>       4096 .
<DIR>       4096 ..
<DIR>      16384 lost+found
<SYM>          7 bin
<DIR>       4096 boot
<DIR>       4096 dev
<DIR>       4096 etc
<DIR>       4096 home
<SYM>          7 lib
<DIR>       4096 media
<DIR>       4096 mnt
<DIR>       4096 proc
<DIR>       4096 root
<DIR>       4096 run
<SYM>          8 sbin
<DIR>       4096 srv
<DIR>       4096 sys
<DIR>       4096 tmp
<DIR>       4096 usr
<DIR>       4096 var
=> 

但在 MMC dev 0 0上、我无法加载 tiboot3.bin、tispl.bin、u-boot.img、uEnv.txt、...文件

        3.如何重新配置分区,我可以看到两个分区,并在板上加载固件。

此致、
Tamas