gary0319 wrote:
>
> Hello Linux Lovers
> This is my first posting to this group. I am having trouble getting AX25
> and TCP/IP to talk to my Kantronics KAM TNC running in the KISS mode. I
> would appreciate any suggestions you can give me.
> My current system:
> Slackware 3.5, kernel 2.0.34 compiled per textbook "Linux Configuration
> & Installation 4th Edition".
> Applied the patch - 2.0.35 to upgrade the kernel to use with ax25-utils
> 2.1.42a and net-tools 1.32-alpha.
> AX25 and serial support was selected before the kernel was compiled
> using menuconfig.
Hello Gary.
I am running a very similar arrangement, except not activating the KAM
for dual-port mode. I am running kernel 2.0.36 with the current AX25
utilities. I can't really tell from the above, but did you apply the
ax25 patches to your 2.0.34 kernel and then patch up to 2.0.35, or did
you patch to 2.0.35 from a clean (unpatched) 2.0.34? Kernels < 2.0.35
needed an ax.25 patch applied, but >= 2.0.35 come with the latest ax.25
stuff in the kernel tree. If you did patch 2.0.34 with ax.25, perhaps
you may wish to try a clean set of 2.0.36 sources. Works FB here.
> Symptoms:
> 1. Minicom communications program will work through ttyS0 (com 1) when
> connected to an external modem. Connected to BBS without any problem.
So far, so good.
> 2. Next I connect my KAM tnc in KISS mode to ttyS0. The mkiss command
> appears in /usr/sbin. Tried the command "mkiss -p -c -h -l -s 1200
> /dev/ttyS0 ptyq0"
> No error messages were echoed. Is there anyway to tell if the
> mkiss is loaded and running?
The ps command should show if it is a running process. Are all those
options for mkiss required?
> 3. Next command issued " kissattach - i 44.94.248.213 -m 512
> /dev/ttyq0 ax0"
> (ax0 is name used in the axports file - the only port used for VHF)
> Message echo "kissattach: open: I/O error"
OK, I think the problem lies in that you're trying to use a reserved
interface name as your port name. Try changing ax0 above to something
simple, like 1. Here is a fragment of my script where I do this:
#! /bin/sh
# This is /usr/local/sbin/ax25, a shell script to start the AX.25
networking
# system on linux.n0nb.ampr.org
#
# First order of business, down the dummy interface as it is using
# ax25 IP address
/sbin/ifconfig dummy0 down
# Load the mkiss kernel module < 01/02/99
#/sbin/insmod mkiss < 02/21/99 kerneld does dirty
work now
# Enable KISS TNC as Port 1
/usr/sbin/kissattach /dev/ttyS1 1
# /usr/sbin/kissparms -p 1 -t 35 -s 100 -r 63
> 4. The ifconfig command shows only the "lo - Loopback" is attached.
> Should this also show the radio port if kissattach is working?
ifconfig will show no interfaces until you set them up with ifconfig.
Here is the next fragment of my script where I do this:
# Setup TCP/IP routing on Port 1 (datagram is default)
/sbin/ifconfig ax0 linux broadcast 44.122.0.255 netmask 255.255.255.0
mtu 256 up
/sbin/route add ampr-scks netmask 255.255.255.0 ax0
> 5. I assume the axattach command is not used for this configuration as
> directed in the HOWTOs for the version I am running? I do not see the
> command in any directory.
It is my understanding that axattach is now obsolete.
> I understand the problem could be the ax25 support in the kernel but I
> have tried recompiling a couple of times with careful consideration for
> ax25 and serial support.
Try these ideas.
If changing your ax.25 port name from an interface name to something
else doesn't help, verify mkiss is a running process, and that the ax.25
code is registered on system boot. You can check this with the dmesg
command and get output similar to:
G4KLX/GW4PTS AX.25 for Linux. Version 0.35 for Linux NET3.035 (Linux
2.0)
Then you might want to try a full source tree of kernel 2.0.36.
Don't get confused by the first part of my script. When my system
starts, I assign my ax.25 IP address to the dummy interface, so if I'm
not running the ax.25 utilities, I can still do things like ftp and ping
my hostname.
Try just getting the KAM to work as I have it above, thne try to get the
dual port mode working. Start simple, add complexity in layers. Look
at HI5GB's message for dual-port ideas.
> Sorry if these questions are too newbie but I do need some elmering.
> This is my first round with Linux and ax25. Thanks a lot.
Not a problem. We've all been there. Some of us are still there ;^)
73, de Nate >>
--
Packet | N0NB @ WF0A.#SCKS.KS.USA.NOAM | "FAILURE IS NOT
Internet | [EMAIL PROTECTED] | AN OPTION!
Location | Valley Center, Kansas USA EM17hs | It's bundled
Visit my Linux + Ham Radio pages | with the soft-
http://homepage.netspaceonline.com/~ka0rny/ | ware..."