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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to