Compiling AVM FritzCard PCI Linux kernel driver - SLES11
Compiling the AVM FritzCard kernel module in SuSE Enterprise Linux
This documentation is based on a default installation of SLES11 without any patches applied. Needed packages are documented.
Download Source RPM
Foehr IT offers free AVM FritzCard packages for different openSuSE versions, where the sources of these packages also work in SLES11.
Download an actual version, i.e.: fcpci-0.1-0.src.rpm:
linux-109v:/ # cd /tmp linux-109v:/tmp # wget http://opensuse.foehr-it.de/rpms/11_1/src/fcpci-0.1-0.src.rpm
If the file is no longer available, use the local copy
linux-109v:/ # cd /tmp linux-109v:/tmp # wget http://www.os4x.com/fileadmin/downloads/fcpci-0.1-0.src.rpm
Install compiler
Without a compiler, you're unable to compile software, so that's an absolute must-have:
zypper install gcc
Install kernel sources
zypper install kernel-source
Install kernel syms
zypper install kernel-syms
Start the build process
rpmbuild --rebuild fcpci-0.1-0.src.rpm
This will build the kernel module. The resulting file is then created in the directory
/usr/src/packages/RPMS/i586
linux-109v:/usr/src/packages/RPMS/i586 # ls -l total 2272 -rw-r--r-- 1 root root 381236 Mar 26 01:42 fcpci-kmp-debug-0.1_2.6.27.19_5-0.i586.rpm -rw-r--r-- 1 root root 376738 Mar 26 01:42 fcpci-kmp-default-0.1_2.6.27.19_5-0.i586.rpm -rw-r--r-- 1 root root 379532 Mar 26 01:43 fcpci-kmp-pae-0.1_2.6.27.19_5-0.i586.rpm -rw-r--r-- 1 root root 376353 Mar 26 01:43 fcpci-kmp-trace-0.1_2.6.27.19_5-0.i586.rpm -rw-r--r-- 1 root root 394579 Mar 26 01:43 fcpci-kmp-vmi-0.1_2.6.27.19_5-0.i586.rpm -rw-r--r-- 1 root root 382633 Mar 26 01:43 fcpci-kmp-xen-0.1_2.6.27.19_5-0.i586.rpm
Use this newly created RPM package to install the kernel module:
linux-109v:/usr/src/packages/RPMS/i586 # rpm -ihv fcpci-kmp-pae-0.1_2.6.27.19_5-0.i586.rpm Preparing... ########################################### [100%] 1:fcpci-kmp-pae ########################################### [100%] 24591 blocks
Install capi4linux
zypper install capi4linux
create default configuration file for CAPI
Create the following file:
/etc/capi.conf
with the following content:
fcpci - - - - - -
This will tell capi4linux that the fcpci kernel module will be used.
configure device
Configure your FritzCard via yast2:
yast2 isdn
Yourt device should be listed as an unconfigured device. Configure it using the "edit" option. Configure it using the CAPI 2.0 driver, not via HiSax or another solution!!