If you already have a Pi there is no need to read
[Pre-requisites]
1. Familiarity with terminal; all the commands are run in terminal.
2. Recent puppies that support xz compression (unxz command is available, unsquashfs supports xz) (e.g. Slacko)
3. 6 GB of freespace
4. A relatively powerful machine, emulation is slow ...
[Ingredients]
1. Qemu with arm emulation (qemu-system-arm)
2. Barry's sap6 http://distro.ibiblio.org/quirky/arm/te ... .91.img.xz
3. sap6-compatible linux kernel http://xecdesign.com/downloads/linux-qemu/kernel-qemu
4. Optional - sap6 devx http://distro.ibiblio.org/quirky/arm/te ... 6_5.91.sfs
[Steps]
1. Get all the ingredients. Especially for qemu - get it from your favorite repository, if it is not available there, pester your favorite pet maker to make one for you
Note for pet maker: All that is needed --target-list="arm-softmmu" --- this will create in qemu-system-arm binary, which is all that is needed.
Note: qemu-0.14.txz from Slackware repository doesn't work, I don't know where to find the missing libbluetooth.so.3.
2. Install qemu pet.
3. Move the rest of the ingredients into a directory (e.g. /mnt/sda10/raspi)
4. Open terminal within that directory.
5. expand the sap6 disk image:
Code: Select all
unxz raspi-sd-4gb-sap6-5.91.img.xz
Code: Select all
qemu-system-arm -M versatilepb -cpu arm1176 -hda raspi-sd-4gb-sap6-5.91.img -kernel kernel-qemu -m 256 -append "root=/dev/sda2" -serial stdio -redir tcp:2222::22
Code: Select all
qemu-system-arm -M versatilepb -cpu arm1136-r2 -hda raspi-sd-4gb-sap6-5.91.img -kernel kernel-qemu -m 256 -append "root=/dev/sda2" -serial stdio -redir tcp:2222::22
[Optional Steps - Making the Screen larger]
7. Inside sap6, do the following.
8. Use geany to edit /etc/X11/xorg.conf.armsystem
9. Add the following at the end of line:
Code: Select all
Section "Screen"
Identifier "Default Screen"
SubSection "Display"
Depth 16
Modes "800×600" "640×480"
EndSubSection
EndSection
(Basically, /etc/X11/xorg.conf.armsystem and /etc/X11/xorg.conf must be identical and have the added content
as above)
11. Restart X server. You should get the system running
[Optional Steps - installing devx]
12. From within sap6
12.1 Open terminal
12.2 run
Code: Select all
nc -lp 22 | tar -xvf - -C /
13.1 Goto where the devx is stored
13.2 Extract it
Code: Select all
unsquashfs devx_sap6_5.91.sfs
13.4 tar -cvf - * | nc localhost 2222
14. Be patient until the process finished.
15. Test that devx is installed successfully: from within sap6 type in terminal "gcc" and "make". You should not see anything that says "command not found"
[References]
1. http://xecdesign.com/qemu-emulating-ras ... -easy-way/
2. http://linux-news.org/index.php/2012/06 ... emulation/
[Note]
Sound does not work because Qemu currently does not emulate any sound device for arm.
[Edits]
- Change memory size from 512 to 256. Real Raspi has 256MB of RAM, I used 512MB in the hope of running things faster; but apparently the kernel I referred above only supports 256 MB.