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:在实现 eMMC UDA FS 引导模式时、无法在 u-boot 阶段加载/boot/dtb/ti/k3-am625-sk.dtb 和/boot/Image

Guru**** 2482105 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1455146/am625-failed-to-load-boot-dtb-ti-k3-am625-sk-dtb-and-boot-image-in-u-boot-stage-when-implement-emmc-uda-fs-bootmode

器件型号:AM625

工具与软件:

尊敬的专家:

在前面的讨论中、我可以在定制板上实现 eMMC UDA FS、它可以引导到 Linux、但会收到一些错误。  然后、我检查 UART 日志、发现 u-boot 阶段显示"Failed to load '/boot/Image
无法加载"/boot/dtb/ti/k3-am625-sk.dtb "。

Loaded env from uEnv.txt
Importing environment from mmc0 ...
Failed to load '/boot/Image'
Failed to load '/boot/dtb/ti/k3-am625-sk.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':

已完成引导日志:

e2e.ti.com/.../eMMC_5F00_UDA_5F00_fs_5F00_boot.log

已完成引导-扩展日志:

e2e.ti.com/.../eMMC_5F00_UDA_5F00_fs_5F00_boot_5F00_extend.log

那么似乎导致 Linux 显示"ti-sci 440430.system-controller: mbox send fail -110"。

  OK  ] Started sta_start.service.
[    7.012053] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: ti_sci_cmd_put_device+0x18/0x24)
[  OK  ] Started Avahi mDNS/DNS-SD Stack[    7.031844] ti-sci 44043000.system-controller: Mbox send fail -110
.
[  OK  ] Created slice Slice /system/systemd-fsck.
         Expecting device /dev/mmcblk0p1...
[  OK  ] Reached target Preparation for Network.
         Starting Network Configuration...
[  OK  ] Found device /dev/mmcblk0p1.
[  OK  ] Finished Expand the rootfs partition to full size of the boot device..
         Starting File System Check on /dev/mmcblk0p1...
[  OK  ] Started User Login Management.
[    7.330897] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    7.358160] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    7.364998] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
[    7.373483] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2

以下是之前的 E2E 讨论。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1452406/am625-q1-could-we-boot-u-boot-from-emmc-user-partition

以下是我的 eMMC UDA 流程:

U-Boot 2024.04 (Dec 15 2024 - 13:49:16 +0800)

SoC:   AM62X SR1.0 HS-FS
Model: Texas Instruments AM625 SK
EEPROM not available at 0x50, trying to read at 0x51
Reading on-board EEPROM at 0x51 failed -121
DRAM:  2 GiB
Core:  81 devices, 31 uclasses, devicetree: separate
MMC:   mmc@fa10000: 0, mmc@fa00000: 1
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
EEPROM not available at 0x50, trying to read at 0x51
Reading on-board EEPROM at 0x51 failed -121
Net:   eth0: ethernet@8000000port@1
Hit any key to stop autoboot:  0 
=> mmc dev 0
switch to partitions #0, OK
mmc0(part 0) is current device
=> mmc erase 0 2000000

MMC erase: dev # 0, block # 0, count 33554432 ... 33554432 blocks erased: OK
=> setenv dfu_alt_info ${dfu_alt_info_mmc}
=> setenv dfu_alt_info "wic raw 0x0 0x10000000 mmcpart 0"
=> dfu 0 mmc 0
generic_phy_get_bulk : no phys property
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
#####################################################################################################
###############DOWNLOAD ... OK
Ctrl+C to exit ...
=> mmc dev 0
switch to partitions #0, OK
mmc0(part 0) is current device
=> mmc part

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

Part  Start Sector      Num Sectors     UUID            Type
  1   2048              262144          076c4a2a-01     0c Boot
  2   264192            1708374         076c4a2a-02     83
=> ls mmc 0:1
            EFI/
 20212224   Image
    12285   ti_logo_414x97_32bpp.bmp.gz
   289601   tiboot3-am62x-gp-evm.bin
   292190   tiboot3-am62x-hs-evm.bin
   292190   tiboot3-am62x-hs-fs-evm.bin
   292190   tiboot3.bin
  1111407   tispl.bin
  1007571   u-boot.img
      574   uEnv.txt

9 file(s), 1 dir(s)

=> ls mmc 0:2
<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 partconf 0 1 7 1
=> mmc bootbus 0 2 0 0
Set to BOOT_BUS_WIDTH = 0x2, RESET = 0x0, BOOT_MODE = 0x0

你有什么建议吗?

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

    尊敬的专家:

    我修复了此问题、需要为 DTB 分区区域将 bootpart 设置为0:2。