From owner-freebsd-ppc@FreeBSD.ORG Fri Jul 21 21:29:06 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 3B24C16A4DD for ; Fri, 21 Jul 2006 21:29:06 +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 A13B743D46 for ; Fri, 21 Jul 2006 21:29:05 +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 BZA78259 (AUTH peterg@ptree32.com.au); Sat, 22 Jul 2006 07:28:59 +1000 (EST) Message-ID: <44C14743.7030202@freebsd.org> Date: Fri, 21 Jul 2006 14:29: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: Marcel Moolenaar References: <709598C1-D05C-42D0-96D4-EC8E076E5BE3@xcllnt.net> In-Reply-To: <709598C1-D05C-42D0-96D4-EC8E076E5BE3@xcllnt.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: Setting up a bootable disk from scratch 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, 21 Jul 2006 21:29:06 -0000 Hi Marcel, > My first step was to get a Mac partition table on the disk. I > ended up hacking parted to compile on FreeBSD, with hardcoded > values for the ATA disk in my iMac. With parted I put an empty > partition table on the disk. It's seen by the kernel: Daring :) > What I want to do is add one or more FreeBSD partitions, of which > one is formatted in such a way that I can use it to boot. I read > that OpenFirmware boots from HFS and CD9660 filesystems, so I'm > thinking of creating an CD9660 partition with boot related stuff, > a regular UFS2 partition for / and a swap partition. That might work: I vaguely recall Matt Thomas used cd9660 inside a partition to boot NetBSD on an xserve and avoid HFS. > I tried using sysinstall, but that wasn't fruitful. It sees the > free partition, but doesn't seem to create more partitions or > even sub-partitions (i.e. BSD label) under the free-partition. Yeh, sysinstall for ppc assumes that partitions were pre-created. > My questions: > 1. Am I getting lost in the woods and am I better off abandoning > this venture in favor of established methods? No, you're almost there. > 2. Is sysinstall broken WRT to partitioning currently or is it > supposed to work? As above, broken. > 3. Am I correct when I say that all I need is an image of /boot > on some OFW recognized partition in order to make the machine > boot FreeBSD? Almost: the loader itself doesn't understand HFS, so you generally point it at the partition that you want to boot from, and it will update currdev and read the relevant parts of /boot from there. e.g. if your UFS2 / is on partition 7, and the loader is on partition 2, you would issue: boot hd:2,\loader hd:7 If you had cd9660 on a disk partition it could read loader.conf and friends from there, though I've never tried it. Works fine on a cdrom though. later, Peter.