OFW_CONSOLE(4)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’– OFW_CONSOLE(4) β€” Open Firmware console πŸ’–

okay bestie, welcome to OFW_CONSOLE(4), straight out of the powerpc Kernel Interfaces Manual ✨ This one is all about the Open Firmware console, and yes, it’s giving β€œvintage fallback energy” but make it useful πŸ’…


✨ NAME ✨

ofw_console β€” Open Firmware console πŸ–₯️🌸


πŸŽ€ SYNOPSIS πŸŽ€

cpu AIM
options OFWCONS_POLL_HZ=N

options KDB
options DDB
options ALT_BREAK_TO_DEBUGGER

πŸ¦‹ DESCRIPTION πŸ¦‹

So the ofw_console driver gives you a simple text console using the Open Firmware services for input and output πŸ’– It will use the Open Firmware console devices set via the input-device and output-device variables. iykyk.

Real talk though: this driver is deprecated and only provided as a fallback console mechanism if the real console hardware can not be driven by FreeBSD 😭 It’s the backup bestie, not the main character.

If the ofw_console console appears to work too slowly, its responsiveness probably can be improved by including options OFWCONS_POLL_HZ=N πŸ”₯ When omitted, OFWCONS_POLL_HZ defaults to 4. For example, on Sun Ultra 2 a value of 20 or higher works best. Too high values, on the other hand, can cause ofw_console to unnecessarily consume CPU πŸ’€ so don’t go wild with it, bestie.


πŸŽ€ FILES πŸŽ€

  • /dev/console
  • /dev/keyboard β€” terminal input device in case the console input device is the keyboard ⌨️
  • /dev/screen β€” terminal output device in case the console output device is the screen πŸ–₯️
  • /dev/tty[a-z] β€” terminal device in case both the console input and output device is tty[a-z] 🌈

🌸 SEE ALSO 🌸

akbd(4), powermac_nvram(4), vt(4) 🫢


⭐ HISTORY ⭐

The ofw_console driver first appeared in FreeBSD 5.0 πŸ‘‘


πŸ’œ AUTHORS πŸ’œ

The ofw_console driver was written by Benno Rice <benno@FreeBSD.org> πŸŽ€


πŸ™ˆ CAVEATS πŸ™ˆ

Since the Open Firmware will handle BREAK (or Stop-A) sequences before ofw_console, the preferred way to enter ddb(4) when using ofw_console is to include options ALT_BREAK_TO_DEBUGGER in a ddb-enabled kernel, and enter the alternate BREAK sequence (RETURN TILDE CTRL-b) πŸ’…

no cap, that’s the move if you want ddb to actually catch the vibe 😭

πŸ’€ BUGS πŸ’€

The ofw_console driver also doesn’t attach to the hardware resources it actually talks to 🫠


mwah πŸ’‹ β€” that’s the whole page, signed off with source/version Debian, dated January 16, 2021 βœ¨πŸŽ€

πŸ“¦ where this page comes from