定制载板 用apt install nvidia-jetpack后无法启动

环境信息

  • 板卡:Jetson AGX Orin(p3737-0000 + p3701-0000)+ 自研定制载板
  • 版本:JetPack 7.2(L4T r39.2),内核 6.8.12-1021-tegra
  • 刷机方式:定制 SDK(基于官方 L4T r39.2 二次开发,含定制载板 pinmux / dtb / 内核定制),通过 flash.sh 刷写
  • UEFI 版本:39.2.1-gcid-46758480

问题描述

定制 SDK 刷入后可正常启动。执行 apt install nvidia-jetpack 并重启后,板卡无法启动,串口日志在 UEFI 阶段后卡住不再输出。完整日志如下:

NOTICE:  BL31: v2.13.0(release):d65e852
NOTICE:  BL31: Built : 21:46:40, Aug  6 2026
[TS:450377731016753152]Admin Task Init
[TS:450726667044782080]Admin Task Init complete
[TS:451133851419279360]Print Task Init
[TS:451521686966108160]RM Task Init
[TS:451860516936089600]SHA Task Init
[TS:452165966420246528]SHA INIT
[TS:105361206]Admin Task Started
[TS:105427058]RM Task Started
[TS:105497209]DCE SC7 SHA Disabled
[TS:105566016]RM Task Running [id:2]
I/TC:
I/TC: Non-secure external DT found
ERROR: camera-ip/isp5/isp5.c:2709 [isp5_pm_init] "ERROR: Failed to turn isp1 power on"
BUG: core/init/init.c:129 [init_all] "*** FIRMWARE INIT FAILED AT LEVEL 95 FEATURE ID 13 ***"
I/TC: Switching console to device: /serial@0c198000
I/TC: OP-TEE version: 4.6 (gcc version 13.2.0 (crosstool-NG 1.26.0)) #2 Fri Aug  7 04:54:03 UTC 2026 aarch64
I/TC: WARNING: This OP-TEE configuration might be insecure!
I/TC: Primary CPU switching to normal world boot

  t23x_general UEFI firmware (version 39.2.1-gcid-46758480 built on 2026-08-07T04:48:32+00:00)
(卡在此处,无后续输出)

请问是什么原因?是否定制的底板不建议使用此命令?

Hi @dcb0223,

apt install nvidia-jetpack is a standard way to install JetPack components. With a custom BSP, we need to check whether the installation updated any kernel, device tree, or firmware components and affected your customizations. The current boot log alone does not establish the cause.

Please share the entry for this installation from /var/log/apt/history.log, including the Commandline, Install, and Upgrade fields, so we can identify the package and version changes. If you cannot access that file, any saved terminal output from the installation would also help.

Thanks.

Thanks for the response. Below is (1) the package/version information you asked for, and (2) evidence we collected since posting — including two strict single-variable reproductions — which we believe establishes the cause independently of the boot log.


1. /var/log/apt/history.log — not present on this image

What we actually have on the affected unit:

  • /var/log/apt/ contains only eipp.log.xz; both history.log and term.log do not exist.

  • /var/log/dpkg.log has only 422 lines, starting 2026-08-05, with no 39.2.1 entries at all — the original instance was re-flashed in order to recover it, and the apt/dpkg state was lost with the rootfs.

  • The unit is currently unbootable (hangs right after the UEFI banner), so nothing further can be pulled from it.

Since the file is gone, here is the reconstructed entry in the same fields, derived from the apt repository metadata and from the packages themselves (all values verified on an identical unit with the same BSP):

Field Value
Commandline apt install nvidia-jetpack (followed by a reboot)
Upgrade ~55 × nvidia-l4t-*: 39.2.0-20260601141651 → 39.2.1-20260806224157
Install (new) nvidia-jetpack / -runtime / -dev 7.2.1-b49, nvidia-l4t-gstreamer, nvidia-l4t-jetson-multimedia-api, nvidia-l4t-cudadebuggingsupport, TensorRT 10.16.2.10, nsight-systems-2026.3.1
Total 213 packages, 10.1 GB to download

Key items in the Upgrade set (all from the r39.2 repo):

nvidia-l4t-bootloader                      39.2.0-20260601141651 → 39.2.1-20260806224157
nvidia-l4t-bootloader-utils               39.2.0-... → 39.2.1-...
nvidia-l4t-core / -init / -configs / -firmware / -initrd
nvidia-l4t-kernel / -kernel-dtbs / -kernel-partitions / -kernel-headers
nvidia-l4t-kernel-nvgpu / -kernel-openrm / -kernel-oot-modules / -kernel-oot-headers
nvidia-l4t-display-kernel / -camera / -multimedia* / -cuda*        6.8.12-tegra-39.2.0 → 6.8.12-tegra-39.2.1

