Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Apr 2010 21:28:30 +0200
From:      Bernd Walter <ticso@cicely7.cicely.de>
To:        Mike Tancsa <mike@sentex.net>
Cc:        freebsd-hackers@freebsd.org, ticso@cicely.de
Subject:   Re: disabling all serial input / output at boot time
Message-ID:  <20100415192830.GE31933@cicely7.cicely.de>
In-Reply-To: <20100415192524.GD31933@cicely7.cicely.de>
References:  <201004141357.o3EDvuxt067902@lava.sentex.ca> <20100415173659.GB31933@cicely7.cicely.de> <201004151745.o3FHjXI2077062@lava.sentex.ca> <20100415190405.GC31933@cicely7.cicely.de> <20100415192524.GD31933@cicely7.cicely.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Apr 15, 2010 at 09:25:24PM +0200, Bernd Walter wrote:
> On Thu, Apr 15, 2010 at 09:04:05PM +0200, Bernd Walter wrote:
> > On Thu, Apr 15, 2010 at 01:45:36PM -0400, Mike Tancsa wrote:
> > > At 01:36 PM 4/15/2010, Bernd Walter wrote:
> > > 
> > > >Is the sensor prohibiting the use of USB RS232 in any way?
> > > 
> > > Just our wallets :)  Extra cost to include it and the case would need 
> > > to change as well as its in an environment where it can get hit by water.
> > 
> > Ok - that's an understandable reason.
> > 
> > The unfortunate thing is that the bootcode reacts on buffered input
> > and the BIOS might already have buffered some bytes.
> > This has nothing to do with FreeBSDs knowledge about comconsole because
> > the BIOS translates it.
> > IIRC the Soekris BIOS has an option to disable the SIO support, maybe
> > your board has something similar.
> > Otherwise this means you need to disable the bootcode (including boot0)
> > to process any kind of input.
> 
> Ups - I  ment boot2 and not boot0 - you likely don't install boot0.

For boot2 take a look into sys/boot/i386/boot2/boot2.c xgetc function.
I assume it is all you need to chnage.
> 
> > This shouldn't be too hard to code since the code is well documented.
> > It happens in at least boot0 and loader - the later likely can be
> > handled by using a customized loader.rc script, which wraps to
> > nullconsole.
> > 
> > -- 
> > B.Walter <bernd@bwct.de> http://www.bwct.de
> > Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
> > _______________________________________________
> > freebsd-hackers@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
> 
> -- 
> B.Walter <bernd@bwct.de> http://www.bwct.de
> Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"

-- 
B.Walter <bernd@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100415192830.GE31933>