unix:freebsd:ipmi_sol
Differences
This shows you the differences between two versions of the page.
| — | unix:freebsd:ipmi_sol [2025/03/21 14:41] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Serial Port Console under FreeBSD ====== | ||
| + | |||
| + | First, determine what serial port you want to use. For IPMI Serial over Lan (SOL), it is whatever is designated in the firmware (BIOS or UEFI) as the console. For Xen, it is most like the first serial port (ttyu0, aka com1 for Windoze users). You will also need the port address to use (0x3F8 for the first port, 0x2F8 for second port, do a google search for the others). | ||
| + | |||
| + | The following documentation assumes we are installing for SOL on a bare metal machine, using the second serial port (ttyu1, address 0x2F8). If you are doing this for the first serial port, change those to ttyu0 and 0x3F8. It also assumes our serial speed is set to 57600, though modern hardware will want anything from 9600 to 115200; faster is better. | ||
| + | |||
| + | ===== edit /etc/ttys ===== | ||
| + | Find the line for ttyu1 and modify as follows. This sets the port to respond at 57600, using vt100 protocol and requiring a login. | ||
| + | **Note:** use **3wire** instead of **std** if your machine does not use hardware handshaking (just leave as the default) | ||
| + | |||
| + | < | ||
| + | ttyu1 "/ | ||
| + | </ | ||
| + | |||
| + | ===== Add parameters to boot.config ===== | ||
| + | |||
| + | This tells the kernel to send messages to the serial port //and// the internal console, and sets the speed to 57600 | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | ===== Edit / | ||
| + | Add/edit the following in / | ||
| + | < | ||
| + | # adjust if needed for the speed | ||
| + | comconsole_speed=" | ||
| + | # uncomment one of the following for the port you'll use | ||
| + | # 0x2f8 is the second serial port, 0x3F8 is the first one | ||
| + | # | ||
| + | comconsole_port=" | ||
| + | # allow multiple consoles | ||
| + | boot_multicons=" | ||
| + | # one of them is serial | ||
| + | boot_serial=" | ||
| + | # use these two consoles | ||
| + | console=" | ||
| + | comconsole_port=" | ||
| + | # the 0x10 means it is eligible for console. If you know | ||
| + | # which uart you're using, change the other to 0x00 | ||
| + | hint.uart.0.flags=" | ||
| + | hint.uart.1.flags=" | ||
| + | </ | ||
| + | |||
| + | Hint: change hint.uart.0.flags=" | ||
| + | |||
| + | ==== boot_multicons=" | ||
| + | Boot from multiple consoles (in our case, the serial and the video) | ||
| + | |||
| + | ==== boot_serial=" | ||
| + | Guess what this one means | ||
| + | |||
| + | ==== console=" | ||
| + | Boot from the serial port AND the video console | ||
| + | |||
| + | ==== comconsole_port=" | ||
| + | |||
| + | Sets up to use second serial port, at 0x2F8. use 0x3F8 for the first port, or whatever memory range you are using | ||
| + | |||
| + | ==== hint.uart.0.flags=" | ||
| + | |||
| + | Disable console on first serial port | ||
| + | |||
| + | ==== hint.uart.1.flags=" | ||
| + | |||
| + | Set second serial port (uart.1) as a potential serial console. 0x20 says " | ||
| + | |||
| + | ===== Reboot and view output ==== | ||
| + | |||
| + | You can now reboot and view the output on your SOL connection. If you have issues, you can find them after rebooting with | ||
| + | < | ||
| + | |||
| + | ===== Resources ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[http:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | |||
unix/freebsd/ipmi_sol.1561443100.txt.gz · Last modified: (external edit)