apt-get -s install nvidia-jetpack on an identical unit still resolves to exactly these 213 packages — we can attach the complete list if useful.


2. Single-variable reproductions: the bootloader package alone is sufficient

Test A — 2026-09-20: only nvidia-l4t-bootloader upgraded

  • Installed with dpkg --force-depends -i nvidia-l4t-bootloader_39.2.1-20260806224157_arm64.deb so that nvidia-l4t-bootloader-utils and nvidia-l4t-core stayed at 39.2.0, and nvidia-l4t-kernel / -kernel-dtbs / -kernel-partitions were not installed at all.

  • Before reboot: nvbootctrl -t bootloader dump-slots-info → 39.2.0, slot A, capsule status 0. After install: ESP now contains /boot/efi/EFI/UpdateCapsule/fwupd-bf0d4599-….cap (45,200,155 B = TEGRA_BL_3701_agx.Cap), UEFI variable OsIndications = 0x4, and /boot/efi/EFI/BOOT/BOOTAA64.efi was replaced (110,592 → 114,688 B).

  • After reboot: the board never came back.

Test B — 2026-09-21: capsule only, ESP launcher deliberately untouched

  • On a freshly re-flashed unit we left the ESP launcher unchanged (still the custom 110,592 B BOOTAA64.efi), and only re-armed the 39.2.1 capsule (extracted from the 39.2.1 deb: 45,200,155 B, md5 41fd79090010538516af6438571e4d15), exactly as the postinst does: set OsIndications then fwupdtool install-blob <Cap> <System Firmware device id>.

  • After reboot: identical brick. The serial log now shows the capsule being consumed on the first cold boot:

ESC   to enter Setup.
F11   to enter Boot Manager Menu.
s     to enter Shell.
Enter to continue boot.
​
Update Progress - 100% **************************************************????Shutdown state requested 1
Rebooting system ...

and on the second cold boot the whole chain has changed (Active-chain 0|A → 1|B) and it hangs.

So: kernel, device tree, nvidia-l4t-kernel-partitions and the ESP launcher are all excluded — the capsule alone reproduces the failure.


3. Same-board serial log comparison (normal boot vs. after the capsule)

We did not have this when we first posted; now we have both logs from the same board.

Item Normal boot After capsule
Boot chain Active-chain 0\|A, Slot 0 1st boot 0\|A → 2nd boot Active-chain 1\|B, Slot 1
MB2 -01Jun26-131747-0700 -06Aug26-214857-0700
BL31 Built : 13:14:59, Jun 1 2026 Built : 21:46:40, Aug 6 2026
OP-TEE #2 Mon Jun 1 20:22:40 UTC 2026 #2 Fri Aug 7 04:54:03 UTC 2026
UEFI 39.2.0-gcid-45755727 built on 2026-06-01 39.2.1-gcid-46758480 built on 2026-08-07
UPHY no errors new: start PLL 8 calibration timeout → FATAL ERROR [FILE=platform/drivers/uphy/uphy-tegra234.c, ERR_UID=2251]: start PLL 8 calibration failed
OP-TEE / ISP no errors new: ERROR: camera-ip/isp5/isp5.c:2709 [isp5_pm_init] "ERROR: Failed to turn isp1 power on" → BUG: core/init/init.c:129 [init_all] "*** FIRMWARE INIT FAILED AT LEVEL 95 FEATURE ID 13 ***"
After the UEFI banner I/TC: Reserved shared memory is disabled → MmDispatchFvs: BfvHob … → Linux no further output at all
ISP in Linux tegra194-isp5 14800000.isp probes fine never reaches Linux

Two corrections to my original post, in case they matter for your analysis:

  • isp5_pm_init is not MB1 — it is OP-TEE (BL32 / secure-os). The UPHY/PLL8 error comes from BPMP-FW. Both run before the UEFI banner, i.e. the failure happens in the QSPI boot chain that the capsule rewrote, not in anything loaded from the rootfs.

  • The Reserved shared memory is disabled line is present in every normal boot right after the UEFI banner. Its total absence after the capsule suggests UEFI hangs on its first SMC into OP-TEE rather than on a kernel/DT issue.


4. What the official capsule actually contains

/opt/ota_package/t23x/TEGRA_BL_3701_agx.Cap from nvidia-l4t-bootloader_39.2.1 (45,200,155 B, md5 41fd79090010538516af6438571e4d15):

  • EFI FMP capsule whose embedded ESRT-ish version is 39.2.1, i.e. higher than the board’s current 39.2.0 entry → the update is applied, not skipped.

  • Payload covers the entire QSPI boot chain: MB1, MB1_BCT, MB2, MB2_BCT, bpmp-fw, secure-os, eks, cpu-bootloader (MB1_BCT appears ~12 times, bpmp-fw ~24 times, cpu-bootloader ~12 times).

  • Board strings inside are jetson-agx-orin-devkit- (~45 occurrences) — the official AGX Orin devkit board data.

