Software installation on UNIX

Installation and build instructions for the eCos Sourceware release are available on the Cygnus Sourceware web site http://sourceware.cygnus.com/ecos/

Users of the eCos Developer’s Kit under UNIX should use the following instructions, which assume that the CD-ROM is available at /cdrom/cdrom0.

  1. Extract the eCos repository from the compressed tar archive ecos-121.taz, located in the root directory of the CD-ROM using the following commands:

    # mkdir /usr/local
    # cd /usr/local
    # zcat < /cdrom/cdrom0/ecos-12.taz | tar xvf -

    On completion, the eCos repository may be found in the directory /usr/local/ecos-1.2.1.

  2. Extract the eCos development tools from the compressed tar archive tool-bin.taz, located in the root directory of the CD-ROM, using the following commands:

    # mkdir /usr/cygnus
    # cd /usr/cygnus
    # zcat < /cdrom/cdrom0/tool-bin.taz | tar xvf -

    On completion, the executable files of the eCos development tools may be found in the directory /usr/cygnus/ecos-98r1p6/H-host-triplet/bin. The source code for the development tools may optionally be installed in the same way:

    $ zcat < /cdrom/cdrom0/tool-src.taz | tar xvf -

  3. Add the eCos development tools and any native tools supporting the eCos build process to the front of your path. Under Solaris, for example, you should modify the PATH environment variable as follows.

    Using sh, ksh, or bash:

    $ PATH=/usr/cygnus/ecos-98r1p6/H-sparc-sun-solaris2.5/bin:/usr/xpg4/bin:/usr/ucb:$PATH
    $ export PATH

    Using csh or tcsh:

    % setenv PATH /usr/cygnus/ecos-98r1p6/H-sparc-sun-solaris2.5/bin:/usr/xpg4/bin:/usr/ucb:$PATH

At this point you are ready to configure and build a customized eCos kernel as shown in Chapter 12.