系统启动慢问题

我们在xavier nx和orin nx启动的时间做了对比:

xavier nx启动 直到有线网络正常通讯 需要15s ,使用的版本是32.6.1

orin nx启动到有线正常通讯需要25s ,使用的版本是35.6.0

为什么能快差不多10s,我已经按照官方的方法进行时间的优化了。这个差一点在哪里?

orin nx 启动log如附件: 可以看出MB1 MB2花费差不多5-6s,这个怎么优化到1S呢

minicom1.txt (8.1 KB)

Hi 550399056,

Are you using the devkit custom board to verify?

I think it is expected to boot up 25s on Orin NX with R35.6.0 after apply method for boot time optimization.
Please note that R32.x and R35.x are using different kernel (K4.9 and K5.10) and SW stack like bootloader(cboot and UEFI) with different features so that you can not compare them directly.

You can try to update Xavier NX to R35.6.0 and check the boot time to compare with Orin NX.

我看官方给的时间MB1 和MB2阶段只要1S,但是我花了5S左右,这个怎么优化得到的,从log上能看出什么吗

How do you determine that MB1 takes 5s to boot?

[2025-02-21 09:36:45] ���
[2025-02-21 09:36:45] �嬂     0.248091] Camera-FW on t234-rce-safe started
[2025-02-21 09:36:45] TCU early console enabled.
[2025-02-21 09:36:45] ��
[2025-02-21 09:36:45] �觨/TC: Physical secure memory base 0x47c040000 size 0x3fc0000
[2025-02-21 09:36:45] I/TC: 
[2025-02-21 09:36:45] �嬂     0.495323] Camera-FW on t234-rce-safe ready SHA1=23d74756 (crt 12.962 ms, total boot 261.253 ms)
[2025-02-21 09:36:45] �踜CE: FW Boot Done
[2025-02-21 09:36:45] �觨/TC: Non-secure external DT found
[2025-02-21 09:36:45] I/TC: OP-TEE version: 3.22 (gcc version 9.3.0 (Buildroot 2020.08)) #2 Wed Aug 28 08:55:22 UTC 2024 aarch64
[2025-02-21 09:36:46] I/TC: WARNING: This OP-TEE configuration might be insecure!
[2025-02-21 09:36:46] I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
[2025-02-21 09:36:46] I/TC: Primary CPU initializing
[2025-02-21 09:36:46] I/TC: Test OEM keys are being used. This is insecure for shipping products!
[2025-02-21 09:36:46] I/TC: Primary CPU switching to normal world boot
[2025-02-21 09:36:46] ��

From the serial console log, it is indeed 1s before bootloader(UEFI) loaded.

这个是给的测试结果,MB1/MB2 启动时间是1S, 我从上电到uefi开始启动花费了5-6s左右时间

[2025-02-21 09:36:45] яэяб
..
[2025-02-21 09:36:46] Jetson UEFI firmware (version 202210.5-78a917ec-dirty built on 2025-02-17T03:31:51+00:00)

The first line of your log is 09:36:45, and the line of UEFI loaded is 09:36:46which results in 1s for MB1/MB2 as expected.