Sun Apr 19 03:52:16 CEST 2015

Recapulating old {Net,Open}BSD stuff

Much work for properly integrating the OpenBSD ral(4) extensions into NetBSD-6/-7:

  • Read basics about 802.11 and PCI on Wikipedia.

  • Read ral(4) device driver sources (essentially two C files) en detail in order to understand how the device gets initialized and how the interface hooks into the packetfilter.

  • Understood the seperation into PCI frontend and actual device driver.

  • Finally understood the removal of / replacements for the #if NBPFILTER > 0 conditionals between NetBSD-5 and -6; should be able to apply the patches now properly.

  • Checked the evolution of the ral driver across old, current, and upcoming versions of both NetBSD and OpenBSD. (Lots of cvs diff and cvs log.) Looks like I'll have to compile separate patchkits for both NetBSD-6 and -7, even though I can use the latest ral(4) version from OpenBSD in both cases.

Not really related:

I decided to give my PPC-MacMini another spin, booting it into the OpenBSD system I had installed along with the OSX-10.5.8 upgrade four years ago. It took me an hour to figure out the magic incantations required to boot into OpenBSD. So, before I forget them again:

  1. While powering on, keep the 4 keys Option-Command-O-F (that's letters Oh-Eff as in "Open Firmware") pressed until the OK prompt appears.

  2. boot hd:,ofwboot /bsd

This turned out to be OpenBSD version 4.9. It needed an update to its interface configuration for the network I am now using since... three years now. Unfortunately, it has to share name and address with its OSX cousin; my /26 is already fully used again.

(There is another 2G partition reserved, suitable for, say, a NetBSD installation.)


Posted by neitzel | Permanent link | File under: learned, done, marshlabs, bsd