mgetty on null modem
etrius@hem2.passagen.se (etrius@hem2.passagen.se)
Sat, 7 Nov 1998 15:09:35 +0100
>> >> I can't seem to get mgetty started correctly. Please reply directly to
>> >> me, since I'm not a subscriber to this list.
>> >>
>> >> This is in my inittab:
>> >>
>> >> 7:2345:respawn:/sbin/mgetty -x 9 -b -r -s 38400 -p "login: " ttyS1
> [..]
>> Doesn't work... get the same messages whatever I do. I was under the
>> impression that -r was to be used with null modems (serial cable
>> between two computers), the man-page says that -b could be useful
>> together with -r. -r takes away all modem initialization, which isn't
>> needed since I don't use a regular modem.
>
> Hmmm, this is a detail that you gratiously omitted from your last post
> (the fact that you don't use a modem). In any case, you don't want
> "-b". "-r" is ok here (with "modem-check-time -1" in mgetty.config).
>
> Well, maybe it's time to look into the log file?
>
> "mgetty -V" will tell you where the log is located.
>
> gert
Well... maybe I wasn't clear enough :) I think I also included a snip
from the log file, but in case I didn't here it comes. I don't
understand a thing of why it says what it says. Obviously it can't get
initialized, but why?
11/07 15:03:54 yS1 mgetty: experimental test release 1.1.14-Apr02
11/07 15:03:54 yS1 mgetty.c compiled at Nov 3 1998, 22:46:52
11/07 15:03:54 yS1 user id: 0, parent pid: 1
11/07 15:03:54 yS1 reading configuration data for port 'ttyS1'
11/07 15:03:54 yS1 reading /etc/mgetty+sendfax/mgetty.config...
11/07 15:03:54 yS1 conf lib: read: 'debug 4'
11/07 15:03:54 yS1 conf lib: read: 'speed 38400'
11/07 15:03:54 yS1 conf lib: read: 'port ttyS1'
11/07 15:03:54 yS1 section: port ttyS1, **found**
11/07 15:03:54 yS1 conf lib: read: 'direct YES'
11/07 15:03:54 yS1 conf lib: read: 'toggle-dtr NO'
11/07 15:03:54 yS1 conf lib: read: 'data-only YES'
11/07 15:03:54 yS1 conf lib: read: 'modem-type data'
11/07 15:03:54 yS1 conf lib: read: 'modem-check-time -1'
11/07 15:03:54 yS1 conf lib: read: 'login-prompt "login: "'
11/07 15:03:54 yS1 key: 'speed', type=0, flags=3, data=38400
11/07 15:03:54 yS1 key: 'switchbd', type=0, flags=1, data=0
11/07 15:03:54 yS1 key: 'direct', type=3, flags=3, data=TRUE
11/07 15:03:54 yS1 key: 'blocking', type=3, flags=1, data=FALSE
11/07 15:03:54 yS1 key: 'port-owner', type=1, flags=1, data=uucp
11/07 15:03:54 yS1 key: 'port-group', type=1, flags=1, data=uucp
11/07 15:03:54 yS1 key: 'port-mode', type=0, flags=1, data=432
11/07 15:03:54 yS1 key: 'toggle-dtr', type=3, flags=3, data=FALSE
11/07 15:03:54 yS1 key: 'toggle-dtr-waittime', type=0, flags=1, data=500
11/07 15:03:54 yS1 key: 'data-only', type=3, flags=3, data=TRUE
11/07 15:03:54 yS1 key: 'fax-only', type=3, flags=1, data=FALSE
11/07 15:03:54 yS1 key: 'modem-type', type=1, flags=3, data=data
11/07 15:03:54 yS1 key: 'modem-quirks', type=0, flags=0, data=(empty)
11/07 15:03:54 yS1 key: 'init-chat', type=2, flags=1, data= \dATQ0V1H0 OK ATS0=0Q0&D3&C1 OK
11/07 15:03:54 yS1 key: 'force-init-chat', type=2, flags=1, data= \d^P^C\d\d\d+++\d\d\d^M\dATQ0V1H0 OK
11/07 15:03:54 yS1 key: 'modem-check-time', type=0, flags=3, data=-1
11/07 15:03:54 yS1 key: 'rings', type=0, flags=1, data=1
11/07 15:03:54 yS1 key: 'get-cnd-chat', type=2, flags=0, data=(empty)
11/07 15:03:54 yS1 key: 'answer-chat', type=2, flags=1, data= ATA CONNECT \c
11/07 15:03:54 yS1 key: 'answer-chat-timeout', type=0, flags=1, data=80
11/07 15:03:54 yS1 key: 'autobauding', type=3, flags=1, data=FALSE
11/07 15:03:54 yS1 key: 'ringback', type=3, flags=1, data=FALSE
11/07 15:03:54 yS1 key: 'ringback-time', type=0, flags=1, data=30
11/07 15:03:54 yS1 key: 'ignore-carrier', type=3, flags=1, data=FALSE
11/07 15:03:54 yS1 key: 'issue-file', type=1, flags=1, data=/etc/issue
11/07 15:03:54 yS1 key: 'prompt-waittime', type=0, flags=1, data=500
11/07 15:03:54 yS1 key: 'login-prompt', type=1, flags=3, data="login: "
11/07 15:03:54 yS1 key: 'login-time', type=0, flags=1, data=240
11/07 15:03:54 yS1 key: 'fido-send-emsi', type=3, flags=1, data=TRUE
11/07 15:03:54 yS1 key: 'fax-id', type=1, flags=1, data=49 89 xxxxxxxx
11/07 15:03:54 yS1 key: 'fax-server-file', type=1, flags=0, data=(empty)
11/07 15:03:54 yS1 key: 'diskspace', type=0, flags=1, data=1024
11/07 15:03:54 yS1 key: 'notify', type=1, flags=1, data=root
11/07 15:03:54 yS1 key: 'fax-owner', type=1, flags=1, data=uucp
11/07 15:03:54 yS1 key: 'fax-group', type=1, flags=0, data=(empty)
11/07 15:03:54 yS1 key: 'fax-mode', type=0, flags=1, data=432
11/07 15:03:54 yS1 key: 'debug', type=0, flags=2, data=9
11/07 15:03:54 yS1 key: 'statistics-chat', type=2, flags=0, data=(empty)
11/07 15:03:54 yS1 key: 'statistics-file', type=1, flags=0, data=(empty)
11/07 15:03:54 yS1 key: 'gettydefs', type=1, flags=1, data=n
11/07 15:03:54 yS1 key: 'term', type=1, flags=0, data=(empty)
11/07 15:03:54 yS1 check for lockfiles
11/07 15:03:54 yS1 checklock: no active process has lock, will remove
11/07 15:03:54 yS1 locking the line
11/07 15:03:54 yS1 makelock(ttyS1) called
11/07 15:03:54 yS1 do_makelock: lock='/var/lock/LCK..ttyS1'
11/07 15:03:54 yS1 lock made
11/07 15:03:55 yS1 tio_get_rs232_lines: TIOCMGET failed: Input/output error
11/07 15:03:55 yS1 tio_get_rs232_lines: status: RTS CTS DSR RI
11/07 15:03:55 yS1 cannot turn off soft carrier: Input/output error
11/07 15:03:55 yS1 tcgetattr failed: Input/output error
11/07 15:03:55 yS1 cannot get TIO: Input/output error
11/07 15:03:55 yS1 mg_init_device failed, trying again
11/07 15:03:55 yS1 tio_get_rs232_lines: TIOCMGET failed: Input/output error
11/07 15:03:55 yS1 tio_get_rs232_lines: status: RTS CTS DSR RI
11/07 15:03:55 yS1 cannot turn off soft carrier: Input/output error
11/07 15:03:55 yS1 tcgetattr failed: Input/output error
11/07 15:03:55 yS1 cannot get TIO: Input/output error
11/07 15:03:55 yS1 mg_init_device failed, exiting: Input/output error
11/07 15:03:55 yS1 cannot get terminal line dev=ttyS1, exiting: Input/output error
--
Magnus Therning ( etrius@hem2.passagen.se )
http://hem2.passagen.se/etrius/