Kernel/building on cygwin

< Kernel

Use this guide to help you create an working Open2x gp2xkernel.img file that can be installed on your GP2X (with Open2x firmware) or run from an SD card (call resulting kernel kernel.img on the root of the SD) if you have an Open2x bootloader installed.

This guide shows, how to compile the Open2x kernel with the current Open2x (gcc 3.4.4) tool chain.

TODO: Rewrite guide to match current Linux one.

In order to build the Open2X Kernel we need some tools:


 * CygWin here.
 * GCC 3.4.4/gLibC 2.3.6 Open2x Kernel toolchain here.
 * The latest version of the Kernel in the SVN.

First, you need to download CygWin (in the list of packages you must select GCC-Core, make and libncurses. That will allow you to compile the Kernel correctly).

Once installed, download the toolchain (remove the .ZIP from the end of the filename) and extract into / (it will create the /opt directory).

Download the Kernel with some SVN client like Tortoise SVN.

You are now ready to run the open2x script. Go to the kernel directory and run ./open2x-kernel.sh Follow the script, and the files "vmlinux" and "zImage.gz" will be created

If you also have compiled bootloader-tools, it will create "gp2xkernel.img"

TODO: Explain how to build mkimage without download bootloader sources.