All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1011142] [NEW] Arm emulation do a crash
@ 2012-06-10 12:19 BRULE Herman
  2012-06-10 16:50 ` Andreas Färber
                   ` (9 more replies)
  0 siblings, 10 replies; 14+ messages in thread
From: BRULE Herman @ 2012-06-10 12:19 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

Hello, I have try multiple image for the raspberry pi, with this cli:
/usr/bin/qemu-system-arm -kernel kernel-rasptoo -M versatilepb -cpu arm1176 -hda hdd.img -m 256 -append "root=/dev/sda2 loglevel=7 debug" -serial stdio -no-kvm
I don't know why, with kvm it say:
KVM not supported for this target
No accelerator found!

I can't debug it with gdb, it crash after the kernel boot (the qemu application crash).
I'm under gentoo:
[ebuild   R   ~] app-emulation/qemu-kvm-1.0.1-r1  USE="aio alsa curl ncurses opengl sdl threads vhost-net -bluetooth -brltty -debug -fdt -pulseaudio -qemu-ifup (-rbd) -sasl -smartcard -spice -static -test -tls -usbredir -vde -xattr -xen" QEMU_SOFTMMU_TARGETS="arm x86_64 -cris -i386 -m68k -microblaze -mips -mips64 -mips64el -mipsel -ppc -ppc64 -ppcemb -sh4 -sh4eb -sparc -sparc64" QEMU_USER_TARGETS="arm -alpha -armeb -cris -i386 -m68k -microblaze -mips -mipsel -ppc -ppc64 -ppc64abi32 -sh4 -sh4eb -sparc -sparc32plus -sparc64 -x86_64" 0 kB

Thanks to help me.

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1011142

Title:
  Arm emulation do a crash

Status in QEMU:
  New

Bug description:
  Hello, I have try multiple image for the raspberry pi, with this cli:
  /usr/bin/qemu-system-arm -kernel kernel-rasptoo -M versatilepb -cpu arm1176 -hda hdd.img -m 256 -append "root=/dev/sda2 loglevel=7 debug" -serial stdio -no-kvm
  I don't know why, with kvm it say:
  KVM not supported for this target
  No accelerator found!

  I can't debug it with gdb, it crash after the kernel boot (the qemu application crash).
  I'm under gentoo:
  [ebuild   R   ~] app-emulation/qemu-kvm-1.0.1-r1  USE="aio alsa curl ncurses opengl sdl threads vhost-net -bluetooth -brltty -debug -fdt -pulseaudio -qemu-ifup (-rbd) -sasl -smartcard -spice -static -test -tls -usbredir -vde -xattr -xen" QEMU_SOFTMMU_TARGETS="arm x86_64 -cris -i386 -m68k -microblaze -mips -mips64 -mips64el -mipsel -ppc -ppc64 -ppcemb -sh4 -sh4eb -sparc -sparc64" QEMU_USER_TARGETS="arm -alpha -armeb -cris -i386 -m68k -microblaze -mips -mipsel -ppc -ppc64 -ppc64abi32 -sh4 -sh4eb -sparc -sparc32plus -sparc64 -x86_64" 0 kB

  Thanks to help me.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1011142/+subscriptions

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

* Re: [Qemu-devel] [Bug 1011142] [NEW] Arm emulation do a crash
  2012-06-10 12:19 [Qemu-devel] [Bug 1011142] [NEW] Arm emulation do a crash BRULE Herman
@ 2012-06-10 16:50 ` Andreas Färber
  2012-06-12  4:58   ` 陳韋任 (Wei-Ren Chen)
  2012-06-10 17:20 ` Dunrong Huang
                   ` (8 subsequent siblings)
  9 siblings, 1 reply; 14+ messages in thread
From: Andreas Färber @ 2012-06-10 16:50 UTC (permalink / raw)
  To: Bug 1011142; +Cc: Peter Maydell, qemu-devel

Am 10.06.2012 14:19, schrieb BRULE Herman:
> Hello, I have try multiple image for the raspberry pi, with this cli:
> /usr/bin/qemu-system-arm -kernel kernel-rasptoo -M versatilepb -cpu arm1176 -hda hdd.img -m 256 -append "root=/dev/sda2 loglevel=7 debug" -serial stdio -no-kvm

