ts-7000
[Top] [All Lists]

Re: [ts-7000] getty and 'dialout' on the same serial port

To:
Subject: Re: [ts-7000] getty and 'dialout' on the same serial port
From: Ken Irving <>
Date: Sun, 10 Oct 2010 12:05:51 -0800
On Mon, May 24, 2010 at 02:09:26PM -0400, Russ Nelson wrote:
> On Mon, 2010-05-24 at 09:22 -0800, Ken Irving wrote:
> 
> > I've done this painlessly on debian systems in the past, i.e., it just 
> > worked out of the box, perhaps due to the use of mgetty, so never really
> > got into the details of what was actually going on.  I think that may have
> > been thanks to mgetty knowing when to step aside, and/or perhaps having 
> > both processes honor the same locks.
> 
> Exactly.  You should give a try at compiling it, because it is designed
> to solve the problem you're having.

I have been able to compile mgetty for the TS-7260 tslinux on flash,
and also can compile remserial and netcat, so the cross compiler seems
to be working.  Neither remserial nor netcat use uucp-style lock files,
though, so will need some work to cooperate with mgetty.

My goal is to have the ts-7260 support both 'dialout' and login on a
serial port connected to a FreeWave radio modem, where 'dialout' is a
pass-through connection via ip to the serial port.  mgetty can check for
incoming login connections from the serial port, and will not do anything
if a lock file has been set, so should work as long as the 'dialout'
process sets a lock file (e.g., /var/lock/LCK..ttyAM0 containing a
valid pid).

socat does support lock files, and so should be able to function as the
ip-to-serial process, but I can't get it to compile in the crosstools
environment.  I'm using crosstool/gcc-4.0.1-glibc-2.3.5 and have made
several floundering attempts; I edited socat-1.7.1.3/configure to set
cross_compiling=yes, and exported several variables:

    
CC=/opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc
    
CROSS=/opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-unknown-linux-gnu/arm-unknown-linux-gnu
    CPPFLAGS=-I$CROSS/include
    LIBS=-L$CROSS/lib

configure then runs, but outputs these lines:

    checking shift offset of CRDLY... please determine CRDLY_SHIFT manually
    checking shift offset of TABDLY... please determine TABDLY_SHIFT manually
    checking shift offset of CSIZE... please determine CSIZE_SHIFT manually

Running make without doing anything else results in errors perhaps related
to the above:

    :~/ts/src/socat-1.7.1.3$ make socat
    ...
    xioinitialize.c:40:35: error: operator '&&' has no right operand
    xioinitialize.c:43:37: error: operator '&&' has no right operand
    xioinitialize.c:46:17: error: operator '>=' has no left operand
    xioinitialize.c: In function 'xioinitialize':
    xioinitialize.c:68: error: 'ISPEED_OFFSET' undeclared (first use in this 
function)
    xioinitialize.c:68: error: (Each undeclared identifier is reported only once
    xioinitialize.c:68: error: for each function it appears in.)
    xioinitialize.c:69: error: 'OSPEED_OFFSET' undeclared (first use in this 
function)
    make: *** [xioinitialize.o] Error 1

I guess these are related somehow to TERMIOS perhaps, but I don't know if
these problems are due to socat or the cross compiling environment.  Any 
hints on getting socat to compile?

Thanks!

Ken



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [ts-7000] getty and 'dialout' on the same serial port, Ken Irving <=
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU