On 28/07/14 15:33, Artyom Tarasenko wrote:
> On Sun, Jul 27, 2014 at 10:44 PM, Mark Cave-Ayland
> <mark.cave-ayland(a)ilande.co.uk> wrote:
>> At the moment we are probably closest to an Ultra250 with an UltraSPARC-IIi
>> processor and PCI bus.
> Are we? I thought QEMU was targeting Ultra-5. Both Ultra-5 and
> Enterpise-250 have different serial ports, but Enterprise-250 may have
> multiple CPUs, whereas QEMU can't.
Yeah, it was something to do with the serial ports, although I suspect
given the hacking over the past weekend that Ultra5 is probably still
>> This property is checked by NetBSD during boot.
> Does it have to be something existing? Since QEMU doesn't exactly
> match any real machine, I'd prefer something like "QEMU,sun4u", but
> maybe it's personal.
I'm not exactly sure? But sure, at the very least we should have
something there to prevent errors on the console during boot.
This is my current patch series for getting the various *BSDs to boot under
QEMU SPARC64. NetBSD, in comparison to Linux, will stricly parse the device tree
in order to ascertain information such as addresses and interrupt mappings and
for devices, and so proves to be a very useful test harness for ensuring that
the device tree is consistent.
With a minor patch applied to QEMU git, NetBSD will now boot all the way
through to IDE detection; OpenBSD is still unchanged from my last patchset due
to a missing interrupt property which I can't yet locate, and FreeBSD will now
finally start to boot but fails during psycho detection due to an (undocumented?)
TSR register not being initialised by OpenBIOS.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland(a)ilande.co.uk>
Mark Cave-Ayland (6):
pci.c: add generation of pci node available property
pc_serial.c: move address initialisation to a separate init word
pc_serial.c: don't add address property to SPARC64 serial ports
SPARC64: build ebus ranges property from PCI BARs
SPARC64: switch to using interrupt-map property for interrupt pins
SPARC64: add model to hwdefs array and set it to a suitable value
openbios-devel/arch/sparc64/openbios.c | 17 +++++-
openbios-devel/drivers/pc_serial.c | 23 ++++----
openbios-devel/drivers/pci.c | 101 ++++++++++++++++++++++++--------
3 files changed, 105 insertions(+), 36 deletions(-)