Compiling Qemu + Accelerator on FC4
I'm using gcc32 and it gets pretty far, but runs out of luck here:
make[1]: Entering directory /home/rfought/qemu-0.7.2/kqemu' make -C /lib/modules/2.6.11-1.1369_FC4smp/build M=pwd modules make[2]: Entering directory /usr/src/kernels/2.6.11-1.1369_FC4-smp-i686'
CC [M] /home/rfought/qemu-0.7.2/kqemu/kqemu-linux.o
cc1: invalid option `32'
cc1: invalid option `arch=i686'
cc1: invalid option `regparm=3'
make[3]: *** [/home/rfought/qemu-0.7.2/kqemu/kqemu-linux.o] Error 1 make[2]: *** [_module_/home/rfought/qemu-0.7.2/kqemu] Error 2 make[2]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-smp-i686' make[1]: *** [kqemu.ko] Error 2
make[1]: Leaving directory `/home/rfought/qemu-0.7.2/kqemu'
make: *** [all] Error 2
Any ideas would be appreciated.
Regards,
Rich
Quoted 15 lines · Rich Fought
I'm using gcc32 and it gets pretty far, but runs out of luck here:
make[1]: Entering directory
/home/rfought/qemu-0.7.2/kqemu' make -C /lib/modules/2.6.11-1.1369_FC4smp/build M=pwdmodules make[2]: Entering directory/usr/src/kernels/2.6.11-1.1369_FC4-smp-i686'
CC [M]/home/rfought/qemu-0.7.2/kqemu/kqemu-linux.o
cc1: invalid option `32'
cc1: invalid option `arch=i686'
cc1: invalid option `regparm=3'
make[3]: *** [/home/rfought/qemu-0.7.2/kqemu/kqemu-linux.o] Error 1 make[2]: *** [_module_/home/rfought/qemu-0.7.2/kqemu] Error 2 make[2]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-smp-i686' make[1]: *** [kqemu.ko] Error 2
make[1]: Leaving directory `/home/rfought/qemu-0.7.2/kqemu'
make: *** [all] Error 2
I have no problem compiling on FC4. Have never worked out exactly how to use gcc32 "officially", but would be happy to be enlightened, and have ended up with a hack, but the following works for me:
tar zxvf qemu-0.7.2.tar.gz
cd qemu-0.7.2
tar zxvf ../kqemu-0.7.2.tar.gz
./configure
perl -pi -e 's/=gcc/=gcc32/g' config-host.mak
make
gb spam wrote: On 10/19/05, Rich Fought <[email protected]> wrote: I'm using gcc32 and it gets pretty far, but runs out of luck here: make[1]: Entering directory /home/rfought/qemu-0.7.2/kqemu' make -C /lib/modules/2.6.11-1.1369_FC4smp/build M=pwd modules make[2]: Entering directory /usr/src/kernels/2.6.11-1.1369_FC4-smp-i686' CC [M] /home/rfought/qemu-0.7.2/kqemu/kqemu-linux.o cc1: invalid option 32' cc1: invalid option arch=i686' cc1: invalid option regparm=3' make[3]: *** [/home/rfought/qemu-0.7.2/kqemu/kqemu-linux.o] Error 1 make[2]: *** [_module_/home/rfought/qemu-0.7.2/kqemu] Error 2 make[2]: Leaving directory /usr/src/kernels/2.6.11-1.1369_FC4-smp-i686' make[1]: *** [kqemu.ko] Error 2 make[1]: Leaving directory `/home/rfought/qemu-0.7.2/kqemu' make: *** [all] Error 2
"-boot d"?
;)
--
"The user-friendly computer is a red herring. The user-friendliness of a book just makes it easier to turn pages. There's nothing user-friendly about learning to read."
-Alan Kay
Quoted 28 lines · Rich Fought
OK, apparently it was the SMP Linux messing things up, I booted into normal
mode and the compile went fine.Not I am having another problem - I'm trying to run qemu-system-ppc and I'm
getting the following:Quoted 2 lines
qemu-img create hd.img 5G
qemu-system-ppc -boot d -hda hd.imgPPC Open Hack'Ware BIOS for qemu version 0.4.1
Build 2005-07-06 23:10:57
Copyright 2003-2005 Jocelyn MayerMemory Size: 144 MB.
Booting from device d
PPC Open Hack'Ware BIOS for qemu version 0.4.1
Build 2005-07-06 23:10:57
Copyright 2003-2005 Jocelyn Mayeride0: drive 0: Hard Disk
ERROR:OF_property_copycannot get property 'hd' for aliases
ide0: drive 1: CD-ROM
ERROR:OF_property_copycannot get property 'cd' for aliases
ERROR: ATAPITEST_UNIT_READY: status 41 !=0x40
ide1: drive 0: none
ide1: drive 1: none
ERROR: Found no boot partition!
Yes, I am trying to install Debian from bootable CD-ROM - is this not the correct option?
André Braga wrote: "-boot d"? ;) -- "The user-friendly computer is a red herring. The user-friendliness of a book just makes it easier to turn pages. There's nothing user-friendly about learning to read." -Alan Kay On 10/20/05, Rich Fought <[email protected]> wrote: OK, apparently it was the SMP Linux messing things up, I booted into normal mode and the compile went fine. Not I am having another problem - I'm trying to run qemu-system-ppc and I'm getting the following: > qemu-img create hd.img 5G > qemu-system-ppc -boot d -hda hd.img PPC Open Hack'Ware BIOS for qemu version 0.4.1 Build 2005-07-06 23:10:57 Copyright 2003-2005 Jocelyn Mayer Memory Size: 144 MB. Booting from device d PPC Open Hack'Ware BIOS for qemu version 0.4.1 Build 2005-07-06 23:10:57 Copyright 2003-2005 Jocelyn Mayer ide0: drive 0: Hard Disk ERROR: OF_property_copy cannot get property 'hd' for aliases ide0: drive 1: CD-ROM ERROR: OF_property_copy cannot get property 'cd' for aliases ERROR: ATAPI TEST_UNIT_READY : status 41 != 0x40 ide1: drive 0: none ide1: drive 1: none ERROR: Found no boot partition!
Quoted 7 lines · Rich Fought
Yes, I am trying to install Debian from bootable CD-ROM - is this not the correct option?
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
qemu-img create hd.img 5G
qemu-system-ppc -boot d -hda hd.img
Your commandline is missing the -cdrom parameter:
-cdrom 'file'
Use file as CD-ROM image (you cannot use '-hdc' and and '-cdrom' at the same time). You can use the host CD-ROM by using '/dev/cdrom' as filename.
-boot [a|c|d]
Boot on floppy (a), hard disk (c) or CD-ROM (d). Hard disk boot is the default.
Reading http://fabrice.bellard.free.fr/qemu/qemu-doc.html#SEC10 might help you in discovering some more features of qemu.
With regards,
Jan