Installing Sangoma cards under Linux
The installation of Sangoma cards under Linux is somewhat similar with the installation of the Wanpipe driver under Linux, this being the necessary piece of software needed in order for Sangoma cards to work.
Installing Sangoma cards under Linux from RPM
Where to download RPM for Linux
The simple way of doing this is to download the appropriate RPM. If you have a custom built Linux kernel you should use the source packages although.
The appropriate RPM can be downloaded from ftp://ftp.sangoma.com/linux/RPMS/.
How to choose compatible RPM for your system
To choose the compatible RPM for your system the following actions must be taken:
- Open your favorite terminal, type cat /etc/issue and the type of your Linux Distribution will be shown, in case you don’t know it already. Consider this string, item number 1.
- Type uname –r at the console next and find out the kernel image. Consider this string, item number 2.
- Next you’ll determine the processor type by running the uname –m command. Consider this string item number 3.
Now you can choose the appropriate RPM which will have the name:
To install the RPM run
rpm -i --force [the rpm name]
The force option is required to override the old modules.
To configure the driver you should run
More info about that you will find out in the appropriate section of the manual.
Finally to start Wanpipe the commands "wanrouter start" or "wanrouter start wanpipe1" must be executed.
Installing Sangoma card for a custom built kernel
If you have a custom built kernel you should use the source packages for installing as stated in the beginning.
Maybe the simple way to do this is to build the RPM from the sources and follow the above steps.
This is what we will explain bellow.
After downloading and unpacking the sources building a custom RPM will be done using the following command:
./Setup buildrpm –with-linux=[absolute path of the linux sources]
The optional path is as default /usr/src/linux.
It has to point to a configured kernel source. The RPM will be build in a virtual folder called rpmbuild/. This being done in order for the building process not to interfere with the files present in the current directory.
After this, you will just have to follow the same instructions as in the already built RPM installation to get Wanpipe on your system up and running.