All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] x86_64 problem
@ 2006-03-17 14:26 Mario Goppold
  0 siblings, 0 replies; 4+ messages in thread
From: Mario Goppold @ 2006-03-17 14:26 UTC (permalink / raw)
  To: Qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1409 bytes --]

Hi,

i have some trouble with qemu-system-x86_64. Neither SuSE92-64 nor Ubuntu 
5.10-64 will install.

Here my env:
Host OS: SuSE10 (i586)
Kernel: 2.6.13-15.8-smp
qemu: snapshot20060315 (without kqemu )

./configure --prefix=/usr --cc=/opt/gcc33/bin/gcc-3.3 
--interp-prefix=/usr/share/qemu/qemu-%M --target-list="i386-softmmu 
x86_64-softmmu"
make CC="/opt/gcc33/bin/gcc-3.3" CFLAGS="-Wall -O2 -g -ggdb -g3 -ggdb3 
-fno-strict-aliasing -fomit-frame-pointer"


qemu-img create /localhome/qemu/86_64-test.img 4G

gdb /usr/bin/qemu-system-x86_64
(gdb) run
Starting program: /usr/bin/qemu-system-x86_64 -m 512  -localtime  
-hda /localhome/qemu/86_64-test.img -cdrom /localhome/breezy-dvd-amd64.iso 
-boot d
[Thread debugging using libthread_db enabled]
[New Thread 1079000704 (LWP 24353)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1079000704 (LWP 24353)]
0x09be2056 in code_gen_buffer ()
(gdb) where
#0  0x09be2056 in code_gen_buffer ()
#1  0x09bc269b in code_gen_buffer ()
#2  0x00000000 in ?? ()
#3  0x00000000 in ?? ()
#4  0x080b0b6b in cpu_x86_exec (env1=0x0) 
at /usr/src/packages/BUILD/qemu-snapshot20060315/cpu-exec.c:752
#5  0x08050c16 in main_loop () 
at /usr/src/packages/BUILD/qemu-snapshot20060315/vl.c:4065
#6  0x08051df6 in main (argc=8, argv=0x0) 
at /usr/src/packages/BUILD/qemu-snapshot20060315/vl.c:5234



full gdb output as attachment.

Thanks for any help.

[-- Attachment #2: qemu.dgb.out --]
[-- Type: text/plain, Size: 3840 bytes --]


gdb /usr/bin/qemu-system-x86_64
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-suse-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) set args -m 512  -localtime  -hda /localhome/qemu/86_64-test.img -cdrom /localhome/breezy-dvd-amd64.iso -boot d
(gdb) run
Starting program: /usr/bin/qemu-system-x86_64 -m 512  -localtime  -hda /localhome/qemu/86_64-test.img -cdrom /localhome/breezy-dvd-amd64.iso -boot d
[Thread debugging using libthread_db enabled]
[New Thread 1079000704 (LWP 24353)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1079000704 (LWP 24353)]
0x09be2056 in code_gen_buffer ()
(gdb) where
#0  0x09be2056 in code_gen_buffer ()
#1  0x09bc269b in code_gen_buffer ()
#2  0x00000000 in ?? ()
#3  0x00000000 in ?? ()
#4  0x080b0b6b in cpu_x86_exec (env1=0x0) at /usr/src/packages/BUILD/qemu-snapshot20060315/cpu-exec.c:752
#5  0x08050c16 in main_loop () at /usr/src/packages/BUILD/qemu-snapshot20060315/vl.c:4065
#6  0x08051df6 in main (argc=8, argv=0x0) at /usr/src/packages/BUILD/qemu-snapshot20060315/vl.c:5234
(gdb) backtrace full
#0  0x09be2056 in code_gen_buffer ()
No symbol table info available.
#1  0x09bc269b in code_gen_buffer ()
No symbol table info available.
#2  0x00000000 in ?? ()
No symbol table info available.
#3  0x00000000 in ?? ()
No symbol table info available.
#4  0x080b0b6b in cpu_x86_exec (env1=0x0) at /usr/src/packages/BUILD/qemu-snapshot20060315/cpu-exec.c:752
        saved_T0 = 0
        saved_T1 = 0
        saved_T2 = 0
        saved_env = (CPUX86State *) 0xbfe94c28
        ret = 0
        interrupt_request = 0
        tb = (TranslationBlock *) 0xffa41000
        tc_ptr = (unsigned char *) 0x0
#5  0x08050c16 in main_loop () at /usr/src/packages/BUILD/qemu-snapshot20060315/vl.c:4065
        ret = 65536
        timeout = 0
        env = (CPUX86State *) 0x9dbea50
