Building Root File System - Philips LPC3180 Application Note

Getting started linux with
Table of Contents

Advertisement

Philips Semiconductors
This will give you the images files as '
ARM Debugger or convert into a U-Boot image, i.e. (must be one line):
2.6.10" -d uImage uImage_phytec.ubt
In our case, the
After running
running
When a completely new kernel is built and if you have built loadable modules use the
following script to copy the modules to ./lib/modules:
These then need to be copied to the target arm root file system that you have mounted
(see next section):

3.4 Building root file system

The pre-build root file-system is available on
You can modify this file system (as root on your Linux development system) by unzipping
and mounting it:
And simply making the modifications required (in
instructions on adding user application, updating loadable modules and modifying
network settings.
E.g.
• If user would like to change some boot settings, have a look at the files under
After you did your modifications, un-mount and zip the image again. You can get the new
root file system file.
Also you can make its u-boot image with:
v0.1" -d root_fs_arm.ext2.phytec.gz rootfs_phytec.ubt
<12NC>
Application note
make clean
make lpc3180_defconfig
make
make uImage
mkimage -A arm -O Linux -T Kernel -C none -a 80600000 -e 80600000 -n "Linux-
'uImage'
'make xxx_defconfig'
or
'make xconfig'
./collect_modules
cp -dpR ./lib/modules/2.6.10/kernel ~/mnt_rootfs/lib/modules/2.6.10/
gzip –d root_fs_arm.ext2.phytec.gz
mount -o loop root_fs_arm.ext2.phytec ./mnt_rootfs/
When we intend to add a new application program as 'hello'(see chapter 6 on how to
develop such a new application), just copy it to the ./mnt_rootfs/bin/ directory, then the
program can be used as a command directly under Linux Shell.
cp ~apps/hello ~/mnt_rootfs/bin
To update the loadable modules, collect and copy the new module files to the root file
system as described in section 3.3:
cp -dpR ./lib/modules/2.6.10/kernel ~/mnt_rootfs/lib/modules/2.6.10/
'
' directory. It's a good start to understand the workflow of a root file
./mnt_rootfs/etc/
system. There are detailed descriptions on the function of these files in Linux
Documentation and Linux-How-To documents. For example, if you would like to
change the Ethernet ip address, open and edit the file
'./mnt_rootfs/etc/network/interfaces'
mkimage -A arm -O Linux -T Filesystem -C none -a 0x80800000 -e 0 -n "My RootFS
Rev.03 — 21 Dec 2006
arch/arm/boot/uImage'
file is renamed as
'uImage_phytec'
you can change the default kernel parameters by
.
'make menuconfig'
'/images/root_fs_arm.ext2.phytec.gz'
./mnt_rootfs/
would work.
AN10476
Getting started Linux with LPC3180
which you can run using the
.
). Below are the
© Koninklijke Philips Electronics N.V. 2004. All rights reserved.
.
6 of 28

Advertisement

Table of Contents
loading

Table of Contents