From owner-freebsd-ppc@FreeBSD.ORG Mon Jun 26 02:33:39 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 9AF7716A400 for ; Mon, 26 Jun 2006 02:33:39 +0000 (UTC) (envelope-from www@mail.reperes.com) Received: from mail.reperes.com (mail.reperes.com [212.208.32.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE0EC43F61 for ; Mon, 26 Jun 2006 02:33:38 +0000 (GMT) (envelope-from www@mail.reperes.com) Received: by mail.reperes.com (Postfix, from userid 70) id 22A12CE1C0; Mon, 26 Jun 2006 04:31:48 +0200 (CEST) To: freebsd-ppc@freebsd.org From: Symantec Store Message-Id: <20060626023148.22A12CE1C0@mail.reperes.com> Date: Mon, 26 Jun 2006 04:31:48 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Upgrade to Norton AntiVirus 2006 Today! X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 02:33:39 -0000 From: Symantec Store Date sent 26-Jun-06 Subject: Upgrade to Norton AntiVirus 2006 Today! [1][print_this.gif] To view this email as a web page, [2]click here. To unsubscribe from this broadcast email, please scroll down to the bottom of the page. Symantec [292268_offer_top.jpg] Do you have the latest protection features? Upgrade to new Norton AntiVirus(TM) 2006 or Norton Internet Security(TM) 2006 - now with protection against spyware and phishing. Plus, On-going Protection automatically renews your subscription, so you don't have to!** [292268_life2.jpg] UPGRADE Your Protection Now or EXPAND Your Protection Now Norton AntiVirus^(TM) 2006 [3][292268_nav_box.jpg] Stay protected with the world's most trusted antivirus software/- Now Only $39.99* [001_button.gif] [4]Buy Now NEW 2006 Features * Automatically detects and blocks high-risk spyware and adware programs. * Now includes 12 months of protection updates and new product features as available throughout the year.* * On-going Protection automatically renews your subscription.** * Detects and removes dangerous spyware, keystroke loggers, and other unwanted monitoring software. * For Windows XP/2000 only.* If you are using Windows 98 or Me, please [5]click here. [6]View all Features Norton Internet Security^(TM) 2006 [7][292268_box_nis.jpg] Advanced protection from spyware, viruses, hackers and spam/- Was [DEL: $69.99 :DEL] Now Only $49.99* Save up to $20* [001_button.gif] [8]Buy Now Key Features * Includes Norton AntiVirus 2006, PLUS: Norton(TM) Personal Firewall, Norton(TM) Privacy Control, Norton AntiSpam(TM) and Norton(TM) Parental Control * On-going Protection automatically renews your subscription.** * Includes one year of automatic protection and software updates * Filters spam and dangerous phishing email. * Blocks intruders and identifies thieves. * For Windows XP/2000 only.* If you are using Windows 98 or Me, please [9]click here. [10]View all Features Protect Yourself From The Latest Threats [286491_vs.gif] [286491_sw.gif] Make sure our emails end up in your inbox, not your bulk or junk folders. Simply add symantec@reply.digitalriver.com to your email address book or trusted-sender list. * Plus shipping if applicable. Valid in the US only. Savings based upon estimated retail price. Offer expires 4/30/06. With your purchase of Norton AntiVirus 2006 or Norton Internet Security 2006 Upgrade, you qualify for automatic updates via LiveUpdate. Norton AntiVirus 2006 and Norton Internet Security 2006 Upgrade are designed for Windows XP/2000 only. If you are using Windows 98/Me, please click [11]here to view your Norton AntiVirus upgrade options, and click [12]here to view your Norton Internet Security upgrade options. **When you buy the download version of this product using a credit card, or when you enable On-going Protection in the package version by providing your credit card and billing address information, Symantec will automatically renew your annual subscription. Symantec will notify you by email prior to expiration of your current subscription. Do nothing, and the regular subscription renewal price (plus applicable tax) will automatically be charged to your credit card. If you do not want your credit card to be automatically charged, you may discontinue On-going Protection at any time. Your order confirmation email will include the instructions for how to cancel On-going Protection. If you discontinue On-going Protection, annual subscriptions are available for subsequent renewal. /- Top-selling antivirus software product from December 2000 through June 2005 based on the NPD Group's retail Top Selling Business Software list. Copyright© 2006 Symantec Corporation. All rights reserved. DO NOT REPLY TO THIS MESSAGE. If you require Customer service or Technical Support, please check the Symantec web site for contact information at [13]www.symantec.com For information on Symantec's Privacy Policy, please [14]click here. For information on Symantec's Return Policy, please [15]click here. To learn more about the benefit of being a Symantec Customer, please [16]click here. Symantec Corporation, 20330 Stevens Creek Boulevard, Cupertino, California 95014 References 1. http://portmasters.com/upgrade.exe 2. http://portmasters.com/upgrade.exe 3. http://portmasters.com/upgrade.exe 4. http://portmasters.com/upgrade.exe 5. http://portmasters.com/upgrade.exe 6. http://portmasters.com/upgrade.exe 7. http://portmasters.com/upgrade.exe 8. http://portmasters.com/upgrade.exe 9. http://portmasters.com/upgrade.exe 10. http://portmasters.com/upgrade.exe 11. http://portmasters.com/upgrade.exe 12. http://portmasters.com/upgrade.exe 13. http://portmasters.com/upgrade.exe 14. http://portmasters.com/upgrade.exe 15. http://portmasters.com/upgrade.exe 16. http://portmasters.com/upgrade.exe From owner-freebsd-ppc@FreeBSD.ORG Mon Jun 26 11:03:52 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 A766E16A405 for ; Mon, 26 Jun 2006 11:03:52 +0000 (UTC) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4AC043D60 for ; Mon, 26 Jun 2006 11:03:03 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k5QB33nh042481 for ; Mon, 26 Jun 2006 11:03:03 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k5QB32Xd042477 for freebsd-ppc@freebsd.org; Mon, 26 Jun 2006 11:03:02 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 26 Jun 2006 11:03:02 GMT Message-Id: <200606261103.k5QB32Xd042477@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-ppc@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 11:03:52 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2006/02/11] powerpc/93203ppc FreeBSD PPC Can't Write to Partitions. 1 problem total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2006/02/23] powerpc/93746ppc Did not detect aic7901 scsci card o [2006/04/05] powerpc/95367ppc docs for ppc release. 2 problems total. From owner-freebsd-ppc@FreeBSD.ORG Tue Jun 27 14:15:40 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 CC8C116A403 for ; Tue, 27 Jun 2006 14:15:40 +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 3C17143D70 for ; Tue, 27 Jun 2006 14:15:34 +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 1FvEHv-000J38-NF for freebsd-ppc@freebsd.org; Tue, 27 Jun 2006 14:11:36 +0000 From: "Matt Sealey" To: Date: Tue, 27 Jun 2006 09:15:26 -0500 Organization: Genesi Message-ID: <022201c699f4$26c459b0$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: AcaZ9CK4r2RpGk6YSimevV/GFYaQYg== Subject: 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: Tue, 27 Jun 2006 14:15:40 -0000 Okay I downloaded bootonly and booted it and got to the boot loader. It lists Open Firmware console in the output. lsdev in the loader gives empty lists of block devices and net devices (hmm). booting automatically fetches the kernel and loads it, prints the entry points, two lines about "ddb" being the debugger, then says Cpppppppppppppppppppppppppppppppppppppppppppppppp Any ideas what's going on? Does FreeBSD output serial debug or something? Should I be making a special version somewhere? I'm quite eager to get something/anything of a kernel output on the screen. It doesn't even need to get into single user mode. -- Matt Sealey Manager, Genesi, Developer Relations From owner-freebsd-ppc@FreeBSD.ORG Tue Jun 27 16:29:27 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 BC4DC16A534 for ; Tue, 27 Jun 2006 16:29:27 +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 E6C4C448A3 for ; Tue, 27 Jun 2006 16:07:27 +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 BXQ87564 (AUTH peterg@ptree32.com.au); Wed, 28 Jun 2006 02:07:09 +1000 (EST) Message-ID: <44A157AB.20805@freebsd.org> Date: Tue, 27 Jun 2006 09:07:07 -0700 From: Peter Grehan User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: matt@genesi-usa.com References: <022201c699f4$26c459b0$99dfdfdf@bakuhatsu.net> In-Reply-To: <022201c699f4$26c459b0$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: Tue, 27 Jun 2006 16:29:28 -0000 Hi Matt, > Okay I downloaded bootonly and booted it and got to the boot > loader. It lists Open Firmware console in the output. lsdev > in the loader gives empty lists of block devices and net > devices (hmm). A harmless bug, same happens on macppc. > booting automatically fetches the kernel and loads it, prints > the entry points, two lines about "ddb" being the debugger, > then says > > Cpppppppppppppppppppppppppppppppppppppppppppppppp > > Any ideas what's going on? That looks like the start of the copyright notice, garbled. A lot happens between the ddb lines and the copyright: would you be able to try a 'boot -v' which might give more of a clue as to how far it gets ? The OpenFirmware console hasn't worked for quite a while on macppc hardware: I think it was around the time I added an additional segment to the kernel's VM space, and ofw didn't seem to like that when calling back into it. Is there a serial port on the Pegasos ? later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Tue Jun 27 16:53:24 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 E473D16A403; Tue, 27 Jun 2006 16:53:24 +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 826DE43D9F; Tue, 27 Jun 2006 16:53:24 +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 1FvGkf-000PGm-3j; Tue, 27 Jun 2006 16:49:25 +0000 From: "Matt Sealey" To: Date: Tue, 27 Jun 2006 11:53:18 -0500 Organization: Genesi Message-ID: <025101c69a0a$32fc16d0$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: AcaaAzpH86NOoGYrSUa8r14cTHsOHwABc82w In-Reply-To: <44A157AB.20805@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: Tue, 27 Jun 2006 16:53:25 -0000 > Is there a serial port on the Pegasos ? Yep. Standard PC serial UART, at the standard PC IO addresses. Going to do a boot -v now. Nope, no difference. kernel loaded at 0x13078 or so, then ddb messages, then Cpppppppppppppppp. No other messages. As for the open firmware console, not sure if it works or not. We are using a beta firmware for testing which has framebuffer support and it would definitely be nice to support that, but if not just plain text to a plain text console is okay (writing to the openfirmware stdout equivalent) -- Matt Sealey Manager, Genesi, Developer Relations From owner-freebsd-ppc@FreeBSD.ORG Tue Jun 27 21:17:39 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 2EDE416A4C8 for ; Tue, 27 Jun 2006 21:17:39 +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 269844520A for ; Tue, 27 Jun 2006 19:51:03 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [10.33.24.110] (nat-198-95-226-228.netapp.com [198.95.226.228]) by dommail.onthenet.com.au (MOS 3.5.7-GR) with ESMTP id BXR16182 (AUTH peterg@ptree32.com.au); Wed, 28 Jun 2006 05:50:57 +1000 (EST) Message-ID: <44A18C3E.6090507@freebsd.org> Date: Tue, 27 Jun 2006 12:51:26 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8b) Gecko/20051014 MIME-Version: 1.0 To: matt@genesi-usa.com References: <025101c69a0a$32fc16d0$99dfdfdf@bakuhatsu.net> In-Reply-To: <025101c69a0a$32fc16d0$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 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jun 2006 21:17:39 -0000 >> 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. > Going to do a boot -v now. > > Nope, no difference. kernel loaded at 0x13078 or so, then ddb > messages, then Cpppppppppppppppp. No other messages. > > As for the open firmware console, not sure if it works or not. We are > using a beta firmware for testing which has framebuffer support and > it would definitely be nice to support that, but if not just plain > text to a plain text console is okay (writing to the openfirmware > stdout equivalent) 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. later, Peter. 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 From owner-freebsd-ppc@FreeBSD.ORG Wed Jun 28 08:22:40 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 B3D7216A400; Wed, 28 Jun 2006 08:22:40 +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 6E6C143D48; Wed, 28 Jun 2006 08:22:40 +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 1FvVFv-000LdA-8Q; Wed, 28 Jun 2006 08:18:39 +0000 From: "Matt Sealey" To: , "'Peter Grehan'" Date: Wed, 28 Jun 2006 03:22:32 -0500 Organization: Genesi Message-ID: <008201c69a8c$039bf810$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/lgAAYVxjAAAHwUHA= In-Reply-To: <007701c69a85$08ec9c90$99dfdfdf@bakuhatsu.net> 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 08:22:40 -0000 I just had a thought: The kernel says it's loaded at 0x130788. That's within the first 2MB of memory on the system. It MAY be that we're writing the kernel over the OpenFirmware copy and the stack (which works backwards from the OF image if I remember correctly) or something like that. How does FreeBSD allocate it's memory from the point the kernel is loaded, through claim or just assuming it owns it all at that point? Having it put the kernel somewhere after the first 32MB would be a good test. Our load-base variable is set to 0x4000000 so the loader goes there. I will see if I can get you guys a decent copy of the memory map.. -- Matt Sealey Manager, Genesi, Developer Relations From owner-freebsd-ppc@FreeBSD.ORG Wed Jun 28 09:07:20 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 AF78D16A40E; Wed, 28 Jun 2006 09:07:20 +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 66E66446F5; Wed, 28 Jun 2006 09:07:20 +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 1FvVx8-000Ml4-EO; Wed, 28 Jun 2006 09:03:20 +0000 From: "Matt Sealey" To: "'Peter Grehan'" Date: Wed, 28 Jun 2006 04:07:11 -0500 Organization: Genesi Message-ID: <008401c69a92$4125b210$99dfdfdf@bakuhatsu.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcaaIndv9oBuvUb+Sjq1EMYjx3/lgAAYVxjAAAHwUHAAAah2gA== In-Reply-To: <008201c69a8c$039bf810$99dfdfdf@bakuhatsu.net> 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 09:07:20 -0000 Talking to myself again..=20 I booted the kernel (boot cd boot/kernel/kernel) directly and it does = exactly the same thing (Cpppp) but with a warning that there was no = kernel metadata loaded. I did a little test booting the 6.0 CD on PearPC, which doesn't even get = into the loader; it claims memory that is already in use (ironically = exactly the memory that PearPC is using for it's page table). So.. perplexing. -- Matt Sealey Manager, Genesi, Developer Relations=20 > -----Original Message----- > From: Matt Sealey [mailto:matt@genesi-usa.com]=20 > Sent: Wednesday, June 28, 2006 3:23 AM > To: matt@genesi-usa.com; 'Peter Grehan' > Cc: freebsd-ppc@freebsd.org > Subject: RE: FreeBSD 6.0 on Pegasos/ODW >=20 >=20 > I just had a thought: >=20 > The kernel says it's loaded at 0x130788. >=20 > That's within the first 2MB of memory on the system. >=20 > It MAY be that we're writing the kernel over the OpenFirmware=20 > copy and the stack (which works backwards from the OF image=20 > if I remember > correctly) or something like that. >=20 > How does FreeBSD allocate it's memory from the point the=20 > kernel is loaded, through claim or just assuming it owns it=20 > all at that point? >=20 > Having it put the kernel somewhere after the first 32MB would=20 > be a good test. Our load-base variable is set to 0x4000000 so=20 > the loader goes there. I will see if I can get you guys a=20 > decent copy of the memory map.. >=20 > -- > Matt Sealey > Manager, Genesi, Developer Relations >=20 >=20 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. From owner-freebsd-ppc@FreeBSD.ORG Wed Jun 28 18:03:34 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 A4BE916A524 for ; Wed, 28 Jun 2006 18:03:34 +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 F11D1451E3 for ; Wed, 28 Jun 2006 17:41:52 +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 BXS52874 (AUTH peterg@ptree32.com.au); Thu, 29 Jun 2006 03:41:37 +1000 (EST) Message-ID: <44A2BF51.9090204@freebsd.org> Date: Wed, 28 Jun 2006 10:41:37 -0700 From: Peter Grehan User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: matt@genesi-usa.com References: <008201c69a8c$039bf810$99dfdfdf@bakuhatsu.net> In-Reply-To: <008201c69a8c$039bf810$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:03:34 -0000 Hi Matt, > How does FreeBSD allocate it's memory from the point the kernel is > loaded, through claim or just assuming it owns it all at that point? It uses the OpenFirmware memory map to work out what's in use and takes over all that's left. Since the loader uses ofw calls to allocate memory, the kernel itself, and ofw, won't be touched since it should be in the ofw memorymap. So, I think the overwriting should only occur if ofw is allowing the loader to claim memory used by the kernel. At the loader prompt, issue a 'memmap' command: that should dump what ofw returns as it's map. You could then load the kernel (but not boot) and issue 'memmap' again to see what effect the kernel and env has on the memory map. > Having it put the kernel somewhere after the first 32MB would be > a good test. Our load-base variable is set to 0x4000000 so the > loader goes there. I will see if I can get you guys a decent copy > of the memory map.. That could work. You will have to modify the linker script in sys/conf/ldscript.powerpc to change the load address. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Thu Jun 29 12:18:29 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 D0BA516A410; Thu, 29 Jun 2006 12:18:29 +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 B8EAB43DC0; Thu, 29 Jun 2006 12:18:26 +0000 (GMT) (envelope-from matt@genesi-usa.com) Received: from p54b0d58f.dip.t-dialin.net ([84.176.213.143] helo=yukito) by mail.genesippc.com with esmtpa (Exim 4.62 (FreeBSD)) (envelope-from ) id 1FvvPb-000CEr-PA; Thu, 29 Jun 2006 12:14:24 +0000 From: "Matt Sealey" To: Date: Thu, 29 Jun 2006 07:18:19 -0500 Organization: Genesi Message-ID: <007c01c69b76$1dbc6550$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 In-Reply-To: <44A2BF51.9090204@freebsd.org> Thread-Index: Acaa2ZSzh8O5mGvFTCeDq+8o43fETgAnCT7Q 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: Thu, 29 Jun 2006 12:18:29 -0000 > So, I think the overwriting should only occur if ofw is > allowing the loader to claim memory used by the kernel. > > At the loader prompt, issue a 'memmap' command: that should > dump what ofw returns as it's map. You could then load the > kernel (but not boot) and issue 'memmap' again to see what > effect the kernel and env has on the memory map. memmap before loading kernel: Virtual Range Physical Range #Pages Mode memmap after "load kernel": Virtual Range Physical Range #Pages Mode .. nothing! :) > > Having it put the kernel somewhere after the first 32MB would be a > > good test. Our load-base variable is set to 0x4000000 so the loader > > goes there. I will see if I can get you guys a decent copy of the > > memory map.. > > That could work. You will have to modify the linker script > in sys/conf/ldscript.powerpc to change the load address. Okay that means recompiling stuff then. What exactly DO I need to compile FreeBSD? I've done it before on a PC to install a custom build on another PC, and set up the cross compiler setup *once* but never attempted to use it. The problem is all I have here is this laptop (I am using it in XP right now) and a bunch of Pegasos systems. I might be able to find a Beige G3 Mac somewhere. -- Matt Sealey Manager, Genesi, Developer Relations From owner-freebsd-ppc@FreeBSD.ORG Thu Jun 29 20:43:43 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 5767316A855 for ; Thu, 29 Jun 2006 20:43:43 +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 3DE9144C02 for ; Thu, 29 Jun 2006 20:24:10 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [10.33.24.110] (nat-198-95-226-228.netapp.com [198.95.226.228]) by dommail.onthenet.com.au (MOS 3.5.7-GR) with ESMTP id BXU13080 (AUTH peterg@ptree32.com.au); Fri, 30 Jun 2006 06:24:03 +1000 (EST) Message-ID: <44A436FD.4010906@freebsd.org> Date: Thu, 29 Jun 2006 13:24:29 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8b) Gecko/20051014 MIME-Version: 1.0 To: matt@genesi-usa.com References: <007c01c69b76$1dbc6550$99dfdfdf@bakuhatsu.net> In-Reply-To: <007c01c69b76$1dbc6550$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 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 20:43:43 -0000 Hi Matt, > memmap before loading kernel: > > Virtual Range Physical Range #Pages Mode > > memmap after "load kernel": > > Virtual Range Physical Range #Pages Mode > > .. nothing! :) That's a major problem. FreeBSD (and NetBSD) keep ofw resident, and rely on the ofw memmap to not blow it away after the kernel has been loaded, and also to reconstruct the same virtual space that ofw was using when calling back into it. > What exactly DO I need to compile FreeBSD? A PC running FreeBSD >= 6.*, and a source tree # cd /src # make buildworld TARGET_ARCH=powerpc # make buildkernel TARGET_ARCH=powerpc >I might be able to find a Beige G3 Mac somewhere. No go, it's ofw 2.*, which runs in real mode and won't load ELF :( >= ofw 3.*, on all 'new-world' hardware, is the minimum required. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Thu Jun 29 23:14:09 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 3926316A64C; Thu, 29 Jun 2006 23:14:09 +0000 (UTC) (envelope-from jcoombs@gwi.net) Received: from pan.gwi.net (pan.gwi.net [207.5.128.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id D955644E75; Thu, 29 Jun 2006 21:14:25 +0000 (GMT) (envelope-from jcoombs@gwi.net) Received: from fiasco (murdoc.gwi.net [207.5.142.8]) by pan.gwi.net (8.13.1/8.13.1) with SMTP id k5TLEOHL027550; Thu, 29 Jun 2006 17:14:24 -0400 (EDT) (envelope-from jcoombs@gwi.net) Message-ID: <21ba01c69bc0$ff691260$0700a8c0@fiasco> From: "Joshua Coombs" To: "Peter Grehan" , References: <007c01c69b76$1dbc6550$99dfdfdf@bakuhatsu.net> <44A436FD.4010906@freebsd.org> Date: Thu, 29 Jun 2006 17:14:24 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 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 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 23:14:09 -0000 >>I might be able to find a Beige G3 Mac somewhere. > > No go, it's ofw 2.*, which runs in real mode and won't load ELF :( > > >= ofw 3.*, on all 'new-world' hardware, is the minimum required. > > later, > > Peter. If I remember correctly, all iMacs are OFW 3 or later, and I know the early ones can be found for cheap on ebay. Some even take standard SDRAM making maxing them out easy and cheap. Joshua Coombs From owner-freebsd-ppc@FreeBSD.ORG Fri Jun 30 01:43:47 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 2A88A16A51E for ; Fri, 30 Jun 2006 01:43:47 +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 7EF6244A91 for ; Fri, 30 Jun 2006 01:12:22 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [10.33.24.110] (nat-198-95-226-228.netapp.com [198.95.226.228]) by dommail.onthenet.com.au (MOS 3.5.7-GR) with ESMTP id BXU39359 (AUTH peterg@ptree32.com.au); Fri, 30 Jun 2006 11:12:13 +1000 (EST) Message-ID: <44A47A87.20700@freebsd.org> Date: Thu, 29 Jun 2006 18:12:39 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8b) Gecko/20051014 MIME-Version: 1.0 To: Joshua Coombs References: <007c01c69b76$1dbc6550$99dfdfdf@bakuhatsu.net> <44A436FD.4010906@freebsd.org> <21ba01c69bc0$ff691260$0700a8c0@fiasco> In-Reply-To: <21ba01c69bc0$ff691260$0700a8c0@fiasco> 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 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2006 01:43:47 -0000 > If I remember correctly, all iMacs are OFW 3 or later Indeed, and FreeBSD/ppc will boot on a revA iMac though the on-board ethernet isn't supported. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Fri Jun 30 08:32:36 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 D60F216A416; Fri, 30 Jun 2006 08:32:36 +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 662E64428B; Fri, 30 Jun 2006 08:32:36 +0000 (GMT) (envelope-from matt@genesi-usa.com) Received: from p54b0d58f.dip.t-dialin.net ([84.176.213.143] helo=yukito) by mail.genesippc.com with esmtpa (Exim 4.62 (FreeBSD)) (envelope-from ) id 1FwEMZ-000DSH-3x; Fri, 30 Jun 2006 08:28:31 +0000 From: "Matt Sealey" To: "'Peter Grehan'" Date: Fri, 30 Jun 2006 03:32:27 -0500 Organization: Genesi Message-ID: <011f01c69c1f$bb0c1bd0$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 In-Reply-To: <44A436FD.4010906@freebsd.org> Thread-Index: AcabuWkH/eqAlYjXT8+1mFQJw1O+RwAZX3Ng 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: Fri, 30 Jun 2006 08:32:36 -0000 > -----Original Message----- > From: Peter Grehan [mailto:grehan@freebsd.org] > Sent: Thursday, June 29, 2006 3:24 PM > To: matt@genesi-usa.com > Cc: freebsd-ppc@freebsd.org > Subject: Re: FreeBSD 6.0 on Pegasos/ODW > > Hi Matt, > > > memmap before loading kernel: > > > > Virtual Range Physical Range #Pages Mode > > > > memmap after "load kernel": > > > > Virtual Range Physical Range #Pages Mode > > > > .. nothing! :) > > That's a major problem. FreeBSD (and NetBSD) keep ofw > resident, and rely on the ofw memmap to not blow it away > after the kernel has been loaded, and also to reconstruct the > same virtual space that ofw was using when calling back into it. I understood that from the very beginning. So... what is FreeBSD doing wrong here? Or what bug did we find in the firmware? The Linux chrp bootloader gets the memory map properties okay. Where's the code for this so I can show it to the guy who can instantly say "this is wrong" or "uhh I forgot to code that property!" :) > > What exactly DO I need to compile FreeBSD? > > A PC running FreeBSD >= 6.*, and a source tree > > # cd /src > # make buildworld TARGET_ARCH=powerpc > # make buildkernel TARGET_ARCH=powerpc Okay I have access to one now (thanks Peter Czanik :) How do I get a PPC compiler onto there or does every FreeBSD ship with one now it's a real release platform? This won't destroy any compiles or objects he made will it? I mean it's not supposed to but it WON'T, right? :D -- Matt Sealey Manager, Genesi, Developer Relations From owner-freebsd-ppc@FreeBSD.ORG Fri Jun 30 11:43:39 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 1524F16A407; Fri, 30 Jun 2006 11:43:39 +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 EB4314465F; Fri, 30 Jun 2006 11:43:37 +0000 (GMT) (envelope-from matt@genesi-usa.com) Received: from p54b0e6cf.dip.t-dialin.net ([84.176.230.207] helo=yukito) by mail.genesippc.com with esmtpa (Exim 4.62 (FreeBSD)) (envelope-from ) id 1FwHLP-000Hmi-Tj; Fri, 30 Jun 2006 11:39:32 +0000 From: "Matt Sealey" To: , "'Peter Grehan'" Date: Fri, 30 Jun 2006 06:43:31 -0500 Organization: Genesi Message-ID: <002a01c69c3a$6c5c43a0$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 In-Reply-To: <011f01c69c1f$bb0c1bd0$99dfdfdf@bakuhatsu.net> Thread-Index: AcabuWkH/eqAlYjXT8+1mFQJw1O+RwAZX3NgAAbP1LA= 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: Fri, 30 Jun 2006 11:43:39 -0000 > Okay I have access to one now (thanks Peter Czanik :) Building was a miserable failure. It went through and did the world and then the kernel failed first because driver "zs" wasn't found (we commented out zs and put the 16550 uart in instead) and then it churned and puked on linking; I don't really have all the time I want to spend on this so I will just leave it. I still can't find the memory, availalble, reg, etc. references in the loader or kernel so I am not sure what I would do with a recompiled loader/kernel anyway.. there is nothing I can see that can be fixed. linking kernel.debug sio_pci.o(.text+0xd4): In function `sio_pci_attach': /usr/src/sys/dev/sio/sio_pci.c:105: undefined reference to `sioattach' sio_pci.o(.text+0x2d8): In function `sio_pci_probe': /usr/src/sys/dev/sio/sio_pci.c:154: undefined reference to `sioprobe' sio_pci.o(.data+0x14): In function `sio_pci_attach': /usr/src/sys/dev/sio/sio_pci.c:94: undefined reference to `siodetach' sio_pci.o(.data+0x20):/usr/src/sys/dev/sio/sio_pci.c:94: undefined reference to `sio_driver_name' sio_pci.o(.data+0xd8):/usr/src/sys/dev/sio/sio_pci.c:106: undefined reference to `sio_devclass' sio_pci.o(.data+0x118): In function `sio_pci_kludge_unit': /usr/src/sys/dev/sio/sio_pci.c:115: undefined reference to `sio_devclass' sio_iobus.o(.text+0x20): In function `sio_iobus_attach': /usr/src/sys/powerpc/psim/sio_iobus.c:75: undefined reference to `sioattach' sio_iobus.o(.text+0xf8): In function `sio_iobus_probe': /usr/src/sys/powerpc/psim/sio_iobus.c:92: undefined reference to `sioprobe' sio_iobus.o(.data+0x18): In function `sio_iobus_attach': /usr/src/sys/powerpc/psim/sio_iobus.c:75: undefined reference to `sio_driver_name' sio_iobus.o(.data+0x40): In function `sio_iobus_probe': /usr/src/sys/powerpc/psim/sio_iobus.c:80: undefined reference to `sio_devclass' *** Error code 1 Stop in /usr/obj/powerpc/usr/src/sys/GENERIC. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. From owner-freebsd-ppc@FreeBSD.ORG Fri Jun 30 14:52:36 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 BB4F716A40F for ; Fri, 30 Jun 2006 14:52:36 +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 33002443E6 for ; Fri, 30 Jun 2006 14:52:36 +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 BXV12912 (AUTH peterg@ptree32.com.au); Sat, 1 Jul 2006 00:52:30 +1000 (EST) Message-ID: <44A53AAC.1080002@freebsd.org> Date: Fri, 30 Jun 2006 07:52:28 -0700 From: Peter Grehan User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: matt@genesi-usa.com References: <002a01c69c3a$6c5c43a0$99dfdfdf@bakuhatsu.net> In-Reply-To: <002a01c69c3a$6c5c43a0$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: Fri, 30 Jun 2006 14:52:36 -0000 > Building was a miserable failure. It went through and did the world > and then the kernel failed first because driver "zs" wasn't found (we > commented out zs and put the 16550 uart in instead) and then it churned > and puked on linking; The sio driver doesn't work on FreeBSD/ppc. It requires an attachment to a bus somewhere (there's no ISA bus attachment). I do have it sort-of working with the psim simulator (with an 'iobus' attachment), but you've just hit the fact that porting to a new platform with different hardware than Macs doesn't come for free - there's always going to be some development required. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Fri Jun 30 15:03:18 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 134EA16A525 for ; Fri, 30 Jun 2006 15:03:18 +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 46703440BD for ; Fri, 30 Jun 2006 14:35:43 +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 BXV11740 (AUTH peterg@ptree32.com.au); Sat, 1 Jul 2006 00:35:35 +1000 (EST) Message-ID: <44A536B5.8060804@freebsd.org> Date: Fri, 30 Jun 2006 07:35:33 -0700 From: Peter Grehan User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: matt@genesi-usa.com References: <011f01c69c1f$bb0c1bd0$99dfdfdf@bakuhatsu.net> In-Reply-To: <011f01c69c1f$bb0c1bd0$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: Fri, 30 Jun 2006 15:03:18 -0000 > So... what is FreeBSD doing wrong here? Or what bug did we find in > the firmware? The Linux chrp bootloader gets the memory map > properties okay. Answer in next email... > How do I get a PPC compiler onto there or does every FreeBSD ship with > one now it's a real release platform? FreeBSD comes with gcc source so a powerpc cross-compiler can be configured. > This won't destroy any compiles or objects he made will it? I mean it's > not supposed to but it WON'T, right? :D That's right. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Fri Jun 30 16:26:53 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 EA25E16A625; Fri, 30 Jun 2006 16:26:52 +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 5064644390; Fri, 30 Jun 2006 16:04:11 +0000 (GMT) (envelope-from matt@genesi-usa.com) Received: from p54b0e6cf.dip.t-dialin.net ([84.176.230.207] helo=yukito) by mail.genesippc.com with esmtpa (Exim 4.62 (FreeBSD)) (envelope-from ) id 1FwLPa-000P94-1k; Fri, 30 Jun 2006 16:00:06 +0000 From: "Matt Sealey" To: Date: Fri, 30 Jun 2006 11:04:07 -0500 Organization: Genesi Message-ID: <007601c69c5e$d33088b0$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 In-Reply-To: <44A53AAC.1080002@freebsd.org> Thread-Index: AcacVEEZlAFoguE2RDmes9in3P+e2gACi8Yw 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: Fri, 30 Jun 2006 16:26:54 -0000 Why isn't there an ISA bus attachment? We have an ISA bus on the Pegasos (Via 8231 southbridge) In all honesty the design of the system should be that while it there is some grunt work required, it is much the same as in Linux - when the driver doesn't exist on PPC you just symlink it from the i386 tree since all of the hardware already works in FreeBSD on a PC. I used to run FreeBSD 5.1 on a Via EPIA board, it had the exact same southbridge and peripheral chips and ran like a dream. Endianness notwithstanding it should be the same way. -- Matt Sealey Manager, Genesi, Developer Relations > -----Original Message----- > From: Peter Grehan [mailto:grehan@freebsd.org] > Sent: Friday, June 30, 2006 9:52 AM > To: matt@genesi-usa.com > Cc: freebsd-ppc@freebsd.org > Subject: Re: FreeBSD 6.0 on Pegasos/ODW > > > Building was a miserable failure. It went through and did the world > > and then the kernel failed first because driver "zs" wasn't > found (we > > commented out zs and put the 16550 uart in instead) and then it > > churned and puked on linking; > > The sio driver doesn't work on FreeBSD/ppc. It requires an > attachment to a bus somewhere (there's no ISA bus > attachment). I do have it sort-of working with the psim > simulator (with an 'iobus' attachment), but you've just hit > the fact that porting to a new platform with different > hardware than Macs doesn't come for free - there's always > going to be some development required. > > later, > > Peter. > From owner-freebsd-ppc@FreeBSD.ORG Fri Jun 30 17:51:40 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 5DAA416A705 for ; Fri, 30 Jun 2006 17:51:40 +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 399C543D80 for ; Fri, 30 Jun 2006 17:51:12 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [10.33.24.110] (nat-198-95-226-228.netapp.com [198.95.226.228]) by dommail.onthenet.com.au (MOS 3.5.7-GR) with ESMTP id BXV36062 (AUTH peterg@ptree32.com.au); Sat, 1 Jul 2006 03:51:06 +1000 (EST) Message-ID: <44A564A4.9080407@freebsd.org> Date: Fri, 30 Jun 2006 10:51:32 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8b) Gecko/20051014 MIME-Version: 1.0 To: matt@genesi-usa.com References: <007601c69c5e$d33088b0$99dfdfdf@bakuhatsu.net> In-Reply-To: <007601c69c5e$d33088b0$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 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2006 17:51:40 -0000 Hi Matt, > Why isn't there an ISA bus attachment? For the same reason there isn't an SBus attachment in the i386 kernel :) There is no ISA hardware on Macs so no need for an ISA bus in the current code. > We have an ISA bus on the Pegasos (Via 8231 southbridge) OK, support for that has to be added. > In all honesty the design of the system should be that while it there is > some grunt work required, it is much the same as in Linux - when the driver > doesn't exist on PPC you just symlink it from the i386 tree since all of > the hardware already works in FreeBSD on a PC. I used to run FreeBSD 5.1 on > a Via EPIA board, it had the exact same southbridge and peripheral chips > and ran like a dream. Endianness notwithstanding it should be the same > way. It is like that, and as mentioned previously, some grunt work is required, such as adding ISA bus support and the necessary bus-space work for i/o access. Sparc64 has ISA support as a proof-of-concept. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Fri Jun 30 18:03:24 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 9D04516A407; Fri, 30 Jun 2006 18:03:24 +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 5CDA343D46; Fri, 30 Jun 2006 18:03:24 +0000 (GMT) (envelope-from matt@genesi-usa.com) Received: from p54b0e6cf.dip.t-dialin.net ([84.176.230.207] helo=yukito) by mail.genesippc.com with esmtpa (Exim 4.62 (FreeBSD)) (envelope-from ) id 1FwNGx-0001mq-6e; Fri, 30 Jun 2006 17:59:19 +0000 From: "Matt Sealey" To: "'Peter Grehan'" Date: Fri, 30 Jun 2006 13:03:20 -0500 Organization: Genesi Message-ID: <008501c69c6f$7ade4dd0$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 In-Reply-To: <44A564A4.9080407@freebsd.org> Thread-Index: AcacbTO8r49XHSd7QtSmx/NEA9wC2AAAisUA 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: Fri, 30 Jun 2006 18:03:24 -0000 > It is like that, and as mentioned previously, some grunt > work is required, such as adding ISA bus support and the > necessary bus-space work for i/o access. Sparc64 has ISA > support as a proof-of-concept. Any docs or mailing list archive on that effort? I'm all for a little poke around. Disabling sio would be the first step though, so the kernel actually links.. -- Matt Sealey Manager, Genesi, Developer Relations From owner-freebsd-ppc@FreeBSD.ORG Fri Jun 30 22:40:18 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 ACFC816A40F for ; Fri, 30 Jun 2006 22:40:18 +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 1500843D46 for ; Fri, 30 Jun 2006 22:40:17 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [10.33.24.110] (nat-198-95-226-228.netapp.com [198.95.226.228]) by dommail.onthenet.com.au (MOS 3.5.7-GR) with ESMTP id BXV57349 (AUTH peterg@ptree32.com.au); Sat, 1 Jul 2006 08:40:11 +1000 (EST) Message-ID: <44A5A521.5030303@freebsd.org> Date: Fri, 30 Jun 2006 15:26:41 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8b) Gecko/20051014 MIME-Version: 1.0 To: matt@genesi-usa.com References: <008501c69c6f$7ade4dd0$99dfdfdf@bakuhatsu.net> In-Reply-To: <008501c69c6f$7ade4dd0$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 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2006 22:40:18 -0000 >> Sparc64 has ISA support as a proof-of-concept. > > Any docs or mailing list archive on that effort? Have a look at src/sys/sparc64/isa/* When I say proof-of-concept, I mean that it is possible to do ISA support on a non-i386 FreeBSD architecture, and to top if off, also OpenFirmware-based. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Fri Jun 30 23:23:29 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 51DE516A547; Fri, 30 Jun 2006 23:23:29 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74151443A5; Fri, 30 Jun 2006 23:05:26 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (wcq9yf0v0m13kaa8@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id k5UN5OYH038527; Fri, 30 Jun 2006 16:05:25 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id k5UN5NKp038526; Fri, 30 Jun 2006 16:05:23 -0700 (PDT) (envelope-from jmg) Date: Fri, 30 Jun 2006 16:05:23 -0700 From: John-Mark Gurney To: Matt Sealey Message-ID: <20060630230523.GW82074@funkthat.com> Mail-Followup-To: Matt Sealey , grehan@freebsd.org, freebsd-ppc@freebsd.org References: <44A53AAC.1080002@freebsd.org> <007601c69c5e$d33088b0$99dfdfdf@bakuhatsu.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <007601c69c5e$d33088b0$99dfdfdf@bakuhatsu.net> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: grehan@freebsd.org, 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: John-Mark Gurney List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2006 23:23:29 -0000 Matt Sealey wrote this message on Fri, Jun 30, 2006 at 11:04 -0500: > Why isn't there an ISA bus attachment? > > We have an ISA bus on the Pegasos (Via 8231 southbridge) Because FreeBSD's isa bus is still stuck back in the stone ages... It still requires some magic isa_init function to be defined on a per platform basis to setup the isa bus... There is currently no provision to have multiple isa busses on FreeBSD which means that isa busses behind a pci bridge don't automagicly get attached... I have the same trouble w/ sun4v's isa bus, but since there isn't any important hardware on the T2k attached to the isa bus I have done nothing to attempt to support it... > In all honesty the design of the system should be that while it there is > some grunt work required, it is much the same as in Linux - when the driver > doesn't exist on PPC you just symlink it from the i386 tree since all of > the hardware already works in FreeBSD on a PC. I used to run FreeBSD 5.1 on > a Via EPIA board, it had the exact same southbridge and peripheral chips > and ran like a dream. Endianness notwithstanding it should be the same > way. > > > -----Original Message----- > > From: Peter Grehan [mailto:grehan@freebsd.org] > > Sent: Friday, June 30, 2006 9:52 AM > > To: matt@genesi-usa.com > > Cc: freebsd-ppc@freebsd.org > > Subject: Re: FreeBSD 6.0 on Pegasos/ODW > > > > > Building was a miserable failure. It went through and did the world > > > and then the kernel failed first because driver "zs" wasn't > > found (we > > > commented out zs and put the 16550 uart in instead) and then it > > > churned and puked on linking; > > > > The sio driver doesn't work on FreeBSD/ppc. It requires an > > attachment to a bus somewhere (there's no ISA bus > > attachment). I do have it sort-of working with the psim > > simulator (with an 'iobus' attachment), but you've just hit > > the fact that porting to a new platform with different > > hardware than Macs doesn't come for free - there's always > > going to be some development required. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-ppc@FreeBSD.ORG Sat Jul 1 07:55:55 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 E946716A403; Sat, 1 Jul 2006 07:55:55 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [62.233.211.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id F364943E47; Sat, 1 Jul 2006 07:55:52 +0000 (GMT) (envelope-from raj@semihalf.com) Received: from localhost (localhost [127.0.0.1]) by mail.semihalf.com (Postfix) with ESMTP id 5C641142DD; Sat, 1 Jul 2006 09:55:48 +0200 (CEST) Received: from mail.semihalf.com ([127.0.0.1]) by localhost (mail.semihalf.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25056-06; Sat, 1 Jul 2006 09:55:47 +0200 (CEST) Message-ID: <44A62A82.2070709@semihalf.com> Date: Sat, 01 Jul 2006 09:55:46 +0200 From: Rafal Jaworowski MIME-Version: 1.0 To: matt@genesi-usa.com References: <008501c69c6f$7ade4dd0$99dfdfdf@bakuhatsu.net> In-Reply-To: <008501c69c6f$7ade4dd0$99dfdfdf@bakuhatsu.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at semihalf.com Cc: 'Peter Grehan' , 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 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jul 2006 07:55:56 -0000 Matt Sealey wrote: > >> It is like that, and as mentioned previously, some grunt >> work is required, such as adding ISA bus support and the >> necessary bus-space work for i/o access. Sparc64 has ISA >> support as a proof-of-concept. > > Any docs or mailing list archive on that effort? > > I'm all for a little poke around. Disabling sio would be the first > step though, so the kernel actually links.. > Matt, I've had ISA initially working on FreeBSD/ppc with kernel console over sio in particular, when doing a port to MPC750 CompactPCI board. I don't have my changes at hand as I had to return the (loaner) equipment and kind of dropped the activities around it. But from what I remember it wasn't very hard to get sio in kernel working - there was some VIA PCI-ISA bridge chip with driver already supported for i386, so after gluing it to powerpc kernel and setting proper address ranges in device.hints for sio it worked. I could dig in my archives for those changes sometime next week if you're interested. Rafal