From owner-freebsd-ppc@FreeBSD.ORG Sun Mar 4 22:56:32 2012 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4F18B106564A for ; Sun, 4 Mar 2012 22:56:32 +0000 (UTC) (envelope-from superbisquit@gmail.com) Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mx1.freebsd.org (Postfix) with ESMTP id 1ED008FC0C for ; Sun, 4 Mar 2012 22:56:31 +0000 (UTC) Received: by dakl33 with SMTP id l33so12226278dak.17 for ; Sun, 04 Mar 2012 14:56:31 -0800 (PST) Received-SPF: pass (google.com: domain of superbisquit@gmail.com designates 10.68.195.99 as permitted sender) client-ip=10.68.195.99; Authentication-Results: mr.google.com; spf=pass (google.com: domain of superbisquit@gmail.com designates 10.68.195.99 as permitted sender) smtp.mail=superbisquit@gmail.com; dkim=pass header.i=superbisquit@gmail.com Received: from mr.google.com ([10.68.195.99]) by 10.68.195.99 with SMTP id id3mr41382484pbc.149.1330901791767 (num_hops = 1); Sun, 04 Mar 2012 14:56:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=37tzWZCAaAopKr6dZTUyiUPpkv1bS0Il6hiPHMswWV8=; b=I0nHfZm8dRrBqTWpMij5Hv8frKls3B/pWZ69fpwWDqI4muEUccbwdKCerNG3G0kQJv 20upTsTuOPvthOSux7AJR/a6gLp8tk+PHcRVSJ4ZTSemnmjylqAkawtGe+AO2RsQdA73 h6W1ZcdDJflwDmQok6MdWiJ7zhsg2c7LRH5gaW6P0C1s/6aUYfsuoKYPWnkMqKVdXM43 IcjCs+3OB8g0QH3ZlCYmvMBkGENK64AaKyx4M3O6zSwIp5dyc71tPKRyF/JSVGfVTymq x4OgE9mfscAXRVZJocgafP1MSTdp1ctrB3I84z7MLUbQi10ae0uWouPKX6PKiayf7yLg wG3w== MIME-Version: 1.0 Received: by 10.68.195.99 with SMTP id id3mr35441085pbc.149.1330901791714; Sun, 04 Mar 2012 14:56:31 -0800 (PST) Received: by 10.68.219.10 with HTTP; Sun, 4 Mar 2012 14:56:31 -0800 (PST) Date: Sun, 4 Mar 2012 17:56:31 -0500 Message-ID: From: Super Bisquit To: FreeBSD PowerPC ML Content-Type: text/plain; charset=ISO-8859-1 Subject: General information: wi(4) powerpc64 emulation 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: Sun, 04 Mar 2012 22:56:32 -0000 Justin, the card is in the Quicksilver with dmesg stating: brgphy0: PHY 0 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow I'm using portupgrade because the installed packages need such. The kernel will be built after. Nathan, qemu-0.15 is currently building on the iMac. From owner-freebsd-ppc@FreeBSD.ORG Mon Mar 5 05:03:19 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 02A55106564A; Mon, 5 Mar 2012 05:03:18 +0000 (UTC) (envelope-from superbisquit@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7F2938FC17; Mon, 5 Mar 2012 05:03:18 +0000 (UTC) Received: by pbcwz17 with SMTP id wz17so2188440pbc.13 for ; Sun, 04 Mar 2012 21:03:18 -0800 (PST) Received-SPF: pass (google.com: domain of superbisquit@gmail.com designates 10.68.195.99 as permitted sender) client-ip=10.68.195.99; Authentication-Results: mr.google.com; spf=pass (google.com: domain of superbisquit@gmail.com designates 10.68.195.99 as permitted sender) smtp.mail=superbisquit@gmail.com; dkim=pass header.i=superbisquit@gmail.com Received: from mr.google.com ([10.68.195.99]) by 10.68.195.99 with SMTP id id3mr43816441pbc.149.1330923798280 (num_hops = 1); Sun, 04 Mar 2012 21:03:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=9czDk2YqB07MGQLS5S48TAZF+LoUxAqOVPcm1nwrrqY=; b=lRjSb1fh0PrZ/ybBY3iVTwguurTvDeWr/Vr9+T0gjH18jMP0pm4zkgkgwBDBoUgCRq JgSWyPIUQFYIq1O4Dbj135cYDC2pYMO9XqnZEozDSvC5sFRbfZUOhSjbq1nSno6Dc6tv KUJgD8c2aufWln2piFZ/vlWYPopnQ6Vqa/Pylitl8CtrQIZG6CL8tOOP2mNYQFYyPt/y Jcd9ijTp2ZOHKL62WHg0IOuX4I1fmoYqd/QR01tyeKq2njshF7Ao4M0R/jtYO+D5funf pJu3/PzSHI2QXV55FshHSDp6bzU6b7TCdvCvsws7oktoiYNcc15hPjJtduMCoNgMslC6 urPg== MIME-Version: 1.0 Received: by 10.68.195.99 with SMTP id id3mr37494532pbc.149.1330923798198; Sun, 04 Mar 2012 21:03:18 -0800 (PST) Received: by 10.68.219.10 with HTTP; Sun, 4 Mar 2012 21:03:18 -0800 (PST) In-Reply-To: References: Date: Mon, 5 Mar 2012 00:03:18 -0500 Message-ID: From: Super Bisquit To: FreeBSD PowerPC ML , Nathan Whitehorn Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: General information: wi(4) powerpc64 emulation 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, 05 Mar 2012 05:03:19 -0000 I have the qemu instance running. Trying cd:,\\:tbxi... Trying cd:,\ppc\bootinfo.txt No valid state set has been set by load or init-program On Sun, Mar 4, 2012 at 5:56 PM, Super Bisquit wrote: > Justin, the card is in the Quicksilver with dmesg stating: > brgphy0: PHY 0 on miibus0 > brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow > I'm using portupgrade because the installed packages need such. > The kernel will be built after. > Nathan, qemu-0.15 is currently building on the iMac. > From owner-freebsd-ppc@FreeBSD.ORG Mon Mar 5 11:07:16 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 55F5A1065673 for ; Mon, 5 Mar 2012 11:07:16 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4446D8FC27 for ; Mon, 5 Mar 2012 11:07:16 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q25B7Gp1034989 for ; Mon, 5 Mar 2012 11:07:16 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q25B7F1h034986 for freebsd-ppc@FreeBSD.org; Mon, 5 Mar 2012 11:07:15 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 5 Mar 2012 11:07:15 GMT Message-Id: <201203051107.q25B7F1h034986@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-ppc@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-ppc@FreeBSD.org 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, 05 Mar 2012 11:07:16 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o power/165387 ppc bsdinstall(8) not starting with Apple G5 on powerpc64 o power/164225 ppc Boot fails on IBM 7028-6E1 (heap memory claim failed) o power/162091 ppc FreeBSD/ppc CD crashes Mac OS X o power/161947 ppc multimedia/libdvdnav builds broken binaries on big end o power/161045 ppc X doesn't detect ADB mouse up event until another even o power/149009 ppc sysinstall(8) on powerpc fails to install manpages, so o power/140241 ppc [kernel] [patch] Linker set problems on PowerPC EABI o power/135576 ppc gdb cannot debug threaded programs on ppc o power/133503 ppc [sound] Sound stutter after switching ttys o power/133382 ppc [install] Installer gets signal 11 o power/131548 ppc ofw_syscons no longer supports 32-bit framebuffer 11 problems total. From owner-freebsd-ppc@FreeBSD.ORG Tue Mar 6 02:47:29 2012 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7FF2A106564A; Tue, 6 Mar 2012 02:47:29 +0000 (UTC) (envelope-from superbisquit@gmail.com) Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mx1.freebsd.org (Postfix) with ESMTP id 416038FC0C; Tue, 6 Mar 2012 02:47:29 +0000 (UTC) Received: by dakl33 with SMTP id l33so17062383dak.17 for ; Mon, 05 Mar 2012 18:47:28 -0800 (PST) Received-SPF: pass (google.com: domain of superbisquit@gmail.com designates 10.68.190.42 as permitted sender) client-ip=10.68.190.42; Authentication-Results: mr.google.com; spf=pass (google.com: domain of superbisquit@gmail.com designates 10.68.190.42 as permitted sender) smtp.mail=superbisquit@gmail.com; dkim=pass header.i=superbisquit@gmail.com Received: from mr.google.com ([10.68.190.42]) by 10.68.190.42 with SMTP id gn10mr54300418pbc.107.1331002048925 (num_hops = 1); Mon, 05 Mar 2012 18:47:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=AHo5EP6oRtBMZL2cylUo8xMblVG52gt+4LDGARIY0aE=; b=nnNAVvCfBGAYFWdhLSDtiWmus+kw59XVw7hzCo/amw4lcDDP8X63+ckC96rQv204Fg ZIayf4Lu0vcyL5lzmg2RherHnHRc300Aa+k/dmYsl7HC0zK6W7JTk5NU4tyRR0a0D5WQ qorVhZamotbyRNmsu5TxM4JyemswkkdSZ3aF7wjltIql8As/qM59rqn0SY/d8GIR25Wl wqezenRRKeZn5dLfEGVwrSjTtPOmLFvCsBS9glUgrW+N2EIX18dwzFBe4YeCn79EkrFv CPvEwVRhupi5U70KPOZ1oR6kSO0zjl3u/A7dKba/4Ryb1P3tB2b4s5uUD59dv0jJGN/M MGAQ== MIME-Version: 1.0 Received: by 10.68.190.42 with SMTP id gn10mr46537403pbc.107.1331002048811; Mon, 05 Mar 2012 18:47:28 -0800 (PST) Received: by 10.68.219.10 with HTTP; Mon, 5 Mar 2012 18:47:28 -0800 (PST) In-Reply-To: References: Date: Mon, 5 Mar 2012 21:47:28 -0500 Message-ID: From: Super Bisquit To: freebsd-java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD PowerPC ML Subject: Re: Some news 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 02:47:29 -0000 So far: I've run ./path/jre-ppc.bin This results in the temporary unpacking directory to complain about an uncompress error. The tempoary fix: cd /path/to/vm.tar.Z tar xvf vm.tar.Z (list) Extraction stops at /tmp/$INSTALL_DIR/resource/jre/lib/ddr with j9ddr.jar. Whenever the IBM Developerworks site comes back online, I'll post the errors there and also at the Oracle Java forums. This is further than the install on Debian went. For sdk-ppc.bin: Did not go so well. Damaged tar archive. The installer suggested downloading using binary mode. I'm hoping that this information helps out a little. On 2/24/12, Super Bisquit wrote: > I'm not the best at diplomacy but I try. > https://www.ibm.com/developerworks/mydeveloperworks/blogs/fe313521-2e95-46f2-817d-44a4f27eba32/entry/do_you_use_java_741?lang=en > > I'm hoping someone else helps this effort. > From owner-freebsd-ppc@FreeBSD.ORG Tue Mar 6 06:24:38 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 20CD31065672 for ; Tue, 6 Mar 2012 06:24:38 +0000 (UTC) (envelope-from robballantyne3@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id A46D88FC15 for ; Tue, 6 Mar 2012 06:24:37 +0000 (UTC) Received: by werl4 with SMTP id l4so3734776wer.13 for ; Mon, 05 Mar 2012 22:24:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Oz9e4TNAHDzLA/Xg7jBuwNG1zG0ZN9ML5OXdl81W/G0=; b=XSGmV7O/qIypAXzlkLUtSXgFY5/XI7UZgVLc21AiVCZMUz3EOVtw62Q9/Fjf1mEdyv 3yMixhatBOzWdWqIGLYGNyjuNKyulf+rjarO3lEp6GmTTjbGNBT+yW4MBUq+JWI1xO6B 7BfjovzXcYiOZ2Nj+T+XiueRI39zSz1oRDg3WRs6ClnvBP10FrPmnXDIVeODuAOoh6Fu SrZRN2ScTCKriLmvHW0RxrW0lfUVZtB2SGKlJgHC25emTdkBpsl/3dd5D2EPntmA5hDn F+uavcVN58qd3JNZ39ozTHHk9aytEanX8J89iZMnaGv8m1U2cxFzjIQbqnC7NAMdpP5U kFaw== MIME-Version: 1.0 Received: by 10.180.90.225 with SMTP id bz1mr16547376wib.5.1331015076533; Mon, 05 Mar 2012 22:24:36 -0800 (PST) Received: by 10.223.117.70 with HTTP; Mon, 5 Mar 2012 22:24:36 -0800 (PST) Date: Mon, 5 Mar 2012 22:24:36 -0800 Message-ID: From: Rob Ballantyne To: freebsd-ppc@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: 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 06:24:38 -0000 Hi All, I've been poking around trying to understand the boot up process of a ppc64 G5 machine. I was slightly surprised to still find an Apple Partition map disk. I would have thought it was an ordinary fdisk (PC) partition setup. Let me see if I have it right: 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 ... and we're off to the races. 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? 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. 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. Thanks, Rob From owner-freebsd-ppc@FreeBSD.ORG Tue Mar 6 07:01:03 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 16059106566C for ; Tue, 6 Mar 2012 07:01:03 +0000 (UTC) (envelope-from freebsd-ppc@dino.sk) Received: from loki.netlab.sk (loki.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id 7967B8FC13 for ; Tue, 6 Mar 2012 07:01:02 +0000 (UTC) Received: from zeta.dino.sk (fw1.dino.sk [84.245.95.252]) (AUTH: LOGIN milan, TLS: TLSv1/SSLv3,128bits,AES128-SHA) by loki.netlab.sk with ESMTPSA; Tue, 06 Mar 2012 07:50:21 +0100 id 00033C0D.4F55B3AD.000141DE Date: Tue, 6 Mar 2012 07:50:45 +0100 From: Milan Obuch To: Rob Ballantyne Message-ID: <20120306075045.5be555b9@zeta.dino.sk> In-Reply-To: References: X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX+/v7++v6YOTrq8PCcuIX989UvOSj++v0BNCbpAAAAB3RJTUUHsQwfFzs7RBhzUQAAAhJJREFUOI1dU8GOqzAMNKIoV1bvwD1i0ysqrHplIdBrVSX7ATSbd03VVvn9tQNtQy0hjAdn7LED4AAcPtWm9RV+MPSfxhBLx9ajd6X/ngB6/mTwnRSZua7i7Ca+0ctZKo4Qmz+JY13X6I3nFZBxIYW1PbgfQ5RP8g0XlltEWGf3cV03joYpRnFbvYDKbXjZlXyyhEZA4lI+cN3NaVXE4VKjSwTExO10eTEkkJVqIAD5z0nUBQJluQDRSQjcrBiHAJxZlAH5CUMBMC7OcJ4LMQNnxhZ1HYPscMc6J4UlWRMNwzOpCcAHKSICd1EDn83abdREIbXsHkD1OinP1aCUCOEVRaa1lMcvywUWdYgk13JQUpYNKmvXQ8Kw5ML9YI5h8SakctBc7E/IYuLhYd/zZIk+1gM1vNweQBvHE0j+oYah3sMqAytQYlZk6+ANaaawJdu3OFzYGMZ3iGpa3qMlq9ZH0VZTgrCtw/ngdYkEIIpSbP1bWQAdFdX9vocBdkH2qVjVmuMu3gI5rjs814EUdrCZgWlPaxZZ3RiLFUtr+ud0PXwp2dnQSNXgePt6AZpBj6UMJ7VQkzN4utVeaSW1Dhn/kblGrKeMvNGnzwX4zuEDarYz1KdPtR60Gul0Gued+515SJXhCsl+Tx/3kY/UDvicPll9mfu50t3tvQ/thZpJYgeuwdSKNJ6tCD98MCgoxLDaPxbwqqwPWaWiAAAAAElFTkSuQmCC X-Face: ak5rwz4-aUa>hPFZlcg,bXxn.(TN}e9DGFrKU\.i_'B[&5=pAd9o"j)5VSUYW:BRQG#^42Ev$Il|; Ztn=,C X-Operating-System: FreeBSD/amd64 8.2-STABLE Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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:01:03 -0000 On Mon, 5 Mar 2012 22:24:36 -0800 Rob Ballantyne wrote: > Hi All, > > I've been poking around trying to understand the boot up process of > a ppc64 G5 machine. > Hi, I think it is basically the same for G4 too :) > I was slightly surprised to still find an Apple Partition map disk. > I would have thought it was an ordinary fdisk (PC) partition setup. > This is most probably OpenFirmware (or implementation on machine in question) dependency - at least on Apple's boxes ability to load kernel from UFS filesystem in some newer version was removed. > Let me see if I have it right: > > 1 - OpenFirmware (OFW) load Apple_Bootstrap/boot1.elf Actually, there is Apple_Bootstrap/bootinfo.txt, a Forth wrapper script which is loaded first and it loads 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 > > ... and we're off to the races. > > 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? > I did not investigate here much, but as soon as /boot/kernel/loader is called, it should work 'the usual way' as on any other platform, i. e. /boot/*.4th files are used accordingly. Just a nit-pick, they have no relation to OpenFirmware, all they have in common is they are written in the same language. At least that's the way I understand it. > 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. > It is small partition in Apple's HFS format or whatever the acronym is because it is the only format Apple's OpenFirmware understands now. Basically, there are two files in it - bootinfo.txt and boot1.elf, in a ppc directory. Both are already mentioned above. > 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. > Well, I am not an expert, I am interested in this area too, trying to understand, and be able to modify the boot process too. But as there are some differences with what I already know, sometimes it is not easy :) Regards, Milan 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 From owner-freebsd-ppc@FreeBSD.ORG Tue Mar 6 22:52:05 2012 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 374D710656B6; Tue, 6 Mar 2012 22:52:05 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id 021EB8FC26; Tue, 6 Mar 2012 22:52:04 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.5/8.14.5) with ESMTP id q26Mq4V2094443; Tue, 6 Mar 2012 17:52:04 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.5/8.14.5/Submit) id q26Mq4jj094431; Tue, 6 Mar 2012 22:52:04 GMT (envelope-from tinderbox@freebsd.org) Date: Tue, 6 Mar 2012 22:52:04 GMT Message-Id: <201203062252.q26Mq4jj094431@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [head tinderbox] failure on powerpc/powerpc X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 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 22:52:05 -0000 TB --- 2012-03-06 22:36:15 - tinderbox 2.9 running on freebsd-current.sentex.ca TB --- 2012-03-06 22:36:15 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2012-03-06 22:36:15 - cleaning the object tree TB --- 2012-03-06 22:36:15 - cvsupping the source tree TB --- 2012-03-06 22:36:15 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/powerpc/powerpc/supfile TB --- 2012-03-06 22:36:26 - building world TB --- 2012-03-06 22:36:26 - CROSS_BUILD_TESTING=YES TB --- 2012-03-06 22:36:26 - MAKEOBJDIRPREFIX=/obj TB --- 2012-03-06 22:36:26 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2012-03-06 22:36:26 - SRCCONF=/dev/null TB --- 2012-03-06 22:36:26 - TARGET=powerpc TB --- 2012-03-06 22:36:26 - TARGET_ARCH=powerpc TB --- 2012-03-06 22:36:26 - TZ=UTC TB --- 2012-03-06 22:36:26 - __MAKE_CONF=/dev/null TB --- 2012-03-06 22:36:26 - cd /src TB --- 2012-03-06 22:36:26 - /usr/bin/make -B buildworld >>> World build started on Tue Mar 6 22:36:26 UTC 2012 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries [...] cc -fpic -DPIC -O2 -pipe -I/src/lib/libc/include -I/src/lib/libc/../../include -I/src/lib/libc/powerpc -DNLS -D__DBINTERFACE_PRIVATE -I/src/lib/libc/../../contrib/gdtoa -DINET6 -I/obj/powerpc.powerpc/src/lib/libc -I/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/src/lib/libc/../../contrib/tzcode/stdtime -I/src/lib/libc/stdtime -I/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/src/lib/libc/rpc -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /src/lib/libc/string/wmemcmp.c -o wmemcmp.So cc -fpic -DPIC -O2 -pipe -I/src/lib/libc/include -I/src/lib/libc/../../include -I/src/lib/libc/powerpc -DNLS -D__DBINTERFACE_PRIVATE -I/src/lib/libc/../../contrib/gdtoa -DINET6 -I/obj/powerpc.powerpc/src/lib/libc -I/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/src/lib/libc/../../contrib/tzcode/stdtime -I/src/lib/libc/stdtime -I/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/src/lib/libc/rpc -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /src/lib/libc/string/wmemcpy.c -o wmemcpy.So cc -fpic -DPIC -O2 -pipe -I/src/lib/libc/include -I/src/lib/libc/../../include -I/src/lib/libc/powerpc -DNLS -D__DBINTERFACE_PRIVATE -I/src/lib/libc/../../contrib/gdtoa -DINET6 -I/obj/powerpc.powerpc/src/lib/libc -I/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/src/lib/libc/../../contrib/tzcode/stdtime -I/src/lib/libc/stdtime -I/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/src/lib/libc/rpc -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /src/lib/libc/string/wmemmove.c -o wmemmove.So cc -fpic -DPIC -O2 -pipe -I/src/lib/libc/include -I/src/lib/libc/../../include -I/src/lib/libc/powerpc -DNLS -D__DBINTERFACE_PRIVATE -I/src/lib/libc/../../contrib/gdtoa -DINET6 -I/obj/powerpc.powerpc/src/lib/libc -I/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/src/lib/libc/../../contrib/tzcode/stdtime -I/src/lib/libc/stdtime -I/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/src/lib/libc/rpc -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /src/lib/libc/string/wmemset.c -o wmemset.So building shared library libc.so.7 setrunelocale.So: In function `__getCurrentRuneLocale': setrunelocale.c:(.text+0x0): multiple definition of `__getCurrentRuneLocale' nomacros.So:nomacros.c:(.text+0x0): first defined here *** Error code 1 Stop in /src/lib/libc. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2012-03-06 22:52:04 - WARNING: /usr/bin/make returned exit code 1 TB --- 2012-03-06 22:52:04 - ERROR: failed to build world TB --- 2012-03-06 22:52:04 - 756.45 user 116.10 system 949.12 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-powerpc-powerpc.full From owner-freebsd-ppc@FreeBSD.ORG Wed Mar 7 05:49: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 EF8C3106564A for ; Wed, 7 Mar 2012 05:49:42 +0000 (UTC) (envelope-from robballantyne3@gmail.com) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 811628FC0C for ; Wed, 7 Mar 2012 05:49:42 +0000 (UTC) Received: by wibhn6 with SMTP id hn6so4112929wib.13 for ; Tue, 06 Mar 2012 21:49:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=2WCJgcfLNgQvF/jEcFzeD0mUw0WYKHoSYhGZkdeiO6A=; b=f2kBjGqHxPJlvOLZnt3CvvUujO7GaReaGgGA75aWg4NKYruO4IAEiC6OIbfg3C48Sg hZKl678nu8R1Ho2C4Q99CUtiS3EJ2lPeg8bzW/ao/TRahu7QUJ4FzWnZOqyQM9pVUdhe mm/gQJEF6IoJdi9ngqIcIAvlojKAC80V+7xQ194hawmePj0msQCRAas7W4sCE7itvyiH A4uHFupRTPTw4iNe3o39H9gEY/tnxuwV5dKQd32AmeDj/fqXFQCOMwBTW6Zffr2qes9p cpyYDoU6INtPMdPjJMNl4jKpaPumq54nQWWQi1nspvrW+0OtLpC34yBuVP8W4GbaZGEv SOgw== MIME-Version: 1.0 Received: by 10.216.136.145 with SMTP id w17mr280808wei.98.1331099381635; Tue, 06 Mar 2012 21:49:41 -0800 (PST) Received: by 10.223.120.82 with HTTP; Tue, 6 Mar 2012 21:49:41 -0800 (PST) In-Reply-To: <20120306075045.5be555b9@zeta.dino.sk> References: <20120306075045.5be555b9@zeta.dino.sk> Date: Tue, 6 Mar 2012 21:49:41 -0800 Message-ID: From: Rob Ballantyne To: Milan Obuch , jeremyhu@freedesktop.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Wed, 07 Mar 2012 05:49:43 -0000 Thank you Milan and Jeremy, That helped a lot. I looked at the code for bsdinstall that sets up the bootable disk and it appears to use GEOM/gpart to partition the disk. The manpage for gpart indicates it understands the Apple Partition system (APM). It appears that an HFS image file is manipulated during the kernel build process in the following section of a Makefile (/usr/src/sys/boot/powerpc/boot1.chrp) boot1.hfs: boot1.elf bootinfo.txt echo ${.OBJDIR} uudecode ${.CURDIR}/hfs.tmpl.bz2.uu mv hfs.tmpl.bz2 ${.TARGET}.bz2 bzip2 -f -d ${.TARGET}.bz2 dd if=3Dboot1.elf of=3D${.TARGET} seek=3D${BOOT1_OFFSET} conv=3Dnotrunc dd if=3D${.CURDIR}/bootinfo.txt of=3D${.TARGET} seek=3D${BOOTINFO_OFFSET} = \ conv=3Dnotrunc It appears you may be able to substitute your own boot.elf/bootinfo.txt files at this stage (although it appears since the file content is being 'poked' into an existing hfs image this might be a bit sensitive to changes). Cheers, Rob On Mon, Mar 5, 2012 at 10:50 PM, Milan Obuch wrote: > On Mon, 5 Mar 2012 22:24:36 -0800 > Rob Ballantyne wrote: > >> Hi All, >> >> =A0 I've been poking around trying to understand the boot up process of >> a ppc64 G5 machine. >> > > Hi, > > I think it is basically the same for G4 too :) > >> =A0 I was slightly surprised to still find an Apple Partition map disk. >> I would have thought it was an ordinary fdisk (PC) partition setup. >> > > This is most probably OpenFirmware (or implementation on machine in > question) dependency - at least on Apple's boxes ability to load kernel > from UFS filesystem in some newer version was removed. > >> =A0 Let me see if I have it right: >> >> 1 - OpenFirmware (OFW) load Apple_Bootstrap/boot1.elf > > Actually, there is Apple_Bootstrap/bootinfo.txt, a Forth wrapper script > which is loaded first and it loads 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 >> >> ... and we're off to the races. >> >> =A0 This strikes me as fairly simplistic so I'm sure there are more >> details. =A0I'm curious about /boot/*.4th OpenFirmware forth code, for >> example. =A0Is it involved in a substantial way? >> > > I did not investigate here much, but as soon as /boot/kernel/loader is > called, it should work 'the usual way' as on any other platform, i. > e. /boot/*.4th files are used accordingly. Just a nit-pick, they have > no relation to OpenFirmware, all they have in common is they are > written in the same language. At least that's the way I understand it. > >> =A0 The other thing I'm curious about is the Apple_Bootstrap partition. >> How is it written? =A0I've discovered parteditor within the bsdinstall >> installer. =A0I suspect that does it but it doesn't appear to let one >> write their own bootloader code =A0image. >> > > It is small partition in Apple's HFS format or whatever the acronym is > because it is the only format Apple's OpenFirmware understands now. > Basically, there are two files in it - bootinfo.txt and boot1.elf, in a > ppc directory. Both are already mentioned above. > >> =A0 As I said mostly curiosity and trying to understand. =A0If anyone ha= s >> a few words of confirmation/advice I would be glad to hear them. >> > > Well, I am not an expert, I am interested in this area too, trying to > understand, and be able to modify the boot process too. But as there > are some differences with what I already know, sometimes it is not > easy :) > > Regards, > Milan From owner-freebsd-ppc@FreeBSD.ORG Wed Mar 7 06:45:13 2012 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B356E1065670 for ; Wed, 7 Mar 2012 06:45:13 +0000 (UTC) (envelope-from milan@dino.sk) Received: from loki.netlab.sk (loki.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id 206488FC17 for ; Wed, 7 Mar 2012 06:45:12 +0000 (UTC) Received: from zeta.dino.sk (fw1.dino.sk [84.245.95.252]) (AUTH: LOGIN milan, TLS: TLSv1/SSLv3,128bits,AES128-SHA) by loki.netlab.sk with ESMTPSA; Wed, 07 Mar 2012 07:34:30 +0100 id 00033C09.4F570176.00003096 Date: Wed, 7 Mar 2012 07:35:07 +0100 From: Milan Obuch To: Rob Ballantyne , jeremyhu@freedesktop.org Message-ID: <20120307073507.6bdd8e90@zeta.dino.sk> In-Reply-To: References: <20120306075045.5be555b9@zeta.dino.sk> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX+/v7++v6YOTrq8PCcuIX989UvOSj++v0BNCbpAAAAB3RJTUUHsQwfFzs7RBhzUQAAAhJJREFUOI1dU8GOqzAMNKIoV1bvwD1i0ysqrHplIdBrVSX7ATSbd03VVvn9tQNtQy0hjAdn7LED4AAcPtWm9RV+MPSfxhBLx9ajd6X/ngB6/mTwnRSZua7i7Ca+0ctZKo4Qmz+JY13X6I3nFZBxIYW1PbgfQ5RP8g0XlltEWGf3cV03joYpRnFbvYDKbXjZlXyyhEZA4lI+cN3NaVXE4VKjSwTExO10eTEkkJVqIAD5z0nUBQJluQDRSQjcrBiHAJxZlAH5CUMBMC7OcJ4LMQNnxhZ1HYPscMc6J4UlWRMNwzOpCcAHKSICd1EDn83abdREIbXsHkD1OinP1aCUCOEVRaa1lMcvywUWdYgk13JQUpYNKmvXQ8Kw5ML9YI5h8SakctBc7E/IYuLhYd/zZIk+1gM1vNweQBvHE0j+oYah3sMqAytQYlZk6+ANaaawJdu3OFzYGMZ3iGpa3qMlq9ZH0VZTgrCtw/ngdYkEIIpSbP1bWQAdFdX9vocBdkH2qVjVmuMu3gI5rjs814EUdrCZgWlPaxZZ3RiLFUtr+ud0PXwp2dnQSNXgePt6AZpBj6UMJ7VQkzN4utVeaSW1Dhn/kblGrKeMvNGnzwX4zuEDarYz1KdPtR60Gul0Gued+515SJXhCsl+Tx/3kY/UDvicPll9mfu50t3tvQ/thZpJYgeuwdSKNJ6tCD98MCgoxLDaPxbwqqwPWaWiAAAAAElFTkSuQmCC X-Face: ak5rwz4-aUa>hPFZlcg,bXxn.(TN}e9DGFrKU\.i_'B[&5=pAd9o"j)5VSUYW:BRQG#^42Ev$Il|; Ztn=,C X-Operating-System: FreeBSD/amd64 8.2-STABLE Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Wed, 07 Mar 2012 06:45:13 -0000 On Tue, 6 Mar 2012 21:49:41 -0800 Rob Ballantyne wrote: > Thank you Milan and Jeremy, > > That helped a lot. > > I looked at the code for bsdinstall that sets up the bootable disk > and it appears to use GEOM/gpart to partition the disk. The manpage > for gpart indicates it understands the Apple Partition system (APM). > Yes, it works - I was able to install 9.0/powerpc64 with bsdinstall easily. When doing it manually with gpart, all what differs from usual way is selecting apm scheme, but it works already from bsdinstall, so if you are not needing anything super fancy, no need to work with gpart directly. > It appears that an HFS image file is manipulated during the kernel > build process in > the following section of a Makefile > (/usr/src/sys/boot/powerpc/boot1.chrp) > > boot1.hfs: boot1.elf bootinfo.txt > echo ${.OBJDIR} > uudecode ${.CURDIR}/hfs.tmpl.bz2.uu > mv hfs.tmpl.bz2 ${.TARGET}.bz2 > bzip2 -f -d ${.TARGET}.bz2 > dd if=boot1.elf of=${.TARGET} seek=${BOOT1_OFFSET} > conv=notrunc dd if=${.CURDIR}/bootinfo.txt of=${.TARGET} > seek=${BOOTINFO_OFFSET} \ conv=notrunc > Yes, exactly here. Actually, there is Makefile.hfs for hfs template creation, so you can see how exactly hfs filesystem image can be created, but because some tool outside of usual kernel source is needed, it is not normally used and only compiled boot1.elf and simple bootinfo.txt is written into pre-created image file using predefined file offsets. > It appears you may be able to substitute your own > boot.elf/bootinfo.txt files at > this stage (although it appears since the file content is being > 'poked' into an existing > hfs image this might be a bit sensitive to changes). > All what matters is file size. If you are not trying to use way longer files (see Makefile.hfs for some hints), you can alter anything provided you are not trying to do something really silly :) I did some bootinfo.txt hacks in order to create simple boot menu for partition selection, with a bit of boot1.c editing as well, but I did not found a way to use keyboard when invoking modified bootinfo.txt automatically. All works using 'boot hd2:\bootinfo.txt' command from openfirmware prompt, but I can't investigate more now (not that I know where :) but that's another story). Regards, Milan