hi:nv
我们遇到一个现象,就是在scp 传输文件的时候遇到直接从内核重启,没有从uefi阶段重启,想知道这个是什么原因呢
new 4.txt (160.5 KB)
Hi mingming,
Are you using the devkit or custom board for Thor?
Do you enable kernel kexec in your case?
hi:
我如何确认这个呢?
Are you using the devkit or custom board for Thor? -----》custom board
Are you using the customized kernel as I don’t see such behavior on the AGX Thor devkit with official r38.4 installed?
Could you simply run the following commands to check?
$ which kexec
$ zcat /proc/config.gz|grep CONFIG_KEXEC
$ cat /sys/kernel/kexec_loaded
agi@tegra-ubuntu:~$ which kexec
/usr/sbin/kexec
agi@tegra-ubuntu:~$ zcat /proc/config.gz|grep CONFIG_KEXEC
CONFIG_KEXEC_CORE=y
CONFIG_KEXEC=y
CONFIG_KEXEC_FILE=y
# CONFIG_KEXEC_SIG is not set
agi@tegra-ubuntu:~$ cat /sys/kernel/kexec_loaded
0
agi@tegra-ubuntu:~$
It seems kexec is not enabled on your board.
Could you reproduce the similar issue on the devkit?
Please share the result of the following command on your board.
$ cat /etc/nv_tegra_release
$ cat /etc/nv_boot_control.conf
@KevinFFF would this work?
sudo kexec -l /boot/Image \
--initrd=/boot/initrd \
--reuse-cmdline
cat /sys/kernel/kexec_loaded
#Then to reboot through kexec:
sudo kexec -e
Yes, the steps you shared would trigger kexec to load the new kernel.
I edited /etc/default/kdump-tools to add following. Reduce KDUMP_NUM_DUMPS=# unless you have a large nvme. And insert your PARTUUID
KDUMP_CMDLINE="root=PARTUUID=${your root partuuid} rw rootwait rootfstype=ext4 earlycon=tegra_utc,mmio32,0xc5a0000
console=ttyUTC0,115200 firmware_class.path=/etc/firmware efi=runtime irqpoll reset_devices systemd.unit=kdump-tools-dump.service nr_cpus=1"
KDUMP_NUM_DUMPS=2
sudo systemctl restart kdump-tools
cat /sys/kernel/kexec_crash_loaded # confirm still 1
cat /var/crash/kexec_cmd # verify new cmdline was used
# How to Test (Destructive — crashes and reboots the system)
echo c | sudo tee /proc/sysrq-trigger
# After reboot, check for a timestamped subdirectory in /var/crash/:
ls -lt /var/crash/
hi:
agi@tegra-ubuntu:~$ cat /etc/nv_tegra_release
# R38 (release), REVISION: 4.0, GCID: 43443517, BOARD: generic, EABI: aarch64, DATE: Wed Dec 31 00:15:19 UTC 2025
# KERNEL_VARIANT: oot
TARGET_USERSPACE_LIB_DIR=nvidia
TARGET_USERSPACE_LIB_DIR_PATH=usr/lib/aarch64-linux-gnu/nvidia
INSTALL_TYPE=openrm
agi@tegra-ubuntu:~$ cat /etc/nv_boot_control.conf
TNSPEC 3834-401-0008-A.2-1-0-p3834-0008-p4071-0000-nvme-
COMPATIBLE_SPEC 3834-401-0008--1--jetson-agx-thor-devkit-
TEGRA_BOOT_STORAGE nvme0n1
TEGRA_CHIPID 0x26
TEGRA_OTA_BOOT_DEVICE /dev/mtdblock0
TEGRA_OTA_GPT_DEVICE /dev/mtdblock0
agi@tegra-ubuntu:~$
There is no update from you for a period, assuming this is not an issue anymore.
Hence, we are closing this topic. If need further support, please open a new one.
Thanks ~0708
Could you please upgrade to the latest Jetpack 7.2 (r39.2) to verify if the issue persists?
Additionally, please help us clarify whether this behavior is specific to your custom carrier board design, as we are unable to replicate it on the devkit