Embedded Linux System Development Training Lab Book
Embedded Linux System Development Training Lab Book
system development
Training lab book
Lab implementation
While (s)he develops a root filesystem for a device, a developer
needs to make frequent changes to the filesystem contents, like
modifying scripts or adding newly compiled programs.
It isn't practical at all to reflash the root filesystem on the target
every time a change is made. Fortunately, it is possible to set up
networking between the development workstation and the target.
Then, workstation files can be accessed by the target through the
network, using NFS.
Unless you test a boot sequence, you no longer need to reboot the
target to test the impact of script or application updates.
Development PC Target (Calao)
nfsroot/root directory /root directory
NFS export
Network
Setup
Go to the /home/<user>/felabs/sysdev/tinysystem/ directory.
Get the sources from the latest 2.6.29.x release and place them in
the current directory.
Kernel configuration
Set the ARCH and CROSS_COMPILE kernel Makefile variables for cross-
compiling to the arm instruction set.
Configure the 2.6.29 kernel sources with the configuration file
supplied in the data/ subdirectory.
Other TCP/IP networking configuration
Add the configuration options that enable booting on a root settings are already enabled in the
filesystem sitting on an NFS remote directory. provided configuration file.
Compile your kernel and generate the uImage kernel image suitable
for U-Boot.
Virtual filesystems
From the Linux command line in the target, create the proc, sys and
etc directories in your root filesystem.
Now mount the proc virtual filesystem.
Now that /proc is available, note that you can halt your target in a
clean way with the halt command.