Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Oct 2009 14:57:42 -0700
From:      "Matthew Fleming" <matthew.fleming@isilon.com>
To:        <freebsd-stable@freebsd.org>
Subject:   uart(4) on stable/7
Message-ID:  <06D5F9F6F655AD4C92E28B662F7F853E032DF8FA@seaxch09.desktop.isilon.com>

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

I am interested in using uart(4) instead of sio(4) on stable/7, to ease
our eventual transition to stable/8 or CURRENT.  I added device uart and
changed up /boot/device.hints (there were no entries in /etc/ttys that
mentioned sio), and I get something that boots and has messages on the
console, up to the login prompt.

There's no login prompt, though.

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)?

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?

The hints in /boot/device.hints, obtained by s/sio/uart:

hint.uart.0.at="isa"
hint.uart.0.port="0x3F8"
hint.uart.0.flags="0x90"
hint.uart.0.irq="4"
hint.uart.1.at="isa"
hint.uart.1.port="0x2F8"
hint.uart.1.irq="3"
hint.uart.2.at="isa"
hint.uart.2.disabled="1"
hint.uart.2.port="0x3E8"
hint.uart.2.irq="5"
hint.uart.3.at="isa"
hint.uart.3.disabled="1"
hint.uart.3.port="0x2E8"
hint.uart.3.irq="9"

Thanks,
matthew



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