Anatiferous blog | Move every zig.

Meta-Site

Welcome to Anatiferous: Using barnacles to make geese since 1689!

Howdy! This is my (William Reading's) webpage. At the moment, I only have this blog script and my gallery up, but I hope to get more stuff on this page at some point, or so I thought when I created this site years ago. Updates and shiny new copy to eventually go here. If you'd like to contact me to point out that I've done something to break XHTML/CSS standards or heaven forbid--look at my Vita--drop me a line at my e-mail address bill +spam @ [ELEPHANT] aggienerds.org. Simply remove "+spam", the spaces and the pachyderm along with its brackets and that address will reach me. I'm also available on Jabber/GChat/AIM/MSN with the same address above.

9/21/2004

Open Records Requests

Filed under: — bill @ 8:42 pm

Ever get a random phone call on campus and can’t identify where it came from? If you think it’s a callbox, you can confirm it against caller ID by looking at this list: Emergency Phones. You’d be surprised how annoying it is to get them (them here being the university) to give you a straight answer when requesting something like this. They gave me a list of locations, but no numbers the first time around. Given that the name of the game here is obviously for them to give you no more than you ask for, and often less than what you want, so you have to be really specific.

9/4/2004

Successful Ruputer/OnHandPC Cross compiler on Mac OS X

Filed under: — bill @ 4:08 am

Tonight I finally managed to get gcc ready to cross compile for my ruputer watch. This combined with my port of fton to Mac OS X (10.3.5) means that I can now do development and testing of OnHandPC/Ruputer programs without the use of Linux or Windows. Here’s the steps necessary to get it to work:

(Note that I’ve built wget and installed it in /usr/local/bin from source, so I’ll use that in the examples. This can be replaced with a curl command or something similar.)

mkdir cross
cd cross
# Binary tools for cross compilation
wget ftp://ftp.gnu.org/gnu/binutils/binutils-2.14.tar.bz2
# Cross compiler
wget ftp://ftp.gnu.org/gnu/gcc/gcc-2.95.3/gcc-core-2.95.3.tar.gz
# Smaller C library designed for cross compiling
wget ftp://sources.redhat.com/pub/newlib/newlib-1.12.0.tar.gz
# GCC patches that make the cross compile work
wget http://www.lucid-cake.net/osx_arm/gcc-patches.tgz
# Tools required to convert the elf files to exf
wget http://www.nisoc.or.jp/~imai/archive/rutools-0.7.3.tar.gz
# A patch for the rutools that fixes a bug
wget http://www.toyoshima-house.net/ruputer/rutools-0.7.3.diff
# OnHandPC SDK
wget http://www.matsucomusa.com/Download/sdk.zip


# Build and install the binary tools
tar xjvf binutils-2.14.tar.bz2
cd binutils-2.14
./configure –prefix=/usr/local/ruputer –target=mn10200-elf && make
sudo make install
cd ..
export PATH=$PATH:/usr/local/ruputer/bin


tar xzvf gcc-patches.tgz
tar xzvf newlib-1.12.0.tar.gz
cd gcc-2.95.3
ln -s ../newlib-1.12.0/libgloss
ln -s ../newlib-1.12.0/newlib
cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess .
# This will produce some errors, ignore them
patch -p1 < ../gcc-patches/gcc-2.95.3.patch
cd ..
mkdir gcc-build
cd gcc-build
../gcc-2.95.3/configure –prefix=/usr/local/ruputer –target=mn10200-elf
make
sudo make install
cd ..


# Now the cross compiler should be built and installed, but the needed libraries and headers to do anything useful aren’t installed yet.


unzip sdk.zip
cd onHand_SDK/RupSDK
sudo cp Inc/* /usr/local/ruputer/mn10200-elf/include
sudo cp Lib/* /usr/local/ruputer/mn10200-elf/lib
sudo find . -name “*.a” -exec cp ‘{}’ /usr/local/ruputer/mn10200-elf/lib ;
# This is a silly case issue
sudo mv /usr/local/ruputer/mn10200-elf/include/Address.def /usr/local/ruputer/mn10200-elf/include/address.def


# Okay, this is all that’s needed to create elf binaries for the watch, but we’re not quite done yet, since we need binaries in the exf format for the watch. Luckily, there’s a nice tool that comes with rutools that can do this for us.


tar xzvf rutools-0.7.3.tar.gz
cd rutools-0.7.3
patch -p1 < ../rutools-0.7.3.diff


# Edit the Makefile with your favorite editor and change the line that says “SUBDIR = rulib rutools ruutils ftr” to “SUBDIR = ruutils”
make
sudo make install
# All Done!

Okay, so those are the steps needed to set up Mac OS X for development on the Ruputer/OnHandPC. Note that I put my files in a slightly different place than is specified in most Makefiles, so they may need some slight tweaking to get to work properly.

 

Google
 
Web anatifero.us
aggienerds.org

Powered by WordPress