NSLU2-Linux
view · edit · print · history

Optware.Qemu History

Hide minor edits - Show changes to markup

January 24, 2008, at 07:44 PM by Reedy Boy -- tweak
Changed lines 37-38 from:

BrianZhou and Mwester were all able to install successfully as they had swap enabled on their NSLU2 hard drives, but I (Reedy Boy) had swap disabled due to using a 512mb Swap File

to:

BrianZhou and Mwester were all able to install successfully as they had swap enabled on their NSLU2 hard drives, but I (Reedy Boy) had swap disabled due to using a 512mb Memory Stick

June 07, 2007, at 07:50 PM by BrianZhou --
Changed lines 37-38 from:

BrianZhou? and Mwester were all able to install successfully as they had swap enabled on their NSLU2 hard drives, but I (Reedy Boy) had swap disabled due to using a 512mb Swap File

to:

BrianZhou and Mwester were all able to install successfully as they had swap enabled on their NSLU2 hard drives, but I (Reedy Boy) had swap disabled due to using a 512mb Swap File

June 07, 2007, at 07:14 PM by Reedy Boy -- Fault Found
Deleted lines 2-11:

Some user (Reedy Boy) reported segfault during "ipkg install qemu-libc-i386" with the postinst. The postinst script of qemu-libc-i386 is actually:

 #!/bin/sh
 mkdir -p /opt/i386-unknown-linux-gnu/etc
 test -e /opt/i386-unknown-linux-gnu/etc/ld.so.cache || /opt/bin/qemu-i386 /opt/i386-unknown-linux-gnu/sbin/ldconfig -C /opt/i386-unknown-linux-gnu/etc/ld.so.cache

So it must be that /opt/bin/qemu-i386 segfault'ed. We're still investigating the problem. Meanwhile, the qemu-user dependency problem has been fixed.


Added lines 5-6:

NB: Qemu needs a swap file to work

Added line 15:
  • ipkg install qemu
Added lines 32-39:

Troubleshooting

If "ipkg install qemu-libc-i386" reports a segfault during installation, the most likely cause of this is a lack of pagefile on the NSLU2

BrianZhou? and Mwester were all able to install successfully as they had swap enabled on their NSLU2 hard drives, but I (Reedy Boy) had swap disabled due to using a 512mb Swap File

To fix it, You need a swap file!!

June 06, 2007, at 11:56 PM by BrianZhou -- suggest starting with simple binary
Added lines 30-31:

Start with some binary that with minimal dependencies, such as /usr/bin/cal.

June 06, 2007, at 11:47 PM by BrianZhou -- glibc version note
Added line 35:

--jp30

Deleted line 36:

--jp30

June 06, 2007, at 11:46 PM by BrianZhou -- added notes
Changed lines 3-4 from:

There is a dependancy problem with qemu-libc-i386 so most users will not be able to install it without a segmentation fault. mwester was able to install it on his dev slug, but myself (Reedy Boy) wasnt able to on my unslung unit

to:

Some user (Reedy Boy) reported segfault during "ipkg install qemu-libc-i386" with the postinst. The postinst script of qemu-libc-i386 is actually:

 #!/bin/sh
 mkdir -p /opt/i386-unknown-linux-gnu/etc
 test -e /opt/i386-unknown-linux-gnu/etc/ld.so.cache || /opt/bin/qemu-i386 /opt/i386-unknown-linux-gnu/sbin/ldconfig -C /opt/i386-unknown-linux-gnu/etc/ld.so.cache

So it must be that /opt/bin/qemu-i386 segfault'ed. We're still investigating the problem. Meanwhile, the qemu-user dependency problem has been fixed.


Changed line 35 from:
to:
  • qemu-i386 package version reflects the glibc version. So binaries depends on glibc 2.4 won't be supported by qemu-i386-2.3.3.
June 06, 2007, at 10:53 PM by Reedy Boy -- qemu-user is now listed in the feeds :) Thanks eno!!
Changed line 15 from:
  • ipkg install http://ipkg.nslu2-linux.org/feeds/unslung/cross/qemu-user_0.7.1-2_armeb.ipk
