* [Qemu-devel] Compile QEMU for android
@ 2012-01-18 15:41 Spartacus Rex
2012-01-18 19:37 ` David Ahern
2012-01-18 21:33 ` Peter Maydell
0 siblings, 2 replies; 8+ messages in thread
From: Spartacus Rex @ 2012-01-18 15:41 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 599 bytes --]
Hi there,
I am trying to get a version of qemu to compile for Android.
Then I would like to boot debian-armel.. or even a minimal arm buildroot fs.
I have so far tried compiling with NDK toolchain and codesourcery.
You can build them, but either they seg-fault when you run them on Android
or the scsi stuff seems wrong when you boot.. crashes.. sorry don't know
more about that.
I am obviously doing something wrong..
Is there anybody who can help - tell me how - point me in the right
direction - to compiling a stable version of qemu-system-arm for Android ?
Thanks in advance!
Spartacus
[-- Attachment #2: Type: text/html, Size: 657 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Compile QEMU for android
2012-01-18 15:41 [Qemu-devel] Compile QEMU for android Spartacus Rex
@ 2012-01-18 19:37 ` David Ahern
2012-01-18 20:08 ` Spartacus Rex
2012-01-18 21:33 ` Peter Maydell
1 sibling, 1 reply; 8+ messages in thread
From: David Ahern @ 2012-01-18 19:37 UTC (permalink / raw)
To: Spartacus Rex; +Cc: qemu-devel
On 01/18/2012 08:41 AM, Spartacus Rex wrote:
> Hi there,
>
> I am trying to get a version of qemu to compile for Android.
>
> Then I would like to boot debian-armel.. or even a minimal arm buildroot fs.
Why do you want to run a VM on Android versus using the rootfs natively?
David
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Compile QEMU for android
2012-01-18 15:41 [Qemu-devel] Compile QEMU for android Spartacus Rex
2012-01-18 19:37 ` David Ahern
@ 2012-01-18 21:33 ` Peter Maydell
2012-01-18 21:36 ` Spartacus Rex
2012-01-18 23:27 ` Alex Bradbury
1 sibling, 2 replies; 8+ messages in thread
From: Peter Maydell @ 2012-01-18 21:33 UTC (permalink / raw)
To: Spartacus Rex; +Cc: qemu-devel
On 18 January 2012 15:41, Spartacus Rex <spartacusrex99@gmail.com> wrote:
> I am trying to get a version of qemu to compile for Android.
>
> Then I would like to boot debian-armel.. or even a minimal arm buildroot fs.
>
> I have so far tried compiling with NDK toolchain and codesourcery.
>
> You can build them, but either they seg-fault when you run them on Android
> or the scsi stuff seems wrong when you boot.. crashes.. sorry don't know
> more about that.
This is excessively vague. Quoting error messages is usually a better
idea than handwaving about crashes.
There's an Android bug where (at least for some gcc versions) the
__builtin___clear_cache() function doesn't work. You might like to
try the test in this Android bug report:
http://code.google.com/p/android/issues/detail?id=1803
to see if it still affects your compiler. (It's possible it's one of
those bugs that was valid 3 years ago and has since been fixed but
nobody closed the bug report.)
> I am obviously doing something wrong..
>
> Is there anybody who can help - tell me how - point me in the right
> direction - to compiling a stable version of qemu-system-arm for Android ?
The other thing to note is that QEMU 1.0 was noted in the release notes
as not working on ARM hosts. Some but not all of this has been fixed
since then.
Bottom line: you can probably get this going if you're prepared
to investigate and fix some issues. If you're hoping that somebody
will have a simple recipe you can follow, I suspect you're out of
luck :-(
-- PMM
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Compile QEMU for android
2012-01-18 21:33 ` Peter Maydell
@ 2012-01-18 21:36 ` Spartacus Rex
2012-01-18 21:44 ` Peter Maydell
2012-01-18 23:27 ` Alex Bradbury
1 sibling, 1 reply; 8+ messages in thread
From: Spartacus Rex @ 2012-01-18 21:36 UTC (permalink / raw)
To: Peter Maydell; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1747 bytes --]
OK.
Is there a version that is known to work..? On arm.
Spartacus
On Jan 18, 2012 10:33 PM, "Peter Maydell" <peter.maydell@linaro.org> wrote:
> On 18 January 2012 15:41, Spartacus Rex <spartacusrex99@gmail.com> wrote:
> > I am trying to get a version of qemu to compile for Android.
> >
> > Then I would like to boot debian-armel.. or even a minimal arm buildroot
> fs.
> >
> > I have so far tried compiling with NDK toolchain and codesourcery.
> >
> > You can build them, but either they seg-fault when you run them on
> Android
> > or the scsi stuff seems wrong when you boot.. crashes.. sorry don't know
> > more about that.
>
> This is excessively vague. Quoting error messages is usually a better
> idea than handwaving about crashes.
>
> There's an Android bug where (at least for some gcc versions) the
> __builtin___clear_cache() function doesn't work. You might like to
> try the test in this Android bug report:
> http://code.google.com/p/android/issues/detail?id=1803
> to see if it still affects your compiler. (It's possible it's one of
> those bugs that was valid 3 years ago and has since been fixed but
> nobody closed the bug report.)
>
> > I am obviously doing something wrong..
> >
> > Is there anybody who can help - tell me how - point me in the right
> > direction - to compiling a stable version of qemu-system-arm for Android
> ?
>
> The other thing to note is that QEMU 1.0 was noted in the release notes
> as not working on ARM hosts. Some but not all of this has been fixed
> since then.
>
> Bottom line: you can probably get this going if you're prepared
> to investigate and fix some issues. If you're hoping that somebody
> will have a simple recipe you can follow, I suspect you're out of
> luck :-(
>
> -- PMM
>
[-- Attachment #2: Type: text/html, Size: 2320 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Compile QEMU for android
2012-01-18 21:33 ` Peter Maydell
2012-01-18 21:36 ` Spartacus Rex
@ 2012-01-18 23:27 ` Alex Bradbury
2012-01-19 0:45 ` Spartacus Rex
1 sibling, 1 reply; 8+ messages in thread
From: Alex Bradbury @ 2012-01-18 23:27 UTC (permalink / raw)
To: Peter Maydell; +Cc: Spartacus Rex, qemu-devel
On 18 January 2012 21:33, Peter Maydell <peter.maydell@linaro.org> wrote:
> There's an Android bug where (at least for some gcc versions) the
> __builtin___clear_cache() function doesn't work. You might like to
> try the test in this Android bug report:
> http://code.google.com/p/android/issues/detail?id=1803
> to see if it still affects your compiler. (It's possible it's one of
> those bugs that was valid 3 years ago and has since been fixed but
> nobody closed the bug report.)
Apparently it's definitely fixed in the most recent NDK (check by
objdump -d on a binary that uses __clear_cache), but it's a real shame
the bug hasn't been updated with any indication as to what NDK version
it was fixed in.
Alex
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Compile QEMU for android
2012-01-18 23:27 ` Alex Bradbury
@ 2012-01-19 0:45 ` Spartacus Rex
0 siblings, 0 replies; 8+ messages in thread
From: Spartacus Rex @ 2012-01-19 0:45 UTC (permalink / raw)
To: Alex Bradbury; +Cc: Peter Maydell, qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1070 bytes --]
When you try and compile the latest version with ndk tool it says it can't
find
arm-linux-androideabi-pkg-config
?
How can I get that ?
Can that be disabled in the latest version, so as to not use pkg-config?
Sorry, more of a java man..
Spartacus
On Jan 19, 2012 12:27 AM, "Alex Bradbury" <asb@asbradbury.org> wrote:
> On 18 January 2012 21:33, Peter Maydell <peter.maydell@linaro.org> wrote:
> > There's an Android bug where (at least for some gcc versions) the
> > __builtin___clear_cache() function doesn't work. You might like to
> > try the test in this Android bug report:
> > http://code.google.com/p/android/issues/detail?id=1803
> > to see if it still affects your compiler. (It's possible it's one of
> > those bugs that was valid 3 years ago and has since been fixed but
> > nobody closed the bug report.)
>
> Apparently it's definitely fixed in the most recent NDK (check by
> objdump -d on a binary that uses __clear_cache), but it's a real shame
> the bug hasn't been updated with any indication as to what NDK version
> it was fixed in.
>
> Alex
>
[-- Attachment #2: Type: text/html, Size: 1618 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-01-19 0:45 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-18 15:41 [Qemu-devel] Compile QEMU for android Spartacus Rex
2012-01-18 19:37 ` David Ahern
2012-01-18 20:08 ` Spartacus Rex
2012-01-18 21:33 ` Peter Maydell
2012-01-18 21:36 ` Spartacus Rex
2012-01-18 21:44 ` Peter Maydell
2012-01-18 23:27 ` Alex Bradbury
2012-01-19 0:45 ` Spartacus Rex
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).