How To Guide
How to set up an NFS file server
Prepare the root file system
|
|
Prepare the root file system
A root file system is set up as part of the installation (see Network File System (NFS) in the Getting Started Guide).
If you have made a copy of the file system, one thing you must remember is that some of the standard tools for manipulating configuration files in the target file system can no longer be used on the copy. In particular, this applies to sh4-linux-initdconfig and sh4-linux-shellconfig. This restriction occurs because these tools are configured to default to the files in the original target file system.
These tools are simply wrappers around a generic version of the tool, which uses an environment variable to determine the location of the root file system. It is therefore possible to specify where the target file system is located (and allow these commands to work as expected), by setting this environment variable and using the generic tool. For example:
host# HHL_CROSS_TARGET_DIR=/export/rootfs/user/target host# export HHL_CROSS_TARGET_DIR host# target-initdconfig --list ... host# target-shellconfig --list ... |
|
|
Note: target-initdconfig is normally installed into /opt/STM/STLinux-<vvv>/host/bin, (where <vvv> is the version number). If this directory does not appear in the PATH it is necessary to specify the directory on the command line.
|