Kernel Porting Guide
Changing the configuration files
|
|
Changing the configuration files
The first step is to change the kernel configuration for the new board. The main configuration file is in arch/st200/Kconfig.
In the section Processor type and features there will be entries similar to the following:
config ST200_SIMULATOR bool "ST200 Simulator" help Select this to build a kernel for the multitude of ST200 simulators. config ST200_MB424 bool "ST231 Eval Board" help Select this to use the MB424 Eval board. |
|
|
Add the following entry to this list, the positioning in the list does not matter.
config ST200_ACME_COYOTE bool "ACME Inc Coyote PVR board" help Select this to use the ACME Coyote board. |
|
|
This creates a preprocessor symbol named CONFIG_ST200_ACME_COYOTE. This option can be selected to conditionally compile the kernel.
Test this by entering the command:
host% make ARCH=st200 CROSS_COMPILE=st231-linux- menuconfig |
|
|
A menu option should be displayed allowing you to select a coyote board.
Only one type of ST200 CPU (ST231) is supported at present so it is not necessary to select the CPU type.
The addresses at which memory is located are handled by the CONFIG_MEMORY_START and CONFIG_MEMORY_SIZE configuration options. These must be set to 0x80000000 and 0x4000000 respectively.
|