Embedded Linux Configuration
===>> Download and Unpack the Linux Kernel Sources
>> To be sure that no intermediate results of previous builds are left in your Linux kernel source tree you can
clean it up as follows:
-- bash# make mrproper
>> The following command selects a standard configuration for the canyonlands board that has been extensively
tested. It is recommended to use this as a starting point for other, customized configurations:
-- bash# make ARCH=powerpc CROSS_COMPILE=ppc_4xx- canyonlands_defconfig
Note: The name of this default configuration file is arch/powerpc/configs/XXX_defconfig . By
listing the contents of the arch/powerpc/configs/ directory you can easily find out which other default
configurations are available.
>> If you don't want to change the default configuration you can now continue to use it to build a kernel image:
-- bash# make ARCH=powerpc CROSS_COMPILE=ppc_4xx- uImage
-- bash# cp arch/powerpc/boot/uImage /tftpboot
>> Otherwise you can modify the kernel configuration as follows:
-- bash$ make ARCH=powerpc CROSS_COMPILE=ppc_4xx- config
OR
-- bash$ make ARCH=powerpc CROSS_COMPILE=ppc_4xx- menuconfig
Note: Because of problems (especially with some older Linux kernel versions) the use of "make xconfig"
is not recommended.
-- bash$ make ARCH=powerpc CROSS_COMPILE=ppc_4xx- uImage
The make target uImage uses the tool mkimage (from the U-Boot package) to create a Linux kernel image in
arch/powerpc/boot/uImage
which is immediately usable for download and booting with U-Boot.
In case you configured modules you will also need to compile the modules:
-- make ARCH=powerpc CROSS_COMPILE=ppc_4xx- modules
add install the modules (make sure to pass the correct root path for module installation):
-- bash$ make ARCH=powerpc CROSS_COMPILE=ppc_4xx- INSTALL_MOD_PATH=/opt/eldk-4.2/ppc_4xx modules_ins
No comments:
Post a Comment