Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Oct 2009 17:56:19 -0700
From:      Marcel Moolenaar <xcllnt@mac.com>
To:        Matthew Fleming <matthew.fleming@isilon.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: uart(4) on stable/7
Message-ID:  <F3614014-9F52-4626-A804-78AB17137A37@mac.com>
In-Reply-To: <06D5F9F6F655AD4C92E28B662F7F853E032DF8FA@seaxch09.desktop.isilon.com>
References:  <06D5F9F6F655AD4C92E28B662F7F853E032DF8FA@seaxch09.desktop.isilon.com>

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

On Oct 26, 2009, at 2:57 PM, Matthew Fleming wrote:

> I can ssh to my box, echo to /dev/console appears on the console;
> messages on reboot appear on the console, just not the login prompt.
> Does anyone know what else I may be missing to use uart(4)?

As Andrew pointed put, you need to update /etc/ttys as well.

> Also, we have some boot scripts locally that will try to set
> machdep.conspeed based on hardware type; uart(4) doesn't seem to  
> expose
> a sysctl by that name.  How does the uart driver for stable/7 deal  
> with
> differing console speeds?

uart(4) has 2 approaches for this:
1)  you don't specify a speed -- in this case uart(4) will
     simply re-use the speed that hardware is programmed for.
2)  You do specify a speed - uart(4) will reprogram the
     the console speed based on the hw.uart.console tunable.
     Note that for compatibility with sio(4) hints can be
     used as well. Use hint.uart.0.baud=9600 to set the
     console speed to 9600 baud.

There's no compiled-in console speed. The compiled-in default
(in a way) is to use the speed the hardware is programmed for.

-- 
Marcel Moolenaar
xcllnt@mac.com






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F3614014-9F52-4626-A804-78AB17137A37>