Quick HiDEOS Install (old HiDEOS for use with EPICS R3.12)
This is the instructions to help quickly set up HiDEOS and your mvme162.
Define HiDEOS Home
Define a place to put all the HiDEOS related stuff. We made an
user login and put everything in the home directory.
Compiler
Get GNU compiler,gas,binutils,flex,bison (yuck - a lot of stuff)
Make a directory under ~hideos for source and install (we called ours
gnu_src and gnu_install). Go to the gnu_install directory and make
directoies man, lib, bin, and info. Go into the man directory and
make directory man1. Some of the install script are confused if
directories are not present. IMPORTANT: Make sure your $PATH
shell variable has (hideos_home)/gnu_install/bin first in it's search
path.
These instructions pertain to gcc 2.5.8. HiDEOS now uses version
2.7.2 directly from GNU.
You should be using GNU make to build the GNU tools. Use gnumake if
you system has it installed already, or retrieve and build it. Be
sure to install it in (hideos_home)/gnu_install.
IMPORTANT NOTE:
target=sun3 is correct, do not change it! A Sun3
is a 68k machine, so building with target=sun3 will build a cross
compiler from your architecture to the 68k.
- flex
- ./configure --prefix=(hideos_home)/gnu_install
- make ( be sure to use gnumake )
- make install ( be sure to use gnumake )
- bison - This one is simple, run the following.
- ./configure --prefix=(hideos_home)/gnu_install
- make ( be sure to use gnumake )
- make install ( be sure to use gnumake )
- binutils - This will be built as a cross development tool
- run "./config.guess". This will tell you the host architecture.
- ./configure --host=sparc-sun-sunos4.1.3 --target=sun3 --prefix=/gnu_install
Remember to substitute the answer from config.guess for "--host" if it
is different then the above one.
- make ( be sure to use gnumake )
- make install ( be sure to use gnumake )
- gas - Do the exact same thing as binutils
- g++/gcc
- make distclean (ignore if this doesn't work) ( be sure to use gnumake )
- ./configure --with-gnu-as --with-gnu-ld --host=sparc-sun-sunos4.1.3 --target=sun3 --prefix=(hideos_home)/gnu_install --local-prefix=(hideos_home)/gnu_install
- edit Makefile -
change "ENQUIRE = enquire" to "ENQUIRE="
change "CROSS_TEST = cross-test" to "CROSS_TEST="
change "LANGUAGES = c c++ objective-c proto" to "LANGUAGES = c c++"
add to -Dinhibit_libc to LIBGCC2_CFLAGS variable
- make ( be sure to use gnumake )
- make install ( be sure to use gnumake )
Building HiDEOS C Library Support
Undo the os_code.tar.gz file in the HiDEOS top level directory.
This is the standard c library for the stand alone system. The
string functions, conversion functions, and stdio functions are
built here.
- cd os_code
- cp MakeArch.in MakeArch
- cd config
- Edit HIDEOS_VARS. Make sure the variables at the top are pointing
at your installed GNU compiler and tools.
- cd ..
- make World ( be sure to use gnumake )
Building HiDEOS for the MVME162
Undo the hideos.tar.gz file in the HiDEOS top level directory.
This step will build the 162 stand alone version of HiDEOS and vxWorks
version of HiDEOS.
- tar xvf hideos.tar
- cd hideos
- edit MakeArch, make sure
ALL_ARCHS = bare162 vx167
DEFAULT_ARCH = bare162
- cd config
- edit HIDEOS_VARS
- Make sure the GNU_DIR variable points to your GNU install
- Make sure the CORE_DIR variable points to your os_code directory
- check HIDEOS_VARS_bare162 and HIDEOS_VARS_vx167 quickly
- cd ..
- make World ( be sure to use gnumake )
Building EPICS Device support for HiDEOS
- Copy the EPICS HiDEOS device support source code you desire into
your application node area along from the hideos/epics directory.
- Copy Makefile.Vx.3.12 and Makefile.hideos.3.12 from hideos/epics
directory into your application node area.
- Rename Makefile.Vx.3.12 to Makefile.Vx. Be careful not to destroy
any valuable information your may have in the current Makefile.Vx.
- Copy Makefile.hideos.3.12 to Makefile.hideos.
- Edit both Makefiles and make sure that all the variable point to
the correct installation areas for EPICS and HiDEOS.
- Do gnumake clean and then gnumake
- Read EPICS/HIDEOS support for
information about the vxWorks startup command file for R3.12
Set Up the MVME162
Follow the instructions in setting up the
MVME162. Your mvme162 should now be ready to use.
Set Up the EPICS application area
Use the EPICS application developer guide to help with this.
- make sure to adjust the devSup.ascii file and run makesdr
- make a database
- make the st.cmdmv167 file
- boot your IOC
Argonne National Laboratory
Copyright
Information
Jim Kowalkowski (jbk@aps.anl.gov) updated 8/8/95