The installation puts all the files from the STLinux Distribution in the /opt/STM/STLinux-X.X directory, where X.X is the STLinux version number.
The principal subdirectories of the STLinux root directory are described in the table below:
| Directory | Description |
|---|---|
| /opt/STM/STLinux-X.X/config/rpm | The files in this directory are only required if users want to build the ST Linux distribution binary RPMs from the SRPMs (source RPMs). The directory includes a README file which provides further information about the contents of this directory. |
| /opt/STM/STLinux-X.X/host/bin | Contains the binaries and utilities that run on the host PC. For example, stmyum, mkfs.jffs2 and so forth. |
| /opt/STM/STLinux-X.X/host/etc | Contains configuration files such as yum.conf. |
| /opt/STM/STLinux-X.X/host/stmc | Contains the ST Micro Connect 2 toolset. The STMC configuration tool stmcconfig is found here. |
| /opt/STM/STLinux-X.X/host/stworkbench | Contains the STWorkbench IDE and plugins |
| /opt/STM/STLinux-X.X/devkit/sources | Contains the source trees for the Linux kernel and U-Boot | /opt/STM/STLinux-X.X/devkit/ARCH/bin | Contains the cross development tools. That includes the compilers, linkers and debuggers. |
| /opt/STM/STLinux-X.X/devkit/ARCH/target | This is a full target root filesystem that can be used for development and is usually exported to the target using NFS. |
Before installing STLinux, it is useful to consider where the distribution is to be installed and how much disk space it will occupy. By default, STLinux installs itself in /opt/STM/STLinux-X.X, where X.X is the version number. For each architecture, a complete installation requires 600MiB of disk space.
The STLinux installation creates its own root file system for the target, and this file system contains device files and set-uid programs. There is a possibility that this may raise security issues for the host PC, and, if this is a concern, we recommend that you create the installation directory in a new partition. When the file system is then mounted on the host, it can be mounted with the appropriate options (such as nosuid and nodev) that protect the host file system from STLinux.
Note: Mount the filesystem with these options only after the installation is complete.