Re: serial console in current

From: Navdeep Parhar <nparhar_at_gmail.com>
Date: Wed, 12 Nov 2008 12:10:59 -0800
On Wed, Nov 12, 2008 at 11:41 AM, Anton Yuzhaninov <citrin_at_citrin.ru> wrote:
> How to setup serial console in current?
>

I have a serial console, and it works with today's current.
# cat /boot.config
-D -S115200
# grep console /boot/loader.conf
comconsole_speed="115200"
console="comconsole,vidconsole"
# grep ttyu0 /etc/ttys
ttyu0   "/usr/libexec/getty std.115200" vt100   on secure

You may want to try these and see if your serial port is working:
# stty -f /dev/ttyu0  (all reasonable, expected values?)
# echo "foo bar" > /dev/ttyu0   (Do you see anything on the console?)
# cat < /dev/ttyu0  (type something on the console and see whether cat sees it)

Regards,
Navdeep

> 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
>
> --
>  Anton Yuzhaninov
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>
Received on Wed Nov 12 2008 - 19:11:01 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:37 UTC