尊敬的 Aparna:
SBL OSPI 还需要12秒的时间来减少引导时间。 我附上了下面的屏幕截图:

如何减少时间。 我也阅读了一些 TI 主题、但不清楚。
此致、
Veerapandiyan V.
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.
尊敬的 Veerapandiyan:
请参阅此指南来优化 Linux 内核并使用微型文件系统、如所述: software-dl.ti.com/.../How_to_boot_quickly.html
如果您有任何具体疑问、请回顾此主题。
此致、
Aparna
我已阅读了上面链接中提到的所有步骤、但我无法理解要在其中进行的更改。
该指南有详尽的文档记录、我不想再用示例对其进行进一步说明。 如果您有任何特定于给定部分的问题、我可以提供帮助。
此致、
Aparna
尊敬的 Aparna:
我试过 TI-PROCESSOR-SDK-LINUX-AM62xx-EVM-09.02.01.09 和 MCU_PLUS_SDK_am62x_09_02_00_38。 加载 default_sbl_ospi_linux_falcon.cfg 下面的文件:
#-----------------------------------------------------------------------------# # # # DEFAULT CONFIGURATION FILE TO BE USED WITH THE FLASHWRITER SCRIPT # # # #-----------------------------------------------------------------------------# # # By default this config file, # - points to pre-built flash writer, bootloader for this EVM # - The application image points to relative path of the ipc rpmsg linux application image for this EVM # - Make sure this application is built before running this script # - You can customized this config file to point to your own bootloader and/or application images # - You can use --operation=flashverify if you just want to verify the flash contents and not flash the file. # # First point to sbl_uart_uniflash_stage1 binary, which initialises DDR and receives sbl_uart_uniflash_stage2 binary --flash-writer=sbl_prebuilt/am62x-sk/sbl_uart_uniflash_stage1.release.tiimage # When sending sbl_uart_uniflash_stage2 binary make sure to flash at SOC memory offset 0x0. # Points to sbl_uart_uniflash_stage2 binary, which function's as a server to flash one or more files --file=/home/bpt/ti/mcu_plus_sdk_am62x_09_02_00_38/examples/drivers/boot/sbl_uart_uniflash_multistage/sbl_uart_uniflash_stage2/am62x-sk/r5fss0-0_nortos/ti-arm-clang/sbl_uart_uniflash_stage2.release.appimage --operation=flash --flash-offset=0x0 # Program the OSPI PHY tuning attack vector --operation=flash-phy-tuning-data # Now send one or more files to flash or flashverify as needed. The order of sending files does not matter # When sending bootloader make sure to flash at offset 0x0. ROM expects bootloader at offset 0x0 --file=sbl_prebuilt/am62x-sk/sbl_ospi_linux_stage1.release.tiimage --operation=flash --flash-offset=0x0 # 2nd stage bootloader is flashed at 0x80000 or to whatever offset your bootloader is configured for --file=/home/bpt/ti/mcu_plus_sdk_am62x_09_02_00_38/examples/drivers/boot/sbl_ospi_linux_multistage/sbl_ospi_linux_stage2/am62x-sk/r5fss0-0_nortos/ti-arm-clang/sbl_ospi_linux_stage2.release.appimage --operation=flash --flash-offset=0x80000 # When sending application image, make sure to flash at offset 0x100000 (default) or to whatever offset your bootloader is configured for --file=/home/bpt/ti/mcu_plus_sdk_am62x_09_02_00_38/examples/drivers/gpio/gpio_led_blink/am62x-sk/m4fss0-0_freertos/ti-arm-clang/gpio_led_blink.release.appimage --operation=flash --flash-offset=0x100000 # HSM image is flashed at 0x800000 or to whatever offset your bootloader is configured for --file=/home/bpt/ti/mcu_plus_sdk_am62x_09_02_00_38/tools/boot/HSMAppimageGen/board/am62x-sk/hsm.appimage --operation=flash --flash-offset=0x800000 # DM image is flashed at 0xa00000 or to whatever offset your bootloader is configured for --file=/home/bpt/ti/mcu_plus_sdk_am62x_09_02_00_38/examples/drivers/ipc/ipc_rpmsg_echo_linux/am62x-sk/r5fss0-0_freertos/ti-arm-clang/ipc_rpmsg_echo_linux.release.appimage --operation=flash --flash-offset=0xA00000 # Linux image is flashed at 0xC00000 or to whatever offset your bootloader is configured for --file=/home/bpt/ti/mcu_plus_sdk_am62x_09_02_00_38/tools/boot/linuxAppimageGen/board/am62x-sk/linux.appimage --operation=flash --flash-offset=0xC00000
1.不编译16、23和27行此文件已构建。
2.我编译了20、31和 40行的文件也使用以下命令编译: 生成-s 全部
3. 34个文件仅编译 CCS 软件。
4. 37 使用以下命令编译的 HSM 映像: make -s BOARD=am62x-SK ALL
5. 43 使用以下命令编译的 Linux 映像: make -s BOARD=am62x-SK ALL Falcon_mode=1
保存该文件。 接下来、将引导模式开关更改为 UART 引导模式 、打开、然后转到该位置 /home/bpt/ti/mcu_plus_sdk_am62x_09_02_00_38/tools/boot 打开终端 使用以下命令: sudo python3 uart_uniflash.py -p /dev/ttyUSB0 --cfg=sbl_prebuilt/am62x-sk/ default_sbl_ospi_linux_falcon.cfg
此致、
维拉潘迪扬·维拉潘迪扬·维拉潘迪扬
尊敬的 Veerapandiyan:
在 falcon 引导模式下、由于没有 U-boot、您将需要在 bootargs 中传递文件系统的位置。 请应用以下更改并重试:
diff --git a/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts b/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts
index 4b8e7964c..3fbfca6e9 100644
--- a/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts
+++ b/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts
@@ -38,6 +38,7 @@ chosen {
ranges;
stdout-path = &main_uart0;
+ bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=/dev/mmcblk1p2 rw rootfstype=ext4 rootwait";
framebuffer0: framebuffer@0 {
compatible = "simple-framebuffer";
此处、引导介质是 SD 卡、文件系统位于第二个分区中。 您可以相应地进行修改。
此致、
Aparna
尊敬的 Aparna:
我不在编辑此文件。
在 falcon 引导模式下、由于没有 U-boot、您将需要在 bootargs 中传递文件系统的位置。 请应用以下更改并重试:
我使用的是下面的 Linux 版本:
没有可用的 LSB 模块。
分销商 ID:Ubuntu
说明:Ubuntu 20.04.6 LTS
发行日期:20.04
代号:Focal

此致、
维拉潘迪扬·维拉潘迪扬·维拉潘迪扬
尊敬的 Aparna:
我正在尝试完成 Ubuntu 22版本的构建。 然后我在 SD 卡上安装了文件、接下来、我在 SD 引导模式下为 EVM 板加电、但仍然没有减少延迟16秒、我附上了以下屏幕截图:

使用命令:
1. 首先编辑文件 Next、构建 Linux 命令 让 Linux 成为可能
2. 制作 Linux_stage
3. 插入 SD 卡、然后使用以下命令打开 Processor SDK 路径、以将编译后的文件安装到 SD 卡中: sudo destdir=/media/$USER/rootfs make linux_install
5. 对于 GP 板、复制下面的 tiboot3和 uboot img 文件命令
host# sudo cp board-support/build-images/tiboot3-am62*-gp-evm.bin /media/$USER/boot/tiboot3.bin
host# sudo cp board-support/build-images/u-boot.img board-support/build-images/media/$USER/boot tispl.bin
6. 接下来、插入 SD 卡 EVM 上电电路板、不会减少 SD 卡引导模式下的延时时间。
7.如何减少启动时间延迟,请更新。
此致、
维拉潘迪扬·维拉潘迪扬·维拉潘迪扬
尊敬的 Aparna:
我添加了 bootargs ="console=ttyS2115200n8 earlycon=ns16550a、mmio32、0x02800000 quiet "; 命令文件位置为/home/bpt/ti-processor-sdk-linux-am62xx-evm-09.02.01.09/board-support/ti-linux-kernel-6.1.80 +gitAUTOINC+2e423244f8-ti/arch/arm64/boot/dts/ti k3-am62p5-sk.dts 先编辑文件、然后使用命令生成 让 Linux 成为可能 找到该调试器。 使用以下推荐复制文件 SD 卡后:
k3-am62p5-sk.dts

添加注释
1. 直接安装在 SD 卡中:主机# sudo destdir=/media/media/bpt/rootfs make linux_install
2. 主机# sudo cp board-support/build-images/tiboot3-am62*-gp-evm.bin /media/bpt/boot/tiboot3.bin
3.主机# sudo cp board-support/build-images/u-boot.img board-support/build-images/tispl.bin /media/bpt/boot
否则、请告诉我如何传输文件和构建。
此致、
维拉潘迪扬·维拉潘迪扬·维拉潘迪扬
我正在使用 AM62X SR1.0 GP 板该板也许启动速度很快、请告诉我。 DTB 文件也没有提供。
最好使用 AM62P 以实现快速启动。 我不明白你从你之前提到的进展。 请详细说明做了什么?
此致、
Aparna
您好!
我希望您在构建 linuxappimage.hs_fs 之前替换了以下文件: ATF_BIN_NAME=bl31.binOPTEE_BIN_NAME=bl32.binKERN_BIN_NAME=ImageFDT_BIN_NAME=k3-am625-sk.dtb
请参阅config.mak tools/boot/linuxAppimageGen/board/am62px 中的文件。
如果是、请重新编译 linuxappimage.hs_fs 并共享错误日志。
此致、
Aparna
尊敬的 Aparna:
我不替换命令、请参阅下面的屏幕截图:
希望您在构建 linuxappimage.hs_fs 之前替换了以下文件:ATF_BIN_NAME=bl31.binOPTEE_BIN_NAME=bl32.binKERN_BIN_NAME=ImageFDT_BIN_NAME=k3-am625-sk.dtb[报价]
错误消息屏幕截图:
错误位置屏幕截图:
如何修复错误。 请告诉我
此致、
Veerapandiyan V.
尊敬的 Aparna:
根据您之前的说明、我已尝试成功创建该文件、但在引导时、它停止引导以供您参考、请在此附上屏幕截图、让我了解解决方案。
更新了:为了实现快速启动、我可以看到裸机代码正在加载、并且可以在 MCU UART 中看到它、但 Linux 不会加载到任何点(即、启动界面 bin 文件未加载)、它会在 Linux 方面一直加载到这个点。

此致、
维拉潘迪扬·维拉潘迪扬·维拉潘迪扬
您好 Veerapandiyan、
Linux 映像无法引导。
此致、
Aparna
尊敬的 Aparna:
[报价 userid="548888" url="~/support/processors-group/processors/f/processors-forum/1353873/re-am625-linux-kernal-boot-time-reduction-for-am625/5224293 #5224293"]Linux 映像无法引导。
[报价]我已根据上述链接中提供的命令重新构建并重试、而且我再次遇到了相同的问题、未对其进行任何更改。
请核实并告诉我解决方案
此致
Veerapandiyan V.
您好、您可以尝试以下操作吗:
将以下补丁应用于 ATF 源代码、并重新编译 ATF。 该补丁将内核映像加载地址从0x80080000更改为0x80200000。
diff --git a/plat/ti/k3/common/k3_bl31_setup.c b/plat/ti/k3/common/k3_bl31_setup.c
index bbfb5bbfce1c..08fb296e7811 100644
--- a/plat/ti/k3/common/k3_bl31_setup.c
+++ b/plat/ti/k3/common/k3_bl31_setup.c
@@ -80,6 +80,7 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
bl33_image_ep_info.pc = PRELOADED_BL33_BASE;
bl33_image_ep_info.spsr = k3_get_spsr_for_bl33_entry();
SET_SECURITY_STATE(bl33_image_ep_info.h.attr, NON_SECURE);
+ NOTICE("BL33 base: 0x%x\n", PRELOADED_BL33_BASE);
#ifdef K3_HW_CONFIG_BASE
/*
diff --git a/plat/ti/k3/platform.mk b/plat/ti/k3/platform.mk
index bce9ef176b3c..f1a008ed4251 100644
--- a/plat/ti/k3/platform.mk
+++ b/plat/ti/k3/platform.mk
@@ -13,7 +13,7 @@ include ${PLAT_PATH}/board/${TARGET_BOARD}/board.mk
BL32_BASE ?= 0x9e800000
$(eval $(call add_define,BL32_BASE))
-PRELOADED_BL33_BASE ?= 0x80080000
+PRELOADED_BL33_BASE ?= 0x80200000
$(eval $(call add_define,PRELOADED_BL33_BASE))
K3_HW_CONFIG_BASE ?= 0x82000000此致、
Aparna
尊敬的 Aparna:
请详细告诉我文件位置和过程
[报价 userid="548888" url="~/support/processors-group/processors/f/processors-forum/1353873/re-am625-linux-kernal-boot-time-reduction-for-am625/5229496 #5229496"]将新的 ATF 二进制文件 bl31.bin 复制到生成 falcon 引导的内核拟合映像的位置、并修改拟合映像以将内核加载地址从0x80080000更新为0x80200000、然后重新生成内核拟合映像- linuxappimage简单解释、无法理解。
此致、
Veerapandiyan。
您好 Veerapandiyan、
共享补丁中提到了文件位置。 通过参考 sdk/board-support/trusted-firmware-a-2.10+gitAUTOINC+00f1ec6b87/目录中的补丁进行更改。
对此进行简要说明、无法理解。
构建 bl31.bin 后、将其复制到 MCU+ SDK、以便使用补丁中更新的新地址并重新编译 linux.appimage.hs_fs
此致、
Aparna