Posts

Running Bare Metal PowerPC e500 Hello World

Random notes/links I collected for trying to get a bare metal PPC system to boot in Qemu There are plenty of examples all around for doing embedded, bare metal programming on ARM platforms, but the PowerPC examples seem to be sparse. Some ARM links: http://opensourceforu.com/2011/07/qemu-for-embedded-systems-development-part-2/ https://balau82.wordpress.com/2010/02/28/hello-world-for-bare-metal-arm-using-qemu/ Example bare metal hello world!!! https://github.com/ara4711/ppc_hw Building GNU GCC cross compiler http://ecos.sourceware.org/tools/linux-powerpc-eabi.html http://www.ifp.illinois.edu/~nakazato/tips/xgcc.html Other links: Writing to the RS-232 port of an e500 https://lists.gnu.org/archive/html/qemu-ppc/2015-08/msg00203.html Cross-compiling PowerPC http://www.ibm.com/developerworks/library/pa-emulation/ General Qemu help - https://landley.net/aboriginal/presentation.html#prebuilt_binaries Download Qemu for Windows https://qemu.weilnetz.d...

python print strings sorted by string length

for k in sorted(def_values, key=len, reverse=True): print k, def_values[k]

Installing Qemu on MacOS Yosemite

So, today I tried downloading/building Qemu on my MacBook running Yosemite (OSX 10.10). Here's what I had to do to make it happen.... Install MacPorts: https://guide.macports.org/#installing.macports Update MacPorts sudo port selfupdate Accept the Xcode license: sudo xcodebuild -license Install Xcode command line utils: xcode-select --install Install the following 'port' packages sudo port install libtool install autoconf install automake install glib2 install pkgconfig install libpixman Run configure ./configure --target-list=ppcemb-softmmu,ppc-softmmu Run make make While trying to build the qemu binaries, the link failed for a couple of the test applications. These (probably) aren't needed, so we can just ignore them. To resolve that, use the workaround here: https://virtuallyfun.superglobalmegacorp.com/2015/05/03/qemu/ touch /pixman/test/region-test touch /pixman/test/scaling-helpers-test Then, run make ...

#Firstpost

Ghetto-hacks.com is online!