Alright guys, the moment I've been waiting for...
I have successfully been able to get the image, '2012-07-15-wheezy-raspbian.img' to work under Ubuntu 12.04 64-bit. It also works on Puppy Linux 5.2.8-005 32-bit (my test system), in case anyone was wondering.
All 'code' enclosed are assumed to be run in some kind of Terminal program, or otherwise some form of command line interface (CLI).
First, I need to tell you that if you are able to run 'qemu-system-arm' already, if your version is not 1.1.0 or higher, you will probably need to uninstall it before trying my instructions, to avoid interference with the program, 'qemu-system-arm', that you will create in the -compiling from source- process.
Here's how to check your version:
If you already have version 1.1.0 or better, you can skip the compiling part, and go straight to loading the Raspbian image in qemu. That section is in
bold and
underlined for your convenience. If you don't have it installed, you are all set to compile qemu. Otherwise, you will need to find some way to uninstall it.
Here's how to uninstall in Ubuntu:
Code: Select all
sudo apt-get remove qemu-system qemu-user
I used the following website as a guide for the compiling process:
http://xecdesign.com/compiling-qemu/
There are a number of dependencies that will need to be resolved to compile qemu from source for an 'arm' host. I pretty much kept trying './configure blah blah' while reading 'config.log' to find out what went wrong.
For Ubuntu 12.04, you may run the following:
Code: Select all
sudo apt-get install zlib1g-dev libxen-dev libsdl1.2-dev
For Puppy Linux 5.2.8-005, you will need 'lupu_devx_528-4.sfs' (for compiling):
http://distro.ibiblio.org/pub/linux/dis ... ppy-5.2.8/
You will also need 'libsdl-1.2.14-w-20110530.pet' (for SDL, I have no clue exactly what it does):
http://puppylinux.org/wikka/libsdl
To compile qemu for an 'arm' host (which is what we need), you'll need to download it from here:
http://wiki.qemu.org/Download
I will be using 'qemu-1.1.1-1.tar.bz2' for my examples.
Extract the file and go to it in terminal. The folder you need to get to is called 'qemu-1.1.1'. Once you are there, you will need to run the following to compile for an 'arm' host:
Code: Select all
./configure --target-list="arm-softmmu arm-linux-user" --enable-sdl
make
sudo make install
Now to load the Raspbian image on qemu. You will need the '2012-07-15-wheezy-raspbian.img' file (sorry if it seems obvious). You'll need to download and extract the '2012-07-15-wheezy-raspbian.zip' file:
http://www.raspberrypi.org/downloads
You'll also need the kernel, 'kernel-qemu':
Code: Select all
wget http://xecdesign.com/downloads/linux-qemu/kernel-qemu
Make sure '2012-07-15-wheezy-raspbian.img' and 'kernel-qemu' are in the same folder. As an example, I put them in this folder: ~/raspbian-7-15-2012
Now that everything is ready, run the following in the folder:
Code: Select all
qemu-system-arm -M versatilepb -cpu arm1176 -hda 2012-07-15-wheezy-raspbian.img -kernel kernel-qemu -m 256 -append "root=/dev/sda2"
The above is based on the following forum entry:
http://www.raspberrypi.org/phpBB3/viewt ... 53#p129453
Specifically, I followed the provided link to download 'qemu_no image.zip', and read and edited the enclosed 'run.bat' file.
There you have it, the recent Raspbian should be running correctly. I even tested Midori, which is able to browse websites.
I hope this helps someone
