[Qemu-devel] Best qemu ARM board supporting 1G+ ?

2011-07-12 Thread Wesley W. Terpstra
Greetings. I have a arm/versatileab running debian/sid, but this only has access to 256MB of main memory. For my current project I need a minimum of 1GB. I know that the realview-pbx-a9 can do this, but am unsure how well its supported. 1. Which qemu ARM boards support >= 1GB of memory? 2. Which

Re: [Qemu-devel] qemu-user[armel/mips] and debian-rootfs

2011-07-12 Thread Wesley W. Terpstra
2011/7/11 Riku Voipio : > On Mon, Jul 11, 2011 at 11:10:50AM -0300, Lisandro Damián Nicanor Pérez Meyer > wrote: >> Thanks Riku! This bug has already been solved by Wesley Terpstra: > >> > > Ok, I missed these patches. Will ad

[Qemu-devel] [PATCH 5/6] mips: rlimit codes are not the same

2011-07-08 Thread Wesley W. Terpstra
The codes for get/setrlimit differ between linux target platforms. This patch adds conversion. This is important else programs (rsyslog, python, ...) can go into a near infinite loop trying to close all the file descriptors from 0 to -1. Signed-off-by: Wesley W. Terpstra --- diff --git a/linux

[Qemu-devel] [PATCH 4/6] mips: rlimit incorrectly converts values

2011-07-08 Thread Wesley W. Terpstra
g) and child process dies Signed-off-by: Wesley W. Terpstra --- diff --git a/linux-user/syscall.c b/linux-user/syscall.c index fed7a8f..0b0a3d0 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -919,18 +919,30 @@ static inline abi_long host_to_target_rusage(abi_ulong target_addr,

[Qemu-devel] [PATCH 6/6] mips: eabi syscall support for 64-bit args

2011-07-08 Thread Wesley W. Terpstra
mips uses the eabi calling convention. For 64-bit values this means some registers are skipped. This patch replicates the behaviour of arm/eabi for mips targets. This affects ftruncate64, creating insane sized fails (or just failing). Signed-off-by: Wesley W. Terpstra --- diff --git a/linux

[Qemu-devel] [PATCH 2/6] mips: missing syscall returns wrong errno

2011-07-08 Thread Wesley W. Terpstra
Return -TARGET_ENOSYS instead of -ENOSYS from linux-user/main.c * Caused strange 'Level 2 synchronization messages' instead of correctly reporting the syscall was missing. * Made glibc simply fail instead of using older syscalls Signed-off-by: Wesley W. Terpstra --- diff --g

[Qemu-devel] [PATCH 3/6] mips: null pointer deref should segfault

2011-07-08 Thread Wesley W. Terpstra
Dereferencing a null pointer causes an exception 0xC (EXCP_AdEL) instead of EXCP_TLBL. This should also trigger a segfault. Signed-off-by: Wesley W. Terpstra --- diff --git a/linux-user/main.c b/linux-user/main.c index 289054b..26ebc73 100644 --- a/linux-user/main.c +++ b/linux-user/main.c

[Qemu-devel] [PATCH 1/6] mips: sigaltstack args

2011-07-08 Thread Wesley W. Terpstra
The syscall sigaltstack takes two parameters, not zero. This patch should have no impact as only values above 4 influence the runtime behaviour. Nevertheless, it is wrong. Signed-off-by: Wesley W. Terpstra --- diff --git a/linux-user/main.c b/linux-user/main.c index 289054b..26ebc73 100644

[Qemu-devel] PATCH: fix qemu-mips[el]-static to work with debian squeeze/sid chroot

2011-07-05 Thread Wesley W. Terpstra
I also recently tried to get a mipsel debian/sid chroot running under my amd64/squeeze system. As posted by Lisandro earlier this month, it didn't work. ;-) There are several problems, the most glaring of which the attached patch fixes. I'll break down the changes: 1. Return -TARGET_ENOSYS instead