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.

[参考译文] AM67A:如何使 U-boot 从 mmcblk0p2 引导内核?

Guru**** 2555630 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1571133/am67a-how-to-make-u-boot-boot-the-kernel-from-mmcblk0p2

器件型号:AM67A


工具/软件:

现在、我已将 eMMC 分为两个分区。 mmcblk0p1 已分配 10M 用于存储私有数据、剩余空间已分配给 mmcblk0p2。 然后、我将 tisdk-edgeai-image-j722s-evm.rootfs-20250918010209.tar.xz 文件解压到 mmcblk0p2。 现在、我无法从 eMMC 引导。 我应该在哪里进行修正?

U-Boot SPL 2024.04-dirty (Sep 29 2025 - 13:52:40 +0800)
SYSFW ABI: 4.0 (firmware rev 0x000a '10.1.6--v10.01.06 (Fiery Fox)')
SPL initial stack usage: 17064 bytes
Trying to boot from MMC1
Authentication passed
Authentication passed
Authentication passed
Authentication passed
Authentication passed
Starting ATF on ARM64 core...

NOTICE:  BL31: v2.11.0(release):v2.11.0-906-g58b25570c9-dirty
NOTICE:  BL31: Built : 04:20:32, Nov  1 2024

U-Boot SPL 2024.04-dirty (Sep 29 2025 - 13:56:05 +0800)
SYSFW ABI: 4.0 (firmware rev 0x000a '10.1.6--v10.01.06 (Fiery Fox)')
Trying to boot from MMC1
Authentication passed
Authentication passed
i2c_write: error waiting for data ACK (status=0x116)
pca953x gpio@23: Error reading output register


U-Boot 2024.04-dirty (Sep 29 2025 - 13:56:05 +0800)

SoC:   J722S SR1.0 HS-FS
Model: Texas Instruments J722S EVM
DRAM:  2 GiB (effective 8 GiB)
Core:  80 devices, 30 uclasses, devicetree: separate
MMC:   mmc@fa10000: 0, mmc@fa00000: 1
Loading Environment from nowhere... OK
In:    serial@2800000
Out:   serial@2800000
Err:   serial@2800000
Net:   Could not get PHY for mdio@f00: addr 0
am65_cpsw_nuss_port ethernet@8000000port@1: phy_connect() failed
No ethernet found.

Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0(part 0) is current device
SD/MMC found on device 0
Can't set block device
Failed to load '/boot/Image'
Failed to load '/boot/dtb/ti/k3-j722s-evm.dtb'
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
No FDT memory address configured. Please configure
the FDT address via "fdt addr <address>" command.
Aborting!
Bad Linux ARM64 Image magic!
Scanning for bootflows in all bootdevs
Seq  Method       State   Uclass    Part  Name                      Filename
---  -----------  ------  --------  ----  ------------------------  ----------------
Scanning global bootmeth 'efi_mgr':
MMC: no card present
No EFI system partition
No EFI system partition
Failed to persist EFI variables
No EFI system partition
Failed to persist EFI variables
No EFI system partition
Failed to persist EFI variables
Could not get PHY for mdio@f00: addr 0
am65_cpsw_nuss_port ethernet@8000000ethernet@800000: phy_connect() failed
Could not get PHY for mdio@f00: addr 0
am65_cpsw_nuss_port ethernet@8000000ethernet@800000: phy_connect() failed
  0  efi_mgr      ready   (none)       0  <NULL>
** Booting bootflow '<NULL>' with efi_mgr
i2c_write: error waiting for data ACK (status=0x116)
pca953x gpio@23: Error reading output register
Loading Boot0000 'mmc 0' failed
EFI boot manager: Cannot load any image
Boot failed (err=-14)
Scanning bootdev 'mmc@fa00000.bootdev':
MMC: no card present
MMC: no card present
MMC: no card present
MMC: no card present
Scanning bootdev 'mmc@fa10000.bootdev':
Could not get PHY for mdio@f00: addr 0
am65_cpsw_nuss_port ethernet@8000000ethernet@800000: phy_connect() failed
Could not get PHY for mdio@f00: addr 0
am65_cpsw_nuss_port ethernet@8000000ethernet@800000: phy_connect() failed
Could not get PHY for mdio@f00: addr 0
am65_cpsw_nuss_port ethernet@8000000ethernet@800000: phy_connect() failed