工具与软件:
您好!
我对在 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 =>
- 问题:此 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。
(我遵循了许多线程和示例:
- https://github.com/u-boot/u-boot/blob/master/doc/README.gpt
- https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1299989/am625-am625-emmc-partitioning-from-u-boot
- https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1174554/am625-create-2-boot-partitions-with-type-linux-in-emmc-uboot
- https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1299989/am625-am625-emmc-partitioning-from-u-boot/4951377?tisearch=e2e-sitesearch&keymatch=partition%25252525252525252520emmc%25252525252525252520from%25252525252525252520u-boot#4951377
- https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1435231/tda4vp-q1-failed-to-load-u-boot-to-the-emmc-on-custom-board/5502788?tisearch=e2e-sitesearch&keymatch=partition%20emmc%20from%20u-boot#5502788
- https://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Foundational_Components_ 4.12-Boot.html#Partitioning_eMMC_from_U-Boot
- https://e2e.ti.com/support/processors-group/processors/f/processors-forum/995426/tda4vm-rootfs-flashing-using-dfu-util
- https://www.ti.com/lit/an/spracy5/spracy5.pdf
- https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1351993/tda4vm-dfu-rootfs
- https://e2e.ti.com/support/processors-group/processors/f/processors-forum/995426/tda4vm-rootfs-flashing-using-dfu-util)
但是、使用 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