鼠标和键盘不能在beemboard的qemu仿真中使用最新的angstrom图像

时间:2013-10-21 06:52:32

标签: linux qemu beagleboard angstrom-linux

我试图在我的Ubuntu 12.04笔记本电脑上为qemu中的beaglexm模拟一个埃图像。在新窗口中,映像启动并自动登录到GNOME shell。但键盘和鼠标仍然没有反应。

我给出了以下命令:

qemu-system-arm -M beaglexm -m 1024 -sd Angstrom-TI-GNOME-image-eglibc-ipk-v2012.01-core-beagleboard-2012.01.11.img -clock unix -serial stdio -device usb-mouse -device usb-kbd -net nic -net user,hostfwd=::2222-:22

随着仿真的开始,在父终端上生成以下日志

Warning: vlan 0 with no nics
Warning: requested NIC (anonymous, model unspecified) was not created (not supported by this machine?)
U-Boot SPL 2011.12-00006-gb1fd369 (Dec 30 2011 - 09:48:45)
OMAP SD/MMC: 0
reading u-boot.img
.
U-Boot 2011.12-00006-gb1fd369 (Dec 30 2011 - 09:48:45)
OMAP36XX/37XX-GP ES1.1, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz
OMAP3 Beagle board + LPDDR/NAND
I2C:   ready
DRAM:  512 MiB
NAND:  256 MiB
MMC:   OMAP SD/MMC: 0
*** Warning - bad CRC, using default environment
.
ERROR : Unsupport USB mode
Check that mini-B USB cable is attached to the device
In:    serial
Out:   serial
Err:   serial
Beagle xM Rev A
No EEPROM on expansion board
No EEPROM on expansion board
Die ID #51454d5551454d555400000051454d55
Net:   Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot:  0
The user button is currently NOT pressed.
SD/MMC found on device 0
reading uEnv.txt
.
13 bytes read
Loaded environment from uEnv.txt
Importing environment from mmc ...
Loading file "/boot/uImage" from mmc device 0:2 (xxa2)
3372316 bytes read
Booting from mmc ...
## Booting kernel from Legacy Image at 80200000 ...
   Image Name:   Angstrom/3.0.14/beagleboard
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3372252 Bytes = 3.2 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
.
Starting kernel ...
.
Uncompressing Linux... done, booting the kernel.
omap2_inth_read: Bad register 0x000020
omap_i2c_write: Bad register 0x0000d0
omap_i2c_write: Bad register 0x0000d0
omap_i2c_write: Bad register 0x0000d0
omap_i2c_write: Bad register 0x0000d0
omap_i2c_write: Bad register 0x0000d0

图像完全启动到shell后,按键没有响应但在父终端中记录以下内容:

usb-kbd: warning: key event queue full

我通过从头开始构建最新的linaro-qemu尝试了here给出的解决方案,但结果相同。

此外,我无法进入此运行图像。我发出了以下命令

ssh -p 2222 root@localhost

它只是拒绝连接

1 个答案:

答案 0 :(得分:1)

键盘和鼠标无响应的原因是,您需要指定主机的USB总线编号以及USB Pass-Through的设备编号。

$ lsusb enter image description here

我的键盘总线编号为002,地址为001.因此,请根据您的设备编号和地址更改命令。

假设键盘编号和地址相同,您的命令如下:

qemu-system-arm -M beaglexm -m 1024 -sd Angstrom-TI-GNOME-image-eglibc-ipk-v2012.01-core-beagleboard-2012.01.11.img -clock unix -serial stdio -serial stdio -usb -device usb-host,hostbus=2,hostaddr=1

以与键盘相同的方式添加鼠标。如果没有光标指针,您可以将-show-cursor添加到命令中。