# 在unitree Jetson NX上编译 USBIP模块

**URL:** <https://forums.developer.nvidia.com/t/unitree-jetson-nx-usbip/325548>\
**Category:** Jetson Orin NX\
**Tags:** chinese, kernel, usb\
**Created:** [February 28, 2025, 3:12pm UTC](https://forums.developer.nvidia.com/t/unitree-jetson-nx-usbip/325548 "2025-02-28T15:12:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![1424737224](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@1424737224](https://forums.developer.nvidia.com/u/1424737224)\
**Post date:** [February 28, 2025, 3:12pm UTC](https://forums.developer.nvidia.com/t/unitree-jetson-nx-usbip/325548/1 "2025-02-28T15:12:54Z")

</div>

我想要在局域网内访问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”  
请问应该如何正确编译该模块呢。

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [March 3, 2025, 1:40am UTC](https://forums.developer.nvidia.com/t/unitree-jetson-nx-usbip/325548/3 "2025-03-03T01:40:00Z")

</div>

Hi,  
For information, do you use Orin NX or Xavier NX? And which Jetpack version you are using?

---

<div class="post-metadata">

**Author:** ![1424737224](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@1424737224](https://forums.developer.nvidia.com/u/1424737224)\
**Post date:** [March 3, 2025, 2:46am UTC](https://forums.developer.nvidia.com/t/unitree-jetson-nx-usbip/325548/4 "2025-03-03T02:46:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [March 3, 2025, 3:05am UTC](https://forums.developer.nvidia.com/t/unitree-jetson-nx-usbip/325548/5 "2025-03-03T03:05:26Z")

</div>

Hi,  
You may run the command to get version:

```auto
$ cat /etc/nv_tegra_release

```

And you can follow the steps to build kernel:

> [Kernel Customization — NVIDIA Jetson Linux Developer Guide 1 documentation](https://docs.nvidia.com/jetson/archives/r35.6.0/DeveloperGuide/SD/Kernel/KernelCustomization.html)

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.

---

<div class="post-metadata">

**Author:** ![1424737224](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@1424737224](https://forums.developer.nvidia.com/u/1424737224)\
**Post date:** [March 3, 2025, 3:10am UTC](https://forums.developer.nvidia.com/t/unitree-jetson-nx-usbip/325548/6 "2025-03-03T03:10:29Z")

</div>

> [@DaneLLL](#):
>
> manual

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.

---

<div class="post-metadata">

**Author:** ![kayccc](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kayccc/32/14043_2.png) [@kayccc](https://forums.developer.nvidia.com/u/kayccc)\
**Post date:** [March 26, 2025, 3:19am UTC](https://forums.developer.nvidia.com/t/unitree-jetson-nx-usbip/325548/7 "2025-03-26T03:19:04Z")

</div>

**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?

---

<div class="post-metadata">

**Author:** ![kayccc](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kayccc/32/14043_2.png) [@kayccc](https://forums.developer.nvidia.com/u/kayccc)\
**Post date:** [April 9, 2025, 2:13am UTC](https://forums.developer.nvidia.com/t/unitree-jetson-nx-usbip/325548/9 "2025-04-09T02:13:01Z")

</div>

Closed on April 9, 2025, 2:13am UTC


