Technical Helpweb

- more articles

How to install Diva System Release for Linux?

After downloading the Diva System Release for Linux source package, you will need to install it using the following instructions.

IMPORTANT: Perform all steps while logged in as root.

Requirements: 

1. Kernel development tools must be installed. This includes:

  • modutils (package module-init-tools)
  • ncurses, ncurses-devel headers and libraries (package ncurses resp. libncurses)
  • c, c++ compiler (package gcc. gcc-g++)
  • make (package make)

NOTE: Under your distribution the actual packages may have different names. Please use your package manager to identify the correct package to install. For example the c++ compiler package is called gcc-c++ under Fedora Core, but g++ under Debian.

2. Kernel source tree must be installed as well.
The sources must match the currently running kernel. Please refer to your distribution on how to install your kernel source as this differs between distributions. If in doubt google "kernel source tree" and your distribution name.

Exception: If cross compiling, the following requirements must be met:
- /usr/src/linux must point to your kernel source directory
- A valid .config for the target system must be present in this path
- A valid version.h must be present

Several tools exist to find out whether these packages are installed:

  • In RPM based systems use:
    rpm -qa | grep <package name>
    to list the status of the specified package.
  • In Debian based systems use
    dpkg -l <name*>
    to list all packages that include the specified name if you do not know the correct package name.

3. Check if you have the suitable sources for your installed kernel version. (if you are cross-compiling, see the note above).
To find out if source and kernel have the same version number do the following:
- Type "uname -r" to display the current kernel version.
- List the contents of "/usr/src/". There must be a folder e.g. "linux-2.4.27-1" and a link named "linux" pointing into this directory.
   It should have the same name as the current kernel version.
- If this link does not exist, create it pointing to the correct kernel source location:

ln -s /usr/src/<kernel source directory> /usr/src/linux

4. The current kernel configuration file ".config" should be in the kernel source path. If the build procedure cannot find this file, it will try to locate the config file of the running kernel in /boot or /proc/config.gz and use this one.



Build Procedure: 

  • Install the source package:
    • cd /<Download directory>
    • ./Diva4Linux_installer_XXX.bin
  • Change to the directory "/usr/lib/opendiva/divas/src/"
  • Invoke "./Build"
    The build procedure accepts the following switches:
    • -mrproper: A make mrproper will be performed in the kernel source dir. This removes any .config files of previous runs and tries to locate these in /boot and /proc/config.gz.
      Important: Any applied configuration changes will be deleted!
    • -rpm: Builds a binary rpm for your configuration.
    • -deb:      Builds a binary deb for your configuration. (Only on debian-based systems)
    • -nowait: The build procedure will start immediately without waiting 15 seconds for user intervention.
  • The build procedure will locate the kernel sources and .config itself.
  • Accept the License Agreement to build the Dialogic Diva TTY Driver.
  • All drivers will be installed in the directory "/usr/lib/opendiva/divas".
  • If errors occur, review the build log file "divas.log" in the build directory.
  • Change to the directory "cd /usr/lib/opendiva/divas".
  • Use "./Config" to configure the Dialogic Diva Media board(s) or follow the notes to activate the web based configuration.
  • Use "./Start" and "./Stop" to start/stop the Diva Media board(s) manually.

DE-INSTALLATION:

  • Shutdown all CAPI- or TTY-based applications
  • Invoke the uninstall script:
    /usr/lib/opendiva/divas/Diva4Linux_uninstaller.sh

See also:
Diva on trixbox howto


Feedback

Please rate the usefulness of this page:  
0 - not useful at all
1 - potentially useful
2 - quite useful
3 - very useful
4 - exactly the information I needed     

Please enter a comment about this page:

First published: 01-Feb-2011
Last published: 14-Feb-2011
Open access: Product rule: ; Page rule: Auto

Service Center Logon