Does the qemu-system-arm process crash or does something in the guest
crash? After all you're trying to run a Raspberry Pi kernel on some
other board.

> I don't know why, with kvm it say:
> KVM not supported for this target
> No accelerator found!

Unless you're running on ARM with a patched kernel you can't get KVM for
ARM guests. That's no error.

> I can't debug it with gdb, it crash after the kernel boot (the qemu application crash).

Why can't you debug qemu-system-arm with gdb? A backtrace would be very
helpful to see where things are going wrong. After all with the little
information you gave we can't reproduce (kernel-raspi, hdd.img) and
would have to guess...

> I'm under gentoo:
> [ebuild   R   ~] app-emulation/qemu-kvm-1.0.1-r1  USE="aio alsa curl ncurses opengl sdl threads vhost-net -bluetooth -brltty -debug -fdt -pulseaudio -qemu-ifup (-rbd) -sasl -smartcard -spice -static -test -tls -usbredir -vde -xattr -xen" QEMU_SOFTMMU_TARGETS="arm x86_64 -cris -i386 -m68k -microblaze -mips -mips64 -mips64el -mipsel -ppc -ppc64 -ppcemb -sh4 -sh4eb -sparc -sparc64" QEMU_USER_TARGETS="arm -alpha -armeb -cris -i386 -m68k -microblaze -mips -mipsel -ppc -ppc64 -ppc64abi32 -sh4 -sh4eb -sparc -sparc32plus -sparc64 -x86_64" 0 kB

Try v1.1.0 or master.

Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

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

