Qemu doesn't work with gadgetfs

Ingmar RIeger openmoko at ingmars-bastelecke.net
Mon Jul 23 22:29:49 CEST 2007


Helo,

thanks for your tips. I tried it and here are my resultst step by step.

> $ 1) Reboot the computer.
Yes, I did.

> $ 2) check dmesg output "dmesg | tail -30" and you should see some
messages
> about finding USB devices.
Yes, there are some messages. Here is the output of "dmesg | tail -30 |
grep usb":
myuser at laptop:~$ dmesg | tail -30 | grep usb
[   49.735491] usb 2-2: USB disconnect, address 4
[   49.975376] usb 2-2: new low speed USB device using uhci_hcd and
address 5
[   50.152854] usb 2-2: configuration #1 chosen from 1 choice
[   50.176758] drivers/usb/input/ati_remote.c: Weird data, len=1 ff 00
00 00 00 00 ...
[  288.284000] usb 2-2: USB disconnect, address 5
[  288.528000] usb 2-2: new low speed USB device using uhci_hcd and
address 6
[  288.704000] usb 2-2: configuration #1 chosen from 1 choice
[  288.732000] drivers/usb/input/ati_remote.c: Weird data, len=1 ff 00
00 00 00 00 ...

> $ 3) do the modprobe, create /dev/gadget, and mount it.
Done this without errors.

> $ 4) run QEMU
The same as every try before.

myuser at laptop:~$ cd /home/myuser/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
Could not configure '/dev/rtc' to have a 1024 Hz timer. This is not a
fatal
error, but for better emulation accuracy either use a 2.6 host Linux
kernel or
type 'echo 1024 > /proc/sys/dev/rtc/max-user-freq' as root.
Warning: could not find USB gadgetfs
neo_gsm_switch: GSM disabled.
pcf_write: charging in Qualification Mode.
pcf_write: charge voltage 4.20V.
neo_lcd_rst_switch: LCD reset.
jbt6k74_command: Display on.
neo_vib_switch: Buzz, buzz.
neo_vib_switch: Vibrator stopped.
neo_bl_switch: LCD Backlight now on.
s3c_timers_write: Bad register 0x40
neo_bl_intensity: LCD Backlight now at 20/64.
jbt6k74_command: Display on.
s3c_adc_write: Bad register 0x8
s3c_mmci_write: Bad register 0x38

> # 5) use Ctl+Alt+2 to switch to QEMU Monitor
> # 6) "info usbslave" should display that device 1 is the CDC Network
Yes, it is.

> # 7) "usb_add gadget:1" This should work silently in the monitor and
NOT
> display an error message on the QEMU stream output to the desktop.
It displays the following Error:
Could not add USB device ´gadget:1´

The same as before. And of course it's because qemu doesn't find the
gadgetfs

> # 8) Ctl+Alt+1 to switch back to normal QEMU display
> $ 9) use ifconfig to set the usb0 device parameters
This isn't posible because there is no interface.

I've done all things I known I've to do to get it working but it doesn't
work. Do you know why that seems to be so difficult? Do you known what I
could do else? Or may it be a problem of Ubuntu? (I don't think but
maybe it is?)

-- 
Kind regards,
Ingmar Rieger

openmoko at ingmars-bastelecke.net




More information about the openmoko-devel mailing list