Received: from [203.143.174.143] (helo=lemon.ken.nicta.com.au) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1Mgpkv-000534-LK for openembedded-devel@lists.openembedded.org; Fri, 28 Aug 2009 02:55:55 +0200 Received: from vampire.ertos.nicta.com.au ([203.143.161.65]:45763 helo=rhino.keg.ertos.in.nicta.com.au.chubb.wattle.id.au) by lemon.ken.nicta.com.au with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1MgpTg-0007t2-23 for openembedded-devel@lists.openembedded.org; Fri, 28 Aug 2009 10:38:08 +1000 Date: Fri, 28 Aug 2009 10:37:36 +1000 Message-ID: <87eiqw22pb.wl%peter@chubb.wattle.id.au> From: Peter Chubb To: OpenEmbedded Developers User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 MULE XEmacs/21.4 (patch 21) (Educational Television) (i486-linux-gnu) X-Face: GgFg(Z>fx((4\32hvXq<)|jndSniCH~~$D)Ka:P@e@JR1P%Vr}EwUdfwf-4j\rUs#JR{'h# !]])6%Jh~b$VA|ALhnpPiHu[-x~@<"@Iv&|%R)Fq[[, (&Z'O)Q)xCqe1\M[F8#9l8~}#u$S$Rm`S9% \'T@`:&8>Sb*c5d'=eDYI&GF`+t[LfDH="MP5rwOO]w>ALi7'=QJHz&y&C&TE_3j! Organization: National ICT Australia MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") X-SA-Exim-Connect-IP: 203.143.161.65 X-SA-Exim-Mail-From: peter.chubb@nicta.com.au X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on lemon.ken.nicta.com.au X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:20:11 +0000) X-SA-Exim-Scanned: Yes (on lemon.ken.nicta.com.au) Subject: Cross-platform grub? X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Aug 2009 00:55:56 -0000 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, I'm working on a system that ends up with a bootable disk image, for now for qemu, but also for pxe-booting. It uses the grub shell to make the image bootable, with a script that looks something like the appended. This works fine iff we're running on the same architecture as the target (i.e., 32-bit x86). There is no grub-native target, and looking at the grub source there's not going to be. I want to be able to build on systems without grub-legacy installed, such as power-PC, or Itanium. Is there any work being done on grub-2? Or any other way of making a grub-shell-like thingy for making bootable disks for x86 from an arbitrary host? -- Script excerpt # create sparse file of appropriate size dd if=3D/dev/zero of=3D"$1" bs=3D512b seek=3D$sz count=3D1 # Set up mtools-native echo "drive c: file=3D\"$1\" partition=3D1" > mtoolsrc export MTOOLSRC=3Dmtoolsrc mpartition -I c: mpartition -c -t $CYLINDERS -h 16 -s 63 c: mformat c: mmd c:/boot mmd c:/boot/grub # Install grub mcopy "${GRUB}/stage1" c:/boot/grub mcopy "${GRUB}/stage2" c:/boot/grub mcopy "${GRUB}/fat_stage1_5" c:/boot/grub echo "(hd0) $1" > bmap echo -e "geometry (hd0) $CYLINDERS 16 63\nroot (hd0,0)\nsetup (hd0)" | grub --device-map=3Dbmap --batch -- Dr Peter Chubb www.nicta.com.au peter DOT chubb AT nicta.com.au http://www.ertos.nicta.com.au ERTOS within National ICT Australia =46rom Imagination to Impact Imagining the (ICT) Futu= re