工具与软件:
您好!
在 DFU 使用我自己的密钥将 tispl.bin_HS 引导到 HS-SE 器件后、我遇到问题。 根据此输出、A53 SPL 似乎未运行。
U-Boot SPL 2021.01 (Jan 21 2025 - 17:26:45 -0800) SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.4--v08.06.04 (Chill Capybar') am62a_init: board_init_f done SPL initial stack usage: 13568 bytes am62a_init: spl_boot_device: devstat = 0x6cb bootmedia = 0xa bootindex = 1 Trying to boot from DFU ################################################################################DOWNLOAD ... OK Ctrl+C to exit ... am62a_init: spl_boot_device: devstat = 0x6cb bootmedia = 0xa bootindex = 1 Authentication passed am62a_init: spl_boot_device: devstat = 0x6cb bootmedia = 0xa bootindex = 1 Authentication passed am62a_init: spl_boot_device: devstat = 0x6cb bootmedia = 0xa bootindex = 1 Authentication passed am62a_init: spl_boot_device: devstat = 0x6cb bootmedia = 0xa bootindex = 1 Authentication passed am62a_init: spl_boot_device: devstat = 0x6cb bootmedia = 0xa bootindex = 1 Authentication passed Loading Environment from MMC... *** Warning - No MMC card found, using default environment am62a_init: spl_boot_device: devstat = 0x6cb bootmedia = 0xa bootindex = 1 am62a_init: spl_boot_device: devstat = 0x6cb bootmedia = 0xa bootindex = 1 init_env from device 10 not supported! Starting ATF on ARM64 core... MY DEBUG: rproc_start returned 0 shut_cpu = 0 Jumping to loadaddr: 0x9ca38740 NOTICE: BL31: v2.8(release):v2.8-226-g2fcd408bb3-dirty NOTICE: BL31: Built : 11:09:43, Feb 27 2023
这些是我要对自己的自定义密钥执行的步骤。
1.将 custMpk.pem 替换为从 otp_keywriter 生成的 smpk.pem
2.使用 core-secdev-k3/scripts/secure-binary-image.sh 从/prebuilt-images 中执行 signed bl31.bin.unsigned 和 bl32.bin.unsigned
3. 从 CCS MCU SDK 构建 ipc_rpmsg_echo_linux_am62ax-sk_r5fss0-0_freertos_ti-arm-clang.out、并使用相同的脚本对该映像进行签名。
(我构建该映像的原因是 /prebuilt-images 中的 ipc_echo_testb_mcu1_0_release_strip.xer5f 显然已使用默认密钥进行签名?)
4.我更改了顶级 Makefile 中的路径以指向这些已签名的二进制文件
UBOOT_ATF=$(TI_SDK_PATH)/board-support/prebuilt-images/bl31.bin.signedCustom UBOOT_TEE=$(TI_SDK_PATH)/board-support/prebuilt-images/bl32.bin.signedCustom UBOOT_DMFW=$(TI_SDK_PATH)/board-support/prebuilt-images/ipc_rpmsg_echo_linux_am62ax-sk_r5fss0-0_freertos_ti-arm-clang.xer5f.signedCustom
5.在这之后只是做一个"make u-boot"和"make sysfw-image"
我还使用以下日志确认 DM FW 正在运行
Sciserver Testapp Built On: Jul 13 2023 01:39:42 Sciserver Version: v2023.07.0.0-REL.MCUSDK.09.00.00.19 RM_PM_HAL Version: REL.MCUSDK.09.00.00.19 Starting Sciserver..... PASSED [IPC RPMSG ECHO] Version: REL.MCUSDK.09.00.00.19 (Jan 16 2025 13:14:42):
在另一个电路板上、我能够使用默认 TI 密钥成功引导至 U-boot、而这是输出。
U-Boot SPL 2021.01 (Jan 14 2025 - 16:49:09 -0800) SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.4--v08.06.04 (Chill Capybar') am62a_init: board_init_f done SPL initial stack usage: 13568 bytes am62a_init: spl_boot_device: devstat = 0x6cb bootmedia = 0xa bootindex = 1 Trying to boot from DFU ###########################################################DOWNLOAD ... OK Ctrl+C to exit ... am62a_init: spl_boot_device: devstat = 0x6cb bootmedia = 0xa bootindex = 1 Authentication passed am62a_init: spl_boot_device: devstat = 0x6cb bootmedia = 0xa bootindex = 1 Authentication passed am62a_init: spl_boot_device: devstat = 0x6cb bootmedia = 0xa bootindex = 1 Authentication passed am62a_init: spl_boot_device: devstat = 0x6cb bootmedia = 0xa bootindex = 1 Authentication passed am62a_init: spl_boot_device: devstat = 0x6cb bootmedia = 0xa bootindex = 1 Authentication passed Loading Environment from MMC... *** Warning - No MMC card found, using default environment am62a_init: spl_boot_device: devstat = 0x6cb bootmedia = 0xa bootindex = 1 am62a_init: spl_boot_device: devstat = 0x6cb bootmedia = 0xa bootindex = 1 init_env from device 10 not supported! Starting ATF on ARM64 core... NOTICE: BL31: v2.8(release):v2.8-226-g2fcd408bb3-dirty NOTICE: BL31: Built : 11:09:43, Feb 27 2023 U-Boot SPL 2021.01 (Jan 14 2025 - 16:48:47 -0800) SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.4--v08.06.04 (Chill Capybar') am62a_init: board_init_f done am62a_init: spl_boot_device: devstat = 0x6cb bootmedia = 0xa bootindex = 1 Trying to boot from DFU ####DOWNLOAD ... OK Ctrl+C to exit ... am62a_init: spl_boot_device: devstat = 0x6cb bootmedia = 0xa bootindex = 1 Authentication passed am62a_init: spl_boot_device: devstat = 0x6cb bootmedia = 0xa bootindex = 1 Authentication passed U-Boot 2021.01 (Jan 14 2025 - 16:48:47 -0800) SoC: AM62AX SR1.0 HS-SE Model: Trimble AM62A7 Genesis Rev B DRAM: 2 GiB MMC: mmc@fa10000: 0 Loading Environment from MMC... OK In: serial@2800000 Out: serial@2800000 Err: serial@2800000 Net: eth0: ethernet@8000000port@1 Hit any key to stop autoboot: 0 =>
谢谢!
Joseph