On Mon, May 21, 2018 at 9:32 AM, Peter Maydell <[email protected]> wrote: > On 21 May 2018 at 00:26, Ciro Santilli <[email protected]> wrote: >> Do you know which options I might need to add to my QEMU -M virt >> command to make it open a graphic window (and hopefully show the >> CONFIG_LOGO penguin)? >> >> For example on QEMU v2.12.0, the following boots fine but does not >> open an SDL graphical window like an analogous x86 command would: >> >> qemu-system-aarch64 \ >> -serial mon:stdio \ >> -M virt \ >> -append 'root=/dev/vda console=ttyAMA0' \ >> -cpu cortex-a57 \ >> -kernel Image \ >> -drive file='rootfs.ext2.qcow2,if=virtio,format=qcow2' \ > > I'm guessing this command line is truncated. In general assuming
Hmm, I have just double checked, and that was my full exact command, there was no -nographic option. Then I noticed that it behaves differently between my Ubuntu 18.04 vs Ubuntu 16.04 machines: on 18.04, the SDL window does not open for aarch64, only for x86. Then, if I connect with -vnc :0 instead, I observe on both Ubuntus: * aarch64 ** with -serial mon:stdio: GUI has only parallel, ctrl + alt + n does not switch to any other, monitor and serial on host terminal ** without -serial mon:stdio: GUI has 3 windows: serial, parallel and monitor, but no framebuffer * x86_64 ** with -serial mon:stdio: GUI has two windows, framebuffer and parallel, serial and monitor on host terminal ** without -serial mon:stdio: GUI has 4 views: framebuffer, serial, parallel and monitor Could this be because the kernel is not configured properly, so QEMU does not open the framebuffer all? qemu master at: 4f50c1673a89b07f376ce5c42d22d79a79cd466d test scripts: * https://github.com/cirosantilli/qemu-test/blob/b3c9168749929529dd789ef509f9dd51812f682c/aarch64/min * https://github.com/cirosantilli/qemu-test/blob/b3c9168749929529dd789ef509f9dd51812f682c/aarch64/min Configure command: ./configure \ --enable-debug \ --enable-trace-backends=simple \ --target-list=x86_64-softmmu,arm-softmmu,aarch64-softmmu \ --enable-sdl \ --with-sdlabi=2.0 \ ; > you compiled QEMU with graphics support you'll get a graphical > window unless you specifically turn it off with -nographics or > -display none or similar. (For instance just "qemu-system-aarch64 > -M virt" will bring up a gtk window with the monitor in it, > though it's not a very useful command line for actually doing > anything.) > > I haven't used SDL in a long time. > >>> I've never tried to use graphics with the virt board (having >>> no need for it), but I believe it ought to work. Feel free >>> to experiment and update the wiki page accordingly. >>> >> >> Can anyone create an account to edit the wiki nowadays? I've never >> been able to find the create account button and thought it was invite >> only. > > It's invite only but only in the sense that we don't have a > self-service page for account creation, because that was > heavily abused by spammers. Any actual human who posts to > qemu-devel asking for an account can have one. > > thanks > -- PMM
