This chapter describes the OS specific parts of OTP which relate to VxWorks.
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.
The disk space required is 22 Mbyte, the documentation included.
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: <
<ROOTDIR>
): cd <ROOTDIR>
mkdir
otp_vxworks_cpu32
(or whatever you want to call it)
cd
otp_vxworks_cpu32
<RELDIR>
): cp
<RELDIR>/<PREFIX>.tar.gz .
gunzip <PREFIX>.tar.gz
<PREFIX>.tar
: tar xvf <PREFIX>.tar
mkdir bin
cp erts-Vsn/bin/erl bin/.
cp releases/R42A/*.boot bin/.
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.
There are a couple of files that are unique to the VxWorks distribution of Erlang/OTP, these files are described here.
putenv
"TIMEZONE=CET::-60:033002:102603"
sets central european
time.
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","150.236.20.251" routeAdd "0","router-20" # # Mount /home from gandalf # hostAdd "gandalf","150.236.20.16" usergroup=10 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 rdate("gandalf") # # 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" <erl