OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: derTyp on August 08, 2017, 10:20:13 am

Title: Cant get serial console to work
Post by: derTyp on August 08, 2017, 10:20:13 am
Hi,

I have a problem getting the serial console to work on my setup. I have a ASRock J3455B-ITX connected via a null modem cable to my NAS. The NAS is a Debian 8 Box (some Supermicro atom board).

In System->Administration I did set the primary console to serial with 115200 baud and secondary console to VGA. The VGA console started working after I disabled authentication but the serial console is not working no matter which settings I choose.
I can see the boot process on the serial console (I am using "cu" on the NAS to connect) but after "Mounting filesystem" it stops and doesn't display anything.

I want to get the serial console to work prior to updating to 17.7 for eventual debugging. I appreciate your help.

Title: Re: Cant get serial console to work
Post by: franco on August 08, 2017, 03:01:26 pm
Can you post the output of these two commands, please?

# tail /etc/ttys
# tail /boot/loader.conf
Title: Re: Cant get serial console to work
Post by: derTyp on August 08, 2017, 06:09:25 pm
sure (i did a cat instead of tail to get everything):

Code: [Select]
root@OPNsense:~ # cat /etc/ttys
console none                            unknown off secure
#
ttyv0   "/usr/libexec/getty al.Pc"              xterm   on  secure
# Virtual terminals
ttyv1   "/usr/libexec/getty al.Pc"              xterm   on  secure
ttyv2   "/usr/libexec/getty al.Pc"              xterm   on  secure
ttyv3   "/usr/libexec/getty al.Pc"              xterm   on  secure
ttyv4   "/usr/libexec/getty al.Pc"              xterm   on  secure
ttyv5   "/usr/libexec/getty al.Pc"              xterm   on  secure
ttyv6   "/usr/libexec/getty al.Pc"              xterm   on  secure
ttyv7   "/usr/libexec/getty al.Pc"              xterm   on  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 al.115200"  vt100   onifconsole secure
ttyu1   "/usr/libexec/getty al.115200"  vt100   onifconsole secure
ttyu2   "/usr/libexec/getty al.115200"  vt100   onifconsole secure
ttyu3   "/usr/libexec/getty al.115200"  vt100   onifconsole secure
# Dumb console
dcons   "/usr/libexec/getty std.9600"   vt100   off secure

Code: [Select]
root@OPNsense:~ # tail /boot/loader.conf
ng_tty_load="YES"
ng_vjc_load="YES"
ng_vlan_load="YES"

# dynamically generated settings follow
comconsole_speed="115200"
boot_multicons="YES"
boot_serial="YES"
#kern.vty
console="comconsole,vidconsole"