TELES S0 PCMCIA ISDN mini-howto Svein Olav Bjerkeset, svein.olav.bjerkeset@bedrift.telenor.no v0.1, 27 March 1999 This mini-howto describes how to set up a Teles S0 PCMCIA ISDN to work with Linux kernel releases 2.2.x. This document is written based on the work I did to make the Teles PCMCIA card work on my computer. It may or may not work in other evironments. -------------------------------------------------------------------------- Table of contents 1. Copyright 2. Hardware 3. Software 3.1. Installing the kernel drivers 3.2. Installing the isdn4linux package 3.3. Building the TeleS PCMCIA module 4. Configuration 5. Other useful information -------------------------------------------------------------------------- 1. Copyright Copyrigth (C) 1999 by Svein Olav Bjerkeset This document is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This document is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You can get a copy of the GNU GPL at at 2. Hardware Compaq LTE 5250 Laptop TeleS S0 PCMCIA ISDN card Norwegian ISDN (NET-3 switch type) 3. Software My Linux installation is based on the Slackware distribution. I am currently running kernel relase 2.2.3. In addition to a the kernel source you will need to download to software packages: * isdn.tar.gz This is the Linux kernel ISDN drivers. I am not really sure if this package is really necessary, but the original drivers in the 2.2.3 driver did not work for me. * isdn4k-utils-3.0beta2.tar.gz This is the user level utilities necessary to control the ISDN drivers. The obove mentioned software can be downloaded from ftp://ftp.suse.com/pub/isdn4linux/v2.2. * pcmcia-cs-3.0.8.tar.gz Linux PCMCIA kernel loadable modules. Other versions of this package may also work, but this has not been verified. You can download it from ftp://hyper.stanford.edu/pub/pcmcia * teles2.0.3.tgz This is the low-level kernel driver for the PCMCIA card. It is supposed to be installed in the pcmcia-cs-3.0.8 source tree. The driver can be downloaded from http://home.wtal.de/petig/ISDN/teles2.0.3.tgz 3.1. Installing the kernel drivers From here on I assume that you have installed the linux 2.2.3 kernel in /usr/src/linux. I also assume that you have the software has been downloaded to the /usr/src directory (all *.tar.gz files) cd /usr/src tar xvzf isdn.tar.gz cd isdn ./std2kern -d You will get a list of file that will be updated in the Linux kernel source tree. You should verify that isdn_net.c an teles3.c are copied. cd /usr/src/linux make xconfig I configured the ISDN subsystem into the kernel and left the HiSax driver as a kernel module. Remember to also include support for the TeleS PCMCIA card. You should of course have networking compiled in and PPP support is also important. make dep clean make bzImage make modules modules_install Install the kernel and reboot the system 3.2. Installing the isdn4linux package cd /usr/src tar xvzf isdn4k-utils-3.0beta2.tar.gz cd isdn4k-utils-3.0beta2 make config make make install 3.3. Building the TeleS PCMCIA module cd /usr/src tar xvzf pcmcia-cs-3.0.8.tar.gz cd pcmcia-cs-3.0.8 tar xvzf ../teles2.0.3.tgz make config make all make install 4. Configuration When I first loaded the module(s) it did not work. I did not specify any parameters to the TeleS PCMCIA kernel module and it got IRQ 9 by default. Apparently it did not like that. I figured out that Windows 98 used IRQ 11, so I put the following line in /etc/conf.modules: options teles_cs irq_mask=0x0800 After this was added and the PCMCIA services restarted, it worked. Before you can use the card, the HiSax driver kernel modules has to be loaded. You do this by issuing the following command: insmod hisax type=8 protocol=2 irq=11 io=0x280 You can get the parameters for HiSax (irq and io) from the following command: dmesg | grep -i hisax If the teles_cs driver has been loaded recently, you should get printed the paramters you need before loading the HiSax driver. 5. Other useful information * A german howto for the TeleS PCMCIA ISDN card is available at http://home.wtal.de/petig/ISDN/index.html * The Linux ISDN HOWTO * The Linux PCMCIA HOWTO * The Linux Kernel HOWTO ENJOY!