Handhelds.org - Open source for handheld devices

UserPreferences

Linux26ToolsAndSources


Accessing development tools and sources for Linux 2.6

Here are very simple instructions to quickly get everything you need to build your own Linux 2.6 kernel for your ARM handheld device.

If you want to build the tools by yourself, or have a non ARM platform, see the "Useful links" section to get detailed instructions.

Getting cross-compiler toolchain for ARM

The easiest way is to get a compiled ARM toolchain from handhelds.org: ftp://ftp.handhelds.org/projects/toolchain/arm-linux-gcc-3.4.1.tar.bz2 ([WWW]HTTP mirror) (or a later version from the same directory)

Though it's got "gcc" in its name, it also contains the corresponding binutils version.

Then install the toolchain in /usr/local/arm:

bash$ cd /
bash$ tar -xvjf arm-linux-gcc-3.4.1.tar.bz2

Just add the "bin" of this /usr/local/arm at the beginning of your PATH, and that's all you need!

Getting kernel

To fetch the latest 2.6 kernel sources from handhelds.org CVS repository

bash$ export CVSROOT=:pserver:anoncvs@anoncvs.handhelds.org:/cvs
bash$ cvs login
password: anoncvs
bash$ cvs checkout linux/kernel26

To fetch a particular release branch:

(The release branch is based on the kernel version. ie Linux 2.6.19-hh3 becomes K2-6-19-hh3)

bash$ cvs checkout -r RELEASE_TAG linux/kernel26

To fetch the latest versions on a given date:

bash$ cvs checkout -D YYYY-MM-DD linux/kernel26

In particular before editing files, you should always update your local copy as follows:

bash$ cvs update -dP

See http://www.handhelds.org/handhelds-faq/development.html for more detailed instructions.

If you just need to check a particular file, you can also use the viewCVS interface: http://cvs.handhelds.org/cgi-bin/viewcvs.cgi/linux/kernel26/

Compiling kernel

You now ready to compile the kernel! Proceed to KernelCompilation.

Useful links