UEFI配置界面配置参数后,保存重启,更改失效

我在uefi界面选择—>—>将[Console Enabled-SBSA]更改为[Port Disabled],更改完后按下F10,确认保存。然后返回到UEFI主界面,选择reset。重启后处还是为[Console Enabled-SBSA]。更改后重启或者断电操作,都试过,更改都不生效。这个问题需要怎么处理呢?

Please provide the output of cat /etc/nv_tegra_release

Jetpanck 版本:7.2.1

nvidia@tegra-ubuntu:~$ cat /etc/nv_tegra_release

R39 (release), REVISION: 2.1, GCID: 46758480, BOARD: generic, EABI: aarch64, DATE: Fri Aug 7 05:54:22 AM UTC 2026

KERNEL_VARIANT: oot

TARGET_USERSPACE_LIB_DIR=nvidia
TARGET_USERSPACE_LIB_DIR_PATH=usr/lib/aarch64-linux-gnu/nvidia

thor t5000模组

  1. Could you check if only the “Serial Port Configuration” unable keep the setting?
  2. How about config to “Serial Debug Enable - SBSA”

Thanks

The setup item does not permanently disable UART, and on current Jetson UEFI it often will not stick as “Port Disabled” after reset.

What that menu actually stores

Device Manager → NVIDIA Configuration → Serial Port Configuration writes the NV variable SerialPortConfig (gNVIDIATokenSpaceGuid):

  • 0x00 = Enabled (SPCR)
  • 0x01 = Enabled (DBG2)
  • 0xFF = Port Disabled

The option is marked RESET REQUIRED. Change it, F10 Save, then reset. Esc / going back into setup in the same boot is not a valid check.

Why “Port Disabled” comes back as Enabled

In this R39.2 tree, NvidiaConfigDxe forces SPCR on every boot:

NvidiaConfigDxe.cLn 4388–4393

SerialPortType = NVIDIA_SERIAL_PORT_TYPE_SBSA;

mDefaultPortConfig = NVIDIA_SERIAL_PORT_SPCR_SBSA;

PcdSet8S (PcdSerialTypeConfig, SerialPortType);

PcdSet8S (PcdSerialPortConfig, mDefaultPortConfig);

Older UEFI only wrote that default when SerialPortConfig was missing. The current path overwrites the HII variable every boot, so the menu cannot keep 0xFF. F9 Restore Defaults also uses that SPCR value, not Disabled.

Confirm in UEFI Shell (the variable is BS+NV, not runtime, so it will not show under Linux /sys/firmware/efi/efivars):

dmpstore SerialPortConfig

After reboot you will typically see 00, not FF.

Even if the menu shows Port Disabled, serial can still print

That flag only skips SBSA SerialIo and ACPI SPCR/DBG2. It does not mute:

  • UEFI SerialPortLib debug (Thor uses PL011 at 0x0C280000)
  • UTC/TCU nodes in TegraUartDxe (InstallSerialIO = TRUE regardless of this setting)
  • MB1/MB2/BPMP combined UART
  • Linux console= / earlycon= (ttyUTC0 / ttyTCU0)

That is the JP6 case: menu says Disabled, UART still works.

What to do instead

Goal Do this
Persist Disabled in firmware Patch UpdateSerialPcds() to set the default only if the variable is absent, rebuild/flash UEFI. L4TConfiguration.dtbo SerialPortConfig { data = [ff]; non-volatile; } under gNVIDIATokenSpaceGuid is the old method; it loses to the overwrite above on this UEFI.
Stop UEFI talking on a UART (incl. RX short holding setup) Keep separate UEFI vs kernel DTBs (TBCDTB_FILE vs DTB_FILE). status = "disabled" on that UART in the UEFI DTB only; leave it enabled in the kernel DTB + FDT in extlinux.conf.
Stop Linux console Remove console= / earlycon= from extlinux. That does not change UEFI.
Stop early bootloader prints MB1 verbosity / BPMP serial in the boot DTB. Independent of this menu.

Do not use this menu to fix a UART1 RX/TX short holding UEFI. That is ConIn seeing noise; disable that UART in the UEFI DTB (or stop the short), not Serial Port Configuration.

配置为“Serial Debug Enable - SBSA”,重启后也一样失效

我看到jetson-agx-thor-devkit.conf文件中有如下语句

DTB_FILE="tegra264-p4071-0000+p3834-0008-nv.dtb";
TBCDTB_FILE="${DTB_FILE}";
BPFDTB_FILE="tegra264-bpmp-3834-0008-4071-xxxx.dtb";
BPFFILE="bootloader/bpmp_t264-TA1090SA-A1_prod.bin";

其中UEFI阶段的设备树配置如下:

TBCDTB_FILE="${DTB_FILE}";

如果我需要单独更改UEFI的设备树,是需要把tegra264-p4071-0000+p3834-0008-nv.dtb文件单独复制为tegra264-p4071-0000+p3834-0008-nv-uefi.dtb,然后配置文件jetson-agx-thor-devkit.conf更改为

DTB_FILE="tegra264-p4071-0000+p3834-0008-nv.dtb";
TBCDTB_FILE="tegra264-p4071-0000+p3834-0008-nv-uefi.dtb";
BPFDTB_FILE="tegra264-bpmp-3834-0008-4071-xxxx.dtb";
BPFFILE="bootloader/bpmp_t264-TA1090SA-A1_prod.bin";

1、在tegra264-p4071-0000+p3834-0008-nv-uefi.dts中关闭sbsa串口节点?

2、单独烧录UEFI的设备树,需要怎么操作呢?

问题已经解决,在开发主机上操作如下步骤:

更改配置文件

Linux_for_Tegra/jetson-agx-thor-devkit.conf文件中

TBCDTB_FILE=“${DTB_FILE}”;

更改为

TBCDTB_FILE=“tegra264-p4071-0000+p3834-0008-nv-uefi.dtb”;

更新UEFI设备树
cp ./kernel/dtb/tegra264-p4071-0000+p3834-0008-nv.dtb ./kernel/dtb/tegra264-p4071-0000+p3834-0008-nv-uefi.dtb
将串口设备树关闭
sudo fdtput -t s kernel/dtb/tegra264-p4071-0000+p3834-0008-nv-uefi.dtb /bus@0/serial@810c510000 status disabled
sudo fdtput -t s kernel/dtb/tegra264-p4071-0000+p3834-0008-nv-uefi.dtb /bus@0/serial@810c530000 status disabled
sudo fdtput -t s kernel/dtb/tegra264-p4071-0000+p3834-0008-nv-uefi.dtb /bus@0/serial@810c540000 status disabled
烧录QSPI
sudo SKIP_EEPROM_CHECK=1 BOARDID=3834 BOARDSKU=0008 ./l4t_initrd_flash.sh --qspi-only jetson-agx-thor-devkit mmcblk0p1

在模组上,/boot/extlinux/extlinux.conf文件中添加如下语句
FDT /boot/dtb/tegra264-p4071-0000+p3834-0008-nv.dtb