From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VxS52-0004m7-8G for mharc-grub-devel@gnu.org; Sun, 29 Dec 2013 20:55:44 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxS4z-0004lU-Sf for grub-devel@gnu.org; Sun, 29 Dec 2013 20:55:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VxS4y-0005Yq-Uj for grub-devel@gnu.org; Sun, 29 Dec 2013 20:55:41 -0500 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:62576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxS4y-0005Ye-NJ for grub-devel@gnu.org; Sun, 29 Dec 2013 20:55:40 -0500 Received: by mail-wi0-f182.google.com with SMTP id en1so11142347wid.3 for ; Sun, 29 Dec 2013 17:55:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=TM0KggL3U+rReUn5ZSzsn0C5OvrfI4b2geVffH8gFGk=; b=vOOesvNUGnzImCvSRaP14q13+0TVf8SY6BHblZcIZjqsTx5bvGl3NG7bXjXW+Ow7kX 9U/J0ivkvUz7eN/nySd+MSHXipzePnbkDrUHc9H668U+7tbTqwPBsqC+eYpHeBesj2dL K6vREAmyhba0hbsCAPwm3/JtuG1Uq1MkvD0Hai3oIL9T+PSq8xwcpccv8qDj8weJq3MC mff6qp5ljEZhbdZGZhyL117u/SkwyxkgTA8GktMD6h6KrLijtUkXBQ/wrzGAV1saHSZ1 z6xMRU6y9IbAKW3s+eV/LZzCGgymE7/vLu1ikjp3cLCXCnQDGPX8MPZWmqh0unmOIwJ2 lOVA== X-Received: by 10.195.18.34 with SMTP id gj2mr446058wjd.82.1388368539187; Sun, 29 Dec 2013 17:55:39 -0800 (PST) Received: from ?IPv6:2001:67c:20a1:1068:3e97:eff:fe6a:16ab? ([2001:67c:20a1:1068:3e97:eff:fe6a:16ab]) by mx.google.com with ESMTPSA id ks3sm4706885wjc.10.2013.12.29.17.55.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 29 Dec 2013 17:55:38 -0800 (PST) Message-ID: <52C0D294.6040103@gmail.com> Date: Mon, 30 Dec 2013 02:55:32 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: Ian Campbell Subject: Re: [PATCH 0/7] arm-uboot: support for different RAM bases References: <1388342839.32105.25.camel@hastur.hellion.org.uk> In-Reply-To: <1388342839.32105.25.camel@hastur.hellion.org.uk> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="QWd1G47AxXHS7Qth4DU7CcKDIVDXd5Jnb" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::236 Cc: grub-devel@gnu.org, Leif Lindholm 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: Mon, 30 Dec 2013 01:55:42 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --QWd1G47AxXHS7Qth4DU7CcKDIVDXd5Jnb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 29.12.2013 19:47, Ian Campbell wrote: > The current arm-uboot image type is hardcoded to run at address > 0x08000000 which means that it cannot be used on ARM systems which do > not have RAM starting from address 0 (which is many of them). This is a= > bit of a problem for distros. >=20 > The following series attempts to address this by only performing a > partial link of the arm-uboot kernel.img at build time and enhancing > grub-mkimage to finalise the link to a specific address while building > the core.img. >=20 > I have test this on a Midway system, which has RAM at address 0, linkin= g > to a variety of addresses (0x{0,1,4}8000000) and on a cubieboard2 which= > has RAM at 0x40000000-0x80000000 linked at 0x48000000. (there is an > unrelated issue on cubieboard2 relating to the scan for the uboot API > signature, which I'm still investigating, but I hacked around it here > and things worked fine otherwise). >=20 Is there a way to make uboot to load GRUB at some appropriate address. We can do relocations in the startup code if needed. > I have done build only tests of arm64-efi, i386-pc and x86_64-efi. Afte= r > running grub-mkimage under faketime the resulting binaries are bit for > bit identical in every case (faketime due to the timestamp in the PE > header). >=20 > I haven't yet integrated this into grub-install, I need to think a bit > more about how to automagically determine the correct link address for = a > given platform. >=20 > If no target address is given then the existing hardcoded address > (0x08000000) is used as the default. >=20 > Please CC on any replies since I'm not subscribed. >=20 > Ian. >=20 >=20 --QWd1G47AxXHS7Qth4DU7CcKDIVDXd5Jnb 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.15 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREKAAYFAlLA0pkACgkQmBXlbbo5nOsauwEApo/pUsLHNq1W59DgYzkoZm+y ootjpEJJft5y+YTUdFEBAKVcoY2o/UHGzPeQvp8m7JeNWG7jCJwcShyWMxO0q6f+ =kruX -----END PGP SIGNATURE----- --QWd1G47AxXHS7Qth4DU7CcKDIVDXd5Jnb--