1

我试图在我的 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尝试了这里给出的解决方案,但结果相同。

我也无法 ssh 进入这个正在运行的图像。我发出了以下命令

ssh -p 2222 root@localhost

它只是拒绝连接

4

1 回答 1

1

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

$ lsusb 在此处输入图像描述

我的键盘总线号是 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到您的命令中。

于 2013-10-30T09:57:49.407 回答