* Re: [Qemu-devel] [Bug 1011142] [NEW] Arm emulation do a crash
  2012-06-10 12:19 [Qemu-devel] [Bug 1011142] [NEW] Arm emulation do a crash BRULE Herman
  2012-06-10 16:50 ` Andreas Färber
@ 2012-06-10 17:20 ` Dunrong Huang
  2012-06-10 17:52 ` [Qemu-devel] [Bug 1011142] " BRULE Herman
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 14+ messages in thread
From: Dunrong Huang @ 2012-06-10 17:20 UTC (permalink / raw)
  To: Bug 1011142; +Cc: qemu-devel

2012/6/10 BRULE Herman <1011142@bugs.launchpad.net>:
> I can't debug it with gdb, it crash after the kernel boot (the qemu application crash).
> I'm under gentoo:
I am under gentoo too, why cant you use debug qemu?

There is another way to debug qemu:

Open a terminal, set you core file size to unlimited with command:
"ulimit  -c unlimited",
then launch qemu in same a terminal

After qemu crash, a file called core will be created,  use command
"gdb /usr/bin/qemu-system-x86_64 core" to enter gdb console,  then
input "bt" command in gdb console, you will get a backtrace of the entire stack.

Send the these message to mailing list, those backtrace message will
help qemu developer localize the source of the problem.

-- 
linuxer and emacser and pythoner living in beijing
blog: http://mathslinux.org
twitter: https://twitter.com/mathslinux
google+: https://plus.google.com/118129852578326338750

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

* [Qemu-devel] [Bug 1011142] Re: Arm emulation do a crash
  2012-06-10 12:19 [Qemu-devel] [Bug 1011142] [NEW] Arm emulation do a crash BRULE Herman
  2012-06-10 16:50 ` Andreas Färber
  2012-06-10 17:20 ` Dunrong Huang
@ 2012-06-10 17:52 ` BRULE Herman
  2012-06-10 23:31   ` Peter Maydell
  2012-06-10 19:54 ` Stefan Weil
                   ` (6 subsequent siblings)
  9 siblings, 1 reply; 14+ messages in thread
From: BRULE Herman @ 2012-06-10 17:52 UTC (permalink / raw)
  To: qemu-devel

Because it stop on:
Program received signal SIG38, Real-time event 38.
[Switching to Thread 0x7ffff1125700 (LWP 32348)]
tcg_qemu_tb_exec (cpustate=<optimized out>, tb_ptr=0x400016b3 "\025\b") at /var/tmp-disk/portage/app-emulation/qemu-kvm-1.0.1-r1/work/qemu-kvm-1.0.1/tci.c:442
442     /var/tmp-disk/portage/app-emulation/qemu-kvm-1.0.1-r1/work/qemu-kvm-1.0.1/tci.c: No such file or directory.
(gdb)

Same with the ulimit:
/usr/bin/qemu-system-arm -kernel zImage -M versatilepb -cpu arm1176 -hda debian6-19-04-2012.img -m 256 -append "root=/dev/sda2 loglevel=7 debug" -serial stdio -no-kvm
Uncompressing Linux... done, booting the kernel.
Segmentation fault (core dumped)

gdb /usr/bin/qemu-system-x86_64 core
(gdb) bt
#0  0x00007f6ced5d1894 in ?? ()
#1  0x0000010300000dd7 in ?? ()
#2  0xb8bf47b874ea5100 in ?? ()
#3  0x0000000000000000 in ?? ()

For whole my system:
CFLAGS="-pipe -O2 -g"
The bt for other program crash work.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1011142

Title:
  Arm emulation do a crash

Status in QEMU:
  New

Bug description:
  Hello, I have try multiple image for the raspberry pi, with this cli:
  /usr/bin/qemu-system-arm -kernel kernel-rasptoo -M versatilepb -cpu arm1176 -hda hdd.img -m 256 -append "root=/dev/sda2 loglevel=7 debug" -serial stdio -no-kvm
  I don't know why, with kvm it say:
  KVM not supported for this target
  No accelerator found!

  I can't debug it with gdb, it crash after the kernel boot (the qemu application crash).
  I'm under gentoo:
  [ebuild   R   ~] app-emulation/qemu-kvm-1.0.1-r1  USE="aio alsa curl ncurses opengl sdl threads vhost-net -bluetooth -brltty -debug -fdt -pulseaudio -qemu-ifup (-rbd) -sasl -smartcard -spice -static -test -tls -usbredir -vde -xattr -xen" QEMU_SOFTMMU_TARGETS="arm x86_64 -cris -i386 -m68k -microblaze -mips -mips64 -mips64el -mipsel -ppc -ppc64 -ppcemb -sh4 -sh4eb -sparc -sparc64" QEMU_USER_TARGETS="arm -alpha -armeb -cris -i386 -m68k -microblaze -mips -mipsel -ppc -ppc64 -ppc64abi32 -sh4 -sh4eb -sparc -sparc32plus -sparc64 -x86_64" 0 kB

  Thanks to help me.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1011142/+subscriptions

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

* [Qemu-devel] [Bug 1011142] Re: Arm emulation do a crash
  2012-06-10 12:19 [Qemu-devel] [Bug 1011142] [NEW] Arm emulation do a crash BRULE Herman
                   ` (2 preceding siblings ...)
  2012-06-10 17:52 ` [Qemu-devel] [Bug 1011142] " BRULE Herman
@ 2012-06-10 19:54 ` Stefan Weil
  2012-06-10 20:20 ` BRULE Herman
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 14+ messages in thread
From: Stefan Weil @ 2012-06-10 19:54 UTC (permalink / raw)
  To: qemu-devel

Obviously you compiled QEMU using the experimental TCI (TCG interpreter).
That's not wrong (for debugging some kinds of crashes it is even useful),
but it's slow.

You also called gdb with qemu-system-x86_64, but the core was from qemu-
system-arm.

Which kernel did you use? zImage or kernel-rasptoo? Where did you get it from?
If it is a kernel for an original Raspberry PI, it won't work with QEMU.
QEMU only works with kernels for some other ARM systems.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1011142

Title:
  Arm emulation do a crash

Status in QEMU:
  New

Bug description:
  Hello, I have try multiple image for the raspberry pi, with this cli:
  /usr/bin/qemu-system-arm -kernel kernel-rasptoo -M versatilepb -cpu arm1176 -hda hdd.img -m 256 -append "root=/dev/sda2 loglevel=7 debug" -serial stdio -no-kvm
  I don't know why, with kvm it say:
  KVM not supported for this target
  No accelerator found!

  I can't debug it with gdb, it crash after the kernel boot (the qemu application crash).
  I'm under gentoo:
  [ebuild   R   ~] app-emulation/qemu-kvm-1.0.1-r1  USE="aio alsa curl ncurses opengl sdl threads vhost-net -bluetooth -brltty -debug -fdt -pulseaudio -qemu-ifup (-rbd) -sasl -smartcard -spice -static -test -tls -usbredir -vde -xattr -xen" QEMU_SOFTMMU_TARGETS="arm x86_64 -cris -i386 -m68k -microblaze -mips -mips64 -mips64el -mipsel -ppc -ppc64 -ppcemb -sh4 -sh4eb -sparc -sparc64" QEMU_USER_TARGETS="arm -alpha -armeb -cris -i386 -m68k -microblaze -mips -mipsel -ppc -ppc64 -ppc64abi32 -sh4 -sh4eb -sparc -sparc32plus -sparc64 -x86_64" 0 kB

  Thanks to help me.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1011142/+subscriptions

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

* [Qemu-devel] [Bug 1011142] Re: Arm emulation do a crash
  2012-06-10 12:19 [Qemu-devel] [Bug 1011142] [NEW] Arm emulation do a crash BRULE Herman
                   ` (3 preceding siblings ...)
  2012-06-10 19:54 ` Stefan Weil
@ 2012-06-10 20:20 ` BRULE Herman
  2012-06-10 20:43 ` Stefan Weil
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 14+ messages in thread
From: BRULE Herman @ 2012-06-10 20:20 UTC (permalink / raw)
  To: qemu-devel

Then the correct gdb command provide:
#0  tcg_qemu_tb_exec (cpustate=<optimized out>, tb_ptr=0x0) at /var/tmp-disk/portage/app-emulation/qemu-kvm-1.0.1-r1/work/qemu-kvm-1.0.1/tci.c:444
#1  0x00007f6ced51393d in cpu_arm_exec (env=0x7f6cee66c3d0) at /var/tmp-disk/portage/app-emulation/qemu-kvm-1.0.1-r1/work/qemu-kvm-1.0.1/cpu-exec.c:566
#2  0x00007f6ced51515b in tcg_cpu_exec (env=0x7f6cee66c3d0) at /var/tmp-disk/portage/app-emulation/qemu-kvm-1.0.1-r1/work/qemu-kvm-1.0.1/cpus.c:1007
#3  tcg_exec_all () at /var/tmp-disk/portage/app-emulation/qemu-kvm-1.0.1-r1/work/qemu-kvm-1.0.1/cpus.c:1039
#4  qemu_tcg_cpu_thread_fn (arg=<optimized out>) at /var/tmp-disk/portage/app-emulation/qemu-kvm-1.0.1-r1/work/qemu-kvm-1.0.1/cpus.c:774
#5  0x00007f6cebd36d0c in start_thread (arg=0x7f6ce64b0700) at pthread_create.c:301
#6  0x00007f6ceb09fbed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

I have try multiple, kernel/OS, mainly provided by official website of paspberry pi. Provided here:
http://www.raspberrypi.org/downloads
But I have try too official gentoo kernel for arm, custom build from a website... In all case, the rest of world can run it (lot of do that's to test the OS before setup it into raspberry pi), and in my case, no.
The kernel seam work, and found/mount/boot the root partition.
Can you fix qemu to emulate correctly the raspberry pi platform, because it's very popular hardware.

I can test some patch or other if you want. If it's just question of
kernel, I will change it.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1011142

Title:
  Arm emulation do a crash

Status in QEMU:
  New

Bug description:
  Hello, I have try multiple image for the raspberry pi, with this cli:
  /usr/bin/qemu-system-arm -kernel kernel-rasptoo -M versatilepb -cpu arm1176 -hda hdd.img -m 256 -append "root=/dev/sda2 loglevel=7 debug" -serial stdio -no-kvm
  I don't know why, with kvm it say:
  KVM not supported for this target
  No accelerator found!

  I can't debug it with gdb, it crash after the kernel boot (the qemu application crash).
  I'm under gentoo:
  [ebuild   R   ~] app-emulation/qemu-kvm-1.0.1-r1  USE="aio alsa curl ncurses opengl sdl threads vhost-net -bluetooth -brltty -debug -fdt -pulseaudio -qemu-ifup (-rbd) -sasl -smartcard -spice -static -test -tls -usbredir -vde -xattr -xen" QEMU_SOFTMMU_TARGETS="arm x86_64 -cris -i386 -m68k -microblaze -mips -mips64 -mips64el -mipsel -ppc -ppc64 -ppcemb -sh4 -sh4eb -sparc -sparc64" QEMU_USER_TARGETS="arm -alpha -armeb -cris -i386 -m68k -microblaze -mips -mipsel -ppc -ppc64 -ppc64abi32 -sh4 -sh4eb -sparc -sparc32plus -sparc64 -x86_64" 0 kB

  Thanks to help me.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1011142/+subscriptions

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

* [Qemu-devel] [Bug 1011142] Re: Arm emulation do a crash
  2012-06-10 12:19 [Qemu-devel] [Bug 1011142] [NEW] Arm emulation do a crash BRULE Herman
                   ` (4 preceding siblings ...)
  2012-06-10 20:20 ` BRULE Herman
@ 2012-06-10 20:43 ` Stefan Weil
  2012-06-10 21:25 ` BRULE Herman
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 14+ messages in thread
From: Stefan Weil @ 2012-06-10 20:43 UTC (permalink / raw)
  To: qemu-devel

The missing emulation of Raspberry PI hardware is not a QEMU bug.

Anybody is free to add this emulation or to support others to do the job.
It won't be easy because the RPi hardware is only partially documented,
and the RPi system uses closed source drivers for video.

If nobody objects, I suggest setting the status of this report to
'invalid'.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1011142

Title:
  Arm emulation do a crash

Status in QEMU:
  New

Bug description:
  Hello, I have try multiple image for the raspberry pi, with this cli:
  /usr/bin/qemu-system-arm -kernel kernel-rasptoo -M versatilepb -cpu arm1176 -hda hdd.img -m 256 -append "root=/dev/sda2 loglevel=7 debug" -serial stdio -no-kvm
  I don't know why, with kvm it say:
  KVM not supported for this target
  No accelerator found!

  I can't debug it with gdb, it crash after the kernel boot (the qemu application crash).
  I'm under gentoo:
  [ebuild   R   ~] app-emulation/qemu-kvm-1.0.1-r1  USE="aio alsa curl ncurses opengl sdl threads vhost-net -bluetooth -brltty -debug -fdt -pulseaudio -qemu-ifup (-rbd) -sasl -smartcard -spice -static -test -tls -usbredir -vde -xattr -xen" QEMU_SOFTMMU_TARGETS="arm x86_64 -cris -i386 -m68k -microblaze -mips -mips64 -mips64el -mipsel -ppc -ppc64 -ppcemb -sh4 -sh4eb -sparc -sparc64" QEMU_USER_TARGETS="arm -alpha -armeb -cris -i386 -m68k -microblaze -mips -mipsel -ppc -ppc64 -ppc64abi32 -sh4 -sh4eb -sparc -sparc32plus -sparc64 -x86_64" 0 kB

  Thanks to help me.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1011142/+subscriptions

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

* [Qemu-devel] [Bug 1011142] Re: Arm emulation do a crash
  2012-06-10 12:19 [Qemu-devel] [Bug 1011142] [NEW] Arm emulation do a crash BRULE Herman
                   ` (5 preceding siblings ...)
  2012-06-10 20:43 ` Stefan Weil
@ 2012-06-10 21:25 ` BRULE Herman
  2012-06-10 21:56 ` BRULE Herman
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 14+ messages in thread
From: BRULE Herman @ 2012-06-10 21:25 UTC (permalink / raw)
  To: qemu-devel

Just basic support, that's mean: no crash, and minimal system in console
boot (all device emulated by QEMU is already supported). For me the
crash, and mainly this cpu seam be supported by QEMU, just have the
instruction bugged.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1011142

Title:
  Arm emulation do a crash

Status in QEMU:
  New

Bug description:
  Hello, I have try multiple image for the raspberry pi, with this cli:
  /usr/bin/qemu-system-arm -kernel kernel-rasptoo -M versatilepb -cpu arm1176 -hda hdd.img -m 256 -append "root=/dev/sda2 loglevel=7 debug" -serial stdio -no-kvm
  I don't know why, with kvm it say:
  KVM not supported for this target
  No accelerator found!

  I can't debug it with gdb, it crash after the kernel boot (the qemu application crash).
  I'm under gentoo:
  [ebuild   R   ~] app-emulation/qemu-kvm-1.0.1-r1  USE="aio alsa curl ncurses opengl sdl threads vhost-net -bluetooth -brltty -debug -fdt -pulseaudio -qemu-ifup (-rbd) -sasl -smartcard -spice -static -test -tls -usbredir -vde -xattr -xen" QEMU_SOFTMMU_TARGETS="arm x86_64 -cris -i386 -m68k -microblaze -mips -mips64 -mips64el -mipsel -ppc -ppc64 -ppcemb -sh4 -sh4eb -sparc -sparc64" QEMU_USER_TARGETS="arm -alpha -armeb -cris -i386 -m68k -microblaze -mips -mipsel -ppc -ppc64 -ppc64abi32 -sh4 -sh4eb -sparc -sparc32plus -sparc64 -x86_64" 0 kB

  Thanks to help me.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1011142/+subscriptions

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

* [Qemu-devel] [Bug 1011142] Re: Arm emulation do a crash
  2012-06-10 12:19 [Qemu-devel] [Bug 1011142] [NEW] Arm emulation do a crash BRULE Herman
                   ` (6 preceding siblings ...)
  2012-06-10 21:25 ` BRULE Herman
@ 2012-06-10 21:56 ` BRULE Herman
  2012-06-11 11:09 ` BRULE Herman
  2012-07-10 15:01 ` Peter Maydell
  9 siblings, 0 replies; 14+ messages in thread
