
So here are the steps. We are using Ubuntu Gutsy as a host, if you are using a different host your mileage may vary but the recipe should be much the same. (ensure you have qemu, and parted installed on your system and install other stuff as needed but these are the core tools)
1. Open a terminal create a new directory and cd into it
2. Extract the image tarball from the CD (P701L.gz) into your fresh directory
3. Create a new disk image file 'qemu-img create good.img 4001M'
4. dd the P701L image into the new image 'dd if=P701L of=good.img bs=512 conv=nocreat,notrunc'
5. Figure out the next available loop device 'sudo losetup -f' (use the returned number in the next step)
6. get the image as a device 'sudo losetup /dev/loop0 good.img' (again replace 0 with the right number from 5)
7. ensure this was successful 'echo $?' should return 0
8. partition the second drive 'sudo fdisk -C 486 /dev/loop0'
9. create the partition: n, p, 2, <enter>, 484, w
10. format the partition 'sudo parted /dev/loop0', mkfs, 2, ext2, Ignore, Ignore, quit
11. remove the loopback device 'sudo losetup -d /dev/loop0'
12. create a mount point for the loopback 'sudo mkdir /mnt/loop'
13. mount the first partition 'sudo mount -o loop,offset=32256 good.img /mnt/loop'
14. Fixup the xorg.conf file. 'sudo vi /mnt/loop/etc/X11/xorg.conf' change intel to vesa and screen resolutions to 800x600 (I will post the updated xorg.conf in a followup post)
15. umount the loopback file system 'sudo umount /mnt/loop/'
You disk image file is now ready to go. With ubuntu the bios.bin file shipped with qemu will not function so we have to grab the newest one from http://bochs.sourcef...getcurrent.html. very important --> Download the latest source tarball. From the tarball extract the 'bios/BIOS-bochs-latest' and copy it over the existing /usr/share/qemu/bios.bin file <--very important. You are almost there now.
* run qemu 'qemu -hda good.img -m 512'
It will format the second partition as ext3 and ask you to hit enter to reboot. Hit enter.
VOILA!!! you should see a familiar sight as the gui starts and asks you for username, timezone etc...
A few notes.
* I have noticed that if you don't shutdown 'nicely' you sometimes have to clear all files from /tmp in the image for X to start as an old lock file sits in there
* I have had to clear out /var/log in the image from time to time
* A stream of ata errors causes the emulation to be slow, we are working on this
The first two notes may no longer be an issue but were found to cause problems while we worked on getting this going.
Enjoy,
TundraMan and Zedd
Edited by TundraMan, 26 November 2007 - 08:55 PM.












