This works on Thor to do an automated Jetpack 7.1 kernel build.
I’ve not tested on x86_64 yet but only real difference are the correct aarch64 gcc build tools and the scripts test the computer running on with uname -m. My Thor has gcc=13.3.0, took a little time to determine best way to get gcc=13.2.0 binaries without downgrading gcc on Thor.
If you want to use this method to build your kernel module.
Make an empty directory.
Copy 2 attached files into that directory.
Run ./jetpack-download-extract.sh first to download jetpack 7.1 and all needed source and binaries.
Next run ./nvbuild-kernel-dtb-and-Modules.sh
When it asks whether to run menuconfig, for now I’d say yes. and as noted above get to "USB Prolific 2303 Single Port Serial Driver (USB_SERIAL_PL2303 " and hit spacebar or m to make it to be a module. exit/exit/exit and let it save .config
Then script will continue and the first time nvbuild-kernel-dtb-and-Modules.sh executes I’d pick A to build kernel, modules, dtbs.
In about 10 minutes you’ll have your pl2303.ko module
Then grab and test your module.
sudo modprobe usbserial
sudo insmod Linux_for_Tegra/source/kernel_out/kernel/kernel-noble/drivers/usb/serial/pl2303.ko
sudo dmesg --ctime | tail -20
lsmod | grep -E 'pl2303|usbserial'
pl2303 16384 0
usbserial 32768 1 pl2303
Then if it’s happy, install it.
sudo install -D -m 0644 \
Linux_for_Tegra/source/kernel_out/kernel/kernel-noble/drivers/usb/serial/pl2303.ko \
/lib/modules/$(uname -r)/kernel/drivers/usb/serial/pl2303.ko
sudo depmod -a
sudo modprobe usbserial
sudo modprobe pl2303
# To make load at boot run
printf '%s\n' usbserial pl2303 | sudo tee /etc/modules-load.d/pl2303.conf
jetpack-download-extract.sh.txt (4.4 KB)
nvbuild-kernel-dtb-and-Modules.sh.txt (3.3 KB)