9

I am trying to run Yocto Image in qemu on my Ubuntu laptop with the following command.

qemu-system-arm -M overo -m 256 -sd ./test.img -clock unix -serial stdio -device usb-mouse -device usb-kbd

Qemu works fine and the image is booted pretty clean, but I am unable to use my keyboard and Mouse. On any key press I get this warning.

usb-kbd: warning: key event queue full

Any workaround for this unresponsive keyboard?

3 Answers 3

9

The problem was, I need to specify USB bus number with device number for USB Pass-Through. Get the list of USB's by this command lsusb and it will list them as following:

enter image description here

My keyboard bus number is 002 and address is 001. So, change the command based on the device number and address. So, my command will be as follows:

qemu-system-arm -M overo -m 256 -sd ./test.img -clock unix -serial stdio -usb -device usb-host,hostbus=2,hostaddr=1

You need to add this line -usb -device usb-host,hostbus=2,hostaddr=1 based on the device number and address. To get cursor pointer working add -show-cursor as specified by here

1
  • how do you know is address=001, I see Bus 002 Device 003, no addresses... :( Jan 15, 2021 at 1:34
4

Add -show-cursor argument to your command.

i.e qemu-system-arm -M overo -m 256 -sd ./test.img -clock unix -serial stdio -device usb-mouse -device usb-kbd -show-cursor

That will emulate your cursor pointer

1
  • 1
    This works but I need to get my keyboard responsive. mouse pointer is emulating well but not keyboard. I am using console-image, so there's no use with mouse actually. Any idea how to get keyboard responsive? Oct 30, 2013 at 9:01
2

I had the same problem, installing os x 10.0 and the keyboard stopped working, on installing os x 10.1 no mouse even, but after removing the following entries I got it to work (OS X gave me a hint saying USB error at start up in verbose mode)

-device usb-mouse -device usb-kbd
1
  • I found I had to put in those entries just to get past the "press these keys" bit on first boot. Nov 25, 2018 at 22:06

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

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.