Our carrier is a custom P3737-based board; its MB1 BCT (pinmux / GPIO / PMIC / pad-voltage), UPHY lane configuration and DT were customized in our BSP (e.g. we had to modify tegra234-mb1-bct-gpio-p3701-0000-a04.dtsi for the PCIe C7 CLKREQ/PERST lines). The capsule replaces those with devkit values → the ISP1 rail cannot be powered and UPHY PLL8 fails to calibrate on the second boot.

We have both full serial logs and the capsule file available if you want them attached to the thread.


5. Counter-example: the same operation on JetPack 6.2 (L4T r36.4.4) does not reproduce it

To isolate the trigger further, we compared against the previous generation on the same custom carrier board: apt install nvidia-jetpack on JetPack 6.2 / L4T r36.4.4 completes normally, on the same board with the same custom MB1 BCT / UPHY / pinmux changes. We first suspected JP6.2 simply did not carry the capsule logic — it does:

  • The 36.4.4 postinst contains the same capsule machinery: same payload selection from COMPATIBLE_SPEC (our ...jetson-agx-orin-devkit- → TEGRA_BL_3701_agx.Cap), same create_capsule_uefi_variable + yes N | fwupdtool install-blob, same copy_l4tlauncher / extlinux_update.

  • The 36.4.4 script is in fact less guarded than 39.2.1: it has no ISO/ESRT branch and no is_capsule_update_triggered gate at all — it unconditionally overwrites the ESP launcher and rewrites extlinux.conf right after trigger_capsule_update.

So on JP6.2 this code path can only have never executed. The difference is version alignment:

bootloader package shipped by the BSP offered by the r* repo what apt does
JP6.2 / r36.4.4 nvidia-l4t-bootloader 36.4.4-20250616085344 the same 36.4.4-20250616085344 is present in r36.4/.../Packages already at that exact version → not reinstalled → postinst never runs
JP7.2 / r39.2 (ours) nvidia-l4t-bootloader 39.2.0-20260601141651 (custom build) 39.2.1-20260806224157 forced upgrade → postinst runs → devkit capsule queued

A second, independent mechanism points the same way: had the package been reinstalled at the same version, the capsule’s embedded version would equal the current ESRT version, and fwupd normally declines to stage a payload that is not an upgrade.

So the risk is not bound to apt install nvidia-jetpack as such, but to “a bootloader package upgrade actually happening”. On JP6.2 that upgrade did not happen; on our custom JP7.2 BSP it is unavoidable, because our BSP’s bootloader build is one patch behind the public r39.2 repository.

This is checkable on any JP6.2 device:

apt-get -s install nvidia-l4t-bootloader      # expect: "already the newest version"
nvbootctrl -t bootloader dump-slots-info      # slot / version unchanged after the install
ls /boot/efi/EFI/UpdateCapsule/               # expect: empty

6. Questions

  1. Is this expected behaviour for a custom carrier? The nvidia-l4t-bootloader postinst selects the payload via COMPATIBLE_SPEC from /etc/nv_boot_control.conf (our value ends with ...jetson-agx-orin-devkit-) and, on the non-ISO path, arms the official devkit capsule unconditionally, without comparing the capsule version against the ESRT version. What is the recommended way for a custom BSP to avoid this?

  2. Is /opt/nvidia/l4t-packages/.nv-l4t-disable-boot-fw-update-in-preinstall a supported (documented) switch? The 39.2.1 postinst checks it, but we could not find it documented for JetPack 7.2.

  3. If we want to keep the custom MB1/BCT while still installing JetPack components from apt, is replacing /opt/ota_package/t23x/TEGRA_BL_3701_agx.Cap with a capsule generated from our own BSP the supported approach? Or is apt-mark hold nvidia-l4t-bootloader (plus keeping the version aligned) the intended workflow?

  4. For recovery: the QSPI boot chain is now Active-chain 1|B and the board hangs in UEFI, so the A/B fallback to our custom 39.2.0 slot is not triggered. Can you confirm that a full re-flash is the only recovery path, and whether the A slot content is ever restored automatically?

  5. Related to section 5: in 39.2.1 the ESRT / package-version comparison only guards the ISO path (trigger_capsule_update_for_iso); on the normal path the capsule is armed unconditionally. Could that comparison be applied to the normal path as well — i.e. skip staging whenever the payload version is not newer than the current ESRT version? That alone would have prevented this failure on a custom BSP whose package version is out of sync with the repo.

Hi,

I think you can refer to the solution for this topic .

Thanks.