The first step is to get the source code for the Linaro version of QEMU, build it, and install it. The commands below can be executed as a normal user and install QEMU to the 'qemu' directory under your home directory. You may have to adjust the path to python for your operating system. If you are missing any required libraries or tools, the configure script will let you know. The instructions suggest a specific revision to ensure that you get the best results with Minix. Don't ignore that suggestion.
cd $HOMEOnce you have the emulator software installed, you need to create an SD card image file containing the Minix base system. These commands will walk you through checking out my code, configuring the build, and building the whole system. Again, if you need any libraries or tools, the arm_sdimage.sh script will let you know about it.
git clone git://git.linaro.org/qemu/qemu-linaro.git
git checkout 72f7eb07b611766298fe2dc140533a0a6256b054
./configure --target-list=arm-softmmu \
git clone git://github.com/tcort/minix-i2c.git
git checkout i2c
echo "BASE_URL=http://www.minix3.org/arm/beagleboard-xm" > .settings
echo "FLAG=-DDM37XX" >> .settings
echo "CONSOLE=tty02" >> .settings
Now, if everything was successful, you should have the emulator installed and a complete Minix operating system image ready to boot. The next step is to fire up the emulator with it pointed at the SD card image file.
cd $HOME/minix-i2c && $HOME/qemu/bin/qemu-system-arm \That should boot up Minix and present you with a login prompt. The default login is "root" with no password. That will give you a shell where you can issue commands. As the project progresses, I'll be making posts explaining how to get started with i2c on Minix. I will also write about running Minix on an actual BealgeBoard-xM.
-M beaglexm -drive \
-clock unix -serial stdio -device usb-kbd \
-device usb-mouse -usb
When you're done, you can issue the `halt` command. Minix will stop itself and print a message saying that it's okay to turn off the computer. At this point, you can press Ctrl+C to terminate qemu.