Thursday, April 5, 2012

Fixing the fullscreen orientation bug in AIR 3.x

EDIT: Please see important information about jarsigner parameters below:


In my day job I lead a team that develops Android AIR applications built on the Adobe AIR runtime.

Recently Adobe have released version 3.2 of AIR for Android that brings many new exciting features (including hardware accelerated rendering) and we were keen to take advantage of these features. We were also keen to use a feature called "Captive Runtime" where the AIR runtime can be packaged with the APK file.

Our application is a full screen app and uses both landscape and portrait orientations and this is where our troubles began.

When running without the Captive Runtime on AIR 3.1 everything worked as expected, however when the captive runtime was included and the app switched orientation the Android title bar appeared. Things got worse with AIR 3.2 as the title bar appeared in both cases. Its important to note that this only seems to occur on ICS.

After an immense amount of spelunking deep into the AIR runtime support code with smali and various other tools (of which I will spare the details) I came to the conclusion that the orientation code is broken with respect to full screen and themes on ICS.

This seems to be as a result of the application of the activity theme as defined in the AndroidManifest file.


The FlashBuilder generated entry should look something like this:
<activity theme="@style/Theme.NoShadow" ... />


Unfortunately when applied this will cause the title bar to appear.
Luckily there seems to be an easy to implement fix for this behaviour that does not require byte patching of the dex file.


To do this you will need to edit the AndroidManifest.xml and change the theme of the main activity to this:

<activity theme="@android:style/Theme.NoTitleBar.Fullscreen" ... />


The AndroidManifest.xml file in the APK is a binary XML file, so the APK needs to be unpacked, fixed, repacked and then finally re-signed.

The tools to accomplish this are apktool and jarsigner.


apktool

apktool can be found at: http://code.google.com/p/android-apktool/

You will need both the windows package and the actual apktool JAR file.

As of this post these are:

apktool-install-windows-r04-brut1.tar.bz2

apktool1.4.3.tar.bz2

Unpack both of these into the same directory.

To unpack an APK you would use the following command:

apktool.bat d apk_filename.apk


This will unpack the APK into a directory of the same name as the APK e.g. apk_filename

At this point you should be able to edit the AndroidManifest.xml file and make the changes described above.

To repack the APK:

apktool.bat b unpacked_apk_directory new_apk_filename.apk

You may want to use the -f force flag to ensure that the APK is repacked.


jarsigner

jarsigner can be found in the java JDK and it is imperative that you have at least the 1.6+ JDK installed.

To resign an APK using a PKCS12 certificate (.p12 file) you would use the following command:

jarsigner.exe -storetype pkcs12 -keystore pkcs12_file_name.p12 -digestalg SHA1 -sigalg MD5withRSA new_apk_filename.apk "1"


Please note the addition of the -digestalg SHA1 and -sigalg MD5withRSA parameters. These are essential to correctly sign the APK.

The “1” indicates the alias which is the first cert in the PKCS file. This can be verified by running the keytool application (which is also available in the JDK):

keytool.exe -list -v -storetype pkcs12 -keystore pkcs12_file_name.p12


Arguably the theme attribute could be applied at the application node and removed from the activity node. I haven't tested this (it does seem that the activity node theme overrides the application theme).

I hope this helps anyone out there with the same issue.

Wednesday, February 29, 2012

Artcfox's awesome TLC5940 lib and the Arduino IDE

Artcfox has released an absolutely brilliant library and book (!) on how to get an ATMega328 talking to a TLC5940 chip: Demystifying the TLC5940

If you want to control lots of LEDS (RGB or otherwise) the TLC5940 is your chip, unfortunately it has a somewhat complex interface. The TLC5940 is pretty ubiquitous in the Arduino world, but Arctfox (being the hardcore kind of guy he is), wrote his library in pure AVR C.

This does not play well with the Arduino IDE. So for those of you out there that would like to have the ease of use of the IDE and get access to this awesome code, I've done the hard work for you. Here is a breakdown of what is required.

First off some background. I am using the example code from chapter 9 of the source zip.
This is a full example including the library and a test program.

