From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1QaJxQ-0000Yw-Pk for mharc-grub-devel@gnu.org; Fri, 24 Jun 2011 23:54:57 -0400 Received: from eggs.gnu.org ([140.186.70.92]:54096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaJxN-0000Yp-Ry for grub-devel@gnu.org; Fri, 24 Jun 2011 23:54:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QaJxM-0001BH-IP for grub-devel@gnu.org; Fri, 24 Jun 2011 23:54:53 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:63382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaJxM-0001B8-9I for grub-devel@gnu.org; Fri, 24 Jun 2011 23:54:52 -0400 Received: by wwf22 with SMTP id 22so2727635wwf.30 for ; Fri, 24 Jun 2011 20:54:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:x-enigmail-version:content-type; bh=X9qN3K5fZpx9DE17t9RsrFR4Rovxe3acuASGiJCa/SU=; b=QK50eHfm+XU4V3T0kuW/k1X+JA3v6XSlRtDb+FfsEf3V9QvhY7MCTRVPbiFkbS3lR7 a/tuesChNs88c41CQd/M05FqYw5A/szy9PP2wuinK8ChQc/xuZg7vCPk008eLQAvYu+g pbu0PqOyqjm0wu/P0hL7Xhfo+5LPxVmg7F8nc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; b=tnLfmDIfH2ormf1LC1f9TjcJT1yBgwU5ajXjqKZMmLyJGacLXFC7WLrwsL/vPXUKWU loDUWEuC7h/zy0dhKcxFReryagDT3K/R/XTCWZVrz3oKHd1la+w1Dico+m5qUCgetf5p 9bJ5K9x0AmGHLyREsSnOlL46n286S1VwOR1Qc= Received: by 10.217.6.194 with SMTP id y44mr277676wes.74.1308974090339; Fri, 24 Jun 2011 20:54:50 -0700 (PDT) Received: from debian.x201.phnet (6.71.63.81.cust.bluewin.ch [81.63.71.6]) by mx.google.com with ESMTPS id o19sm2443988wbh.38.2011.06.24.20.54.47 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 24 Jun 2011 20:54:49 -0700 (PDT) Message-ID: <4E055C06.502@gmail.com> Date: Sat, 25 Jun 2011 05:54:46 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110606 Iceowl/1.0b2 Icedove/3.1.10 MIME-Version: 1.0 To: Graeme Russ Subject: Re: Contribution: a file loading module References: <4E035EF8.8050803@gmail.com> <4E0546CA.9070704@gmail.com> <4E055499.1030207@gmail.com> <4E05578B.7070908@gmail.com> In-Reply-To: <4E05578B.7070908@gmail.com> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig81333825C5DE90C0E0616146" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.49 Cc: The development of GNU GRUB , Pierre-Nicolas Clauss X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jun 2011 03:54:55 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig81333825C5DE90C0E0616146 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 25.06.2011 05:35, Graeme Russ wrote: > Hi Vladimir, > > On 25/06/11 13:23, Vladimir '=CF=86-coder/phcoder' Serbinenko wrote: >> This is perfectly accomodated by multiboot specification. Just add a >> small structure somewhere in the first 8K of the file and your image i= s >> multiboot-compliant. > Thanks for the advice, but I have a few questions (please excuse any th= at > appear really 'newby') > > - What GRUB command(s) would I use to load & run the image multiboot+boot > - How do I specify where in memory the file is loaded? It's part of this structure. > - Is there a 'quick and dirty' document on how to create a multiboot > header which GRUB can load? > http://bzr.savannah.gnu.org/lh/grub/trunk/multiboot/annotate/head:/doc/mu= ltiboot.texi "Multiboot header must be contained completely within the first 8192 bytes of the OS image, and must be longword (32-bit) aligned." In short your header should be (little-endian uint32_t): /* magic */ 0x1BADB002, /* flags */ 0x00010000, /* checksum */ 0xe4514ffe, header_offset+load_addr, load_addr, 0, 0, entry_addr --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig81333825C5DE90C0E0616146 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk4FXAYACgkQNak7dOguQglVtgD/QbfzapTOvD13gPm8uTbyVH3Z MR31rrOnuW6+brXmjBQA/3psuNWVDjta/butAT40h6L3T6me4grH4AtltG7kKeq0 =S7Zo -----END PGP SIGNATURE----- --------------enig81333825C5DE90C0E0616146--