|
Which files you will need depends on exactly what you are intending to do. The following sections build up the system in a number of stages, to the point where you will have a fully working system. FundamentalsThere are a number of packages which must be installed first. These create the basic directory heirarchy, and a few tools which will be used at later stages of the installation:
The next packages which need to be installed are shared libraries, which will be needed by applications installed later:
Fundamental to the operating of Linux is the device special files in /dev. These are created by installing the package:
There are also some fundamental files which are needed on the target system:
You also need to install the st40load tool. This package provides a way of downloading a Linux kernel to the target board through an ST Micro Connect interface adaptor.
Minimal InstallationAt this point you have to make a choise. If you want the smallest possible system, then only one more package is needed. This uses the busybox application to provide all the system utilities. This is very useful in system where the size of the filesystem is limited (for example a ROM or RAM filesystems). For more details on BusyBox see the projects home page. For this you will need:
If you later find that you need the full version of some applications, this is fine. You can install them as required, however you do have to give rpm the --force flag to ensure that any links to the busybox program will be overwritten for just those new applications. For example, the shell which is provided as part of busybox is lash, the 'lame' shell. When you're tight on memory this is ideal, but when running from an NFS mounted disk, space is not at the same premium, and so most people would choose to also install bash. Full versionThis installation uses the 'full' versions of various applications, and so has many more features, but takes more disk space and memory. In fact which programs are included here, and which are not, is largely a matter of preference, and what you will be doing with the target system. A minimal set would include:
Additional packages can then be added as required to create a more 'comfortable' environment:
As well as being able to connect from the target to other machines, it can also be very useful to connect into the target from outside over the network. To do this a few extra packages are needed:
If you are using networking, it can also be useful to use the Network Information Services (NIS), formerly called Yellow Pages (YP). This allows hostnames, password and other details to be stored on a central server.
Remember to create the file /etc/defaultdomain which contains your domain name. Development versionIf you want to develop pgrams which will run on the target, other packages can be added which include the headerfiles, libraries and development tools needed to build and debug application programs:
Many of the shared library packages also have development versions available, which typically provide the apropriate haeder files, the generic shared libraries, and static versions of the libraries. These packages all have the -dev suffix. If you want to be able to look at man pages on the target, a number of extra packages are needed:
Installing the RPMsOnce you have downloaded the RPMs, you need to install them. Install them in the order described above, otherwise you may get some errors resulting from dependency failures. Remember that the target RPMS are for an SH4, but they are being installed onto an x86 host, so you will need to give the --ignorearch option to RPM. For the kernel LSP, you will need to install one LSP for each board you will be using. We are supplying the following LSPs:
You will also need to set your path to make sure the tools are accessible. If you are using a shell which is compatible with the Bourne shell (sh, ash, bash, ksh, zsh etc.):
Or if you are using a C shell style shell (csh, tcsh etc.):
You may want to put these commands into the appropriate start up scripts to avoid having to re-type them.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||