To convert the code we need to understand some things about compiling in the IDE:

  • The example contains a main.c file and in this file is defined the program entry point:
    int main(void)

    We need to expose this function to the IDE so that we can call the example code. In order to avoid conflicts, we need to rename it to something other than main (the Arduino sketch has a hidden main function that calls setup() and loop()). So we name it something creative like:
    int themain(void)

  • Now we need to define this function in a header so it can be shared with the sketch. To accomplish this, create a main.h file with these contents:
    #ifndef __MAIN_H
    #define __MAIN_H

    int themain(void);

    #endif

  • To include and correctly link to the C function, declare this at the top of your sketch:
    extern "C"
    {
    #include "themain.h"
    }
    This tells the compiler to include the header as a C header and to expect function names defined in the header to be in a C linker format.

  • The IDE does not support C99 mode, this means that code like this:
    for( int i = 0; i < 10; i++ )

    will not compile. The declaration of the variable in the for loop is not allowed and needs to be changed to:
    int i;
    for( i = 0; i < 10; i++ )
    There are a few places in the code where this occurs, fixing this is left as an exercise for the reader... :) The IDE should quickly point out these issues!

  • Now all we have to do is get the #defines correct so that the code will compile and be configured correctly. This gets interesting. Artcfox has used some makefile ninja wizardry to accomplish this which I have converted into a helper header called "ifdefs.h". This header needs to be included at the top of the "tlc5940.h" file after the #include <avr/io.h> line:
    #pragma once

    #include <stdint.h>
    #include <avr/io.h>

    #include "ifdefs.h"
    This file (which is basically a port of the makefile to header definitions) looks like this:
    #define PB1 PINB1
    #define PB2 PINB2
    #define PB3 PINB3
    #define PB5 PINB5


    #define PC0 PINC0
    #define PC1 PINC1
    #define PC2 PINC3

    #define PD1 PIND1
    #define PD3 PIND3
    #define PD4 PIND4
    #define PD5 PIND5
    #define PD6 PIND6
    #define PD7 PIND7

    // Defines the number of TLC5940 chips that are connected in series
    #define TLC5940_N 4

    // Flag for including functions for manually setting the dot correction
    // 0 = Do not include dot correction features (generates smaller code)
    // 1 = Include dot correction features (will still read from EEPROM by default)
    #define TLC5940_INCLUDE_DC_FUNCS 1

    // Flag for including efficient functions for setting the grayscale
    // and possibly dot correction values of four channels at once.
    // 0 = Do not include functions for ganging outputs in groups of four
    // 1 = Include functions for ganging outputs in groups of four
    // Note: Any number of outputs can be ganged together at any time by simply
    // connecting them together. These function only provide a more efficient
    // way of setting the values if outputs 0-3, 4-7, 8-11, 12-15, ... are
    // connected together
    #define TLC5940_INCLUDE_SET4_FUNCS 0

    // Flag for including a default implementation of the TIMER0_COMPA_vect ISR
    // 0 = For advanced users only! Only choose this if you want to override the
    // default implementation of the ISR(TIMER0_COMPA_vect) with your own custom
    // implemetation inside main.c
    // 1 = Most users should use this setting. Use the default implementation of the
    // TIMER0_COMPA_vect ISR as defined in tlc5940.c
    #define TLC5940_INCLUDE_DEFAULT_ISR 1

    // Flag for including a gamma correction table stored in the flash memory. When
    // driving LEDs, it is helpful to use the full 12-bits of PWM the TLC5940 offers
    // to output a 12-bit gamma-corrected value derived from an 8-bit value, since
    // the human eye has a non-linear perception of brightness.
    //
    // For example, calling:
    // TLC5940_SetGS(0, 2047);
    // will not make the LED appear half as bright as calling:
    // TLC5940_SetGS(0, 4095);
    // However, calling:
    // TLC5940_SetGS(0, pgm_read_word(&TLC5940_GammaCorrect[127]));
    // will make the LED appear half as bright as calling:
    // TLC5940_SetGS(0, pgm_read_word(&TLC5940_GammaCorrect[255]));
    //
    // 0 = Do not store a gamma correction table in flash memory
    // 1 = Stores a gamma correction table in flash memory
    #define TLC5940_INCLUDE_GAMMA_CORRECT 1

    // Flag for forced inlining of the SetGS, SetAllGS, and Set4GS functions.
    // 0 = Do not force inline the calls to Set*GS family of functions.
    // 1 = Force all calls to the Set*GS family of functions to be inlined. Use this
    // option if execution speed is critical, possibly at the expense of program
    // size, although I have found that forcing these calls to be inlined often
    // results in both smaller and faster code.
    #define TLC5940_INLINE_SETGS_FUNCS 1

    // Flag to enable multiplexing. This can be used to drive both common cathode
    // (preferred), or common anode RGB LEDs, or even single-color LEDs. Use a
    // P-Channel MOSFET such as an IRF9520 for each row to be multiplexed.
    // 0 = Disable multiplexing; library functions as normal.
    // 1 = Enable multiplexing; The gsData array will become two-dimensional, and
    // functions in the Set*GS family require another argument which corresponds
    // to the multiplexed row they operate on.
    #define TLC5940_ENABLE_MULTIPLEXING 1

    // The following option only applies if TLC5940_ENABLE_MULTIPLEXING = 1
    #if TLC5940_ENABLE_MULTIPLEXING == 1
    // Defines the number of rows to be multiplexed.
    // Note: Without writing a custom ISR, that can toggle pins from multiple PORT
    // registers, the maximum number of rows that can be multiplexed is eight.
    // This option is ignored if TLC5940_ENABLE_MULTIPLEXING = 0
    #define TLC5940_MULTIPLEX_N 3
    #endif

    // Flag to use the USART in MSPIM mode, rather than use the SPI Master bus to
    // communicate with the TLC5940. One major advantage of using the USART in MSPIM
    // mode is that the transmit register is double-buffered, so you can send data
    // to the TLC5940 much faster. Refer to schematics ending in _usart_mspim for
    // details on how to connect the hardware before enabling this mode.
    // 0 = Use normal SPI Master mode to communicate with TLC5940 (slower)
    // 1 = Use the USART in double-buffered MSPIM mode to communicate with the
    // TLC5940 (faster, but requires the use of different hardware pins)
    // WARNING: Before you enable this option, you must wire the chip up differently!
    #define TLC5940_USART_MSPIM 1

    // Defines the number of bits used to define a single PWM cycle. The default
    // is 12, but it may be lowered to achieve faster refreshes, at the expense
    // of the ISR being called more frequently. If TLC5940_INCLUDE_GAMMA_CORRECT = 1
    // then changing TLC5940_PWM_BITS will automatically rescale the gamma correction
    // table to use the appropriate maximum value, at the expense of precision.
    // 12 = Normal 12-bit PWM mode. Possible output values between 0-4095
    // 11 = 11-bit PWM mode. Possible output values between 0-2047
    // 10 = 10-bit PWM mode. Possible output values between 0-1023
    // 9 = 9-bit PWM mode. Possible output values between 0-511
    // 8 = 8-bit PWM mode. Possible output values between 0-255
    // Note: Lowering this value will decrease the amount of time you have in the
    // ISR to send the TLC5940 updated values, potentially limiting the
    // number of devices you can connect in series, and it will decrease the
    // number of cycles available to main(), since the ISR will be called
    // more often. Lowering this value will however, reduce flickering and
    // will allow for much quicker updates.
    #define TLC5940_PWM_BITS 12

    // Determines whether or not GPIOR0 is used to store flags. This special-purpose
    // register is designed to store bit flags, as it can set, clear or test a
    // single bit in only 2 clock cycles.
    //
    // Note: If enabled, you must make sure that the flag bits assigned below do not
    // conflict with any other GPIOR0 flag bits your application might use.
    #define TLC5940_USE_GPIOR0 1

    // GPIOR0 flag bits used
    #if TLC5940_USE_GPIOR0 == 1
    #define TLC5940_FLAG_GS_UPDATE 0
    #define TLC5940_FLAG_XLAT_NEEDS_PULSE 1
    #endif

    // BLANK is only configurable if the TLC5940 is using the USART in MSPIM mode
    #if TLC5940_USART_MSPIM == 1
    #define BLANK_DDR DDRD
    #define BLANK_PORT PORTD
    #define BLANK_PIN PD6
    #endif

    // DDR, PORT, and PIN connected to DCPRG
    #define DCPRG_DDR DDRD
    #define DCPRG_PORT PORTD
    // DCPRG is always configurable, but the default pin needs to change if
    // the TLC5940 is using USART MSPIM mode, because PD4 is needed for XCK
    #if TLC5940_USART_MSPIM == 1
    #define DCPRG_PIN PD3
    #else
    #define DCPRG_PIN PD4
    #endif

    // DDR, PORT, and PIN connected to VPRG
    #define VPRG_DDR DDRD
    #define VPRG_PORT PORTD
    #define VPRG_PIN PD7

    // DDR, PORT, and PIN connected to XLAT
    #if TLC5940_USART_MSPIM == 1
    #define XLAT_DDR DDRD
    #define XLAT_PORT PORTD
    #define XLAT_PIN PD5
    #else
    #define XLAT_DDR DDRB
    #define XLAT_PORT PORTB
    #define XLAT_PIN PB1
    #endif

    // The following options only apply if TLC5940_ENABLE_MULTIPLEXING = 1
    #if TLC5940_ENABLE_MULTIPLEXING == 1
    // DDR, PORT, and PIN registers used for driving the multiplexing IRF9520 MOSFETs
    // Note: All pins used for multiplexing must share the same DDR, PORT, and PIN
    // registers. These options are ignored if TLC5940_ENABLE_MULTIPLEXING = 0
    #define MULTIPLEX_DDR DDRC
    #define MULTIPLEX_PORT PORTC
    #define MULTIPLEX_PIN PINC

    // List of PIN names of pins that are connected to the multiplexing IRF9520
    // MOSFETs. You can define up to eight unless you use a custom ISR that can
    // toggle PINs on multiple PORTs.
    // Note: All pins used for multiplexing must share the same DDR, PORT, and PIN
    // registers. These options are ignored if TLC5940_ENABLE_MULTIPLEXING = 0
    // Also: If you add any pins here, do not forget to add those variables to the
    // MULTIPLEXING_DEFINES flag below!
    #define R_PIN PC0
    #define G_PIN PC1
    #define B_PIN PC2

    #endif



    // ---------- End TLC5940 Configuration Section ----------

  • Now all that is left to do is round out the sketch:
    extern "C"
    {
    #include "main.h"
    }


    void setup()
    {
    }

    void loop()
    {
    themain();
    }


