<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <font face="Times New Roman">All,<br>
      <br>
      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.<br>
      <br>
      This script is run at boot time via a symlink to rc2.d<br>
      ln -s /etc/init.d/rc.ax25 /etc/rc2.d/S99rc.ax25<br>
      <br>
      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!.<br>
      <br>
      There are three companion scripts that came from John Ackerman,
      from memory ...<br>
      axdispparms - to display kernel port parameters<br>
      axgetparms - to fetch kernel port parameters so they can be
      edited.<br>
      axsetparms - to upload the edited files<br>
      <br>
      Those scripts may be run at any time. If anyone wants copies of
      those scripts, just yell.<br>
      <br>
      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.<br>
      <br>
      Ray vk2tv<br>
      <br>
      #!/bin/sh<br>
      #<br>
      # This is /etc/init.d/rc.ax25<br>
      #<br>
      # Start AX25/NetRom/Rose networking devices/daemons.<br>
      # AX25 config for VK2TV<br>
      # DATE      Who      Comment<br>
#------------------------------------------------------------------<br>
      # 16-12-10  TV     Kernel ax25 configured for Mint 9 KDE<br>
      #-----------------------------------------------------------------<br>
      test -f /usr/local/sbin/ax25d || exit 0<br>
      <br>
      <br>
      #       <br>
              echo -n "Configuring serial ports"<br>
      #       /bin/setserial -v /dev/ttyS0 uart 16550A port 0x3f8 irq 4<br>
      #       /bin/setserial -v /dev/ttyS1 uart 16550A port 0x2f8 irq 3<br>
      #<br>
              modprobe ax25<br>
              modprobe mkiss<br>
      #       modprobe rose<br>
      #       modprobe netrom<br>
      #<br>
              echo -n "starting ax interfaces"<br>
      #<br>
      #<br>
              echo -n " configure the ax0/5175 device"<br>
              /usr/local/sbin/kissattach  /dev/ttyS0 5175 44.136.56.25
      -m 255<br>
              /sbin/ifconfig ax0 44.136.56.25 netmask 255.255.255.0
      broadcast 44.136.56.255 arp<br>
              #<br>
              echo -n " configure the ax1/30m device"<br>
              /usr/local/sbin/kissattach  /dev/ttyS1 30m 44.136.56.25 -m
      255<br>
              /sbin/ifconfig ax1 44.136.56.25 netmask 255.255.255.0
      broadcast 44.136.56.255 arp<br>
              #<br>
              echo -n " configure the ax2/5825 device"<br>
              /usr/local/sbin/kissattach  /dev/ttyUSB0 5825 44.136.56.25
      -m 255<br>
              /sbin/ifconfig ax2 44.136.56.25 netmask 255.255.255.0
      broadcast 44.136.56.255 arp<br>
              #<br>
              #<br>
              /bin/netstat -rn        <br>
              #<br>
              #<br>
              echo -n "Setting KISS parameters for 5175"<br>
              /usr/local/sbin/kissparms -p 5175 -r 125 -t 250 -s 20 -f n
      -l 20<br>
              #<br>
              echo -n "Setting KISS parameters for 30m"<br>
              /usr/local/sbin/kissparms -p 30m -r 20 -t 400 -s 20 -f n
      -l 40<br>
              #<br>
              echo -n "Setting KISS parameters for 5825"<br>
              /usr/local/sbin/kissparms -p 5825 -r 125 -t 250 -s 20 -f n
      -l 10<br>
              #<br>
              #<br>
              echo -n "Starting ax25d"<br>
              /usr/local/sbin/ax25d &amp;<br>
              #<br>
              #<br>
              echo -n "Starting mheardd"<br>
              /usr/local/sbin/mheardd &amp;<br>
              #<br>
              #<br>
      #       echo -n "Setting AX25 /proc parameters"<br>
      #<br>
              /usr/local/sbin/axsetparms<br>
              #<br>
      #---------------------------------- end
      ------------------------------------<br>
      <br>
    </font>
  </body>
</html>