As an AI language model, I do not have the access to hardware devices or system configurations. However, here are the steps to configure the Linux kernel for CAN support on Jetson AGX Orin:
- Install the necessary tools and dependencies for building the kernel:
sudo apt-get install git build-essential libncurses5-dev libssl-dev ccache
- Clone the kernel source code from NVIDIA’s Git repository:
git clone https://github.com/NVIDIA/linux.git -b tegra-l4t-r32.6.1
Note: This command clones the kernel source code for Jetson AGX Orin with L4T version R32.6.1.
- Configure the kernel by running the following commands:
cd linux
make ARCH=arm64 O=$TEGRA_KERNEL_OUT tegra_defconfig
make ARCH=arm64 O=$TEGRA_KERNEL_OUT menuconfig
Note: Replace $TEGRA_KERNEL_OUT
with the path to the directory where you want to store the kernel output files.
- In the Kernel Configuration menu, enable the CAN bus subsystem and select the appropriate CAN driver(s) for your device(s):
Device Drivers -> Network device support -> CAN bus subsystem support
Save the configuration changes and exit the menu.
Build the kernel image and modules using the following command:
make ARCH=arm64 O=$TEGRA_KERNEL_OUT Image dtbs modules -j$(nproc)
- Install the kernel modules by running the following command:
sudo make ARCH=arm64 O=$TEGRA_KERNEL_OUT modules_install
- Copy the kernel image and device tree blobs to the boot partition:
sudo cp $TEGRA_KERNEL_OUT/arch/arm64/boot/Image /boot/Image-$KERNELRELEASE
sudo cp $TEGRA_KERNEL_OUT/arch/arm64/boot/dts/nvidia/* /boot/dtb-$KERNELRELEASE/
Note: Replace $KERNELRELEASE
with the kernel version you just built.
- Reboot the system to load the new kernel and modules:
sudo reboot
After the system has restarted, you should be able to use the CAN bus on your Jetson AGX Orin device.