Serial Console

Hi,

I tried to set up the serial console according to the FreeBSD Handbook chapter 27.6. But I'm unfortunately not succeeding at all, since FreeBSD 9.0 RELEASE seems to be a little different from what's described in the Handbook ... this is what I got thus far:

Code:
echo '
boot_multicons="YES"
boot_serial="YES"
comconsole_speed="9600"
console="comconsole,vidconsole"
' > [FILE]/boot/loader.conf[/FILE]

Code:
cat [FILE]/etc/ttys[/FILE]
[ ... ]
console none                            unknown off secure
#
ttyv0   "/usr/libexec/getty Pc"         xterm   on  secure
# Virtual terminals
ttyv1   "/usr/libexec/getty Pc"         xterm   off  secure
ttyv2   "/usr/libexec/getty Pc"         xterm   off  secure
ttyv3   "/usr/libexec/getty Pc"         xterm   off  secure
ttyv4   "/usr/libexec/getty Pc"         xterm   off  secure
ttyv5   "/usr/libexec/getty Pc"         xterm   off  secure
ttyv6   "/usr/libexec/getty Pc"         xterm   off  secure
ttyv7   "/usr/libexec/getty Pc"         xterm   off  secure
ttyv8   "/usr/local/bin/xdm -nodaemon"  xterm   off secure
# Serial terminals
# The 'dialup' keyword identifies dialin lines to login, fingerd etc.
ttyu0   "/usr/libexec/getty std.9600"   vt100   on  secure
ttyu1   "/usr/libexec/getty std.9600"   dialup  off secure
ttyu2   "/usr/libexec/getty std.9600"   dialup  off secure
ttyu3   "/usr/libexec/getty std.9600"   dialup  off secure
# Dumb console
dcons   "/usr/libexec/getty std.9600"   vt100   off secure


Code:
kill -HUP 1

Code:
echo '-Dh' > [FILE]/boot.config[/FILE]
chmod 0755 [FILE]/boot.config[/FILE]


After a reboot I see uart0 set up for console in boot loader and in dmesg:

Code:
BTX loader 1.00 BTX version is 1.02
Consoles internal video/keybord  serial port
[ ... ]

Code:
dmesg | grep -E "sio[0-9]|uart[0-9]"
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart0: console (9600,n,8,1)

But I can't see anything on my remote terminal. I tried using ZTerm and CoolTerm on OSx which both work fine with pfSense and other Serial connections.

I also tried
Code:
hint.uart.0.flags="0x30"
in /boot/loader.conf but it didn't work as well ;(

Any ideas what I'm missing?
 
Though I don't know what your specific problem is, I can say that the exact directions in the handbook worked fine for me. I have a serial console running (though my speed is 115200), and can bring it up via minicom or kermit on a linux box.

Adam
 
Changing the speed to 115200 wasn't the solution ;)
Maybe you can share your setup with me?!
 
All I had to change on 9.1-RC1 i386 was in /boot/loader.conf:

Code:
console="comconsole,vidconsole"

And enable the entry for /dev/ttyu0 in /etc/ttys.
 
My /boot/loader.conf:

Code:
boot_multicons="YES"
boot_serial="YES"
comconsole_speed="115200"
console="comconsole,vidconsole"

My /boot.config:

Code:
-h

And the appropriate line in /etc/ttys:

Code:
ttyu0	"/usr/libexec/getty std.115200"	dialup	on secure
 
wblock@ said:
Are you using a null modem cable?

Sure. It is the same cable I use to connect to my pfSense and NetBSD without any issues ... it's just the FreeBSD configuration itself which seems to give me such issues.
Plus I'm not having sio0 ... instead it only shows uart0 - But as far as I understood is uart just the new sio?!
 
Back
Top