From: BRULE Herman @ 2012-06-10 21:56 UTC (permalink / raw)
  To: qemu-devel

I have found the bug, gentoo "qemu-kvm" is not "qemu" package, and with
qemu packages all work. Now I don't know where repport the bug...

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1011142

Title:
  Arm emulation do a crash

Status in QEMU:
  New

Bug description:
  Hello, I have try multiple image for the raspberry pi, with this cli:
  /usr/bin/qemu-system-arm -kernel kernel-rasptoo -M versatilepb -cpu arm1176 -hda hdd.img -m 256 -append "root=/dev/sda2 loglevel=7 debug" -serial stdio -no-kvm
  I don't know why, with kvm it say:
  KVM not supported for this target
  No accelerator found!

  I can't debug it with gdb, it crash after the kernel boot (the qemu application crash).
  I'm under gentoo:
  [ebuild   R   ~] app-emulation/qemu-kvm-1.0.1-r1  USE="aio alsa curl ncurses opengl sdl threads vhost-net -bluetooth -brltty -debug -fdt -pulseaudio -qemu-ifup (-rbd) -sasl -smartcard -spice -static -test -tls -usbredir -vde -xattr -xen" QEMU_SOFTMMU_TARGETS="arm x86_64 -cris -i386 -m68k -microblaze -mips -mips64 -mips64el -mipsel -ppc -ppc64 -ppcemb -sh4 -sh4eb -sparc -sparc64" QEMU_USER_TARGETS="arm -alpha -armeb -cris -i386 -m68k -microblaze -mips -mipsel -ppc -ppc64 -ppc64abi32 -sh4 -sh4eb -sparc -sparc32plus -sparc64 -x86_64" 0 kB

  Thanks to help me.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1011142/+subscriptions

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

