dhruvvyas90 / qemu-rpi-kernel

Qemu kernel for emulating Rpi on QEMU
2.05k stars 362 forks source link

Unable to access GUI #44

Closed securigeek closed 6 years ago

securigeek commented 7 years ago

Thank you very much for your efforts . I have a small issue while installing the QEMU PI , actually it gets launched be the following command and I get the welcome screen and all :

qemu-system-arm -kernel ~/qemu_vms/qemu-rpi-kernel/kernel-qemu-4.4.21-jessie -cpu arm1176 -m 256 -M versatilepb -serial stdio -append "root=/dev/sda2 rootfstype=ext4 rw" -hda ~/qemu_vms/2017-04-10-raspbian-jessie.img -redir tcp:5022::22 -no-reboot`

but I cannot move the mouse inside or the arrow buttons doesn't work either. I highly appreciate your help on this. I am trying to learn ARM processor coding but this is a small bump that I am unable to bypass.

guysoft commented 6 years ago

Hey, So I tested it here and it works kernel-qemu-4.4.34-jessie and latest stretch:

sudo apt-get install qemu git util-linux
git clone https://github.com/guysoft/CustomPiOS.git
wget https://downloads.raspberrypi.org/raspbian/images/raspbian-2017-12-01/2017-11-29-raspbian-stretch.zip
./CustomPiOS/src/qemu_boot.sh ./2017-11-29-raspbian-stretch.zip

screenshot_20180121_184151

dhruvvyas90 commented 6 years ago

As per previous comment, it should work.

duanev commented 2 years ago

My experience with 2017-04-10-raspbian-jessie.img is that the qemu graphic window is used as the system console, but it did not launch the desktop - it gave a text login instead - which was fine for me. Perhaps 2017-12-01 defaults to a desktop?

Anyway, I wanted to use the qemu serial emulator for the system console (to eliminate the need for both the graphic window and the network/sshd setup). I found that with 2017-04-10-raspbian-jessie.img the following qemu command line works:

$ qemu-system-arm -kernel kernel-qemu-4.4.34-jessie -cpu arm1176 -m 256 -M versatilepb -serial mon:stdio -nographic -append "root=/dev/sda2 rootfstype=ext4 rw console=ttyAMA0" -hda 2017-04-10-raspbian-jessie-lite.qcow2 -nic none -no-reboot

login: pi / raspberry

$ stty rows 80 cols 120       (if your term is 80x120)
$ sudo -i
# dpkg-reconfigure locales    (to fix your keyboard - be patient :)
# reboot