First get the kernel sources from kernel.org ( choose a version from here)
and install them in a directory of your choice and change to your extracted
kernel directory and apply a suitable patch from download area to the source.
When your environment is ready set some variables and compile the stuff.
- a build environment with tools like "make" and so on.
- a cross-compiler for arm-linux (p.e. arm-linux-gcc)
- and of course the patched linux-kernel sources
- and some additional settings
For seting up the kernel sources you may use the following commands :
> mkdir /project/trizeps4/kernel
> cd /project/trizeps4/kernel
> tar -xvfj linux-2.6.22.tar.bz2
> patch -p 1 -i trizeps4-k2.6.22.diff
> export ARCH=arm
> export CROSS_COMPILE=arm-linux-
> make trizeps4_defconfig
> make ( ... have a break and let your computer work)
If all went fine you are the proud owner of a linux kernel image.
It can be found in the subdirectory "./arch/arm/boot/zImage"
By making the default config for trizeps4 you made an implicite choice
of several options which you can change by invokeing "make config", "make menuconfig"
or "make xconfig" depending your preference.
Here you can chose all options you desire / need.
As the bootloader from Keith&Koep does not support storing of parameters for commandline in flash you have to configure you kernel default command-line for your needs. For development booting from a NFS-partition is a good idea. But for production this is not a good solution and you will probably prefere to boot from a permanent storage device like SD/MMC-card, CompactFlash.
Here some useful options :
- cmdline for booting from nfs :
"root=nfs ip=bootp console=ttyS0,38400n8"
- cmdline for booting from SD/MMC card :