* Re: [Qemu-devel] [Bug 1011142] Re: Arm emulation do a crash
  2012-06-10 17:52 ` [Qemu-devel] [Bug 1011142] " BRULE Herman
@ 2012-06-10 23:31   ` Peter Maydell
  0 siblings, 0 replies; 14+ messages in thread
From: Peter Maydell @ 2012-06-10 23:31 UTC (permalink / raw)
  To: Bug 1011142; +Cc: qemu-devel

On 10 June 2012 18:52, BRULE Herman <1011142@bugs.launchpad.net> wrote:
> Because it stop on:
> Program received signal SIG38, Real-time event 38.
> [Switching to Thread 0x7ffff1125700 (LWP 32348)]
> tcg_qemu_tb_exec (cpustate=<optimized out>, tb_ptr=0x400016b3 "\025\b") at /var/tmp-disk/portage/app-emulation/qemu-kvm-1.0.1-r1/work/qemu-kvm-1.0.1/tci.c:442
> 442     /var/tmp-disk/portage/app-emulation/qemu-kvm-1.0.1-r1/work/qemu-kvm-1.0.1/tci.c: No such file or directory.
> (gdb)

This is normal and expected -- SIG38 is used by QEMU internally.
Type "handle SIG38 pass noprint nostop" to gdb and then "continue"
(this tells gdb not to bother telling you about SIG38).