to:
  • ipkg install qemu-user
Changed lines 28-38 from:

--jp30

Make sure you get qemu-user

Since ipkg install qemu-libc-i386 cant find all its dependencies do:

  • ipkg install http://ipkg.nslu2-linux.org/feeds/unslung/cross/qemu-user_0.7.1-2_armeb.ipk
  • ipkg install qemu-libc-i386

--krim

to:

--jp30

June 06, 2007, at 09:02 PM by Reedy Boy -- ++Dependancy Problem
Added lines 3-4:

There is a dependancy problem with qemu-libc-i386 so most users will not be able to install it without a segmentation fault. mwester was able to install it on his dev slug, but myself (Reedy Boy) wasnt able to on my unslung unit

May 11, 2007, at 06:38 PM by Reedy Boy -- Added the prequisit to main tutorial
Changed lines 13-14 from:
ipkg install qemu-libc-i386
to:
  • ipkg install http://ipkg.nslu2-linux.org/feeds/unslung/cross/qemu-user_0.7.1-2_armeb.ipk
  • ipkg install qemu-libc-i386
April 14, 2007, at 04:24 PM by krim -- qemu-user is missing
Changed lines 30-31 from:
  • Since ipkg install qemu-libc-i386 cant find all its dependencies do:
to:

Since ipkg install qemu-libc-i386 cant find all its dependencies do:

Deleted lines 34-36:

Cant find qemu-user in the feeds at all.

April 14, 2007, at 04:23 PM by krim -- fix
Changed lines 28-38 from:

Dependencies does not exist

  • root@brainslug:/home# ipkg install qemu-libc-i386
  • Installing qemu-libc-i386 (2.3.3-3) to root...
  • Downloading http://ipkg.nslu2-linux.org/feeds/unslung/cross/qemu-libc-i386_2.3.3-3_armeb.ipk
  • Nothing to be done
  • An error ocurred, return value: 1.
  • Collected errors:
  • ERROR: Cannot satisfy the following dependencies for qemu-libc-i386:
  • qemu-user
to:

Make sure you get qemu-user

  • Since ipkg install qemu-libc-i386 cant find all its dependencies do:
  • ipkg install http://ipkg.nslu2-linux.org/feeds/unslung/cross/qemu-user_0.7.1-2_armeb.ipk
  • ipkg install qemu-libc-i386
April 14, 2007, at 04:18 PM by krim -- qemu-user is missing
Changed lines 39-41 from:

Cant find qemu-user in the feeds at all.

to:

Cant find qemu-user in the feeds at all.

--krim

April 14, 2007, at 04:18 PM by krim -- qemu-user is missing
Changed line 39 from:

Cant find qemu-user in the feeds at all. Check this please

to:

Cant find qemu-user in the feeds at all.

April 14, 2007, at 04:15 PM by krim -- dependencies error
Changed line 39 from:

Cant find qemu-user in the feeds at all

to:

Cant find qemu-user in the feeds at all. Check this please

April 14, 2007, at 04:14 PM by krim -- error
Changed lines 30-39 from:

root@brainslug:/home# ipkg install qemu-libc-i386; Installing qemu-libc-i386 (2.3.3-3) to root...; Downloading http://ipkg.nslu2-linux.org/feeds/unslung/cross/qemu-libc-i386_2.3.3-3_armeb.ipk; Nothing to be done; An error ocurred, return value: 1. Collected errors:; ERROR: Cannot satisfy the following dependencies for qemu-libc-i386:;

         qemu-user;

Cant find qemu-user in the feeds at all;

to:
  • root@brainslug:/home# ipkg install qemu-libc-i386
  • Installing qemu-libc-i386 (2.3.3-3) to root...
  • Downloading http://ipkg.nslu2-linux.org/feeds/unslung/cross/qemu-libc-i386_2.3.3-3_armeb.ipk
  • Nothing to be done
  • An error ocurred, return value: 1.
  • Collected errors:
  • ERROR: Cannot satisfy the following dependencies for qemu-libc-i386:
  • qemu-user

Cant find qemu-user in the feeds at all

April 14, 2007, at 04:13 PM by krim --
Changed lines 30-33 from:

