From owner-freebsd-ppc@FreeBSD.ORG Tue Mar 6 07:38:43 2012 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 4C8E9106564A for ; Tue, 6 Mar 2012 07:38:43 +0000 (UTC) (envelope-from jeremyhu@freedesktop.org) Received: from cid.outersquare.org (cid.outersquare.org [75.144.255.89]) by mx1.freebsd.org (Postfix) with ESMTP id 2A77B8FC08 for ; Tue, 6 Mar 2012 07:38:42 +0000 (UTC) Received: from localhost (unknown [127.0.0.1]) by cid.outersquare.org (Postfix) with ESMTP id 97FEB35912E2; Mon, 5 Mar 2012 23:20:49 -0800 (PST) X-Virus-Scanned: amavisd-new at outersquare.org Received: from cid.outersquare.org ([127.0.0.1]) by localhost (cid.outersquare.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FJ2SmOxWcYmM; Mon, 5 Mar 2012 23:20:39 -0800 (PST) Received: from [10.0.1.100] (99-51-79-55.lightspeed.snjsca.sbcglobal.net [99.51.79.55]) by cid.outersquare.org (Postfix) with ESMTPSA id 61B9B35912C5; Mon, 5 Mar 2012 23:20:39 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1426\)) From: Jeremy Huddleston In-Reply-To: Date: Mon, 5 Mar 2012 23:20:36 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <7CCF8382-BE98-4C0E-8EC5-096753CCA84A@freedesktop.org> References: To: Rob Ballantyne X-Mailer: Apple Mail (2.1426) Cc: freebsd-ppc@freebsd.org Subject: Re: Question about bootup 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, 06 Mar 2012 07:38:43 -0000 #1 should be expanded a bit, and hopefully this will satisfy your = curiosity about the Apple_bootloader partition. =20 OpenFirmware itself is quite complicated. The "normal" situation is = that you have boot-device=3Dhd:2,\\:tbxi and the second partition on = your boot drive is an HFS partition (the first partition is actually the = partition map). One of the files on this HFS partition is "blessed" in = order to tell OFW to load it. In actuality, it's not a file that is blessed, but a directory in the = HFS partition, and that directory is inspected for a file of the type = "tbxi" which is loaded. In practice, there are usually no = subdirectories, so : is blessed, and there are only a handful of files, = one of which is either a bootloader or stage-1 kernel, and it is marked = "tbxi" using hfsutils or some other tools (eg: 'hattrib -b : && hattrib = -t tbxi -c UNIX :grub' will bless : and mark grub as the bootloader). I'm not an expert on all of this, so there is probably room for = expansion on some of my points, but hopefully that gets you in the right = direction. --Jeremy On Mar 5, 2012, at 10:24 PM, Rob Ballantyne = wrote: > Hi All, >=20 > I've been poking around trying to understand the boot up process of > a ppc64 G5 machine. >=20 > I was slightly surprised to still find an Apple Partition map disk. > I would have thought it was an ordinary fdisk (PC) partition setup. >=20 > Let me see if I have it right: >=20 > 1 - OpenFirmware (OFW) load Apple_Bootstrap/boot1.elf > 2 - boot1.elf runs to gain enough to understand UFS filesystems and > loads FreeBSD UFS partition /boot/loader > 3 - loader loads /boot/kernel/kernel >=20 > ... and we're off to the races. >=20 > This strikes me as fairly simplistic so I'm sure there are more > details. I'm curious about /boot/*.4th OpenFirmware forth code, for > example. Is it involved in a substantial way? >=20 > The other thing I'm curious about is the Apple_Bootstrap partition. > How is it written? I've discovered parteditor within the bsdinstall > installer. I suspect that does it but it doesn't appear to let one > write their own bootloader code image. >=20 > As I said mostly curiosity and trying to understand. If anyone has > a few words of confirmation/advice I would be glad to hear them. >=20 > Thanks, >=20 > Rob > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" >=20