-- PMM

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

* [Qemu-devel] [Bug 1011142] Re: Arm emulation do a crash
  2012-06-10 12:19 [Qemu-devel] [Bug 1011142] [NEW] Arm emulation do a crash BRULE Herman
                   ` (7 preceding siblings ...)
  2012-06-10 21:56 ` BRULE Herman
@ 2012-06-11 11:09 ` BRULE Herman
  2012-07-10 15:01 ` Peter Maydell
  9 siblings, 0 replies; 14+ messages in thread
From: BRULE Herman @ 2012-06-11 11:09 UTC (permalink / raw)
  To: qemu-devel

Hello, I have succefull run debian raspberry pi under qemu.
Then I try do like under my x86, mount -t proc none proc,..., chroot /mnt/gentoo /bin/bash, ... -> illegal instruction.
Then I try with boot directly from the gentoo's part -> lot of illegal instruction, I have used like say on the web: stage3-armv6j_hardfp-20120603.tar.bz2
What's appends? Qemu not emulate hardfp? Or something like that's?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1011142

Title:
  Arm emulation do a crash

Status in QEMU:
  New

Bug description:
  Hello, I have try multiple image for the raspberry pi, with this cli:
  /usr/bin/qemu-system-arm -kernel kernel-rasptoo -M versatilepb -cpu arm1176 -hda hdd.img -m 256 -append "root=/dev/sda2 loglevel=7 debug" -serial stdio -no-kvm
  I don't know why, with kvm it say:
  KVM not supported for this target
  No accelerator found!

  I can't debug it with gdb, it crash after the kernel boot (the qemu application crash).
  I'm under gentoo:
  [ebuild   R   ~] app-emulation/qemu-kvm-1.0.1-r1  USE="aio alsa curl ncurses opengl sdl threads vhost-net -bluetooth -brltty -debug -fdt -pulseaudio -qemu-ifup (-rbd) -sasl -smartcard -spice -static -test -tls -usbredir -vde -xattr -xen" QEMU_SOFTMMU_TARGETS="arm x86_64 -cris -i386 -m68k -microblaze -mips -mips64 -mips64el -mipsel -ppc -ppc64 -ppcemb -sh4 -sh4eb -sparc -sparc64" QEMU_USER_TARGETS="arm -alpha -armeb -cris -i386 -m68k -microblaze -mips -mipsel -ppc -ppc64 -ppc64abi32 -sh4 -sh4eb -sparc -sparc32plus -sparc64 -x86_64" 0 kB

  Thanks to help me.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1011142/+subscriptions

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

