This guide describes how to build the ChorusOSTM 4.0.1 Simulator product for SolarisTM (SPARCTM Platform Edition).
ChorusOS 4.0.1 for the Simulator product specific information is provided in the following major sections:
"Development Environment", includes supported hosts, host operating systems and development systems.
"ChorusOS Supported Features", includes kernel components, POSIX components and product specific components.
"Libraries" lists the libraries included in the ChorusOS operating system.
"Utilities", includes host and target utilities.
"Reference Hardware", includes supported reference platform, and supported devices.
"Building the ChorusOS Simulator" describes how to build the ChorusOS Simulator.
Appendix A, ChorusOS 4.0.1 Simulator Additional Man Pages, presents specific man pages for the simulator, and additional man pages for the MONITOR feature (these pages are not available for on-line search using the man command).
Appendix B, ChorusOS 4.0.1 Simulator Product Packages and Part Numbers, details the list of Solaris packages in the product components, and the associated part numbers.
See the ChorusOS 4.0 Installation Guide for Solaris Hosts for a description of the installation process of the ChorusOS 4.0 Simulator on a host workstation running the SolarisTM operating environment. This document also describes how to set up a boot server running the Solaris operating environment.
See the ChorusOS 4.0.1 Simulator for the Solaris Operating Environment (SPARC Platform Edition) User's Guide for information on configuring and running the simulator system image.
See the ChorusOS 4.0 Introduction for a complete description of the ChorusOS features.
The following table describes the typographic changes used in this book.
Table 1-1 Typographical Conventions
Typeface or Symbol |
Meaning |
Example |
---|---|---|
AaBbCc123 | The names of commands, files, and directories; on-screen computer output |
Edit your .login file. Use ls -a to list all files. machine_name% you have mail. |
AaBbCc123 | What you type, contrasted with on-screen computer output | machine_name% su Password: |
AaBbCc123 | Command-line placeholder: replace with a real name or value |
To delete a file, type rm filename. |
AaBbCc123 |
Book titles, new words or terms, or words to be emphasized |
Read Chapter 6 in User's Guide. These are called class options. You must be root to do this. |
The following table shows the default system prompt and superuser prompt for the C shell, Bourne shell, and Korn shell.
Table 1-2 Shell Prompts
Shell |
Prompt |
---|---|
C shell prompt | machine_name% |
C shell superuser prompt | machine_name# |
Bourne shell and Korn shell prompt | $ |
Bourne shell and Korn shell superuser prompt | # |
Fatbrain.com, an Internet professional bookstore, stocks selected product documentation from Sun Microsystems, Inc.
For a list of documents and how to order them, visit the Sun Documentation Center on Fatbrain.com at http://www1.fatbrain.com/documentation/sun.
The docs.sun.comSM Web site enables you to access Sun technical documentation online. You can browse the docs.sun.com archive or search for a specific book title or subject. The URL is http://www.oracle.com/technetwork/indexes/documentation/index.html.
Sun Support Access offerings are available exclusively to members of the Sun Developer Connection Program. To get free membership in the Sun Developer Connection Program, go to http://www.sun.com/developers. For more information or to purchase Sun Support Access offerings, visit: http://www.sun.com/developers/support or contact the Sun Developer Connection Program office near you.
In the context of the ChorusOS 4.0.1 Simulator, applications are developed on a workstation (the host), and then downloaded and executed on a workstation of the same type, acting as a target.
A cross development system is needed to build the applications that execute on the target system (see Section "Utilities").
Prerequisites for the Solaris host reference configuration are the following:
Sun SPARCstationTM.
Solaris 2.6, or Solaris 7 (32-bit).
Sun WorkShopTM 5.0 native compiler.
In order for the CC compiler to work properly, all patches related to the CC compiler must have been installed on the Solaris system.
JDKTM 1.1.8, for the installation tool.
JDK 1.2, for the graphical configuration tool and for JavaTM applications.
This development environment component is bundled with the ChorusOS Simulator product:
Chorus Cross Development System 5.0, SPARC ELF.
The Chorus Cross Development System is based on the Experimental GNU Compiler System egcs 1.1.2 and binutils 2.9.1 and additional patches.
This development environment component is bundled with the ChorusOS Simulator product:
XRAY Debugger from Mentor Graphics, ELF format, version 4.4crd.
The following table shows the ChorusOS kernel and operating system optional features that are available for the Solaris Operating Environment (SPARC Platform Edition) processor family. The availability status of a feature can be one of:
The feature is supported, and is configurable using the configurator(1CC) command, or with the ews GUI configuration tool.
Please refer to the note at the end of the table for information about specific conditions, or restrictions, for a given supported feature.
Some of the features (such as MSDOSFS, FLASH, FS_MAPPER, for example) require specific low-level drivers. These features operate only on platforms which provide these drivers.
The feature is not supported.
The ChorusOS operating system provides the following list of libraries:
The following utilities may be run on the target ChorusOS operating system:
The following utilities may be run on the host machine:
The loader and simudrv host utilities are described in Appendix A, ChorusOS 4.0.1 Simulator Additional Man Pages.
The ChorusOS Simulator supports the following hardware:
Sun SPARCstationTM.
The ChorusOS Simulator supports the following operating systems:
Solaris 2.6.
Solaris 7, 32-bit mode.
Hosts for building the system image and for running the simulator must have the same operating system version (see the ChorusOS 4.0.1 Simulator for the Solaris Operating Environment (SPARC Platform Edition) User's Guide).
The ChorusOS 4.0 Simulator supports the following devices:
Device Id |
ChorusOS Driver |
---|---|
cpu (time base and decrementer) |
simulator:solaris-timer |
Pseudo Real-time Clock |
unixrtc:-(rtc) |
I/O Handler |
simulator:solaris-sigio |
Ethernet |
sun:pseudo-ether |
The following procedures assume that the ChorusOS Simulator product has already been correctly installed on the host workstation. See the ChorusOS 4.0 Installation Guide for Solaris Hosts.
Create and change to a build directory where you will build system images:
$ mkdir build_dir $ cd build_dir |
Set an environment variable to use with the configure(1CC) command as a shortcut to the base directory.
For example:
Set the environment variable... |
To the family-specific product directory. The default value is... |
---|---|
DIR |
/opt/SUNWconn/SEW/4.0.1/chorus-upSparc |
Make sure your path has been set correctly to include the directory install_dir/4.0.1/chorus-upSparc/tools/host/bin, where the default install_dir is /opt/SUNWconn/SEW.
Also make sure that your PATH includes /usr/openwin/bin, which contains the imake utility.
Configure the build directory, using the configure(1CC) command.
$ configure -b $DIR/kernel \ $DIR/os \ $DIR/tools \ -s $DIR/src/nucleus/bsp/up \ $DIR/src/nucleus/bsp/up/upSparcSolaris \ $DIR/src/nucleus/bsp/drv \ $DIR/src/iom |
The above command configures the build directory to include components installed during a "Default Install". It does not include optional components, such as the X library, code examples or components related to add-on packages, that you may choose to install separately on Solaris host workstations. For example, in order to include everything in your build environment:
$ configure -b $DIR/kernel \ $DIR/os \ $DIR/opt/X11 \ $DIR/tools \ -s $DIR/src/nucleus/bsp/up \ $DIR/src/nucleus/bsp/up/upSparcSolaris \ $DIR/src/nucleus/bsp/drv \ $DIR/src/iom \ $DIR/opt/examples |
If you are building from the source distribution, see the ChorusOS 4.0 Production Guide.
As a result of configuration, build_dir contains a Makefile, which is used to generate the build environment, and a Paths file which specifies paths to files required by and created in the build environment.
Generate the build environment:
$ make |
Build a system image:
$ make chorus |
The resulting system image file is located in the build directory, build_dir and is called chorus.RAM.
You can also make a smaller system image that includes only the operating system kernel:
$ make kernonly |
Please refer to the ChorusOS 4.0.1 Simulator for the Solaris Operating Environment (SPARC Platform Edition) User's Guide for information on configuring and running your simulator system image.