[Ericsson AB]

3 VxWorks

This chapter describes the OS specific parts of OTP which relate to VxWorks.

3.1 Introduction

The Erlang/OTP distribution for VxWorks is limited to what Switchboard requires (Switchboard is a general purpose switching hardware developed by Ericsson).

Please consult the README file, included at root level in the installation, for latest information on the distribution.

3.2 Memory Usage

Memory required is 32 Mbyte.

3.3 Disk Usage

The disk space required is 22 Mbyte, the documentation included.

3.4 Installation

OTP/VxWorks is supplied in a distribution file named <PREFIX>.tar.gz; i.e. a tar archive that is compressed with gzip. <PREFIX> represents the name of the release, e.g. otp_LXA12345_vxworks_cpu32_R42A. Assuming you are installing to a Solaris file system, the installation is performed by following these steps: <

If you use VxWorks nfs mounting facility to mount the Solaris file system, this installation may be directly used. An other possibility is to copy the installation to a local VxWorks DOS file system, from where it is used.

3.5 OS Specific Functionality/Information

There are a couple of files that are unique to the VxWorks distribution of Erlang/OTP, these files are described here.

3.6 Starting Erlang

Start (and restart) of the system depends on what file system is used. To be able to start the system from a nfs mounted file system you can use VxWorks start script facility to run a start script similar to the example below. Note that the Erlang/OTP start-up script is run at the end of this script.

#  start.script v1.0 1997/09/08 patrik
#  File name:  start.script 
#  Purpose:    Starting the VxWorks/cpu32 erlang/OTP
#  Author:     patrik@erix.ericsson.se
#  Resides in: ~tornado/wind/target/config/ads360/

# Set shell prompt
shellPromptSet("sauron-> ")

# Set default gateway
hostAdd "router-20",""
routeAdd "0","router-20"

# Mount /home from gandalf
hostAdd "gandalf",""
nfsAuthUnixSet("gandalf", 452, 10, 1, &usergroup) 
nfsMount("gandalf", "/export/home", "/home")

# Load and run rdate.o to set correct date on the target
ld < /home/gandalf/tornado/wind/target/config/ads360/rdate.o

# Setup timezone information (Central European time)
putenv "TIMEZONE=CET::-60:033002:102603"

# Run the Erlang/OTP start script
cd "/home/gandalf/tornado/wind/target/erlang_cpu32_R42A/bin"

Copyright © 1991-2008 Ericsson AB