What I am trying to do
I am developing a CAN-to-Ethernet vehicle odometry gateway on DRIVE AGX Thor to provide ego-motion information to an Ethernet sensor.
This is not a vehicle-control or drive-by-wire application. I do not need Thor to send control commands to the vehicle. The application only needs to:
- Receive vehicle CAN messages.
- Decode vehicle speed, yaw rate and gear state using a DBC.
- Encode and periodically forward the corresponding vehicle dynamics information to the sensor over UDP/Ethernet.
The sensor requires this information to account for the vehicle’s own motion when processing its measurements (ego-motion compensation).
For bench validation, the intended setup is:
Windows PC running Vector CANoe
-> Vector VN5620
-> Classic CAN bus at 500 kbit/s (replaying recorded vehicle odometry messages)
-> PEAK PCAN-USB Pro FD
-> USB port on DRIVE AGX Thor
-> Linux SocketCAN reception
-> userspace odometry gateway
-> UDP/Ethernet vehicle dynamics messages
-> Ethernet sensor for ego-motion compensation
The PEAK adapter is connected by USB directly to Thor, not to the Windows PC. The Windows PC uses the Vector VN5620 to simulate the vehicle’s CAN output by replaying a recorded BLF trace.
We have already validated the software BLF replay and Ethernet output path. The next step is to replace the software replay input with live CAN frames received on Thor.
Application-level CAN reception is sufficient. Vehicle actuation and CAN control-message transmission are outside the scope of this project.
Why I am using USB-CAN instead of the VH harness
My understanding is that the VH harness CAN route does not currently provide the direct Tegra/Linux CAN access required by my application, and the configuration discussed there does not provide an MCU-to-Tegra CAN forwarding function.
I therefore understand that the VH route does not meet my current requirement. I am not asking how to enable VH CAN through mttcan or a device-tree change. I am specifically looking for a supported external USB-CAN solution that exposes received CAN frames to a Linux userspace application on Thor.
Platform
| Item | Value |
|---|---|
| Board | p3960-0010, from /proc/device-tree/model |
| DRIVE OS rootfs version | 7.2.5.0-46229577 |
| Rootfs OS | Ubuntu 24.04.4 LTS, arm64 |
| Running kernel | 6.8.12-rt-tegra |
| Module vermagic | 6.8.12-rt-tegra SMP preempt_rt mod_unload modversions aarch64 |
| Kernel compiler | aarch64-buildroot-linux-gnu-gcc.br_real, GCC 13.2.0 |
| Linker | GNU ld 2.42 |
| USB-CAN adapter | PEAK PCAN-USB Pro FD |
| USB ID | 0c72:0011 |
| Required CAN mode | Classic CAN, 500 kbit/s |
What I have verified on the target
1. The adapter enumerates successfully over USB, but no driver binds to it.
Bus 001 Device 010: ID 0c72:0011 PEAK System PCAN-USB Pro FD
/sys/bus/usb/devices/1-2.2
idProduct=0011
1-2.2:1.0 -> no driver bound
1-2.2:1.1 -> no driver bound
No corresponding SocketCAN interface appears.
2. The CAN core modules are available and load without error.
The following modules exist under /lib/modules/6.8.12-rt-tegra/:
can.ko
can-raw.ko
can-dev.ko
vcan.ko
However, modinfo peak_usb returns:
modinfo: ERROR: Module peak_usb not found
There is no drivers/net/can/usb/ directory in the installed module tree. Searching /proc/config.gz for CONFIG_CAN_PEAK_USB also returns no matching line.
3. Kernel module loading is enabled, and unsigned out-of-tree modules already load on this target.
/proc/sys/kernel/modules_disabled = 0
/proc/sys/kernel/tainted = 12288 (bits 12 and 13: out-of-tree + unsigned)
/sys/kernel/security/lockdown -> does not exist
Relevant kernel configuration:
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_MODULE_SIG=y
# CONFIG_MODULE_SIG_FORCE is not set
# CONFIG_MODULE_FORCE_LOAD is not set
# CONFIG_TRIM_UNUSED_KSYMS is not set
So module signing is not enforced, and nothing on the target blocks loading an out-of-tree module once one can actually be built.
Current blocker: missing matching kernel build files
I have not found a prepared kernel build tree or matching headers on the target:
/lib/modules/6.8.12-rt-tegra/build -> does not exist
/usr/src -> empty
Module.symvers -> not found anywhere on the filesystem
No matching kernel-headers package is installed. The installed linux-libc-dev package provides userspace headers, not the kernel build environment needed for this module.
The target’s configured APT sources are Ubuntu Noble repositories. I have not found a matching DRIVE OS kernel-source or kernel-headers package through those repositories. The available Ubuntu linux-headers-6.8.0-10xx-nvidia-tegra-rt packages do not match the running 6.8.12-rt-tegra kernel, so I have not attempted to use them.
Since CONFIG_MODVERSIONS=y, I understand that I need matching kernel configuration, generated headers and symbol-version information — not simply a vanilla Linux 6.8.12 source tree. I also understand that running modules_prepare alone does not generate Module.symvers.
There appears to be a second reason a vanilla tree would not work. The __versions sections of the shipped modules use a variable-length record layout (u32 length, u32 crc, NUL-padded symbol name) rather than the classic fixed-size struct modversion_info. For example, in can-dev.ko:
Contents of section __versions:
0000 10000000 f539bd2d 736b625f 70757400 .....9.-skb_put.
0010 18000000 03518b28 736b625f 74737461 .....Q.(skb_tsta
If I read that correctly, the module has to be produced by the matching kernel tree’s modpost, since a mainline 6.8.12 modpost would emit the fixed-size layout and this kernel would not parse it. Please correct me if that is wrong.
I would prefer to retain the currently installed DRIVE OS kernel if possible. However, I can use an SDK host/container and cross-compile if that is the supported workflow.
Questions
1. Is PEAK PCAN-USB Pro FD supported as a SocketCAN interface on DRIVE AGX Thor with DRIVE OS 7.2.5? If so, is a matching prebuilt peak_usb module available?
2. If I need to build the module, where can I obtain the exact source and build artifacts matching 7.2.5.0-46229577 / 6.8.12-rt-tegra? Specifically, I need the matching kernel configuration, generated headers, Module.symvers, and any required NVIDIA patches and build tools.
3. What is the supported build and installation procedure? Can I build only peak_usb and any required dependencies against the installed kernel, or must I build and deploy a complete kernel/modules set? Please point me to the appropriate DRIVE OS 7.2.5 SDK package or container, toolchain and instructions.
4. If this USB-CAN adapter is not supported, what supported alternative provides external CAN frames to a Linux userspace application on Thor? My requirement is Linux-side CAN reception for forwarding odometry to an Ethernet sensor. MCU/FSI-only CAN access without a forwarding path to Linux would not meet that requirement.
My first milestone is simply to receive the CANoe-generated frames with candump on Thor. Once that works, I can connect the SocketCAN input to the existing userspace odometry gateway.
Thank you for any guidance on the supported USB-CAN driver and kernel-module build path.