Qemu doesn't work with gadgetfs

Visti Andresen talpa at galnet.dk
Thu Jul 19 09:39:47 CEST 2007

On Wed, 18 Jul 2007 23:34:44 +0200
Ingmar RIeger <openmoko at ingmars-bastelecke.net> wrote:

> Hello,
> I have the following problem: I installed qemu with gadgetfs like it's
> described in the Openmoko-Wiki (http://wiki.openmoko.org/wiki/Qemu). If
> I try to start Qemu I get the following Warning:
> Warning: could not find USB gadgetfs
> To start Qemu I'm using a little Shell-Script I programmed to automatise
> the steps which are described in the wiki. Heres the Script:
> sudo /bin/bash -c "modprobe dummy_hcd; modprobe gadgetfs; modprobe
> usbnet; modprobe cdc_ether; modprobe gadgetfs default_uid=1000; mkdir
> -p /dev/gadget"
> mount /dev/gadget
> cd /home/MYHOMEDIR/openmoko/qemu-neo1973
> && ./arm-softmmu/qemu-system-arm -M neo -m 130 -mtdblock
> openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb
> -usbgadget -show-cursor -localtime -usbdevice keyboard
> (END of the Script)
> After Qemu failed I checked the Kernel-Modules with lsmod and all are
> loaded.
> I also checked /devgadgetfs with ls -l /dev/gadget/
> insgesamt 0
> -rw------- 1 root root 0 2007-07-18 23:21 dummy_udc
> Does anybody know why Qemu can't find the gadgetfs?

I just checked my /dev/gadget, the ownership of your /dev/gadget/dummy_udc
shouldn't be root 

ls -l /dev/gadget
total 0
-rw------- 1 talpa root 0 2007-07-19 09:23 dummy_udc

(after I do a usb_add gadget:1 inside qemu I also get lots of
/dev/gadget/ep* entries with the same set of permissions)

I must admit I never did use modprobe to insert the modules in my kernel
(I used a Debian tool? modconf, that ensures that the modules get loaded 
 each time the machine is bootet)
But modprobe should work just fine....

btw. I have noticed that modprobe dos not complain if the module is already 
loaded, perhaps gadgetfs was already loaded (without default_uid=1000)
when you issued the command?

More information about the openmoko-devel mailing list