From owner-freebsd-hackers Fri Dec 24 1: 7:50 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from arnold.neland.dk (mail.neland.dk [194.255.12.232]) by hub.freebsd.org (Postfix) with ESMTP id A0A2914F78 for ; Fri, 24 Dec 1999 01:07:46 -0800 (PST) (envelope-from leifn@neland.dk) Received: from localhost (localhost [127.0.0.1]) by arnold.neland.dk (8.9.3/8.9.3) with ESMTP id KAA34097; Fri, 24 Dec 1999 10:07:04 +0100 (CET) (envelope-from leifn@neland.dk) Date: Fri, 24 Dec 1999 10:07:04 +0100 (CET) From: Leif Neland To: "Daniel C. Sobral" Cc: Justin Hawkins , freebsd-hackers@FreeBSD.ORG Subject: Re: Serial boot prompt messages and a modem In-Reply-To: <3860003A.548F8343@newsguy.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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