usbip 0.1.7 incompatible with kernel 3.2.x upstream moved

Bug #994934 reported by Doug
56
This bug affects 11 people
Affects Status Importance Assigned to Milestone
usbip (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi,
The usbip userspace programs have been moved into the linux kernel source. The repository at usbip.sourceforge.com is no longer the location of the latest userspace tools. If you get the latest source from here the README tells us that this code is obsolete. The obsolete code relies on kernel modules that no longer exist.

Quoting the usbip/obsolete/README for completeness:

> root@blinky:~# more usbip/obsolete/README.txt
> The linux drivers and command line tools are now being maintained in the linux kernel tree.
>
> The versions found here are not being maintained and thus obsolete.
>
> For the most recent versions, please visit:
> http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=tree;f=drivers/staging/usbip
>
> The git tree (git is the version control system used there instead of SVN):
> git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
>
> The drivers were already in the kernel tree since version 2.6.28. The userspace tools have been moved on 20110520.
>

The usbip package should instead be being built from the usbip userspace source found in the linux kernel. This is especially important as the usbip modules the userspace tools rely on have been changed:

linux/drivers/staging/usbip/userspace/libsrc/usbip_common.h
  26/* kernel module names */
  27#define USBIP_CORE_MOD_NAME "usbip-core"
  28#define USBIP_HOST_DRV_NAME "usbip-host"
  29#define USBIP_VHCI_DRV_NAME "vhci_hcd"

The 1.0.7 usbip userspace code instead checks on the old module names (usbip and usbip_common_mod):

root@spug:~/usbip-0.1.7/src# find . -name \*.c -exec grep usbip_common_mod {} \; -print
                err("usbip_common_mod.ko and usbip.ko must be loaded");
./lib/stub_driver.c
                info("load usbip_common_mod.ko and vhci-hcd.ko !");
./lib/vhci_driver.c

Since the ubuntu 12.04 LTS kernel had the following bug fix applied:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/900384

The usbip 0.1.7 package is no longer compatible with the newer kernel module names.

The usbip package should be rebuilt from the new kernel usbip userspace source to regain compatibility.

Cheers,

Doug

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: usbip 0.1.7-3
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
Uname: Linux 3.2.0-24-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Sat May 5 11:12:12 2012
InstallationMedia: Mythbuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
 LANGUAGE=en_AU:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
SourcePackage: usbip
UpgradeStatus: Upgraded to precise on 2012-05-03 (1 days ago)

Revision history for this message
Doug (dscoular) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in usbip (Ubuntu):
status: New → Confirmed
Revision history for this message
Michael Kasprzak (mike-sykhronics) wrote :

This package should probably be removed.

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.