[OZAPRS] FYI
Ray Wells
vk2tv at exemail.com.au
Wed Jan 5 15:36:35 EST 2011
All,
For anyone contemplating dabbling with kernel ax25 in Linux, here's my
rc.ax25 script to attach and configure the three aprs ports. 5175 and
30m both use standard comports while 5825 uses a USB/serial device. All
three ports use the MFJ1270B TNC fitted with a KISS only EPROM.
This script is run at boot time via a symlink to rc2.d
ln -s /etc/init.d/rc.ax25 /etc/rc2.d/S99rc.ax25
The only part that needs special mention is the axsetparms command near
the bottom. This configures the kernel port settings such as various
timers, paclen, maxframe, etc, at boot time. Remember, kernel port
params are normally reset to (sometimes useless) default values at
reboot - who needs paclen 256 and maxframe 7 on HF!.
There are three companion scripts that came from John Ackerman, from
memory ...
axdispparms - to display kernel port parameters
axgetparms - to fetch kernel port parameters so they can be edited.
axsetparms - to upload the edited files
Those scripts may be run at any time. If anyone wants copies of those
scripts, just yell.
I compiled libax25, ax25-apps and ax25-tools, hence the /usr/local
prefixes. If you use packages such as deb or rpm, the prefix will not
contain "local" and all reference to "local" needs to be removed from
the script.
Ray vk2tv
#!/bin/sh
#
# This is /etc/init.d/rc.ax25
#
# Start AX25/NetRom/Rose networking devices/daemons.
# AX25 config for VK2TV
# DATE Who Comment
#------------------------------------------------------------------
# 16-12-10 TV Kernel ax25 configured for Mint 9 KDE
#-----------------------------------------------------------------
test -f /usr/local/sbin/ax25d || exit 0
#
echo -n "Configuring serial ports"
# /bin/setserial -v /dev/ttyS0 uart 16550A port 0x3f8 irq 4
# /bin/setserial -v /dev/ttyS1 uart 16550A port 0x2f8 irq 3
#
modprobe ax25
modprobe mkiss
# modprobe rose
# modprobe netrom
#
echo -n "starting ax interfaces"
#
#
echo -n " configure the ax0/5175 device"
/usr/local/sbin/kissattach /dev/ttyS0 5175 44.136.56.25 -m 255
/sbin/ifconfig ax0 44.136.56.25 netmask 255.255.255.0 broadcast
44.136.56.255 arp
#
echo -n " configure the ax1/30m device"
/usr/local/sbin/kissattach /dev/ttyS1 30m 44.136.56.25 -m 255
/sbin/ifconfig ax1 44.136.56.25 netmask 255.255.255.0 broadcast
44.136.56.255 arp
#
echo -n " configure the ax2/5825 device"
/usr/local/sbin/kissattach /dev/ttyUSB0 5825 44.136.56.25 -m 255
/sbin/ifconfig ax2 44.136.56.25 netmask 255.255.255.0 broadcast
44.136.56.255 arp
#
#
/bin/netstat -rn
#
#
echo -n "Setting KISS parameters for 5175"
/usr/local/sbin/kissparms -p 5175 -r 125 -t 250 -s 20 -f n -l 20
#
echo -n "Setting KISS parameters for 30m"
/usr/local/sbin/kissparms -p 30m -r 20 -t 400 -s 20 -f n -l 40
#
echo -n "Setting KISS parameters for 5825"
/usr/local/sbin/kissparms -p 5825 -r 125 -t 250 -s 20 -f n -l 10
#
#
echo -n "Starting ax25d"
/usr/local/sbin/ax25d &
#
#
echo -n "Starting mheardd"
/usr/local/sbin/mheardd &
#
#
# echo -n "Setting AX25 /proc parameters"
#
/usr/local/sbin/axsetparms
#
#---------------------------------- end ------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.aprs.net.au/pipermail/ozaprs/attachments/20110105/fb93a890/attachment.htm>
More information about the OZAPRS
mailing list