From owner-freebsd-ppc@FreeBSD.ORG Wed Jun 28 07:32:42 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 A4D2016A407; Wed, 28 Jun 2006 07:32:42 +0000 (UTC) (envelope-from matt@genesi-usa.com) Received: from mail.genesippc.com (mithrandir.softwarenexus.net [66.98.186.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BE9E44756; Wed, 28 Jun 2006 07:32:42 +0000 (GMT) (envelope-from matt@genesi-usa.com) Received: from p54b0ff10.dip.t-dialin.net ([84.176.255.16] helo=yukito) by mail.genesippc.com with esmtpa (Exim 4.62 (FreeBSD)) (envelope-from ) id 1FvUTZ-000KJh-NV; Wed, 28 Jun 2006 07:28:42 +0000 From: "Matt Sealey" To: "'Peter Grehan'" Date: Wed, 28 Jun 2006 02:32:35 -0500 Organization: Genesi Message-ID: <007701c69a85$08ec9c90$99dfdfdf@bakuhatsu.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcaaIndv9oBuvUb+Sjq1EMYjx3/lgAAYVxjA In-Reply-To: <44A18C3E.6090507@freebsd.org> 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: matt@genesi-usa.com 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 07:32:42 -0000 > -----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 Manager, Genesi, Developer Relations