And there you have it! Using these techniques I have built an entire firmware and they can be applied to many C libraries out there. The ease of the Arduino IDE as a compiler and uploader can help lower complexity barriers in developing your code.

Hopes this help you out there in Arduino land!
-(e)

Friday, October 22, 2010

Awesome old skool tech

I've been quiet for too long... and I need to publish some more tuts on the NetDuino and other things I have been up to, but in the mean while check this out:




I picked up this fully functional valve based scope for R200 ( < $30 ). It was dirty as all hell, but I spent the last few evenings cleaning it up and now its shiny :) What a piece of old skool awesome! I think this is over 40 years old...

Don't make 'em like they used to!

-(e)

Wednesday, September 22, 2010

The NetDuino and some 74HC574's

If you live in South Africa, you may remember these (ComCrypt 4000 MNET decoder):




Well a collegue found one, ripped it apart and found this little display board inside:



The board was soldered vertically onto the main board but with some judicious use of a de-soldering pump and some flux I got it free. My collegue gave it to me to have a look at.

This is how I reverse engineered it and connected it to the NetDuino:
  1. First off, look at the chips on the board: we have two 74HC574 chips. A brief Google returns these as “Octal D-type flip-flop, positive edge trigger, 3-state”... at which point I went “WTF?” and had a good read on Wikipedia: http://en.wikipedia.org/wiki/Flip-flop_(electronics), then found the data sheet: http://www.datasheetcatalog.org/datasheet/philips/74HC_HCT574_CNV_2.pdf


  2. Which didn’t help too much so I read that all again :)




  3. The data sheet yielded the pinout above, and so I began tracing the connector pins to the chips and reading what the pins did. Here is a picture of the underside of the board





  4. So.. All of the OE pins are tied to ground. This is good, it seems OE is “Output Enable”. Counting from left to right the pins are traced as:


    • NC (not connected)
    • Red LED GND
    • NC
    • GND
    • Clock pin (right hand flip-flop)
    • 5V (Vin)
    • Clock pin (left hand flip-flop)
    • Green LED GND
    • GND
    • INPUT 7
    • INPUT 6
    • INPUT 5
    • INPUT 4
    • INPUT 3
    • INPUT 2
    • INPUT 1
    • INPUT 0
    • GND
    • 5V


  5. The input lines are connected to both flip-flops on pins D0-D7. The way the flip-flop works is that you set these lines high or low and then pulse the clock to transfer the state of the inputs to the flip-flop outputs i.e. the pins connected to the 7-segment LEDs. Basically between clock pulses the flip-flops will hold their output values thus keeping the relevant bits of the 7-segment display lit.


  6. From here it was a case of wiring this up to the NetDuino. I connected D0-D7 to the corresponding D0-D7 pins on the NetDuino. Clock pins went to D8 and D9, the LEDs (red and green) went to D10 and D11 and 5V and GND went to the respective 5V and GND lines on the NetDuino. (Notice above that the two 5V pins are bridged, as are the GND pins. The GND pin for one of the chips is not tied to ground and if you omit this you will get weird values on one of the 7-segment displays. I believe this is called a “floating ground” and is the source of much evil...)

