
Arcom Embedded Linux Technical Manual Developing software for AEL
Building external modules
External modules are kernel modules (typically device drivers) that aren’t part of the
main kernel source. Arcom provide source to several external modules which are used
by the standard AEL system. Their source is provided in separate source packages
(called PACKAGE-source-VERSION) which installed place source tarballs on the host
as /opt/arcom/src/modules/PACKAGE-VERSION.tar.gz. These source tarballs unpack
as modules/PACKAGE in the current directory.
This section applies only to external modules which have been packaged and
supplied by Arcom. Any further third party external modules will have their own
build system. Please consult the documentation supplied by the third party for
instructions on building such modules.
In order to build external modules the source code must be unpacked into the same
directory as the kernel source. Running ael-kernel-build with the modules target will
find and build all the unpacked modules. By default the ael-kernel-build utility will
search for modules to build in the ../modules/ folder relative to the top of the kernel
source tree.
For example, from the top level of the linux source (i.e. where you configure and build a
kernel):
$ cd ..
$ tar xzf /opt/arcom/src/modules/aim104-5.tar.gz
$ cd linux-source-2.6.11-arcom1
$ ael-kernel-build --architecture arm modules
This will produce an aim104-modules-2.6.11-arcom1_5+2.6.11-1_arm.deb package for
installation on the target.
Some boards require external modules to provide key functionality.
Installing the new kernel and modules
The Linux kernel image .deb package and any additional packages for external
modules can be installed using the dpkg command, as described in Package
management
, on page 29.You must also update the RedBoot boot script to load the
new kernel. You do this by either:
Changing the alias used by the boot script to specify the kernel filename, for
example:
RedBoot> alias kernel /boot/vmlinuz-VERSION
•
•
-or-
Editing the boot script itself using the fconfig command (see page 55
).
© 2006 Arcom Issue G 46
Comentarios a estos manuales