From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BzjvG-0005eP-Q5 for qemu-devel@nongnu.org; Tue, 24 Aug 2004 18:37:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BzjvG-0005eD-66 for qemu-devel@nongnu.org; Tue, 24 Aug 2004 18:37:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BzjvG-0005eA-3s for qemu-devel@nongnu.org; Tue, 24 Aug 2004 18:37:46 -0400 Received: from [209.225.28.212] (helo=mxsf12.cluster1.charter.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BzjqL-0005oT-7Y for qemu-devel@nongnu.org; Tue, 24 Aug 2004 18:32:41 -0400 Received: from mxip08.cluster1.charter.net (mxip08a.cluster1.charter.net [209.225.28.138]) by mxsf12.cluster1.charter.net (8.12.11/8.12.11) with ESMTP id i7OMWd7E015449 for ; Tue, 24 Aug 2004 18:32:39 -0400 From: James Pellow Subject: Re: [Qemu-devel] chroot to ARM Gentoo install. Date: Tue, 24 Aug 2004 15:44:59 -0700 References: <200408241238.32517.james@alentdesignsolutions.com> <200408242106.57803.paul@codesourcery.com> In-Reply-To: <200408242106.57803.paul@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200408241544.59356.james@alentdesignsolutions.com> Reply-To: james@alentdesignsolutions.com, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: qemu-devel@nongnu.org On Tuesday 24 August 2004 01:06 pm, Paul Brook wrote: > On Tuesday 24 August 2004 20:38, James Pellow wrote: > > Hi All, > > > > Thanks for a truely awesome tool! I have some custom ARM hardware that I > > have ported the linux kernel to, and for fun I want to install Gentoo on > > it. Since gentoo requires a fair piece of compiling (gasp...) and since > > my board only runs at 74MHz, I thought I would try chroot'ing into ARM > > gentoo using qemu on my Athlon system. (Yes, I have tried distcc... Its > > still slow.) I have been able to set up binfmt_misc and a statically > > compiled qemu-arm to chroot into an arm busybox install (uClibc), but for > > some reason I get the following error when I try to chroot into a gentoo > > root (full glibc): > > You might see if the this patch helps: > http://lists.gnu.org/archive/html/qemu-devel/2004-08/msg00015.html > > You don't mention what sort of ARM chip you are using. qemu only supports > armv4. It does not currently implement the armv4t or armv5 instruction > sets. I have patches implementing armv5te, but they still need testing. > > Paul Hi Paul, Thanks for the quick reply. I am using an armv4 chip, specifically an arm720tdmi. All code has been built for armv4. I tried the patch you pointed me to. Unfortunately I am still seeing the same results as previously noted. Looking at the source for ld.so, I note that this is all happening in the elf parsing code. The actual assert looks like: assert (info[DT_PLTREL]->d_un.d_val == DT_REL || info[DT_PLTREL]->d_un.d_val == DT_RELA); (elf/dynamic-link.h:126) for the case where !ELF_MACHINE_NO_RELA && !ELF_MACHINE_NO_REL are not defined... That didn't make much sense to me yet, as I haven't poked around in glibc much. Its hard for me to imagine that the problem is in glibc though since it shouldn't know the difference between running natively and running under qemu. (Or is there a subtle difference?) It more obviously seems like elf should parse same either in emulation or not. Since qemu doesn't signal, how should I procede in debugging this? Any further ideas? Thanks for your help. Regards, -- ---------------------------- James Pellow, President Alent Design Solutions www.alentdesignsolutions.com 509.526.0682 ----------------------------