我想要在局域网内访问NX上的usb设备,具体来说是d435相机。我知道需要编译内核的模块才能使用USBIP模块。所以我修改了.config文件让对应模块能够被编译。
编译过程中,出现问题。 scripts/sorttable.c tools/be_byteshift.h: No such file or directory。 然后我在include/linux/unaligned下找到了这个文件,所以我把 scripts/sorttable.c中 <include …>改为了存在这个文件的绝对路径。 之后又报错:unknow type name “u16” “u8” “u32”
请问应该如何正确编译该模块呢。
Hi,
For information, do you use Orin NX or Xavier NX? And which Jetpack version you are using?
Thanks for you reply!! My device is Orin NX and I don’t know the version of Jetpack. That is installed by unitree which is a little different from the Jetpack provided by Nvidia. The kernel is 5.10.104-tegra. The source code is located at "linux-headers-5.10.104-tegra-ubuntu20.04_aarch64
Hi,
You may run the command to get version:
$ cat /etc/nv_tegra_release
And you can follow the steps to build kernel:
Kernel Customization — NVIDIA Jetson Linux Developer Guide 1 documentation
Suggest build kernel image with default config to ensure you can build default kernel image and flash the system successfully first. And then enable the manual configs.
I think I need the kernel unitree provided where the config is set. I just want to build a USBIP module based the unitree kernel. I built the default kernel image and I can’t use my robot as before.
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 ~0409
Is this still an issue to support? Any result can be shared?