[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Syscall 269
From: |
Paul Brook |
Subject: |
Re: [Qemu-devel] Syscall 269 |
Date: |
Thu, 18 Nov 2004 13:03:47 +0000 |
User-agent: |
KMail/1.7.1 |
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