From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1PEogR-00088z-7Z for mharc-grub-devel@gnu.org; Sat, 06 Nov 2010 15:44:15 -0400 Received: from [140.186.70.92] (port=43331 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PEogN-00087s-TP for grub-devel@gnu.org; Sat, 06 Nov 2010 15:44:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PEogM-0000fW-Lu for grub-devel@gnu.org; Sat, 06 Nov 2010 15:44:11 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:45806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PEogM-0000fF-Gz for grub-devel@gnu.org; Sat, 06 Nov 2010 15:44:10 -0400 Received: by fxm2 with SMTP id 2so3179808fxm.0 for ; Sat, 06 Nov 2010 12:44:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=ydSBzkGFiEVcPEj6xzElQU9INlpMbs5C9JuVtaXrUvo=; b=b0S5rzBqMNxDMeTsq3ZGloleIAw1jpDuU7cp2529WyNYf4NCQ66xTSCO13c20mdaZT dcNCRVCOQ2paYJ7U/ItHzCzuM6jaj0b7iaGOuqADfjCAgldbUlU4h8kCfHt9r+qTP7MQ zxrSeovAIevX6bKBfRtUnNSZJAihZ+HjgE9Q0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=C/e5ARlsRMu6WWmGLfpLgsl3NM3OrXsCoy/JFDNMlIm98gx9M1SPdjx06U6UJfU+ZE +WSKcquq80ZMvn4QftULURcAif8EReTzz43ckqIa2lbtXubzNQVOXkdn7H5KNX7l9ELa Y8xlH4E3jYOR+/63+rPIbIKLvLebeDNPd9/AI= Received: by 10.223.86.76 with SMTP id r12mr2195069fal.86.1289072648920; Sat, 06 Nov 2010 12:44:08 -0700 (PDT) Received: from debian.bg45.phnet (245-90.62-81.cust.bluewin.ch [81.62.90.245]) by mx.google.com with ESMTPS id 16sm1289100fal.24.2010.11.06.12.44.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 06 Nov 2010 12:44:07 -0700 (PDT) Message-ID: <4CD5B004.5040209@gmail.com> Date: Sat, 06 Nov 2010 20:44:04 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101030 Icedove/3.0.10 MIME-Version: 1.0 To: grub-devel@gnu.org References: <1285572572.6491.9.camel@abranches-laptop> <1287495972.8425.10.camel@manoel-desktop> <4CD2CB7E.4040801@linux.vnet.ibm.com> In-Reply-To: <4CD2CB7E.4040801@linux.vnet.ibm.com> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig29CACE4BB98C7FFC60033C37" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] fix load of RHEL ans SUSE images by correctly calculate ELF entry point X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 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, 06 Nov 2010 19:44:13 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig29CACE4BB98C7FFC60033C37 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 11/04/2010 04:04 PM, Manoel Rebelo Abranches wrote: > Fixed some issues reported by Vladimir: > > Initial alignment value 1 instead of 0. > Verify error by returning address being -1 since 0 may be valid in > memory allocated directly by the Open Firmware. > Use 'end' instead of (addr + len) to search for available memory. > change hardcoded value '1' to GRUB_MEMORY_AVAILABLE. > Go ahead. > On 10/19/2010 11:46 AM, Manoel Rebelo Abraches wrote: >> This is another version to the same fix. >> >> The first patch 01_mem.patch creates a new function to allocate memory= >> using the "available" property in the "memory" node. >> The second patch 02_offset.patch correctly finds the linux entry point= , >> also assumes that more segments can exist (made accordingly with sparc= >> implementation) >> >> The patch was made passing -Bbp to diff as suggested by Vladimir. >> I tested with RHEL/SUSE images and some RHEL/SUSE kernel I had and >> worked correctly. Before the images failed to boot. >> Thank you for reviewing this. >> >> On Mon, 2010-09-27 at 04:29 -0300, Manoel Rebelo Abraches wrote: >>> This Patch loads kernel LOAD segment at the address fixed by PhysAddr= >>> with alignment Align at the ELF program header. Even if this address = is >>> in use other address with the same alignment is found "linuxadr" (sin= ce >>> linux can relocate itself). The linux main function is then find in t= he >>> adress linuxaddr + entry + (PhysAddr- Entry), where Entry is the Ent= ry >>> point address in the ELF header. (PhysAddr- Entry) gives the offset >>> where the linux entry point is located after linuxaddr. >>> >>> >>> _______________________________________________ >>> Grub-devel mailing list >>> Grub-devel@gnu.org >>> http://lists.gnu.org/mailman/listinfo/grub-devel >> >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> http://lists.gnu.org/mailman/listinfo/grub-devel > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig29CACE4BB98C7FFC60033C37 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.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAkzVsAQACgkQNak7dOguQgnDjgD/WUjywsaOz1R00y3O4kTiGY1N 6keAzFA1QOie5T+QjbcA/2XYBB3+FcigxiJx9uwYri4QPanlx52HgU1J7hJ4yjWu =/S3Q -----END PGP SIGNATURE----- --------------enig29CACE4BB98C7FFC60033C37--