From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CUrMu-00043K-Kk for qemu-devel@nongnu.org; Thu, 18 Nov 2004 13:50:56 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CUrMt-00042Z-OR for qemu-devel@nongnu.org; Thu, 18 Nov 2004 13:50:55 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CUrMt-00042R-Ku for qemu-devel@nongnu.org; Thu, 18 Nov 2004 13:50:55 -0500 Received: from [209.225.28.211] (helo=mxsf11.cluster1.charter.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CUrDJ-00040q-LX for qemu-devel@nongnu.org; Thu, 18 Nov 2004 13:41:01 -0500 Received: from mxip07.cluster1.charter.net (mxip07a.cluster1.charter.net [209.225.28.137]) by mxsf11.cluster1.charter.net (8.12.11/8.12.11) with ESMTP id iAIIf03W009922 for ; Thu, 18 Nov 2004 13:41:00 -0500 From: James Pellow Subject: Re: [Qemu-devel] Syscall 269 Date: Thu, 18 Nov 2004 10:24:24 -0800 References: <200411180138.46857.james@alentdesignsolutions.com> <200411181303.47086.paul@codesourcery.com> In-Reply-To: <200411181303.47086.paul@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411181024.25107.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: qemu-devel@nongnu.org Cc: Paul Brook Yes, I thought about that, and realized I wouldn't have a problem in my case. I'll take a closer look at the syscall.c file and see how that was done for other syscalls, and see if I can get a better patch put together. Thanks for the reply. -James On Thursday 18 November 2004 05:03 am, you wrote: > On Thursday 18 November 2004 09:38, James Pellow wrote: > > Hi All, > > > > I am trying to chroot to a gentoo flavor of arm linux on my AMD > > tbird-1.4GHz. I have set up binfmt_misc and qemu to allow me to do the > > chroot, and all seems to be working well. Now I wanted to emerge some > > stuff, and I get the following message: > > > > qemu: Unsupported syscall: 269. > > > > Looking at the arm linux kernel source, I see that 269 is utimes. > > Looking at the source code for qemu it seems that all I have to do is to > > add a define for TARGET_NR_utimes in all linux-user/*/syscall_nr.h and > > then add a new case in linux-user/syscall.c. > > > > So, I gave it a shot. The patch is at the bottom of this message. This > > is the first time I have looked at the qemu sources, so I am likely > > missing something, but the patch does seem to allow emerge to work > > properly under gentoo. If a correct implementation requires more work, I > > am happy to do that too, just let me know. BTW, I am not subscribed to > > this list to please CC me. > > You also need to do proper 32/64bit and big/little endian conversion of > struct timeval. It happens to work in your case because arm-linux and > i686-linux both use the same word size and endianness. > > Paul -- ***************************** James A. Pellow, President Alent Design Solutions www.alentdesignsolutions.com (509) 526-0682 *****************************