[openfirmware] Troubleshooting VGA under qemu?
James Cameron
quozl at laptop.org
Wed Sep 30 12:38:43 CET 2015
On Wed, Sep 30, 2015 at 10:04:36AM +0000, Marcin Cieslak wrote:
> 1) Would that be possible to have a dual-console mode (similar to
> what FreeBSD early bootloader has) so that both vga and serial
> console are active? ofw prints messages on the serial console even
> if disabled, only input is not working.
I'm surprised serial console doesn't take input, but I haven't used
OFW for QEMU for a long time. Add ofw/core/muxdev.fth to build?
> 2) Initially I thought ofw is completely dead and I have run it
> under gdb, only to figure out I am running in the Forth inner
> interpreter:
>
> 0xff9fc000: lods %ds:(%esi),%eax
> => 0xff9fc001: jmp *(%eax)
>
> Is there any way to have "symbol table" to map word addresses to the
> word names? (I figured out I can tick the word to get its address).
Nothing obvious springs to mind.
A variant of "words" that prints addresses?
A replacement of ":" that prints name and address during build?
On Wed, Sep 30, 2015 at 11:53:46AM +0000, Marcin Cieslak wrote:
> So, I got it working.
>
> The solution was:
>
> Index: cpu/x86/pc/emu/emuofw.bth
> ===================================================================
> --- cpu/x86/pc/emu/emuofw.bth (wersja 3782)
> +++ cpu/x86/pc/emu/emuofw.bth (kopia robocza)
> @@ -25,6 +25,7 @@
> in: ${BP}/dev/video/build/vmsvga.fc
> in: ${BP}/dev/ne2000/build/ne2kpci.fc
> in: ${BP}/dev/amd79970/build/vmlance.fc
> +in: ${BP}/dev/video/build/bga.fc
> \ in: ${BP}/dev/video/build/video.fc
> in: ${BP}/cpu/x86/pc/biosload/linux.fth
>
> @@ -58,6 +59,7 @@
> \ Just use a driver targeted at the specific chipset that QEMU emulates
> " ${BP}/dev/video/build/cirrus.fc" " pci1013,b8" $add-deflated-dropin
> " ${BP}/dev/video/build/vmsvga.fc" " pci15ad,405" $add-deflated-dropin
> + " ${BP}/dev/video/build/bga.fc" " pci1234,1111" $add-deflated-dropin
>
> " ${BP}/dev/ne2000/build/ne2kpci.fc" " pci10ec,8029" $add-deflated-dropin
> " ${BP}/dev/amd79970/build/vmlance.fc" " pci1022,2000" $add-deflated-dropin
>
>
> Newer QEMU offers Bochs VGA adapter
Thanks. Want me to commit?
Do you happen to know which version of QEMU switched to Bochs?
--
James Cameron
http://quozl.linux.org.au/
More information about the openfirmware
mailing list