OPNsense Forum

English Forums => General Discussion => Topic started by: OPNsense4ever on March 23, 2019, 01:44:17 am

Title: Serial Console via SOL
Post by: OPNsense4ever on March 23, 2019, 01:44:17 am
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!
Title: Re: Serial Console via SOL
Post by: OPNsense4ever on July 21, 2021, 11:12:31 pm
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
Title: Re: Serial Console via SOL
Post by: OPNsense4ever on April 29, 2022, 02:08:16 am
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:
Code: [Select]
grep uart /var/run/dmesg.boot
Got:
Code: [Select]
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:

Code: [Select]
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.
Title: Re: Serial Console via SOL
Post by: cookiemonster on May 04, 2022, 10:54:22 pm
Thanks for sharing this, I'm sure it'll be useful.
Title: Re: Serial Console via SOL
Post by: zerwes on May 05, 2022, 05:01:59 am
+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