FreeBSD 6.0 on Pegasos/ODW
Matt Sealey
matt at genesi-usa.com
Wed Jun 28 07:32:42 UTC 2006
> -----Original Message-----
> From: Peter Grehan [mailto:grehan at freebsd.org]
> Sent: Tuesday, June 27, 2006 2:51 PM
> To: matt at genesi-usa.com
> Cc: freebsd-ppc at freebsd.org
> Subject: Re: FreeBSD 6.0 on Pegasos/ODW
>
> >> Is there a serial port on the Pegasos ?
> >
> > Yep. Standard PC serial UART, at the standard PC IO addresses.
>
> It should be possible to get the uart(4) driver to use this
> but it will take some work.
Would it?
It's present in OpenFirmware too, in all the places it should be
(/pci/isa/serial at 2F8 or something, if you set the output to serial
it should be there too, but of course then stdout is serial and
the code below is going to fail :)
Anyway. I am going to attempt to find a Mac I can start building
things on. I always wondered how on earth I could get a FreeBSD
or NetBSD port going when I need a working port on the same platform
to do it. I don't even have a PC I can shanghai for the task right
now.
Do they run in PearPC or so?
> The framebuffer console makes some assumptions:
>
> - the framebuffer is linear
> - it is set up by the firmware with a 1:1 virt-phys mapping
> so it can be BAT-mapped later
> - the depth must be 8 or 32 (16 not supported)
> - it can be located in the openfirmware tree with:
>
> chosen = OF_finddevice("/chosen");
> OF_getprop(chosen, "stdout", &stdout, sizeof(stdout));
> node = OF_instance_to_package(stdout);
> OF_getprop(node, "device_type", type, sizeof(type));
> if (strcmp(type, "display") != 0)
> return (0);
>
> ... and the node must have height, width, linebytes and
> address properties.
That's all present.
What about a text mode (just using stdout to print strings)?
--
Matt Sealey <matt at genesi-usa.com>
Manager, Genesi, Developer Relations
More information about the freebsd-ppc
mailing list