Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jun 2006 10:35:35 -0700
From:      Peter Grehan <grehan@freebsd.org>
To:        matt@genesi-usa.com
Cc:        freebsd-ppc@freebsd.org
Subject:   Re: FreeBSD 6.0 on Pegasos/ODW
Message-ID:  <44A2BDE7.2070604@freebsd.org>
In-Reply-To: <007701c69a85$08ec9c90$99dfdfdf@bakuhatsu.net>
References:  <007701c69a85$08ec9c90$99dfdfdf@bakuhatsu.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44A2BDE7.2070604>