qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] qemu-arm fails with newer libc
@ 2007-10-29 17:51 Hans J. Koch
  2007-11-01 13:24 ` Felipe Contreras
  0 siblings, 1 reply; 3+ messages in thread
From: Hans J. Koch @ 2007-10-29 17:51 UTC (permalink / raw)
  To: qemu-devel

I'm trying to set up an environment where I can use a command like

qemu-arm -L /path/to/root-file-system my_program

I tried qemu from latest Debian unstable, and couldn't make it work. I
then downloaded the latest snapshot (qemu-snapshot-2007-10-29_05). I
used a recent version of the CodeSourcery toolchain.

As it is, qemu-arm fails with an error like this:

qemu: Unsupported syscall: 983045

which indicates missing TLS support. I found this patch:

http://www.freaknet.org/martin/QEMU/patch.qemu-0.8.2_nptl-pb147082-mg1

and managed to apply it to the current code. It solves the TLS problem,
but now fails with a different error:

qemu: unhandled CPU exception 0x8 - aborting
R00=421a5c14 R01=00000000 R02=421a5c08 R03=00000001
R04=4008ef88 R05=00000000 R06=00000000 R07=00000000
R08=00000000 R09=00000000 R10=400a5000 R11=00000000
R12=ffff0fff R13=4007f858 R14=420b4b3c R15=ffff0fa0
PSR=20000010 --C- A usr32
...(registers in between are all zero)...
qemu: uncaught target signal 6 (Aborted) - exiting

This is exactly the same behaviour as shown by the Debian version of
qemu. Maybe they applied the same patch...

The problem does not show up if I use libraries from an old (2 years)
Timesys toolchain, so it seems to be triggered by code found in recent
libc versions.

What can I do now? Is this a known problem? Any patches for that?

Thanks,
Hans

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] qemu-arm fails with newer libc
  2007-10-29 17:51 [Qemu-devel] qemu-arm fails with newer libc Hans J. Koch
@ 2007-11-01 13:24 ` Felipe Contreras
  2007-11-05 12:26   ` Hans-Jürgen Koch
  0 siblings, 1 reply; 3+ messages in thread
From: Felipe Contreras @ 2007-11-01 13:24 UTC (permalink / raw)
  To: qemu-devel

On 10/29/07, Hans J. Koch <hjk@linutronix.de> wrote:
> I'm trying to set up an environment where I can use a command like
>
> qemu-arm -L /path/to/root-file-system my_program
>
> I tried qemu from latest Debian unstable, and couldn't make it work. I
> then downloaded the latest snapshot (qemu-snapshot-2007-10-29_05). I
> used a recent version of the CodeSourcery toolchain.
>
> As it is, qemu-arm fails with an error like this:
>
> qemu: Unsupported syscall: 983045
>
> which indicates missing TLS support. I found this patch:
>
> http://www.freaknet.org/martin/QEMU/patch.qemu-0.8.2_nptl-pb147082-mg1
>
> and managed to apply it to the current code. It solves the TLS problem,
> but now fails with a different error:
>
> qemu: unhandled CPU exception 0x8 - aborting
> R00=421a5c14 R01=00000000 R02=421a5c08 R03=00000001
> R04=4008ef88 R05=00000000 R06=00000000 R07=00000000
> R08=00000000 R09=00000000 R10=400a5000 R11=00000000
> R12=ffff0fff R13=4007f858 R14=420b4b3c R15=ffff0fa0
> PSR=20000010 --C- A usr32
> ...(registers in between are all zero)...
> qemu: uncaught target signal 6 (Aborted) - exiting
>
> This is exactly the same behaviour as shown by the Debian version of
> qemu. Maybe they applied the same patch...
>
> The problem does not show up if I use libraries from an old (2 years)
> Timesys toolchain, so it seems to be triggered by code found in recent
> libc versions.
>
> What can I do now? Is this a known problem? Any patches for that?

I'm also interested in this but so far I've not been able to make it work.

Perhaps this would help:
http://lists.scratchbox.org/pipermail/scratchbox-devel/2007-October/000349.html

Best regards.

-- 
Felipe Contreras

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] qemu-arm fails with newer libc
  2007-11-01 13:24 ` Felipe Contreras
@ 2007-11-05 12:26   ` Hans-Jürgen Koch
  0 siblings, 0 replies; 3+ messages in thread
From: Hans-Jürgen Koch @ 2007-11-05 12:26 UTC (permalink / raw)
  To: qemu-devel; +Cc: felipe.contreras

Am Thu, 1 Nov 2007 15:24:37 +0200
schrieb "Felipe Contreras" <felipe.contreras@gmail.com>:

> 
> I'm also interested in this but so far I've not been able to make it
> work.
> 
> Perhaps this would help:
> http://lists.scratchbox.org/pipermail/scratchbox-devel/2007-October/000349.html

Looks interesting. But for the moment, I'm working at a solution that
is not depending on qemu-arm's TLS capabilities. 

Thanks,
Hans

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-05 12:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-29 17:51 [Qemu-devel] qemu-arm fails with newer libc Hans J. Koch
2007-11-01 13:24 ` Felipe Contreras
2007-11-05 12:26   ` Hans-Jürgen Koch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).