Michael Hope <firstname.lastname@example.org> (c) 2010
Most of the work was already done by Openmoko (thanks Openmoko!). wrdk builds on this and adds a pre-built toolchain and loader which make it easier to get up and going and shortens the compile/load/test cycle.
The Linux binary was built on Ubuntu 8.04 and should work on versions 8.04 through to 10.04.
Development occurs on github at http://github.com/nzmichaelh/wrdk. Issues can be filed at http://github.com/nzmichaelh/wrdk/issues. There’s a mailing list at http://groups.google.com/group/wrdk-users.
For Linux users:
wrdk is designed to be installed under /opt or your home directory.
For Windows users:
The loader and examples are grifo based applications. This section covers making a new SD card that boots grifo and gives a menu to select applications from.
Insert the card into the WikiReader and turn the device on. You should see the WikiReader logo, then ‘wrdk’, then icons for all of the installed applications.
A few simple examples are included under $WRDK/examples. To build, change to an example directory such as $WRDK/examples/pongex and run make.
wrdk includes a set of Makefile rules designed to make writing your own application fairly straightforward. It does expect a fairly rigid, self-contained layout though.
Say you want to make a new application called wrhello:
Make sure the wrdk bin directory is in your path.
Running make will give you the application in wrhello/build/samov1/wrhello.app and the binary icon in wrhello/build/wrhello.ico. Copy these both onto the SD card and add them to the init.ini on the card.
Don’t forget to umount && sync before removing the card!
Have a look in grifo.h for the available functions.
The serial loader is a small, grifo based program that can load and execute other grifo programs over the WikiReader’s built in serial port.
Build a 3.3 V serial cable and connect it to the debug connector in the battery bay of the WikiReader.
To use the loader: