sajty Posted August 17, 2021 Posted August 17, 2021 Hi, This is my first post on this forum. I'm using armbian for 5 years and I really appreciate the work of all the people who contributed to it. However, I have replaced a Bananapi M1 with Odroid C4, but the kernel doesn't work with usbip anymore. Is it possible to enable usbip somehow? I want to get my usb scanner without Linux drivers to work through Wi-Fi. root@odroidc4:~# usbip WARNING: usbip not found for kernel 5.10.57 You may need to install the following packages for this specific kernel: linux-tools-5.10.57-meson64 linux-cloud-tools-5.10.57-meson64 You may also want to install one of the following packages to keep up to date: linux-tools-meson64 linux-cloud-tools-meson64 Note: I tried to install the suggested linux-tools-* packages, but the packages are not available in the repository. Thanks, Peter
Werner Posted August 17, 2021 Posted August 17, 2021 usbip is enabled as module. https://github.com/armbian/build/blob/6d82498bec2ab95c80b125d7543f70bd2dc480c6/config/kernel/linux-meson64-current.config#L6713
sajty Posted August 18, 2021 Author Posted August 18, 2021 So what does that mean? How can I get usbip working? I have the kernel modules installed on my system. I have used usbip on Bananapi M1 on armbian, but that had a different kernel. However I don't see any linux-tools package for my kernel and I think that is the issue. root@odroidc4:~# ls -1 /lib/modules/5.10.57-meson64/kernel/drivers/usb/usbip usbip-core.ko usbip-host.ko usbip-vudc.ko vhci-hcd.ko root@odroidc4:~# sudo apt install linux-tools-current linux-tools-current-meson64 linux-tools-5.10.57-meson64 linux-cloud-tools-5.10.57-meson64 linux-tools-meson64 linux-cloud-tools-meson64 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package linux-tools-current E: Unable to locate package linux-tools-current-meson64 E: Unable to locate package linux-tools-5.10.57-meson64 E: Couldn't find any package by glob 'linux-tools-5.10.57-meson64' E: Unable to locate package linux-cloud-tools-5.10.57-meson64 E: Couldn't find any package by glob 'linux-cloud-tools-5.10.57-meson64' E: Unable to locate package linux-tools-meson64 E: Unable to locate package linux-cloud-tools-meson64 root@odroidc4:~# usbip --help WARNING: usbip not found for kernel 5.10.57 You may need to install the following packages for this specific kernel: linux-tools-5.10.57-meson64 linux-cloud-tools-5.10.57-meson64 You may also want to install one of the following packages to keep up to date: linux-tools-meson64 linux-cloud-tools-meson64
Werner Posted August 19, 2021 Posted August 19, 2021 modprobe usbip_core usbip_host to get them loaded and use lsmod to make sure they are there.
sajty Posted August 19, 2021 Author Posted August 19, 2021 vor 16 Stunden schrieb Werner: modprobe usbip_core usbip_host to get them loaded and use lsmod to make sure they are there. That doesn't help, because the issue is that usbip tool/executable, that is available in linux-tools-* packages are not installed. However there is no linux-tools-* for this kernel. root@odroidc4:~# modprobe usbip_core usbip_host root@odroidc4:~# lsmod | grep usb usbip_host 36864 0 usbip_core 40960 1 usbip_host root@odroidc4:~# usbip --help WARNING: usbip not found for kernel 5.10.57 You may need to install the following packages for this specific kernel: linux-tools-5.10.57-meson64 linux-cloud-tools-5.10.57-meson64 You may also want to install one of the following packages to keep up to date: linux-tools-meson64 linux-cloud-tools-meson64
Werner Posted August 20, 2021 Posted August 20, 2021 I have split the related posts into a new topic. I understand the issue now. I guess something like this needs to be implemented: https://askubuntu.com/questions/533786/how-to-generate-linux-tools-packages-for-customized-kernel However due to lack of ressources and low demand we rely on external help for such implementation like we do on most other user wishes. Also make sure to check https://docs.armbian.com/User-Guide_FAQ/
sajty Posted August 21, 2021 Author Posted August 21, 2021 Thanks Werner for opening the thread and adding the implementation link. It seems the build process of linux-tools should be very similar to the linux-headers-current-meson64 package.
sajty Posted August 27, 2021 Author Posted August 27, 2021 In the meantime, I have found a workaround, which may be useful to others who want to do the same as me. Copy the tools from nearest kernel: apt install linux-tools-5.11.0-22-generic cp -r /usr/lib/linux-tools/5.11.0-22-generic /usr/lib/linux-tools/$(uname -r) Then you can use usbip, like this: echo "load usbip-core kernel module" ssh root@odroidc4 "(lsmod | grep usbip_core) || modprobe usbip-core" echo "load usbip-host kernel module" ssh root@odroidc4 "(lsmod | grep usbip_host) || modprobe usbip-host" echo "start usbipd daemon" ssh root@odroidc4 "pidof usbipd || usbipd -D" echo "available devices:" ssh root@odroidc4 "usbip list -l" echo "binding device 1-1.4 to usbip" ssh root@odroidc4 "usbip bind -b 1-1.4" echo "attaching to remote device 1-1.4" usbip attach -r odroidc4 -b 1-1.4 1
kyavid Posted October 15, 2021 Posted October 15, 2021 It seems the build process of linux-tools should be very similar to the linux-headers-current-meson64 package. vidmate app save insta video 1
Recommended Posts