Kernel Headers

From wiki.gp2x.org

The pre-made headers are available from http://members.ii.net/~bmccarthy/linux-mmsp2-headers.tar.bz2 .


To make a kernel that should work well enough to build a functioning glibc, used in Building GCC4

Download

or:

wget http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.25.tar.bz2 \
   http://ftp.kelp.or.kr/pub/arm-linux/kernel/v2.4/patch-2.4.25-vrs2.gz

Extract the kernel:

tar xjf linux-2.4.25.tar.bz2

Patch the kernel:

cd linux-2.4.25
zcat ../patch-2.4.25-vrs2.gz | patch -p1

Configure the kernel (make sure GPH c compiler is on your $PATH):

export PATH=/usr/local/arm-dev/bin:$PATH
make ARCH=arm CROSS_COMPILE=arm-linux- at91rm9200dk_config
make ARCH=arm CROSS_COMPILE=arm-linux- oldconfig
make ARCH=arm CROSS_COMPILE=arm-linux- dep

This has been tested enough to get Building GCC4 working.

If you get errors while building the dependencies (common with gcc-3.x and gcc-4.0.x with kernel 2.4) see [[1]] for a solution.

Personal tools