Bug 734752

Summary: usbipd needs other usbip kernel modules than delivered with openSUSE 12.1
Product: [openSUSE] openSUSE 12.1 Reporter: Tob Sch <Tob_Sch>
Component: BasesystemAssignee: david chang <dchang>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: erwin.vandevelde, forgotten_ToNzP6iHCC, jcheung
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 12.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Tob Sch 2011-12-04 17:33:59 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0

Trying to start usbipd:

mylaptop:~ # uname -a
Linux mylaptop 3.1.0-1.2-desktop #1 SMP PREEMPT Thu Nov 3 14:45:45 UTC 2011 (187dde0) x86_64 x86_64 x86_64 GNU/Linux
mylaptop:~ # ll /lib/modules/3.1.0-1.2-desktop/kernel/drivers/staging/usbip
insgesamt 168
-rw-r--r-- 1 root root 56248  5. Nov 13:26 usbip-core.ko
-rw-r--r-- 1 root root 48840  5. Nov 13:26 usbip-host.ko
-rw-r--r-- 1 root root 63968  5. Nov 13:26 vhci-hcd.ko
mylaptop:~ # usbipd -D
usbip err: stub_driver.c:  33 (open_sysfs_stub_driver) usbip_common_mod.ko and usbip.ko must be loaded

** ERROR **: driver open failed
Trace/Breakpoint ausgelöst





"usbip -a" isn't working, too.





By the way, the usbip service files for startup are also missing.


Reproducible: Always

Steps to Reproduce:
1. usbipd -D
2.
3.
Comment 3 Forgotten User ToNzP6iHCC 2012-04-07 23:56:03 UTC
Actually, it's the other way around - the kernel modules are updated in 12.1, and the userspace package is *ancient.*  You can get the correct userspace tools by installing the kernel-source package in 12.1, then going to /usr/src/linux/drivers/staging/usbip/userspace, running ./autogen.sh, ./configure, make, make install.  You might want to uninstall the usbip package if you do this so that it picks the correct binaries.  You'll need the usual C/C++ compiler and tools to build, plus sysfsutils-devel.  I'm working on getting an updated package built out on my opensuse home project (home:nick_at_seakr:misc).  The version of userspace tools included in 12.1 is 0.1.6 - the version in the kernel tree is labeled 1.1.1.

SuSE folks, please update ASAP - the usbip package included in 12.1 is *worthless.*
Comment 7 david chang 2012-04-16 10:05:58 UTC
Hi,

I had updated usbip package and submitted to factory repository.

https://build.opensuse.org/package/binaries?package=usbip&project=openSUSE%3AFactory&repository=standard

Please kindly have a try the package, thanks!
Comment 8 Forgotten User ToNzP6iHCC 2012-04-17 21:03:27 UTC
Package works great on 12.1 - I assume it will be back-ported?
Comment 9 david chang 2012-04-18 02:53:09 UTC
(In reply to comment #8)
> Package works great on 12.1 - I assume it will be back-ported?

Hi,
Thanks for your kindly reply.

Do you mean will usbip be updated on 12.1 later?
If yes, the updated usbip package was already put in factory repository, in my opinion it will be included in openSUSE later version.
Comment 10 Forgotten User ToNzP6iHCC 2012-04-18 14:47:22 UTC
I wanted to make sure because I understand that the factory repository is for future openSuSE releases - e.g. 12.2, 12.3, etc.  I want to make sure that this bug gets fixed for openSuSE 12.1 - the current version of the package in 12.1 is completely, 100% useless, so, in order for this functionality to work properly in 12.1 there needs to be an update for 12.1 to the newer version of the package.  I just want to verify that that is going to be the case, as users should not be forced to update to a later openSuSE release just to get this type of bug fixed.
Comment 11 david chang 2012-04-19 06:46:04 UTC
I got your point and agree with you.
The usbip backport to 12.1 is one of my todo item, thanks!
Comment 12 david chang 2012-12-19 10:28:34 UTC
mr request id: 145859
Comment 13 Bernhard Wiedemann 2012-12-19 11:00:12 UTC
This is an autogenerated message for OBS integration:
This bug (734752) was mentioned in
https://build.opensuse.org/request/show/145859 Maintenance /
Comment 14 Benjamin Brunner 2012-12-19 12:50:27 UTC
Hi David, thanks for the submission. I accepted it and started an update, see openSUSE:Maintenance:1185.
Comment 15 Benjamin Brunner 2012-12-27 12:50:22 UTC
Update released for 12.1. Resolved fixed.
Comment 16 Swamp Workflow Management 2012-12-27 13:10:17 UTC
openSUSE-RU-2012:1693-1: An update that has one recommended fix can now be installed.

Category: recommended (low)
Bug References: 734752
CVE References: 
Sources used:
openSUSE 12.1 (src):    usbip-1.1.1-16.4.1
Comment 17 Tob Sch 2012-12-27 18:38:02 UTC
Thanks, "usbipd -D" works ;-)

But what happened with the program to export the usb devices?
The executable "usbip_bind_driver" is missing in the rpm (same happened with the package for openSUSE 12.2) :-(



mylaptop:/tmp # rpm -qlp usbip-0.1.6-16.1.3.x86_64.rpm
/usr/bin/bind_driver
/usr/bin/usbaid
/usr/bin/usbip
/usr/bin/usbipd
/usr/lib64/libusbip.so.0
/usr/lib64/libusbip.so.0.0.1
/usr/share/usbip
/usr/share/usbip/usb.ids
mylaptop:/tmp # rpm -ql usbip-1.1.1-16.4.1.x86_64
/usr/lib64/libusbip.so.0
/usr/lib64/libusbip.so.0.0.1
/usr/sbin/usbip
/usr/sbin/usbipd
/usr/share/man/man8
/usr/share/man/man8/usbip.8.gz
/usr/share/man/man8/usbip_bind_driver.8.gz
/usr/share/man/man8/usbipd.8.gz
Comment 18 david chang 2012-12-28 03:30:25 UTC
(In reply to comment #17)
> Thanks, "usbipd -D" works ;-)
> 
> But what happened with the program to export the usb devices?
> The executable "usbip_bind_driver" is missing in the rpm (same happened with
> the package for openSUSE 12.2) :-(
> 
Hi,

Thank you for your testing and report.

The usbip_bind_driver had been removed from usbip package
for a while. Some patches has not been merged yet, but
soon.

Please try the following command:
# usbip
usage: usbip [--debug] [--log] [version]
             [help] <command> <args>

  attach     Attach a remote USB device
  detach     Detach a remote USB device
  list       List exportable or local USB devices
  bind       Bind device to usbip-host.ko
  unbind     Unbind device from usbip-host.ko

http://kernel.org/doc/readme/drivers-staging-usbip-userspace-README