From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CUm6H-0001F4-0R for qemu-devel@nongnu.org; Thu, 18 Nov 2004 08:13:25 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CUm6F-0001EN-LQ for qemu-devel@nongnu.org; Thu, 18 Nov 2004 08:13:23 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CUm6F-0001E4-Fl for qemu-devel@nongnu.org; Thu, 18 Nov 2004 08:13:23 -0500 Received: from [65.74.133.9] (helo=mail.codesourcery.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CUlx1-0003WB-Ij for qemu-devel@nongnu.org; Thu, 18 Nov 2004 08:03:51 -0500 From: Paul Brook Subject: Re: [Qemu-devel] Syscall 269 Date: Thu, 18 Nov 2004 13:03:47 +0000 References: <200411180138.46857.james@alentdesignsolutions.com> In-Reply-To: <200411180138.46857.james@alentdesignsolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411181303.47086.paul@codesourcery.com> Reply-To: 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, james@alentdesignsolutions.com 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