linux-tools-raspi is missing at least one module needed by usbip

Bug #2039141 reported by Peter Goodall
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-raspi (Ubuntu)
New
Undecided
Unassigned

Bug Description

my install command-line was sudo apt install linux-tools-raspi

if is search for it with apt - I find it. This bug reporting tool told me it doesn't exist.

~$ apt search linux-tools-raspi
Sorting... Done
Full Text Search... Done
linux-tools-raspi/jammy-updates,jammy-security 5.15.0.1038.36 armhf
  Raspberry Pi Linux kernel tools

linux-tools-raspi-nolpae/jammy-updates,jammy-security 5.15.0.1038.36 armhf
  Raspberry Pi no-LPAE Linux kernel tools (dummy transitional package)

https://manpages.ubuntu.com/manpages/jammy/man1/usbip.8.html

I believe that for usbip bind --busid=1-1.x to work.
sudo modprobe usbip_host must run.
This module is not installed.

~$ usbip list -l
 - busid 1-1.1 (0424:ec00)
   Microchip Technology, Inc. (formerly SMSC) : SMSC9512/9514 Fast Ethernet Adapter (0424:ec00)

 - busid 1-1.3 (046d:c52b)
   Logitech, Inc. : Unifying Receiver (046d:c52b)

 - busid 1-1.5 (1a86:55d4)
   QinHeng Electronics : unknown product (1a86:55d4)

~$ modprobe usbip_host
modprobe: FATAL: Module usbip_host not found in directory /lib/modules/5.15.0-1038-raspi

~$ usbip bind --busid=1-1.5
usbip: error: error unbinding device 1-1.5 from driver
usbip: error: could not unbind driver from device on busid 1-1.5

It would be good if the man page showed the basic use case of binding a local usb device, and connecting from a client.

I have only installed the linux-tools-raspi package out of the linux-tools family.

Cheers...

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-tools-raspi 5.15.0.1038.36
ProcVersionSignature: Ubuntu 5.15.0-1038.41-raspi 5.15.116
Uname: Linux 5.15.0-1038-raspi armv7l
AlsaVersion: Advanced Linux Sound Architecture Driver Version k5.15.0-1038-raspi.
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: armhf
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/controlC1', '/dev/snd/pcmC1D0p', '/dev/snd/controlC0', '/dev/snd/pcmC0D0p', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: N/A
Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
Card1.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
Card1.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
CasperMD5CheckResult: unknown
CloudArchitecture: armv7l
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSubPlatform: config-disk (/dev/mmcblk0p1)
Date: Thu Oct 12 17:14:53 2023
ImageMediaBuild: 20230807.2
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
Lspci:

Lspci-vt: -[0000:00]-
Lsusb:
 Bus 001 Device 005: ID 1a86:55d4 QinHeng Electronics SONOFF Zigbee 3.0 USB Dongle Plus V2
 Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
 Bus 001 Device 003: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter
 Bus 001 Device 002: ID 0424:9514 Microchip Technology, Inc. (formerly SMSC) SMC9514 Hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
PciMultimedia:

ProcEnviron:
 LANG=C.UTF-8
 TERM=xterm-kitty
 PATH=(custom, no user)
 SHELL=/bin/bash
ProcFB: 0 BCM2708 FB
ProcKernelCmdLine: coherent_pool=1M snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1200 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyAMA0,115200 dwc_otg.lpm_enable=0 console=tty1 root=LABEL=writable rootfstype=ext4 rootwait fixrtc quiet splash
RelatedPackageVersions:
 linux-restricted-modules-5.15.0-1038-raspi N/A
 linux-backports-modules-5.15.0-1038-raspi N/A
 linux-firmware 20220329.git681281e4-0ubuntu3.19
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
SourcePackage: linux-raspi
StagingDrivers: vc_sm_cma bcm2835_v4l2 bcm2835_isp bcm2835_codec snd_bcm2835 bcm2835_mmal_vchiq
UpgradeStatus: No upgrade log present (probably fresh install)
acpidump:

Revision history for this message
Peter Goodall (pjgoodall) wrote :
Revision history for this message
Peter Goodall (pjgoodall) wrote :

I think it would be better to accept a package name that can be installed using `apt install`. rejecting what appears to be a meta-package in the header, is a loss of information. If the linux-tools-raspi had been retained someone performing triage could add a refining package identifier. As it is I am concerned that my work may be lost in the noise. With all the slow reboots and reinstallations of OS, trying alternatives, this cost me a day's time. So I would like that to be well-spent :-)

