User manual

Linux Guide taskit GmbH
The options can now be selected or deselected in the individual levels. The basic selection
consists of „empty“, „*“, „M“. Empty means that the driver will not be compiled with the
kernel. * means that the driver will be included in the kernel binary. M means that the
driver is configured as a module; in other words, it can be dynamically activated and
deactivated at runtime. When you have set the configuration as you like, finish the process
with Exit and Save. The kernel is now ready to compile.
The corresponding options for cross-compilation are already entered in the makefile.
6.2. Compiling the kernel
Compiling is simple: ARCH=arm CROSS_COMPILE=arm-linux-3.4.2- make zImage
With “CROSS_COMPILE=arm-linux-3.4.2-” you “tell” the makefile to use the compiler
from the cross-compiler toolchain of the starterkit-CD.
If the compilation runs without errors, the compiled image is saved in arch/arm/boot.
If you configured drivers as modules, you still need to create these:
ARCH=arm CROSS_COMPILE=arm-linux-3.4.2- make modules .
The kernel makefile provides a target for installing the modules – modules_install. By
default, the modules are installed in the /lib/modules directory. For cross-environment
development, the modules must be installed in a different directory. The example gives a
module directory within the Linux source folder. When entering the path to the module
directory, ensure that no relative paths are given; since the script goes through the kernel
directories, relative paths can change.
ARCH=arm make INSTALL_MOD_PATH=/develop/linux/modules modules_install
The modules are now copied to the /develop/linux/modules/lib/modules/modules/2.x.xx/
Page 19 of 65 Version 1.26 (2008-04-30)