Eurotech ZEUS Manual de usuario Pagina 44

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 72
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 43
Arcom Embedded Linux Technical Manual Developing software for AEL
Compiling a kernel
Overview
This section explains how to build a new Linux kernel, along with the associated
modules, and install them on your target board.
To cross compile the kernel, you must have the cross compilation environment installed.
For more information, see Installing the AEL host environment
, page 34.
An archive containing the patched Linux kernel source tree used in the Development Kit
is installed by the AEL host environment as /opt/arcom/ src/linux-source-
VERSION.tar.gz. Refer to your board’s Quickstart Manual for additional board-specific
instructions.
Unpacking and configuring the kernel
The kernel must be recompiled on your host system.
To unpack and configure the kernel, follow these steps:
1 Unpack the source code:
$ tar zxf /opt/arcom/ src/linux-source-VERSION.tar.gz
The folder linux-source-VERSION is created.
$ cd linux-source-VERSION
2 Configure your kernel image. You can get a default configuration by running the
following command:
$ make ARCH=ARCH TARGET_defconfig
Where TARGET is the name of the board and ARCH is the CPU architecture of
the board. Consult your Quickstart Manual to determine the correct default
configuration for your target board.
ARCH here refers to the target CPU architecture, which is the basic CPU
architecture and does not include additional information such as
endianness (e.g. arm rather than armbe). See Specific terms
on page 8
for more information.
In general when interacting with the kernel build system directly (e.g. via
make) it is the target CPU architecture that should be used, while the AEL
tools expect the full target architecture.
3 Optional. Tweak the options to your satisfaction using the kernel configuration
tools, once you have a default configuration for your board. For example you can
use the menuconfig tool, as follows:
$ make ARCH=ARCH menuconfig
4 Save your configuration once you have made any changes required, and exit.
© 2006 Arcom Issue G 44
Vista de pagina 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 71 72

Comentarios a estos manuales

Sin comentarios