Jump to content

meson64 linux tools package unavailable


sajty

Recommended Posts

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

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

modprobe usbip_core usbip_host to get them loaded and use lsmod to make sure they are there.

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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/

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines