Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jun 2006 02:32:35 -0500
From:      "Matt Sealey" <matt@genesi-usa.com>
To:        "'Peter Grehan'" <grehan@freebsd.org>
Cc:        freebsd-ppc@freebsd.org
Subject:   RE: FreeBSD 6.0 on Pegasos/ODW
Message-ID:  <007701c69a85$08ec9c90$99dfdfdf@bakuhatsu.net>
In-Reply-To: <44A18C3E.6090507@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
 

> -----Original Message-----
> From: Peter Grehan [mailto:grehan@freebsd.org] 
> Sent: Tuesday, June 27, 2006 2:51 PM
> To: matt@genesi-usa.com
> Cc: freebsd-ppc@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@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@genesi-usa.com>
Manager, Genesi, Developer Relations




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?007701c69a85$08ec9c90$99dfdfdf>