From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1QrrHD-0005aF-1T for mharc-grub-devel@gnu.org; Fri, 12 Aug 2011 08:55:51 -0400 Received: from eggs.gnu.org ([140.186.70.92]:55488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrrH7-0005X2-6V for grub-devel@gnu.org; Fri, 12 Aug 2011 08:55:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QrrH5-0006g5-Gq for grub-devel@gnu.org; Fri, 12 Aug 2011 08:55:45 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:58458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrrH5-0006f8-CT for grub-devel@gnu.org; Fri, 12 Aug 2011 08:55:43 -0400 Received: by wyi11 with SMTP id 11so2496219wyi.0 for ; Fri, 12 Aug 2011 05:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; 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; bh=ikIDW3bat1IXicPwewJVJHLgHX0vkbPitfVjBoD1FUE=; b=JCPdIsCQHOyjtTnkYVjX1wBo1BFMLczZwf1C2aDJ7A8Jot0eME9pApC7iXOSAzwXLq D9UbvNCuxJAMcADV3NC1haXGfE/+HMPrHoMhO82snrD//seH8IsHQjbeg33Dof2rK+fF LUQP1m9WNZ+xWlUC30FMHcjcRM6YFSV5m5EOc= Received: by 10.216.68.143 with SMTP id l15mr713231wed.90.1313153741947; Fri, 12 Aug 2011 05:55:41 -0700 (PDT) Received: from debian.x201.phnet (143-6.62-81.cust.bluewin.ch [81.62.6.143]) by mx.google.com with ESMTPS id x13sm1054617wec.38.2011.08.12.05.55.37 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 12 Aug 2011 05:55:38 -0700 (PDT) Message-ID: <4E4522C1.9010508@gmail.com> Date: Fri, 12 Aug 2011 14:55:29 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Iceowl/1.0b2 Icedove/3.1.11 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: Loongson 2E boot failure References: <20110726131229.GA30427@riva.dynamic.greenend.org.uk> <20110726152502.GA3028@riva.dynamic.greenend.org.uk> <4E2EE59C.8080305@gmail.com> <20110726161932.GB3028@riva.dynamic.greenend.org.uk> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigF012C469E15D215D9D873077" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.169 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: Fri, 12 Aug 2011 12:55:49 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF012C469E15D215D9D873077 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 03.08.2011 13:21, Robert Millan wrote: > 2011/7/26 Colin Watson : >>> Looks like memory allocations are wrong. Try hardcoding heap at e.g. >>> 81000000-82000000 >> Sorry, I've not had to mess with this before. Can you point me to wha= t >> I'd need to change to hardcode a specific heap region? > Try replacing grub_machine_mmap_iterate() with something like: > > grub_err_t > grub_machine_mmap_iterate (grub_memory_hook_t hook) > { > hook (0x81000000, 82000000, GRUB_MEMORY_AVAILABLE); > return GRUB_ERR_NONE; > } > This code is wrong for at least 4 reasons: 1) 0x8.... is just to access kseg0, it's not part of physical address 2) second argument is a size, not end 3) and it's lacking 0x 4) on yeeloong memory init doesn't use mmap. Correct way is to replace: grub_mm_init_region ((void *) modend, (grub_arch_memsize << 20) - (modend - GRUB_ARCH_LOWMEMVSTART)); with: grub_mm_init_region (0x81000000, 16 << 20); --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enigF012C469E15D215D9D873077 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/ iF4EAREKAAYFAk5FIsgACgkQNak7dOguQgkzmwD/biNpWm7D3Q/T9kNPHJ9t8Dcd MRZTA9kI+Y7SpnbAjOwA/A886A8LLWh0wjUTQPajM7ozidZXa3H8H6HHQTyGC9Su =/7i2 -----END PGP SIGNATURE----- --------------enigF012C469E15D215D9D873077--