serial console in current

Navdeep Parhar nparhar at gmail.com
Wed Nov 12 12:11:02 PST 2008


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"
>


More information about the freebsd-current mailing list