* Re: [Qemu-devel] [Bug 1011142] [NEW] Arm emulation do a crash
  2012-06-10 16:50 ` Andreas Färber
@ 2012-06-12  4:58   ` 陳韋任 (Wei-Ren Chen)
  2012-06-12  8:10     ` Andreas Färber
  0 siblings, 1 reply; 14+ messages in thread
From: 陳韋任 (Wei-Ren Chen) @ 2012-06-12  4:58 UTC (permalink / raw)
  To: Andreas Färber; +Cc: Peter Maydell, Bug 1011142, qemu-devel

> > I don't know why, with kvm it say:
> > KVM not supported for this target
> > No accelerator found!
> 
> Unless you're running on ARM with a patched kernel you can't get KVM for
> ARM guests. That's no error.

  Linux/ARM starts to support kvm?

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj

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

* Re: [Qemu-devel] [Bug 1011142] [NEW] Arm emulation do a crash
  2012-06-12  4:58   ` 陳韋任 (Wei-Ren Chen)
@ 2012-06-12  8:10     ` Andreas Färber
  0 siblings, 0 replies; 14+ messages in thread
From: Andreas Färber @ 2012-06-12  8:10 UTC (permalink / raw)
  To: "陳韋任 (Wei-Ren Chen)"
  Cc: Peter Maydell, Bug 1011142, qemu-devel

嗨,

Am 12.06.2012 06:58, schrieb 陳韋任 (Wei-Ren Chen):
>>> I don't know why, with kvm it say:
>>> KVM not supported for this target
>>> No accelerator found!
>>
>> Unless you're running on ARM with a patched kernel you can't get KVM for
>> ARM guests. That's no error.
> 
>   Linux/ARM starts to support kvm?

Note "patched". Check the kvm / android-virt mailing lists.

Cortex-A15 with Virtualization extensions is required, which is only
available to lead customers right now. Samsung has announced the Exynos5
for end of the year, TI's OMAP5 didn't have a date set yet last time I
heard.

Regards,
Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

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

* [Qemu-devel] [Bug 1011142] Re: Arm emulation do a crash
  2012-06-10 12:19 [Qemu-devel] [Bug 1011142] [NEW] Arm emulation do a crash BRULE Herman
                   ` (8 preceding siblings ...)
  2012-06-11 11:09 ` BRULE Herman
@ 2012-07-10 15:01 ` Peter Maydell
  9 siblings, 0 replies; 14+ messages in thread
