From owner-freebsd-ppc@FreeBSD.ORG Sun Mar 20 22:00:05 2011 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 587491065746 for ; Sun, 20 Mar 2011 22:00:05 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from thalia-smout.broadpark.no (thalia-smout.broadpark.no [80.202.8.21]) by mx1.freebsd.org (Postfix) with ESMTP id F148C8FC1D for ; Sun, 20 Mar 2011 22:00:04 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from terra-smin.broadpark.no ([80.202.8.13]) by thalia-smout.broadpark.no (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with ESMTP id <0LID007F6MG3MX30@thalia-smout.broadpark.no> for freebsd-ppc@freebsd.org; Sun, 20 Mar 2011 23:00:03 +0100 (CET) Received: from kg-v2.kg4.no ([84.48.120.215]) by terra-smin.broadpark.no (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with SMTP id <0LID00976MG3PSH0@terra-smin.broadpark.no> for freebsd-ppc@freebsd.org; Sun, 20 Mar 2011 23:00:03 +0100 (CET) Date: Sun, 20 Mar 2011 23:00:02 +0100 From: Torfinn Ingolfsen To: freebsd-ppc@freebsd.org Message-id: <20110320230002.1d23e985.torfinn.ingolfsen@broadpark.no> In-reply-to: References: <20110113220450.57d09983.torfinn.ingolfsen@broadpark.no> <20110114221406.34969090.torfinn.ingolfsen@broadpark.no> <4D31582F.1060300@FreeBSD.org> <20110115190637.7ac32abe.torfinn.ingolfsen@broadpark.no> <20110122200810.2386cbef.torfinn.ingolfsen@broadpark.no> <20110313221425.a8d3361f.torfinn.ingolfsen@broadpark.no> <4200D52B-ED04-4F6A-BA2A-EAD7DF3EBF37@gmail.com> <20110314212840.91564b62.torfinn.ingolfsen@broadpark.no> <20110318200242.f957f677.torfinn.ingolfsen@broadpark.no> X-Mailer: Sylpheed 3.1.0 (GTK+ 2.22.1; amd64-portbld-freebsd8.1) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Subject: Re: PowerPC, gpart and multiboot (Was: Trying to install FreeBSD 8.2-RC1 on a PowerMac G5) 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, 20 Mar 2011 22:00:05 -0000 Anyway, here is my plan for multiboot: root@kg-g5# gpart show ad0 => 18 625142430 ad0 APM (298G) 18 1600 1 apple-boot (800K) 1618 155189248 2 freebsd-ufs (74G) 155190866 8388608 3 freebsd-swap (4.0G) 163579474 1600 4 apple-boot (800K) 163581074 155189248 5 freebsd-ufs (74G) 318770322 306372126 - free - (146G) The boot code in partition 4 (ad0s5) will be modified so that it boots from the next partition (the partition after the one the bootcode itself is loaded from) instead of the first partition. Do you think it's doable? I have examined boot1.c (in /usr/src/sys/boot/powerpc/boot1.chrp) but I don't really understand how it is finding the partition to boot / load the kernel from. Can anyone explain it? -- Torfinn