From owner-freebsd-ppc@FreeBSD.ORG Wed Jun 28 18:02:49 2006 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16BC516A511 for ; Wed, 28 Jun 2006 18:02:49 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id B09B4445FB for ; Wed, 28 Jun 2006 17:35:42 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [192.168.0.14] (dsl-63-249-90-35.cruzio.com [63.249.90.35]) by dommail.onthenet.com.au (MOS 3.5.7-GR) with ESMTP id BXS51028 (AUTH peterg@ptree32.com.au); Thu, 29 Jun 2006 03:35:35 +1000 (EST) Message-ID: <44A2BDE7.2070604@freebsd.org> Date: Wed, 28 Jun 2006 10:35:35 -0700 From: Peter Grehan User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: matt@genesi-usa.com References: <007701c69a85$08ec9c90$99dfdfdf@bakuhatsu.net> In-Reply-To: <007701c69a85$08ec9c90$99dfdfdf@bakuhatsu.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: FreeBSD 6.0 on Pegasos/ODW X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: grehan@freebsd.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2006 18:02:49 -0000 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.