serial console in current

Ed Schouten ed at 80386.nl
Wed Nov 12 13:23:51 PST 2008


* Anton Yuzhaninov <citrin at citrin.ru> wrote:
> On 12.11.2008 23:35, Ed Schouten wrote:
>> * Anton Yuzhaninov <citrin at citrin.ru> wrote:
>>> How to setup serial console in current?
>>>
>>> Settings, which works in RELENG_7, no longer help in CURRENT.
>>>
>>> $ cat /boot.config
>>> -P
>>> $ fgrep ttyu0 /etc/ttys
>>> ttyu0  "/usr/libexec/getty std.9600"   cons25  on  secure
>>> $ dmesg | fgrep uart
>>> uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
>>> uart0: [FILTER]
>>> uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
>>> uart1: [FILTER]
>>> $ uname -a
>>> FreeBSD citrin.park.rambler.ru 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Wed Nov 12 18:42:45 MSK 2008     citrin at citrin.park.rambler.ru:/usr/obj/usr/src/sys/GENERIC  amd64
>>
>> As mentioned in /usr/src/UPDATING - don't forget to update
>> /boot/device.hints. Let me know if you run into any problems.
>>
>
> /boot/device.hints was updated
>
> $ fgrep -h uart.0 /boot/device.hints
> hint.uart.0.at="isa"
> hint.uart.0.port="0x3F8"
> hint.uart.0.flags="0x10"
> hint.uart.0.irq="4"
>
> If ttyu0 commented out in /etc/ttys I can write text to remote machine using
> cu -l /dev/ttyu0

Maybe there's a difference between uart(4) and sio(4) w.r.t.
carrier-detect handling? What happens if you change ttyu0 to cuau0 in
/etc/ttys? This is not a proper solution, but it should give us some
more insight.

-- 
 Ed Schouten <ed at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20081112/9e10605b/attachment.pgp


More information about the freebsd-current mailing list