#6  0x08051df6 in main (argc=8, argv=0x0) at /usr/src/packages/BUILD/qemu-snapshot20060315/vl.c:5234
        use_gdbstub = 536872736
        gdbstub_port = 466944
        i = 0
        cdrom_index = 119537671
        snapshot = 536872736
        initrd_filename = 0x72000 <Address 0x72000 out of bounds>
        hd_filename = {0x7200007 <Address 0x7200007 out of bounds>, 0x72000 <Address 0x72000 out of bounds>,
  0x20000720 <Address 0x20000720 out of bounds>, 0x7200007 <Address 0x7200007 out of bounds>}
        fd_filename = {0x20000720 <Address 0x20000720 out of bounds>, 0x7200007 <Address 0x7200007 out of bounds>}
        kernel_filename = 0x7200007 <Address 0x7200007 out of bounds>
        kernel_cmdline = 0x20000720 <Address 0x20000720 out of bounds>
        cyls = 466944
        heads = 119537671
        secs = 536872736
        translation = 466944
        start_emulation = 119537671
        net_clients = {"\000 \a\000 \a\000 \a\000 ...

        nb_net_clients = 536872736
        optind = 119537671
        r = 0x0
        optarg = 0x0
        monitor_hd = (CharDriverState *) 0x0
        monitor_device = " \a\000 \a\000 \a\000 ...
        serial_devices = { "\a\000 \a\000 \a\000 \a\000 ...
        serial_device_index = 466944
        parallel_devices = { "\a\000 \a\000 \a\000 \a\000 ...
        parallel_device_index = 119537671
        loadvm = 0x20000720 <Address 0x20000720 out of bounds>
        machine = (QEMUMachine *) 0x72000
        usb_devices = { " \a\000 \a\000 \a\000 \a\000 \a\000 ...
        usb_devices_index = 119537671
(gdb)                                                                                         

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

* [Qemu-devel] X86_64 problem
@ 2009-12-12  0:33 Dave Dixon
  2009-12-13 14:04 ` Nathan Froyd
  2009-12-13 14:16 ` Andreas Färber
  0 siblings, 2 replies; 4+ messages in thread
From: Dave Dixon @ 2009-12-12  0:33 UTC (permalink / raw)
  To: qemu-devel

Greetings,

I'm building an initrd for netbooting headless/diskless cluster members. The
target platform is 64-bit ubuntu, and the development platform is 64-bit
ubuntu (albeit a very different computer physically). When I try qemu with
-kernel and -initrd, it says "This kernel requires an x86-64 CPU, but only
detected an i686 CPU." But it's definitely a 64-bit cpu - running a 64-bit OS.
If I show qeme -cpu ?, I get a list of only 32-bit cpus. What am I doing wrong?

Thanks,

-dave 

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

* Re: [Qemu-devel] X86_64 problem
  2009-12-12  0:33 [Qemu-devel] X86_64 problem Dave Dixon
@ 2009-12-13 14:04 ` Nathan Froyd
  2009-12-13 14:16 ` Andreas Färber
  1 sibling, 0 replies; 4+ messages in thread
From: Nathan Froyd @ 2009-12-13 14:04 UTC (permalink / raw)
  To: Dave Dixon; +Cc: qemu-devel

On Fri, Dec 11, 2009 at 05:33:18PM -0700, Dave Dixon wrote:
> I'm building an initrd for netbooting headless/diskless cluster members. The
> target platform is 64-bit ubuntu, and the development platform is 64-bit
> ubuntu (albeit a very different computer physically). When I try qemu with
> -kernel and -initrd, it says "This kernel requires an x86-64 CPU, but only
> detected an i686 CPU." But it's definitely a 64-bit cpu - running a 64-bit OS.
> If I show qeme -cpu ?, I get a list of only 32-bit cpus. What am I doing wrong?

QEMU is probably compiled for i386, not x86_64.

-Nathan

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

* Re: [Qemu-devel] X86_64 problem
  2009-12-12  0:33 [Qemu-devel] X86_64 problem Dave Dixon
  2009-12-13 14:04 ` Nathan Froyd
@ 2009-12-13 14:16 ` Andreas Färber
  1 sibling, 0 replies; 4+ messages in thread
From: Andreas Färber @ 2009-12-13 14:16 UTC (permalink / raw)
  To: Dave Dixon; +Cc: qemu-devel

Hello,

Am 12.12.2009 um 01:33 schrieb Dave Dixon:

> When I try qemu with
> -kernel and -initrd, it says "This kernel requires an x86-64 CPU,  
> but only
> detected an i686 CPU." But it's definitely a 64-bit cpu - running a  
> 64-bit OS.
> If I show qeme -cpu ?, I get a list of only 32-bit cpus. What am I  
> doing wrong?

You need to run qemu-system-x86_64 to emulate an x86-64 CPU system.  
This has nothing to do with your host system.

Andreas

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

end of thread, other threads:[~2009-12-13 14:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-12  0:33 [Qemu-devel] X86_64 problem Dave Dixon
2009-12-13 14:04 ` Nathan Froyd
2009-12-13 14:16 ` Andreas Färber
  -- strict thread matches above, loose matches on Subject: below --
2006-03-17 14:26 [Qemu-devel] x86_64 problem Mario Goppold

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.