From owner-freebsd-ppc@FreeBSD.ORG Sat Aug 5 21:21:15 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 BE8F016A4F3 for ; Sat, 5 Aug 2006 21:21:15 +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 3240143D45 for ; Sat, 5 Aug 2006 21:21:14 +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 CAC04077 (AUTH peterg@ptree32.com.au); Sun, 6 Aug 2006 07:21:09 +1000 (EST) Message-ID: <44D50BC2.60704@freebsd.org> Date: Sat, 05 Aug 2006 14:21:06 -0700 From: Peter Grehan User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: "Philip S. Schulz" References: <44D4F975.2030608@gmx.de> In-Reply-To: <44D4F975.2030608@gmx.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: Problems with the loader 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: Sat, 05 Aug 2006 21:21:15 -0000 Hi Philip, > 1. Hold down 'C' while booting: I can hear the CD spin up, it seems > like there is disk activity but then the drive spins down again and Mac > OS X is started. Hmmm, that one's supposed to work. I even tried this out on the same model Powerbook, but a 15", the other day. One big advantage of these models is that the internal keyboard/mouse are USB so will work without an external keyboard. > 2. At the Open Firmware prompt, type "boot cd:,\boot\loader": The > loader starts, but says: "can't load 'kernel'" and then "no bootable > kernel" Close ! :) For a manual load from the cd, you have to pass 'cd:0' as an additional parameter e.g. boot cd:,\boot\loader cd:0 The problem is that giving a colon without an explicit partition number means the loader will use the 'default', or bootable, partition. Since cd's have to be created in hybrid HFS/CD9660 format to be understood by OFW, they have a partition table which has a partition that contains data but not the pre-iso9660 sectors (cd:3). This confused the loader since the partition it reads from have iso9660 offset values that appear to be incorrect, since offset 0 is actually the start of cd:3. I did hack up a loader to add this value to iso9660 offsets if the sniff test failed, but even this didn't work on all systems. The easier workaround was to use the extra parameter to boot. > 3. I have tried to explicitely tell the loader where to load the kernel > from by issuing "set currdev=cd:," and then try to type "boot" again. > Unfortunately that didn't work, either. Makes sense, since the loader > prints the correct boot device when started. Tried "boot /boot/kernel" > and then the loader complains "Cant't find /boot/kernel". Close: as above you need 'cd:0'. At the loader prompt you can issue 'ls /' to see if that worked, or even 'ls cd:0/' before currdev is changed. > 4. Also I have tried to copy boot/ from the CD to the internal harddisk > an boot from there by saying "boot hd:,\boot\loader" at the Open > Firmware prompt. Same effect as in 2. Makes sense: the loader will use the volume it was booted from to try and load the kernel. Since 'hd:' is most likely HFS+ formatted, the loader won't be able to read it. later, Peter.