Ещё одна строчка, тоже доходит до shell и даже можно дождаться возврата из lsusb:
Код: Выделить всё
cd /y/vb_share/2016-05-27-raspbian-jessie/ && /y/qemu0/arm-softmmu/qemu-system-arm -M raspi2 -kernel kernel7.img -device sd-card,drive=mydrive -drive id=mydrive,if=none,format=raw,file=2016-05-27-raspbian-jessie.img -append "rw earlyprintk loglevel=8 console=ttyAMA0,115200 dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2" -dtb bcm2709-rpi-2-b.dtb -usbdevice mouse -usbdevice keyboard -serial stdio
lsusb пишет:
Код: Выделить всё
root@raspberrypi:~# lsusb
[ 1989.479906] systemd-fsck[245]: fsck.fat 3.0.27 (2014-11-12)
[ 1994.177176] systemd-fsck[245]: /dev/mmcblk0p1: 101 files, 2621/8057 clusters
Bus 001 Device 004: ID 0627:0001 Adomax Technology Co., Ltd
Bus 001 Device 003: ID 0627:0001 Adomax Technology Co., Ltd
Bus 001 Device 002: ID 0409:55aa NEC Corp. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Пытаемся действовать по инструкции с сайта
https://github.com/0xabu/qemu/wiki:
The main focus of this work is supporting Windows on Pi2, but it's also possible to boot a recent version of Raspbian using a command such as:
qemu-system-arm -M raspi2 -kernel raspbian-boot/kernel7.img -sd 2015-09-24-raspbian-jessie.vhd -append "rw earlyprintk loglevel=8 console=ttyAMA0,115200 dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2" -dtb raspbian-boot/bcm2709-rpi-2-b.dtb -usbdevice mouse -usbdevice keyboard -serial stdio
Note that it is necessary to first comment out the contents of /etc/ld.so.preload to avoid executing an unimplemented SETEND instruction. There are also a number of errors and warnings, that I haven't attempted to debug.
Rasberry Pi 1 support is also still present, but has bit-rotted somewhat. It is possible to boot older versions of Raspbian up to 2014-09-09-wheezy, but there is an unresolved issue with interrupt timeouts on the SD card I/O, so it takes a very long time. Newer versions fail to boot entirely due to a kernel-mode setend instruction (apparently introduced by this commit) which qemu does not support.