affects: ubuntu → linux-raspi (Ubuntu)
Juerg Haefliger (juergh)
tags: added: kern-8237
Revision history for this message
Juerg Haefliger (juergh) wrote :

Not sure I understand your comment #2. Did you have issues reporting the problem?

Re missing module usbip_host: It's provided by package linux-modules-extra-raspi:
https://packages.ubuntu.com/search?suite=jammy&arch=armhf&mode=exactfilename&searchon=contents&keywords=usbip-host.ko

But you're in luck, that module will move to linux-modules with the next update (see bug 2037938).

Revision history for this message
Peter Goodall (pjgoodall) wrote :

#3
I put `linux-tools-raspi` as the package name into the first entry field in the reporting system. When I tried to save the report. It rejected it as (me paraphrasing) 'not a package'. As an end-user at this level, if I can install it with apt - it is a package. This broke my confidence in the process. I then struggled to work out what the system wanted as the package name.

I hope that's clearer. Thanks for your time...

Revision history for this message
Peter Goodall (pjgoodall) wrote :
Revision history for this message
Peter Goodall (pjgoodall) wrote (last edit ):

running very nicely now - as advertised.

need to re-install on Ubuntu 22.04 workstation like

sudo apt install linux-tools-$(uname -r) hwdata

on my raspberry-pi 2B - I think this incantation would work on both platforms:
sudo apt install linux-tools-$(uname -r) linux-modules-extra-$(uname -r) hwdata

hwdata is a dependency on both pi and workstation that seems to need a re-install

Revision history for this message
Peter Goodall (pjgoodall) wrote :

I personally conclude there are two issues:

1. The packaging needs refactoring to install the correct variants for the raspi platform. Currently 5.15.0-1038-raspi.
2. The documentation could be improved to make it clear how to work with modprobe for this package.

Now I have learned to configure the relevant packages - the tool works very well!

Revision history for this message
Juerg Haefliger (juergh) wrote :

You should install the meta package and not the versioned package so that it's always up-to-date and matches the installed kernel(s):

$ apt install linux-tools-raspi

That way, if the kernel is updated, linux-tools is also updated to the same kernel version.

Revision history for this message
Juerg Haefliger (juergh) wrote :

Note that the following should list linux-raspi-tools as well (when run on an ARM system):

$ sudo apt install linux-tools
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package linux-tools is a virtual package provided by:
  linux-tools-virtual-hwe-22.04-edge 6.5.0.9.11
  linux-tools-virtual-hwe-22.04 6.5.0.9.11
  linux-tools-virtual 6.5.0.9.11
  linux-tools-generic-hwe-22.04-edge 6.5.0.9.11
  linux-tools-generic-hwe-22.04 6.5.0.9.11
  linux-tools-generic 6.5.0.9.11
You should explicitly select one to install.

E: Package 'linux-tools' has no installation candidate

I've opened bug 2039437 for that.

Revision history for this message
Peter Goodall (pjgoodall) wrote :

I originally tried `sudo apt install linux-tools-raspi` - which at that time failed to install the expected chain of more platform specific packages including linux-modules-extra-raspi. Can you confirm for me that is covered by #2039437 please.

I still have a complaint that the bug reporting system rejected me using 'linux-tools-raspi' as the package I wanted to report against. It insisted it is not a package.

Revision history for this message
Juerg Haefliger (juergh) wrote :

How did you try to file the bug? It probably expects a source package name.

Revision history for this message
Juerg Haefliger (juergh) wrote :

Re #10: linux-modules-extra-raspi is not and should not be a dependency of linux-tools-raspi. All you should have to do is 'apt install linux-tools-raspi'.

usbip is moved to linux-modules-raspi so that problem is being addressed (bug 2037938).

hwdata should be a dependency of linux-tools-common (bug 2039439).

'apt install linux-tools' on arm should list linux-tools-raspi as a potential candidate (bug 2039437).

Revision history for this message
Peter Goodall (pjgoodall) wrote :

Thats great. Thanks very much for your assistance.

Revision history for this message
Peter Goodall (pjgoodall) wrote (last edit ):

Re: #11
Yes, that would account for my problem with trying to file the bug. I didn't realise the bug filing system made a distinction between a source-package and a meta-package.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.