QEMU on Mac? Use Q!

Q is QEMU with a coca GUI on the front, and it works amazing! I’ve been testing it out the past few days, and I have yet to have a problem with it. Instead of trying to compile QEMU yourself on Mac OSX (Lion or otherwise), go to the Q Homepage and check it out.

I am using version 0.9.1d118, and that one works. I am actually running a kernel that I wrote myself on it, and no problems yet!

Dispelling the Sourcery and making it GNU

With QEMU currently on the back burner, I am taking some time to compile and install the arm GCC in a more GNU-style manner. The reason for this is due to the fact that I do not want to spend time adding the library paths for it each and every time I cross compile something using Mac’s GCC. So within the next month, at max, I will have a new link up for the build script that will install it as a GNU GCC. As an added bonus, this one will not need the GNU cp and tar.

RPi Compiler Binaries now Available

Downloads Page

The links below no longer work. Use the above link.

Finally got around to putting these up on my fileJungle Account. I would have put them up sooner, but homework has been crazy. Who knew that college would be so tough ? Duh!

I also put up my disk image just in case the bins don’t work for some reason.

RPi : Binaries

RPi : DiskImage

QEMU working on Mac OSX Lion…. Mostly.

I finally got QEMU to compile! It took me a little bit to figure out everything that it needed, but I finally got it! However, a couple of the romfiles that it needs to run never compiled. They are vgabios-cirrus.bin and pxe-e1000.rom. Guess I get to go back in and figure out what went wrong.

If anyone has any insights, please leave a comment or send me an email.

UPDATE: If you want to use QEMU on Mac, use the application called Q, which is a mac wrapper for a successful build of QEMU. Link to post on Q

RPi Compiler Patches and Binaries for Mac Lion

I have uploaded the patches and the build file for compilation here. on the downloads page.

To compile, follow the instructions on the github page, but do not install cp and tar. Also, use the patches and the build script from the above link.

The binaries are available here (Almost). However, they need to be uncompressed into a filesystem that is case sensitive. I suggest making a dmg to put it on, and then adding the path to the bin folder to your $PATH.

I used this command to uncompress the binaries (arm-x is my .dmg; use the name of yours instead):

tar -zx -C /Volumes/arm-x/ --strip-components 1 -f ARMx-2009q3-67.tar.bz2

You will need to run these commands after you decompress them:

sudo ln /usr/lib/libgcc_s.10.5.dylib /usr/lib/libgcc_s.so

sudo ln /usr.lib/libstdc++.6.0.9.dylib /usr/lib/libstdc++.so

sudo ln /usr.lib/libstdc++.6.0.9.dylib /usr/lib/libstdc++-static.so

This ensures that all of the linked libraries are where they need to be.

If you have any questions or something goes wrong, leave a comment and I will see what I can do about it.

Rapberry Pi C/C++ Compiler for Mac OS Lion

Recently I became interested in getting a compiler for the Raspberry Pi for my mac. I went to github’s RPI compiler how-to. After setting up my environment for the build, and doing everything that they said to do, I compiled and it failed after a few minutes.

So I decided to go from where they left off. And now, after two weeks of work, I have a working compiler… but not Raspberry Pi to test it on. (My next project is to get QEMU working on Lion, but that’s another topic.)

I will put up my instructions for compiling later today. If you have any questions, or insights that will help me on my QEMU build, leave a comment!

– Samuel Barney