A note on “Active Low” (as I understand it):

If we look at the wiring on the Green LED, we can see that the positive pin is permanently connected to a shared 5V power line (shared with the flip-flops etc.) but the negative pin is connected to a GPIO pin on the NetDuino. So how do we switch the LED on? Well we need to write false to the respective output port:


// Set up the pin
OutputPort _greenLed = new OutputPort( Pins.GPIO_PIN_D11, true );
// Set the pin low
_greenLed.Write( false );


Writing false to the pin sets the GPIO port LOW i.e. brings the pin to GROUND, thereby completing the circuit and causing electricity to flow through the LED, lighting it up.

The data lines (D0-D7) are also active low, and it seems that the registration of the clock pulse occurs on the low edge of the clock. If you imagine the following (as a badly drawn square wave) then when the clock pin goes from HIGH to LOW (falling edge) the flip-flop reads the states of the input pins and transitions that state to the output pins:



Okay, so I made that up, I THINK that is how it works :) If anyone can explain this better then... great!

These decoders are dirt cheap (you can pick one up for around R50-R100 (<$15) ) and they have tons of excellent bits to harvest so go and GET EM! (The newer decoders also have bits and pieces but you have to make sure it is not a new tiny one. They are all SMD and pretty useless for our purposes). Have a look in your garage for old electronics, there is tons of stuff to harvest lying around... :) Here is the code:

