
FDI
NXP LPC3180 Demo
User’s Manual
FDI
Rev 2
Page 16
10/1/2007
mkimage -A arm -O Linux -T Kernel -C none -a 80620000 -e 80620000 –n
“NXP Demo Linux-2.6.10” -d arch/arm/boot/uImage kernel.ubt
7.2.1.
Kernel Modules
In the case where kernel modules must change, it is necessary to install the kernel
modules into the root file system image and re-download the image onto the board (see
section
6.0 Downloading New Software
). This is performed by mounting the root file
system (see section
7.3 Editing the root file system
) and performing the following
commands:
export INSTALL_MOD_PATH=/path/to/mnt_rootfs
make modules_install
This will install all newly compiled kernel modules into the directory
/path/to/mnt_rootfs/lib/modules/2.6.10.
Unfortunately, the ST Codec and WIFI kernel modules are over-written when this occurs.
The modules should be copied over into their respective locations:
cp vhw.ko /path/to/mnt_rootfs/lib/modules/2.6.10/kernel/drivers/i2c
cp ga_linuxdrv_211_pnx4008_spi.ko
/path/to/mnt_rootfs/lib/modules/2.6.10/kernel/drivers/net
Additionally, the file /path/to/mnt_rootfs/lib/modules/2.6.10/modules.dep must be
modified so that the “modprobe” command may be used to insert and remove the vhw.ko
driver. The following line should be added:
/lib/modules/2.6.10/kernel/drivers/i2c/vhw.ko:
This indicates to the module loader that the kernel module has no dependencies.
7.3
Editing the root file system
Before editing the file system, you must mount it. On a Linux build machine, enter
gzip –d ../Software/rootfs/root_fs.gz
mount –o loop root_fs ../path/to/mnt_rootfs/
Make changes to the files in mnt_rootfs and then enter these commands:
umount mnt_rootfs
gzip root_fs
mkimage -A arm -O Linux -T Filesystem -C none -a 80800000 -e 0 –n
“NXP Demo RootFS v0.00” -d root_fs.gz rootfs.ubt
Summary of Contents for LPC3180
Page 32: ...FDI NXP LPC3180 Demo User s Manual FDI Rev 2 Page 32 10 1 2007...
Page 33: ......