Using usbip to share device

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Using usbip to share device

Postby sthorn » Sat Dec 29, 2012 5:57 pm

Hi,

im using an RPi and would like to share a usb-port with usbip.
The problem im facing is that i can't share the specified port without sharing the NIC and that breaks the purpose.
It only accepts the format "x-y".

Is there any way to tweak the ports somehow?

$this->bbcode_second_pass_code('', '[root@alarmpi ~]# usbip list -l
Local USB devices
=================
- busid 1-1 (0424:9512)
1-1:1.0 -> hub

- busid 1-1.1 (0424:ec00)
1-1.1:1.0 -> smsc95xx

- busid 1-1.3 (048d:1345)
1-1.3:1.0 -> unknown

[root@alarmpi ~]# usbip bind -b 1-1.3
usbip: error: unable to bind device on 1-1.3
')
sthorn
 
Posts: 1
Joined: Sat Dec 29, 2012 5:49 pm

Re: Using usbip to share device

Postby bonasta » Tue Jan 01, 2013 3:55 pm

I'm trying to do the same thing i think - that is exporting USB devices from my PI

You seem to be getting on much better than me....

How did you succeed in compiling the driver modules needed for this to work ?

When i tried running usbipd - that is the server daemon which exports USB devices from the the PI I was asked for some kernel modules which are in the current Debian release but not, as far as I can see in the reduced rasperian release

I think that you need these modules if the PI is to be a client OR if it is to be a server

Richard
bonasta
 
Posts: 2
Joined: Tue Jan 01, 2013 3:47 pm

Re: Using usbip to share device

Postby pepedog » Tue Jan 01, 2013 6:11 pm

What's wrong with arch kernel and firmware? Gone back to our own config now
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Using usbip to share device

Postby bonasta » Wed Jan 02, 2013 11:03 am

I reloaded all from scratch and now i can run usbip by loading it with pacman - so i must have had a corruption when i tried before

providing that usbipd is running - use usbipd -D as root - then I get the following

$ usbip list -l

Local USB devices
=================
- busid 1-1 (0424:9512)
1-1:1.0 -> hub

- busid 1-1.1 (0424:ec00)
1-1.1:1.0 -> smsc95xx

- busid 1-1.2 (046d:c52b)
1-1.2:1.0 -> usbhid
1-1.2:1.1 -> usbhid
1-1.2:1.2 -> usbhid

- busid 1-1.3 (058f:6366)
1-1.3:1.0 -> usbip-host

the last in the list is the device i wish to export so doing

usbip bind -b 1-1.3

gives

bind device on busid 1-1.3: complete

doing

usbip list -r localhost

gives

Exportable USB devices
======================
- localhost
1-1.3: Alcor Micro Corp. : Multi Flash Reader (058f:6366)
: /sys/devices/platform/bcm2708_usb/usb1/1-1/1-1.3
: (Defined at Interface level) (00/00/00)
: 0 - Mass Storage / SCSI / Bulk-Only (08/06/50)

HOWEVER

attempts to use this exported devices from either windows or Debian do not work - the connection is made but there is an error
bonasta
 
Posts: 2
Joined: Tue Jan 01, 2013 3:47 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 2 guests

cron