From owner-freebsd-ppc@FreeBSD.ORG Wed Oct 29 19:23:57 2008 Return-Path: Delivered-To: freebsd-ppc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7BC981065677 for ; Wed, 29 Oct 2008 19:23:57 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from mail.icecube.wisc.edu (trout.icecube.wisc.edu [128.104.255.119]) by mx1.freebsd.org (Postfix) with ESMTP id 386B28FC17 for ; Wed, 29 Oct 2008 19:23:57 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.icecube.wisc.edu (Postfix) with ESMTP id 5F8DE5823C; Wed, 29 Oct 2008 14:23:56 -0500 (CDT) X-Virus-Scanned: amavisd-new at icecube.wisc.edu Received: from mail.icecube.wisc.edu ([127.0.0.1]) by localhost (trout.icecube.wisc.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id fdFn3RH0cLux; Wed, 29 Oct 2008 14:23:55 -0500 (CDT) Received: from wanderer.tachypleus.net (i3-dhcp-172-16-55-165.icecube.wisc.edu [172.16.55.165]) by mail.icecube.wisc.edu (Postfix) with ESMTP id 795B15823A; Wed, 29 Oct 2008 14:23:55 -0500 (CDT) Message-ID: <4908B834.4030805@freebsd.org> Date: Wed, 29 Oct 2008 14:23:32 -0500 From: Nathan Whitehorn User-Agent: Thunderbird 2.0.0.17 (X11/20081002) MIME-Version: 1.0 To: Ed Schouten References: <20081029190724.GH1165@hoeg.nl> In-Reply-To: <20081029190724.GH1165@hoeg.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD PowerPC Subject: Re: FreeBSD on my old rusty PowerBook 12" 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: Wed, 29 Oct 2008 19:23:57 -0000 Ed Schouten wrote: > Hello all, > > A couple of days ago I saw a commit flash by, which added ADB support to > FreeBSD. This means I can finally use FreeBSD on my old PowerBook 12", > which is doing nothing right now. > Welcome to PPC! The introduction of the MPsafe TTY layer was what fixed the last locking bugs in akbd that I hadn't managed to track down, so thanks :) > I tried to install FreeBSD on the system and it somewhat works, but I > think I need to do something differently to get it working properly. > > I downloaded the 200810 snapshot, which does not support ADB, so I'm > using an USB keyboard right now. Good enough. When I get into the > installer, it seems there is some kind of hard-coded disk layout. I only > have ad0s2 and ad0s3, where ad0s2 is 128 MB and ad0s3 is the rest of the > disk. I can't create any more partitions. So right now I've put / on > ad0s2 and /usr on ad0s3, which is pretty awful. > Sysinstall doesn't (currently) have the ability to modify APM layouts. gpart does. This should be fixed. The result is that sysinstall just uses whatever partitions happen to be on your disk already. > About boot loaders: I just booted from the harddisk by running in the > ofw console: > > boot cd:\boot\loader hd:2 > > But I want to have a boot loader on the harddisk itself. I read > something about putting a HFS partition on the disk and storing a file > in it? Is that what ad0s2 is for? > I have a hack in head to solve this. If you rebuild world, you will get a /boot/boot1.hfs. This is a little (800 K) HFS partition with a port of the sparc64 boot1 in it, which you can dd to an 800 K partition to get OFW to boot your machine. However, sysinstall doesn't know about this yet either. You can make this and your regular FreeBSD partitions with gpart, then use dd and boot1.hfs to get a bootable system with sane partitioning. -Nathan