On Thursday 06 January 2005 12:29 pm, you wrote: > Hello > I'm a french student, (engineer school). I work on a very interessant > project. We want to develop a USB kernel driver for a joystick. In order > to test our driver, we'd want to run it in user space (with UML and > UML_HCD), doing this way we are sure not to crash the host kernel... > We success to compile a 2.4.18 kernel with your patch, but the uml_hcd > module don't seem to work (we don't see anything in /proc/bus/usb, when > usbdevfs in mounted). > Is there any developement on this driver today? > Is there a way to port this driver for the 2.6 kernel ? > Does it exist a way to run a device driver in user space (emulation ?) > > Thank you in advance > your sincerelly > > Hubert FONGARNAND > CPE Student It should still work what was your host kernel (the one you were running UML on top of)
I think that 2.4.19-39um as a guest kernel also worked but about 2.4.20 Greg Kroh back-ported the 2.5/2.6 USB structures to 2.4 and broke the umusb-2.4.19-39 patch. Later 2.4.19-XXum versions should also work but are untested. From the web page (which seems to be down?) Operation of the user mode linux host controller requires that the host system has /proc/bus/usb mounted and writable by the user running the user mode linux kernel. Usually when I had problems it was that user mcmechan could not write to the /proc/bus/usb files or that the host kernel driver had found a driver for the device on the host kernel which caused the host USB driver to run not the UML USB driver As to porting the uml-hcd to 2.6 it should be possible but there has not been that much interest in running USB from UML though it seems to be picking up again. As I recall it will enumerate the devices on the host but has a problem creating the /proc/bus/usb files in the UML The proper solution was to setup a new style HCD in the 2.6 tree but UML is rather different than USB expected e.g. no DMA and at the time creating the absent DMA infrastructure seemed like much work to hit a moving target. As to emulation: UML is my preferred way to work on USB or I would have done it differently. VMWARE might have a way to run USB also but I don't remember seeing any last time I looked at the web pages, and it would not help nearly as much for debugging. ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel