Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Nov 2008 12:10:59 -0800
From:      "Navdeep Parhar" <nparhar@gmail.com>
To:        "Anton Yuzhaninov" <citrin@citrin.ru>
Cc:        freebsd-current@freebsd.org
Subject:   Re: serial console in current
Message-ID:  <d04e16b70811121210r4671694du8f9bd20edef57d9@mail.gmail.com>
In-Reply-To: <491B3161.7000808@citrin.ru>
References:  <491B3161.7000808@citrin.ru>

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

On Wed, Nov 12, 2008 at 11:41 AM, Anton Yuzhaninov <citrin@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@citrin.park.rambler.ru:/usr/obj/usr/src/sys/GENERIC  amd64
>
> --
>  Anton Yuzhaninov
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>



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