This is "app" part.
The base address for VSAM card 0 is 0x400000, card 1 is at 0x400100,
card 2 at 0x400200, ..., card 16 at 0x401000. This is set in the
EPICS file module_types.h (See paragraph 3 below.) The db files in
this distribution assume that the VSAM card's base address is
0x400000 (card 0).
For most applications areas, you can start at step 4 and finish with step 8.5.
1) Build standard app: ".../site/appMakeDir
"
(for example, = vsam, = mv167"
2) Move into and untar VSAM.tar: " cd vsam; tar xvpf VSAM.tar"
3) Your EPICS manager must modify your system's module_types.h
to include the VSAM definitions, and then rebuild iocCore.
It may be necessary to remove .../base/src/db/O.*/iocInit.o
to force a rebuild of that module.
The file module_types.h.portion contains the section which
must be changed (analog inputs). This may involve
integrating the VSAM changes into any local changes to
module_types.h.
4) Move into cat_ascii; insert the devSup.ascii.snippet into devSup.ascii
and the drvSup.ascii.snippet into drvSup.ascii where
appropriate (after "custom" ).
-- devSup.ascii.snippet --
"ai" VME_IO "devAiVSAM" "VSAM"
"bi" VME_IO "devBiVSAM" "VSAM"
"bo" VME_IO "devBoVSAM" "VSAM"
-- drvSup.ascii.snippet --
"drvVSAM"
5) Move into db; copy ioc_vsam0.tmpl modify ioc_vsam0.tmpl and to set
D to your card number and S to your IOC's name.
6) Move into cmd; if add somewhere in db.cmd:
dbLoadTemplate("db/ioc_vsam0.tmpl")
7) Move into dev; add the Makefile.Vx.snippet to the OBJS list in
Makefile.Vx; create symbolic links to ../../vsam/dev/devAiVSAM.c,
../../vsam/dev/devBiVSAM.c, and ../../vsam/dev/devBoVSAM.c.
-- dev/Makefile.Vx.snippet --
OBJS += devAiVSAM.o
OBJS += devBiVSAM.o
OBJS += devBoVSAM.o
7) Move into drv; add the Makefile.Vx.snippet to the OBJS list in
Makefile.Vx; make a symbolic link to ../../vsam/drv/drvVSAM.c
-- drv/Makefile.Vx.snippet --
OBJS += drvVSAM.o
7.5) Move to h; make a symbolic link to ../../vsam/h/VSAM.h
8) Execute site/appMakeDir. It should build devSup, drvSup,
default.dctsdr and default.sdrSum.
8.3) Reboot the IOC.
8.5) To test the VSAM, use dm vsam.dl S=,D= &
9) Move into dl; use adl2dl to convert Color.adl and then all the
other *.adl into .dl's.
Proceed to "ioc" part. If your VxWorks kernel does not do A24/D32
accesses, you will have to build a new kernel per the notes in
VSAM_ioc_mods.