Subject: SLIP/serial driver Problem?
To: None <current-users@NetBSD.org>
From: Rene Schickbauer <cavac@grumpfzotz.org>
List: current-users
Date: 02/01/2004 23:07:02
Hi!

Can anyone check if there's a problem with serial ports on i386 in a fairly 
current kernel? i got some strange error here.

I use:
NetBSD gandalf 1.6ZI NetBSD 1.6ZI (GENERIC) #0: Mon Jan 26 01:33:19 CET 2004  
root@gandalf:/usr/obj/sys/arch/i386/compile.i386/GENERIC i386

I've been trying to connect two computers (the one above and a laptop with 
netbsd install floppies) by serial null-modem cable using the following 
commands after making sure neither of the computers had any other network 
device and/or route configured except lo0:
Server:
# slattach /dev/tty00
# ifconfig sl0 inet 192.168.1.1 192.168.1.2

Client (with install-floppies):
# slattach /dev/tty00
# ifconfig sl0 inet 192.168.1.2 192.168.1.1

If i try a "ping 192.168.1.1" all i get is
| sl0: no carrier and not local
| ping: sendto: No route to host

I also tried some kind of loopback on the server by connecting tty00 and 
tty01 and using the perl-package "p5-Device-SerialPort-0.12" from pkgsrc.

This renders some funny behavior: If i send only one character at a time, 
most characters get through. If send many at one time, all i get fewer 
characters of junk on the other side. Neither handshake-method (xon/xoff, 
rts, none) changes it.

The cable is fairly new and was sucessfully used about a month ago. I also 
tested another cable that also should work fine and got the same results.

Any suggestions?

LLAP & LG
Rene
-- 
A bus station is where a bus stops. A train station is where a train stops. 
On my desk I have a workstation...