Difference between revisions of "QEMU"

From CBLFS
Jump to navigationJump to search
m
 
(12 intermediate revisions by 4 users not shown)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
| http://www.qemu.com/qemu-{{QEMU-Version}}.tar.gz
+
|http://bellard.org/qemu/qemu-{{QEMU-Version}}.tar.gz
 
|}
 
|}
  
 
----
 
----
  
{{Package-Introduction|QEMU is a generic and open source machine emulator and virtualizer.|http://fabrice.bellard.free.fr/qemu/}}
+
{{Package-Introduction|QEMU is a generic and open source machine emulator and virtualizer.|http://bellard.org/qemu}}
  
 
== Dependencies ==
 
== Dependencies ==
Line 13: Line 13:
 
=== Required ===
 
=== Required ===
 
* [[SDL]]
 
* [[SDL]]
 +
 +
{{Note|Some users have reported that QEMU-{{QEMU-Version}} in system mode segmentation faults on startup for when compiled with [[GCC|GCC-{{GCC-Version}}]]. [[GCC-3.3|GCC-{{GCC-3.3-Version}}]] is reported to work fine. Ensure that you have [[GCC-3.3|GCC-{{GCC-3.3-Version}}]] installed and that you pass the following to configure:
 +
 +
--cc<nowiki>=</nowiki>/opt/gcc-{{GCC-3.3-Version}}/bin/gcc}}
  
 
== Non-Multilib ==
 
== Non-Multilib ==
Line 18: Line 22:
 
Compile the package:
 
Compile the package:
  
  ./configure --prefix=/usr --disable-gcc-check &&
+
  ./configure --prefix=/usr &&
 
  make
 
  make
  
Line 32: Line 36:
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILD32}" USE_ARCH=32 \
+
  USE_ARCH=32 ./configure --prefix=/usr \
./configure --prefix=/usr --disable-gcc-check &&
+
    --cc="gcc ${BUILD32}" &&
 
  make
 
  make
  
Line 44: Line 48:
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILDN32}" USE_ARCH=n32 \
+
  USE_ARCH=n32 ./configure --prefix=/usr \
./configure --prefix=/usr --disable-gcc-check &&
+
    --cc="gcc ${BUILDN32}" &&
 
  make
 
  make
  
Line 56: Line 60:
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILD64}" USE_ARCH=64 \
+
  USE_ARCH=64 ./configure --prefix=/usr \
./configure --prefix=/usr --disable-gcc-check &&
+
    --cc="gcc ${BUILD64}" &&
 
  make
 
  make
  
Line 63: Line 67:
  
 
  make install
 
  make install
 +
 +
== Configuring QEMU ==
 +
 +
When starting QEMU you may recieve the following error:
 +
 +
Could not configure '/dev/rtc' to have a 1024 Hz timer. This is not a fatal
 +
error, but for better emulation accuracy either use a 2.6 host Linux kernel or
 +
type 'echo 1024 > /proc/sys/dev/rtc/max-user-freq' as root.
 +
 +
The easiest way to fix this to run the command it suggests, then run the following to add an entry into sysctl.conf so that this happens at every boot:
 +
 +
echo "dev.rtc.max-user-freq = 1024" >> /etc/sysctl.conf
 +
 +
[[Category:Emulators]]

Latest revision as of 15:47, 15 September 2008

Download Source: http://bellard.org/qemu/qemu-0.9.1.tar.gz

Introduction to QEMU

QEMU is a generic and open source machine emulator and virtualizer.

Project Homepage: http://bellard.org/qemu

Dependencies

Required

Caution.png

Note

Some users have reported that QEMU-0.9.1 in system mode segmentation faults on startup for when compiled with GCC-4.2.2. GCC-3.3.6 is reported to work fine. Ensure that you have GCC-3.3.6 installed and that you pass the following to configure: --cc=/opt/gcc-3.3.6/bin/gcc

Non-Multilib

Compile the package:

./configure --prefix=/usr &&
make

Install the package

make install

Multilib

This package does not provide any libraries so only one installation is needed.

32Bit

Compile the package:

USE_ARCH=32 ./configure --prefix=/usr \
    --cc="gcc ${BUILD32}" &&
make

Install the package

make install

N32

Compile the package:

USE_ARCH=n32 ./configure --prefix=/usr \
    --cc="gcc ${BUILDN32}" &&
make

Install the package

make install

64Bit

Compile the package:

USE_ARCH=64 ./configure --prefix=/usr \
    --cc="gcc ${BUILD64}" &&
make

Install the package

make install

Configuring QEMU

When starting QEMU you may recieve the following error:

Could not configure '/dev/rtc' to have a 1024 Hz timer. This is not a fatal
error, but for better emulation accuracy either use a 2.6 host Linux kernel or
type 'echo 1024 > /proc/sys/dev/rtc/max-user-freq' as root.

The easiest way to fix this to run the command it suggests, then run the following to add an entry into sysctl.conf so that this happens at every boot:

echo "dev.rtc.max-user-freq = 1024" >> /etc/sysctl.conf
Retrieved from "?title=QEMU&oldid=15221"