root@brainslug:/home# ipkg install qemu-libc-i386 Installing qemu-libc-i386 (2.3.3-3) to root... Downloading http://ipkg.nslu2-linux.org/feeds/unslung/cross/qemu-libc-i386_2.3.3-3_armeb.ipk Nothing to be done

to:

root@brainslug:/home# ipkg install qemu-libc-i386; Installing qemu-libc-i386 (2.3.3-3) to root...; Downloading http://ipkg.nslu2-linux.org/feeds/unslung/cross/qemu-libc-i386_2.3.3-3_armeb.ipk; Nothing to be done;

Changed lines 35-39 from:

Collected errors: ERROR: Cannot satisfy the following dependencies for qemu-libc-i386:

         qemu-user

Cant find qemu-user in the feeds at all

to:

Collected errors:; ERROR: Cannot satisfy the following dependencies for qemu-libc-i386:;

         qemu-user;

Cant find qemu-user in the feeds at all;

April 14, 2007, at 04:12 PM by krim -- error
Added lines 26-39:

Dependencies does not exist

root@brainslug:/home# ipkg install qemu-libc-i386 Installing qemu-libc-i386 (2.3.3-3) to root... Downloading http://ipkg.nslu2-linux.org/feeds/unslung/cross/qemu-libc-i386_2.3.3-3_armeb.ipk Nothing to be done An error ocurred, return value: 1. Collected errors: ERROR: Cannot satisfy the following dependencies for qemu-libc-i386:

         qemu-user

Cant find qemu-user in the feeds at all

July 25, 2005, at 04:24 AM by jp30 -- add link to qemu home page
Added line 21:
  • The home of qemu is: http://fabrice.bellard.free.fr/qemu/
July 25, 2005, at 04:22 AM by jp30 --
Changed line 21 from:
  • Qemu supports emulating sparc, and ppc processors; it can also emulate much of the hardware of a Sun Javastation or a Apple Powermac. None of this functionality does not appear to be working with arm hosts yet.
to:
  • Qemu supports emulating sparc, and ppc processors; it can also emulate much of the hardware of a Sun Javastation or a Apple Powermac. Some of this functionality does not appear to be working with arm hosts yet.
July 25, 2005, at 03:57 AM by jp30 --
Changed line 21 from:
  • Qemu also supports emulating and sparc, ppc processors; it can also emulate much of the hardware of a Sun Javastation or a Apple PowerMac?. This functionality does not appear to be working with on arm hosts yet.
to:
  • Qemu supports emulating sparc, and ppc processors; it can also emulate much of the hardware of a Sun Javastation or a Apple Powermac. None of this functionality does not appear to be working with arm hosts yet.
July 25, 2005, at 03:54 AM by jp30 --
Added lines 1-24:

Qemu - a processor emulator

Qemu is now available for unslung through the feeds. At present we only have support for emulating intel i386 processors. This will, however, be the most useful way to use qemu, as it allows you to run binaries that have been built for common desktop gnu/linux distributions on the slug.

Qemu consists of several packages:

  • qemu (a full-system PC emulator - emulates a complete i386 based PC from scratch)
  • qemu-user (a i386 linux emulator - emulates a i386 processor running a linux kernel)
  • qemu-libc-i386 (glibc for i386 - used with qemu-user to run i386 binaries)

Quick start:

ipkg install qemu-libc-i386

Now copy a binary from your gnu/linux i386-based desktop onto your slug, and run:

qemu-i386 <name of your binary here>

Notes:

  • Qemu also supports emulating and sparc, ppc processors; it can also emulate much of the hardware of a Sun Javastation or a Apple PowerMac?. This functionality does not appear to be working with on arm hosts yet.
  • Qemu 0.7.0 apparently exposes a bug in the version of gcc (3.3.5) used to build optware / unslung. Parts of it must be compiled with -fno-schedule-insns.

--jp30

view · edit · print · history · Last edited by Reedy Boy.
Based on work by BrianZhou, Reedy Boy, krim, and jp30.
Originally by jp30.
Page last modified on January 24, 2008, at 07:44 PM