Any problems, please don't contact MontaVista. Send an e-mail either to
myself or the mailing list.
The description below assumes that the installation will be performed on a PC running Linux, with RPM V3.0 or later already installed.
This installation contains the RPMs for SH4, and the SRPMS used to derive them. SH3 RPMs may be generated by following the build instructions below.
All the most important packages are included in the distribution (see HardHat documentation). Also included are packages for ncurses, X, uClibc, tinylogin and several other useful packages. However currently a few minor packages are not yet present. The missing ones are:
These may be added at a later date.apache bonnie ddd gated lilo microwindows perl pvm
The toolchain (binutils, gcc, glibc) is based around a gcc V2.97 snapshot as of November 20, 2000. The build and installation of the toolchain is based on information prepared by Masahiro Abe (see here). This version of the compiler still suffers from a number of bugs and its C++ libraries are incomplete. However, it is currently the best available.
The kernel is basically version 2.4.5, with patches added to support the STMicroelectronics 7750Overdrive board.
Note that at the time of writing, the SH4 installation has not been fully tested, and the SH3 installation no testing whatsoever. The installation is a Beta release only, and is likely to have some problems. We have made this release in order to get this version of SH Linux out into the wider community as soon as possible. We welcome any constructive feedback on how to improve the release (mail to [email protected]).
For details of the changes since the previous release, and known problems, see below.
There is also a subdirectory update, containing RPMS and SRPMS updated since the 0.4 release.
+
|
+-------------+-------------+--------------+-------------+
| | | | |
BUILD RPMS SOURCES SPECS SRPMS
|
+----+-----+
| |
i386 noarch
(Actually, only RPMS and its subdirectories are needed if
you are just installing RPMS; the other directories are need for building
SRPMS, see later).
Then copy the RPMs from the above location onto this structure. The RPM files will need to be placed under RPMS/i386 (host based software) and RPMS/noarch (target based software). Note you need only copy the RPMS which are relevant to your CPU type, e.g. for SH4, files are hhl-sh4-*.rpm, plus any RPMS which do not have either sh3 or sh4 in their filename.
If you are using your own version of the kernel, delete the kernel RPMS:
rm RPMS/noarch/*lsp*
rm RPMS/noarch/*kernel*
Next, you need to decide whether you want to install busybox or not. Basically, busybox contains cut-down versions of many commands, and is generally only used in an embedded environment with restricted disk or memory space. If you want the normal versions of commands, simply delete the busybox package before proceeding to the next stage:
rm RPMS/noarch/*busybox*
Alternatively, if busybox is required, delete the alternative packages (I think these are binutils-tgt, findutils, grep, gzip, net-tools, procps, psmisc, sed, sh-utils, sysvinit, tar, textutils, telnet, telnetd).
Change default to each of the RPMS subdirectories in turn, and issue the following command:
rpm -Uhv *.rpm
/opt/hardhat/devkit/sh/<cpu> (where <cpu> is either sh3 or sh4) will become the root directory for the installation, with the usual Linux directory structure below that. Most of the host-based tools are placed under subdirectory bin, and this will need to be added to your PATH, eg:
PATH=$PATH:/opt/hardhat/devkit/sh/sh4/bin
The GNU toolnames are prefixed sh-linux-gnu-, e.g. to compile a C program:
sh-linux-gnu-gcc -c file.c
If you are using your own version of the kernel, you will also need to add links to the kernel header files to /opt/hardhat/devkit/sh/<cpu>/sh-linux-gnu/include:
ln -s <kernelbase>/include/asm
/opt/hardhat/devkit/sh/<cpu>/sh-linux-gnu/include/asm-sh
ln -s <kernelbase>/include/linux /opt/hardhat/devkit/sh/<cpu>/sh-linux-gnu/include/linux
The target-based software is placed under subdirectory target. This is most conveniently accessed by mounting it via NFS from the target system.
See the latest HardHat documentation for further details of the installation and how to use it.
Note also that the procedure assumes the presence of a properly packaged kernel. You may
use either the kernel supplied with the distribution, or a kernel you have packaged yourself
in accordance with HardHat conventions.
./install_srpms
This will install all the SRPMS, placing the source files under SOURCES and the RPM spec files under SPECS.
./build_srpms <cpu>
where <cpu> is sh3 or sh4. This will take several hours to complete. Logfiles for each package build are placed on the SPECS directory. It is advisable to check these carefully for errors, as not all error conditions cause the build process to abort. The RPMs will be placed under the RPMS directory.
|
Last update: 28/08/2026 |