View source for Openmoko under QEMU on MacOSX
From Openmoko
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page:
Return to Openmoko under QEMU on MacOSX.
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page:
Return to Openmoko under QEMU on MacOSX.
Warning: this is draft!
I try to put here my notes on setting up OpenMoko environment (Qemu and MokoMakefile) on Mac OS X.
Here goes my mail to openmoko mailing list in which I described common problem while compiling qemu on Mac:
There was some discussion on the lists some time ago and I wanted to check if anything has changed. I've made some quick research on subject of developing OpenMoko apps on MacOS X. It appears that we could run MakoMakefile: http://www.quantum-step.com/download/OpenMoko-Edition/oe That's great! I checked if there is any possibility to run QEMU's Neo1973 port on Mac but it seems not possible right now. Compiling it as written on http://wiki.openmoko.org/wiki/OpenMoko_under_QEMU does not work because it requires gcc-3.3 which seems to be broken on MacOS - http://lists.macosforge.org/pipermail/macports-users/2007-February/001593.html Compiling ends up with error: gcc-3.3: installation problem, cannot exec `cc1': No such file or directory Compiling neo1973 qemu with gcc-4.0: ./configure --target-list=arm-softmmu --cc=/usr/bin/gcc-4.0 --disable-gcc-check gives you: dyngen.c: In function 'gen_code': dyngen.c:1853: error: 'struct relocation_info' has no member named 'r_offset' dyngen.c:1854: error: 'struct relocation_info' has no member named 'r_offset' dyngen.c:1858: error: 'struct relocation_info' has no member named 'r_offset' dyngen.c:1872: error: 'struct relocation_info' has no member named 'r_offset' dyngen.c:1915:2: error: #error unsupport object format dyngen.c:1849: warning: unused variable 'type' make: *** [dyngen] Error 1 But there is project: http://www.kju-app.org/kju/ that manages to compile and run (very well) qemu under MacOS X. They are using standart XCode Developer Tools so this could mean gcc-4.0. I would be great if someone with grater knowledge on the subject could combine kju and neo1973 emulators to make such emulator possible. What do you think?
Here you may find my experiments while I was trying trying to run openmoko emulator on my Mac.
I followed instructions in: http://www.openembedded.org/wiki/BuildOnOSX
Get Q[kju]: http://www.kju-app.org/proj/wiki/CompilingQ into /Volumes/OE/Q but do not compile it yet (run only "prepare the sources")
Set up environment as described in MokoMakefile:
cd /Volumes/OE mkdir moko; cd moko wget http://www.rwhitby.net/files/openmoko/Makefile make setup
The main idea is to get patches for gcc-4.x from Q project and apply it to qemu-neo1973 branch. I'm still working on it.
TODO
TODO