using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.Netduino;

namespace Decoder
{
public class Program
{
private readonly OutputPort _clockPin1;
private readonly OutputPort _clockPin2;

private readonly OutputPort _redLed;
private readonly OutputPort _greenLed;

private readonly OutputPort[] _digitPins;

private readonly byte[] _digitBits = new byte[]
{
1 + 2 + 8 + 16 + 32 + 64,
1 + 64,
2 + 1 + 4 + 16 + 32,
2 + 1 + 4 + 64 + 32,
8 + 4 + 1 + 64,
2 + 8 + 4 + 64 + 32,
2 + 8 + 16 + 32 + 64 + 4,
2 + 1 + 64,
1 + 2 + 4 + 8 + 16 + 32 + 64,
1 + 2 + 8 + 4 + 64,
128
};

public Program()
{
_digitPins = new OutputPort[]
{
new OutputPort( Pins.GPIO_PIN_D0, true ),
new OutputPort( Pins.GPIO_PIN_D1, true ),
new OutputPort( Pins.GPIO_PIN_D2, true ),
new OutputPort( Pins.GPIO_PIN_D3, true ),
new OutputPort( Pins.GPIO_PIN_D4, true ),
new OutputPort( Pins.GPIO_PIN_D5, true ),
new OutputPort( Pins.GPIO_PIN_D6, true ),
new OutputPort( Pins.GPIO_PIN_D7, true ),
};
_greenLed = new OutputPort( Pins.GPIO_PIN_D11, true );
_redLed = new OutputPort( Pins.GPIO_PIN_D10, true );
_clockPin1 = new OutputPort(Pins.GPIO_PIN_D8, true);
_clockPin2 = new OutputPort(Pins.GPIO_PIN_D9, true);
}

private void PulseClock( OutputPort pin )
{
pin.Write( false );
pin.Write( true );
pin.Write( false );
}

private void SetDigitBits( int digit )
{
if( digit < 0 || digit > 10 )
digit = 10;

digit = _digitBits[ digit ];
for( int i = 0; i < 8; i++ )
{
bool on = ( ( digit >> i ) & 1 ) == 1 ? false : true;
_digitPins[ i ].Write( !on );
}
}

private void DisplayValue( int value )
{
int high = value / 10;
int low = value - ( high * 10 );
SetDigitBits( low );
PulseClock( _clockPin2 );
SetDigitBits( high );
PulseClock( _clockPin1 );
}

private void Setup()
{
PulseClock( _clockPin1 );
PulseClock( _clockPin2 );
}

private void Loop()
{
bool greenOn = true;
int value = 0;

while( true )
{
_redLed.Write( greenOn );
_greenLed.Write( !greenOn );
greenOn = !greenOn;

for( int i = 0; i < 10; i++ )
{
DisplayValue( value++ );
Thread.Sleep( 100 );
}

if( value > 99 ) value = 0;
}
}

public static void Main()
{
Program p = new Program();
p.Setup();
p.Loop();
}
}
}

