2

I am trying to turn the Raspberry Pi into a USB controller. My kernel is:

3.6.11+ #452 PREEMPT Fri May 17 14:25:40 BST 2013 armv6l G

I tried the steps described in the question How do I make my Raspberry Pi act as a wireless USB controller?, but it fails in the second step. That is, I ran sudo modprobe usbip-host, but there does not seem to be a usbip-host module on the system.

What am I doing wrong?

1
  • What distribution?
    – Lekensteyn
    May 21, 2013 at 21:51

2 Answers 2

1

Did you try this: http://www.raspberrypi.org/phpBB3/viewtopic.php?p=121691#p121691 (I'm busy downloading the kernel.... so I can't confirm the methods work).

1
  • 1
    The answer should be more descriptive of the process in case the link material is moved or deleted.
    – Tevo D
    Jun 19, 2013 at 14:57
1

Assuming you are using Raspbian:

What appears to be happening is that the .config file when building raspbian's kernel and modules assigns 'y' values for the variables:

CONFIG_USBIP_CORE
CONFIG_USBIP_VHCI_HCD
CONFIG_USBIP_HOST
CONFIG_USBIP_DEBUG

.... which supposedly means to integrate them into the kernel. Well, this either doesn't end up happening or usbip insists on using the modules anyway.

Long story short, what sort-of worked for me was to re-build the kernel and modules and re-install them: http://www.raspberrypi.org/documentation/linux/kernel/building.md

... BUT before running the first 'make', open the .config file in the working directory, look for those variables mentioned above (they're clumped together) and set them to 'm' such that:

CONFIG_USBIP_CORE=m
CONFIG_USBIP_VHCI_HCD=m
CONFIG_USBIP_HOST=m
CONFIG_USBIP_DEBUG=n

...then run 'make', 'make modules', etc.

The first 'make' takes about 10 hours.

If luck is on your side, you might be able to build and install just the modules which would be 'make modules' and 'make modules_install.' (don't copy the image) however if you're not lucky, the version of the modules and the version of your running kernel will not be the same and usbip likely will crash your kernel.

When changing settings for modules, the kernel image build (first 'make') doesn't have to be re-run, thankfully.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.