FreeBSD 6.0 on Pegasos/ODW
Peter Grehan
grehan at freebsd.org
Wed Jun 28 18:02:49 UTC 2006
Hi Matt,
>> 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 :)
That's right. The uart driver requires bus_space to be available, and
i/o ports on ppc are usually set up to be high addresses through the
host-PCI bridge. This mapping would need to be available at boot-time.
I'm guessing it probably is so the code to extract it out of the
OpenFirmware dev tree needs to be put in dev/uart/uart_cpu_powerpc.c.
> 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.
FreeBSD cross-builds nicely so you don't actually need a Mac unless
you want to start doing ports.
> Do they run in PearPC or so?
I had a large patchset for PearPC 2.x but I'm guessing it's well
out-of-date now.
http://people.freebsd.org/~grehan/pearpc.tgz
... for those who are interested.
>> The framebuffer console makes some assumptions:
...
> That's all present.
>
> What about a text mode (just using stdout to print strings)?
It will revert to that if the framebuffer isn't found - looks like
that is what you are getting.
later,
Peter.
More information about the freebsd-ppc
mailing list