1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
|
z8530-utils2 for Debian
-----------------------
Important note: this documentation was written from personal experience I
had with the scc driver. Network setup may have changed since this document
was written, please beware! The z8530-utils package is now obsolete.
HOW TO SET THINGS UP:
0) Get the right package. Z8530-utils is for kernel 2.0,
z8530-utils2 for kernel 2.2.
1) Be sure that you have the scc driver built into your kernel.
The standard debian kernel image may not have it, so you probably
have to built your own kernel. A good tool to use here is kernel-package.
Read /usr/share/doc/kernel-package/README.gz for directions.
Get the latest kernel source (2.0.33 at the time of writing) first.
Do a 'make menuconfig' or 'make config'. In the 'Network device
support' section say Y to CONFIG_NETDEVICES, CONFIG_NET_RADIO and
CONFIG_SCC. You can built the scc driver as a module. I would recommend
not to do this. If you have a scc card, the module would have to be
loaded 100% of the time anyway....
Then do a 'make-kpkg clean' and 'make-kpkg --revision=custom.1.0
kernel_image'. Install the new kernel.
2) Now set up '/etc/z8530drv.conf'. You have to enter the I/O addresses,
interrupts, clock frequency, type of board, etc. Also the txdelay,
persist, slottime, etc. have to be set here. Read scc_eng.doc for an
explanation.
! BE WARNED! INCORRECT CONFIGURATION MAY HANG YOU SYSTEM !
! HAVE A BACKUP KERNEL INSTALLED IN CASE THINGS GO WRONG !
If you have set up a scc card under dos before, the 'gencfg' utility
might come in handy. Just type 'gencfg' for an explanation.
I have a 1 chip SCC card installed in my PC. It is designed by pe1pet
and supports 2 modems. I have one 9k6 modem attached to the first port.
Here is my /etc/z8530drv.conf:
---------------------------------------------------------------------
chip 1
data_a 0x153
data_b 0x151
ctrl_a 0x152
ctrl_b 0x150
irq 5
pclock 4915200
board BAYCOM
escc no
device /dev/scc0
speed 9600
clock dpll
mode nrzi
txdelay 4
persist 255
slot 5
tail 4
fulldup 0
wait 4
min 2
makey 4
idle 2
maxdef 60
group 0
txoff off
softdcd off
---------------------------------------------------------------------
3) Before you can attach any network devices you have to use sccinit
to configure the scc card. You have to do this before configuring the
network. Have a look in /etc/rcS.d. These are scripts which are
executed at boot time. Scripts with a lower number get executed first.
Be sure to configure the card before S40hostname.sh. I have installed
a file called 'S25sccinit.sh' which is a link to '../init.d/sccinit.sh'.
Here it is:
---------------------------------------------------------------------
#!/bin/sh
# /etc/init.d/sccinit.sh: configure scc card.
/usr/sbin/sccinit
---------------------------------------------------------------------
4) Now you can configure the network and set the routes. You do this
from '/etc/init.d/network'. Here is example.
# Add the ifconfig line:
ifconfig scc0 'your.ip.address.here' hw ax25 'callsign-ssid' up.
# Then set the routes. I use a gateway to reach the amprnet.
route add -host 'address.of.gateway.here' window 2048 scc0.
route add -net 44.0.0.0 gw 'address.of.gateway.here' netmask 255.0.0.0
window 864.
5) If you experience any problems please read the FAQ and scc_eng.doc.
Joop Stakenborg <pa3aba@debian.org>, Sat, 6 Feb 1999 19:38:26 +0100
|