qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] qemu 1.3.0 hangs on macos 10.8.2


From: cmason
Subject: Re: [Qemu-discuss] qemu 1.3.0 hangs on macos 10.8.2
Date: Mon, 31 Dec 2012 12:48:25 -0800

I tried this again under the debugger.  

I configured qemu like this:

./configure --disable-sdl --disable-kvm --enable-cocoa --cc=gcc-4.2
--host-cc=gcc-4.2 --enable-debug   --extra-cflags=-g  
--extra-ldflags=-g

And ran it like this:

qemu-system-arm -nographic -M versatilepb -kernel
vmlinuz-2.6.32-5-versatile -initrd initrd.img-2.6.32-5-versatile -hda
debian_squeeze_armel_standard.qcow2 -append "root=/dev/sda1
console=ttyAMA0"

With images, kernel, and initrd described here:

http://psellos.com/2012/08/2012.08.qemu-arm-osx.html

And I get:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x000000010142f2d0
0x000000010142f2d0 in ?? ()

(gdb) bt
#0  0x000000010142f2d0 in ?? ()
#1  0x000000010016e209 in qemu_iohandler_poll (readfds=0x10097ca00,
writefds=0x10097ca80, xfds=0x10097cb00, ret=4) at iohandler.c:124
#2  0x0000000100172acf in main_loop_wait (nonblocking=0) at
main-loop.c:418
#3  0x0000000100207bbf in main_loop () at vl.c:1765
#4  0x000000010020e7b0 in qemu_main (argc=12, argv=0x7fff5fbff360,
envp=0x7fff5fbff3c8) at vl.c:3992
#5  0x00000001001d6013 in main (argc=12, argv=0x7fff5fbff360) at
ui/cocoa.m:884
(gdb) frame 1
#1  0x000000010016e209 in qemu_iohandler_poll (readfds=0x10097ca00,
writefds=0x10097ca80, xfds=0x10097cb00, ret=4) at iohandler.c:124
124                     ioh->fd_read(ioh->opaque);
Current language:  auto; currently c
(gdb) p ioh
$1 = (IOHandlerRecord *) 0x10142f110
(gdb) p *ioh
$2 = {
  fd_read_poll = 0, 
  fd_read = 0x10017212b <sigfd_handler>, 
  fd_write = 0, 
  opaque = 0x3, 
  next = {
    le_next = 0x0, 
    le_prev = 0x105d00bc0
  }, 
  fd = 3, 
  deleted = false
}

On Sun, Dec 30, 2012, at 10:36 PM, address@hidden wrote:
> I'm trying to get qemu working on my Mac running 10.8.2 so I can cross
> compile compilers and various other things for the raspberry pi.  I've
> followed instructions:
> 
> http://www.rpiforum.net/forum/tutorials/article/16-a-raspberry-pi-emulated-environment-on-osx-lion/
> http://igor.gold.ac.uk/~mas01mjy/wp/?p=95 
> https://github.com/jeremyckahn/pine/wiki/Installing-QEMU-on-OS-X
> 
> I've tried both qemu 1.1.0 and 1.3.0 using homebrew.  I've also tried
> manually compiling 1.3.0 with clang (default cc) and with gcc-4.2.  I've
> used the configure options:
> 
> ./configure --disable-sdl --disable-kvm --enable-cocoa --cc=gcc-4.2
> --host-cc=gcc-4.2
> 
> (I've also tried with standard clang cc.)
> 
> All of these combinations simply result in an empty white window when
> launching the raspbian wheezy 2012-12-16 image and a kernel I compiled
> locally (which boots on the teensy) using:
> 
> qemu-system-arm -M versatilepb -cpu arm1176 -m 256 -hda
> raspberry-qemu.ext4 -kernel zImage -append "root=/dev/sda2" -serial
> stdio
> 
> Figuring it might be something with this raspberry pi kernel or image,
> I've also tried the exact debian squeeze image, initrd, and vmlinuz this
> page claims to have working:
> http://psellos.com/2012/08/2012.08.qemu-arm-osx.html
> 
> This results in 
> 
> > qemu-system-arm -nographic -M versatilepb -kernel 
> > vmlinuz-2.6.32-5-versatile -initrd initrd.img-2.6.32-5-versatile -hda 
> > debian_squeeze_armel_standard.qcow2 -append "root=/dev/sda1 console=ttyAMA0"
> Uncompressing Linux... done, booting the kernel.
> [Hangs, basically indefinitely; I've waited hours.]
> 
> Since this supposedly works for others, it must have something to do
> with my setup but I can't figure out what it is.  I've read about folks
> with similar white screen hanging problems due to clang, but as said
> above, I've tried with gcc-4.2, and with the 1.3.0, which indicates it
> works with clang anyway.
> 
> Any help would be most appreciated.
> 
> -c
> 
> Here are the compilers version outputs:
> 
> gcc-4.2 -v
> Using built-in specs.
> Target: i686-apple-darwin11
> Configured with:
> /Volumes/Media/Builds/gcc-5666.3/build/obj/src/configure
> --disable-checking --prefix=/usr --mandir=/share/man
> --enable-languages=c,objc,c++,obj-c++,fortran
> --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib
> --build=i686-apple-darwin11 --program-prefix=i686-apple-darwin11-
> --host=x86_64-apple-darwin11 --target=i686-apple-darwin11
> --with-gxx-include-dir=/include/c++/4.2.1
> Thread model: posix
> gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
> 
> cc -v
> Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM
> 3.1svn)
> Target: x86_64-apple-darwin12.2.1
> Thread model: posix
> 
>  gcc -v
> Using built-in specs.
> Target: i686-apple-darwin11
> Configured with:
> /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/src/configure
> --disable-checking --enable-werror
> --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2
> --mandir=/share/man --enable-languages=c,objc,c++,obj-c++
> --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
> --with-slibdir=/usr/lib --build=i686-apple-darwin11
> --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/dst-llvmCore/Developer/usr/local
> --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11
> --target=i686-apple-darwin11
> --with-gxx-include-dir=/usr/include/c++/4.2.1
> Thread model: posix
> gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build
> 2336.11.00)
> 
> qemu-system-arm --version
> QEMU emulator version 1.3.0, Copyright (c) 2003-2008 Fabrice Bellard



reply via email to

[Prev in Thread] Current Thread [Next in Thread]