Serial Console via SOL

Started by OPNsense4ever, March 23, 2019, 01:44:17 AM

Previous topic - Next topic
I'm trying to set up the serial console to dump out to the SOL interface so I can access it via IPMI. How do I specify which serial port to use in the OPNsense interface? So far I can get the bootloader and kernel messages, but then everything goes away on the serial connection. I have a SMC X9SCi-LN4F... Thanks in advance for any tips!

Just updating here. I can use screen on the OPNsense OS to connect to the serial port, but there is still nothing from the OS trying to us it and no console. I used:

screen /dev/ttyu2 115200

Finally had time to look at this more. Not sure anyone ever reads this, but maybe it will help someone. After enabling the console support in the GUI I needed to tweak a couple of things.

From the command line I ran:
grep uart /var/run/dmesg.boot

Got:
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
uart2: <16550 or compatible> port 0x3e8-0x3ef irq 10 on acpi0


Since I knew that I wanted /dev/ttyu2 I assumed I needed 0x3e8 as the address. I added:

comconsole_port="0x3e8"

To /boot/loader.conf.local. Rebooted and it finally works. This would be similar for any BMC wether it is SMC, Dell's iDRAC or HPE's iLO.

Be really neat to have all of this in the GUI instead.

Thanks for sharing this, I'm sure it'll be useful.

+1 for diving into this and sharing.I have a issue open for enabling SOL with IPMI on a supermicro board ...Just noted your hints there (hope to find some time to try them out).Thx