All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Build on i386
@ 2009-11-09 14:39 jamesmikedupont
  2009-11-09 14:55 ` Laurent Desnogues
  0 siblings, 1 reply; 2+ messages in thread
From: jamesmikedupont @ 2009-11-09 14:39 UTC (permalink / raw)
  To: qemu-devel

Hi ,
I have patched the qemu to even build on i386. Now all the targets build,
but I cannot run all targets.

./i386-softmmu/qemu -L / /bin/ls
qemu: could not load PC BIOS 'bios.bin'

Does not work.

./i386-linux-user/qemu-i386 -L / /bin/ls
qemu: Unsupported syscall: 240
qemu: Unsupported syscall: 240
acl.c				config-host.ld	   kvm-all.c		  posix-aio-compat.o	
qemu-thread.c		 target-cris
acl.d				config-host.mak    kvm.h		  ppc64abi32-linux-user
qemu-thread.h		 target-i386

Works.


./x86_64-softmmu/qemu-system-x86_64 -L / /bin/ls
qemu: could not load PC BIOS 'bios.bin'
mdupont@introspector-desktop:~/2009/11/external/qemugit/mainline/qemu$
./x86_64-linux-user/qemu-x86_64 -L / /bin/ls
Error -8 while loading /bin/ls



diff --git a/configure b/configure
index aa2cc43..451c2be 100755
--- a/configure
+++ b/configure
@@ -1736,7 +1736,8 @@ if test "$debug" = "no" ; then
 fi
 QEMU_CFLAGS="-Wall -Wundef -Wendif-labels -Wwrite-strings
-Wmissing-prototypes $QEMU_CFLAGS"
 QEMU_CFLAGS="-Wstrict-prototypes -Wredundant-decls $QEMU_CFLAGS"
-QEMU_CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
$QEMU_CFLAGS"
+#QEMU_CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE $QEMU_CFLAGS"
+QEMU_CFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE $QEMU_CFLAGS"
 QEMU_CFLAGS="-U_FORTIFY_SOURCE $QEMU_CFLAGS"
 QEMU_CFLAGS="-I. -I\$(SRC_PATH) $QEMU_CFLAGS"
 LDFLAGS="-g $LDFLAGS"

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

* Re: [Qemu-devel] Build on i386
  2009-11-09 14:39 [Qemu-devel] Build on i386 jamesmikedupont
@ 2009-11-09 14:55 ` Laurent Desnogues
  0 siblings, 0 replies; 2+ messages in thread
From: Laurent Desnogues @ 2009-11-09 14:55 UTC (permalink / raw)
  To: jamesmikedupont; +Cc: qemu-devel

On Mon, Nov 9, 2009 at 3:39 PM, jamesmikedupont@googlemail.com
<jamesmikedupont@googlemail.com> wrote:
[...]
> ./i386-softmmu/qemu -L / /bin/ls
> qemu: could not load PC BIOS 'bios.bin'
>
> Does not work.

Do you know what softmmu means?  You should read QEMU
user manual.

[...]
> ./x86_64-softmmu/qemu-system-x86_64 -L / /bin/ls
> qemu: could not load PC BIOS 'bios.bin'
> mdupont@introspector-desktop:~/2009/11/external/qemugit/mainline/qemu$
> ./x86_64-linux-user/qemu-x86_64 -L / /bin/ls
> Error -8 while loading /bin/ls

This can't run given that your /bin/ls is an i386 executable.


Laurent

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

end of thread, other threads:[~2009-11-09 14:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-09 14:39 [Qemu-devel] Build on i386 jamesmikedupont
2009-11-09 14:55 ` Laurent Desnogues

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.