From: Peter Maydell @ 2012-07-10 15:01 UTC (permalink / raw)
  To: qemu-devel

This appears to be user confusion.

** Changed in: qemu
       Status: New => Invalid

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1011142

Title:
  Arm emulation do a crash

Status in QEMU:
  Invalid

Bug description:
  Hello, I have try multiple image for the raspberry pi, with this cli:
  /usr/bin/qemu-system-arm -kernel kernel-rasptoo -M versatilepb -cpu arm1176 -hda hdd.img -m 256 -append "root=/dev/sda2 loglevel=7 debug" -serial stdio -no-kvm
  I don't know why, with kvm it say:
  KVM not supported for this target
  No accelerator found!

  I can't debug it with gdb, it crash after the kernel boot (the qemu application crash).
  I'm under gentoo:
  [ebuild   R   ~] app-emulation/qemu-kvm-1.0.1-r1  USE="aio alsa curl ncurses opengl sdl threads vhost-net -bluetooth -brltty -debug -fdt -pulseaudio -qemu-ifup (-rbd) -sasl -smartcard -spice -static -test -tls -usbredir -vde -xattr -xen" QEMU_SOFTMMU_TARGETS="arm x86_64 -cris -i386 -m68k -microblaze -mips -mips64 -mips64el -mipsel -ppc -ppc64 -ppcemb -sh4 -sh4eb -sparc -sparc64" QEMU_USER_TARGETS="arm -alpha -armeb -cris -i386 -m68k -microblaze -mips -mipsel -ppc -ppc64 -ppc64abi32 -sh4 -sh4eb -sparc -sparc32plus -sparc64 -x86_64" 0 kB

  Thanks to help me.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1011142/+subscriptions

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

end of thread, other threads:[~2012-07-10 15:11 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-10 12:19 [Qemu-devel] [Bug 1011142] [NEW] Arm emulation do a crash BRULE Herman
2012-06-10 16:50 ` Andreas Färber
2012-06-12  4:58   ` 陳韋任 (Wei-Ren Chen)
2012-06-12  8:10     ` Andreas Färber
2012-06-10 17:20 ` Dunrong Huang
2012-06-10 17:52 ` [Qemu-devel] [Bug 1011142] " BRULE Herman
2012-06-10 23:31   ` Peter Maydell
2012-06-10 19:54 ` Stefan Weil
2012-06-10 20:20 ` BRULE Herman
2012-06-10 20:43 ` Stefan Weil
2012-06-10 21:25 ` BRULE Herman
2012-06-10 21:56 ` BRULE Herman
2012-06-11 11:09 ` BRULE Herman
2012-07-10 15:01 ` Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.