Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Dec 1999 10:07:04 +0100 (CET)
From:      Leif Neland <leifn@neland.dk>
To:        "Daniel C. Sobral" <dcs@newsguy.com>
Cc:        Justin Hawkins <justin@tardis.mx.com.au>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Serial boot prompt messages and a modem
Message-ID:  <Pine.BSF.4.05.9912241003360.28730-100000@arnold.neland.dk>
In-Reply-To: <3860003A.548F8343@newsguy.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Wed, 22 Dec 1999, Daniel C. Sobral wrote:

> Justin Hawkins wrote:
> > 
> > I think (I am not positive on this) that if the boot loader talks to a
> > modem in command mode with echo on, it gets confused and won't boot any
> > further. Is this a known problem?
> 
> I'd say this is an expected result, not a known problem. It is doing
> exactly what it is being told to (gibberish). Junk in, junk out. :-)
> 

You'll just turn off echo in the modem.
ATZ
ATE0
AT&W



> > Is there enough room in there for some code, which checks for this? IE if
> > the first line output to the serial device == the first input (some
> > version string probably) then it just ignores it and does the default
> > action?
> 
> Just configure it correctly. Don't tell it to talk to a serial device
> that will be sending it gibberish.
> 

A hack would be to have the loader emit ATE0 to protect itself from
echoing modems.
Another, but perhaps annoying would be flushing the input buffer before
each read.

Leif



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9912241003360.28730-100000>