Saturday, August 21, 2010

Zipit Z2 JTAG

So I finally managed to brick my Z2...

Trying to get the sleep / reset cycle working in u-boot (look for a subsequent post) I managed to generate some dodgy assembler and the next thing you know...

Luckily I had a nice JTAG adapter lyining around, an Olimex ARM-USB-OCD. The soldering wasn't too tricky, but here is a detailed picture to help out the weary:


The interesting part was getting OpenOCD to play along nicely. To get OpenOCD working you need some configuration scripts that identify your CPU, JTAG adapter etc.

Here is the Z2 specific script (save this as e.g. z2.cfg):
# config for ZipitZ2

jtag newtap pxa270 cpu -irlen 7 -ircapture 0x1 -irmask 0x7f -expected-id 0x49265013 -expected-id 0x79265013

target create pxa270.cpu xscale -endian little -chain-position pxa270.cpu -variant pxa27x

# maps to PXA internal RAM.
pxa270.cpu configure -work-area-phys 0x5c000000 -work-area-size 0x10000 -work-area-backup 0

#flash
flash bank pxa270.flash cfi 0x00000000 0x1000000 2 2 pxa270.cpu
And the ARM-USB-OCD configuration (save this as e.g. arm-usb-ocd.cfg):
#
# Olimex ARM-USB-OCD
#
# http://www.olimex.com/dev/arm-usb-ocd.html
#

interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG"
ft2232_layout "olimex-jtag"
ft2232_vid_pid 0x15BA 0x0003

jtag_nsrst_delay 0
jtag_ntrst_delay 200
reset_config trst_and_srst separate

What is interesting to note in the script above are the jtag_nsrst_delay and jtag_ntrst_delay values. The ARM-USB-OCD has separate lines for SRST and TSRT and the above values were required to get reset halt to work reliably in OpenOCD.

Reflashing u-boot brought the Z2 back to life and I now have a JTAG debug option. I should have done this years ago!

HTH
-(e)

edit: stupidly I forgot to thank the original JTAG legend GPSFan for his help and pictures and G1PowerMac for his site.

Tuesday, July 27, 2010

[Dingux] OpenTyrian Save and High Score entry

I've started adding code for a limited kind of virtual keyboard.
This should allow save games names and high score entry in OpenTyrian.

So far it seems to be working for save games but I need to clean it up a bit and get it to work as a generic text entry mechanism.

Stay tuned, hopefully this will be finished before I depart overseas for a week.
-(e)

Sunday, July 25, 2010

Dingux OpenTyrian release


Here is an optimised build of OpenTyrian that plays full speed with sound. This archive ONLY contains the executable: opentyrian.dge, please overwrite your old tyrian executable or get the datafiles if you do not have them from:

OpenTyrian @ GoogleCode

LinkOther changes:
  • Key mapping now works (segfault in code fixed)
  • Key mapping now swaps keys if an in-use key is chosen
  • SDL mouse cursor removed
  • Soft mouse cursor removed from upgrade etc. screens
  • Display is centred
These fixes also apply to the GP2X version and the patches have been applied to HEAD in the mercurial dev tree so feel free to build your own :)

Get it from the GP2X.com archive.

-(e)