<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0">
<channel>
<title>Fun with ones and zeros - openbsd</title>
<description><![CDATA[Barry's notes on computer software and hardware]]></description>
<link>/blog/tags/openbsd</link>
<lastBuildDate>Fri, 17 Apr 2026 13:50:16 -0700</lastBuildDate>
<item>
<title>iPXE on OpenBSD</title>
<link>/blog/entries/ipxe-openbsd</link>
<pubDate>Sat, 01 Oct 2011 17:46:00 -0700</pubDate>
<author>bp@barryp.org (Barry Pederson)</author>
<description><![CDATA[<p>I got a chance to try <a href="/blog/entries/enhanced-pxe-booting-ipxe/">Enhanced PXE booting with iPXE</a> on an OpenBSD box and found a couple things that <em>don't</em> work...</p>
<p>Firstly the stock DHCP daemon does not support <code>if</code> statements in the configuration, so this bit to keep iPXE from being told to load iPXE (a loop) didn't work</p>
<pre><code>if exists user-class and option user-class = "iPXE" {
    filename "http://10.0.0.1/pxelinux.0";
    } 
else {
    filename "undionly.kpxe";
    }</code></pre>
<p>To get it to work I had to follow the alternate advice on the <a href="http://ipxe.org/howto/chainloading">chainloading</a> documentation about <strong>Breaking the loop with an embedded script</strong>.  </p>
<p>However, recompiling <code>udnionly.kpxe</code> on OpenBSD 4.9 failed, with the error:</p>
<pre><code>net/fcels.c: In function 'fc_els_prli_detect':
net/fcels.c:1108: internal compiler error: Segmentation fault: 11
Please submit a full bug report,
with preprocessed source if appropriate.
See &lt;URL:http://gcc.gnu.org/bugs.html&gt; for instructions.
gmake: *** [bin/fcels.o] Error 1</code></pre>
<p>(this was GCC 4.2.1).  FreeBSD 8.2 also has the same version of GCC and comes up with the same error.</p>
<p>I ended up using an Ubuntu 10.04.3 box, which I believe was GCC 4.4.x, and that worked fine.</p>]]></description>
</item>
<item>
<title>FreeBSD, OpenBSD, and 2007 Daylight Savings Time</title>
<link>/blog/entries/freebsd-openbsd-and-2007-daylight-savings-time</link>
<pubDate>Fri, 02 Mar 2007 11:37:41 -0800</pubDate>
<author>bp@barryp.org (Barry Pederson)</author>
<description><![CDATA[
<p>Just a followup to my <a href="/blog/entries/2007-daylight-savings-time-changes-and-freebsd/">earlier post</a> on updating FreeBSD to handle the changes in Daylight Savings Time starting in 2007....
</p>
<p>There are a couple mentions  <a href="http://docs.freebsd.org/cgi/getmsg.cgi?fetch=232015+0+current/freebsd-stable">[1]</a>, <a href="http://docs.freebsd.org/cgi/getmsg.cgi?fetch=243710+0+current/freebsd-stable">[2]</a> on the freebsd-stable mailing list that the <code>/etc/localtime</code> file is binary compatible across various versions of FreeBSD.  <br />
</p>
<p>This means you only have to get one good copy of <code>/etc/localtime</code> for your timezone, either by pulling from a FreeBSD 6.2 or higher machine, or installing the <code>misc/zoneinfo</code> port on one older machine and run <code>tzsetup</code>.  Once you have that good version, you can copy it around to your other FreeBSD boxes, regardless of what version they're running.   <br />
</p>
<p>This seems to also work between FreeBSD and OpenBSD (and perhaps Net and Dragonfly).   I had a single OpenBSD 3.7 machine I wanted to update, and it seems to work OK to use a <code>/etc/localtime</code> pulled from a FreeBSD box.   On OpenBSD (3.7 at least), <code>/etc/localtime</code> was a symlink to a file in <code>/usr/share/zoneinfo/</code>.  I just removed the symlink and made a new one pointing to a new timezone file I stuck somewhere on the disk.   Checking for the correct DST dates in OpenBSD seems to be the same as with FreeBSD: 
</p>
<pre><code>zdump -v /etc/localtime | grep 2007
</code></pre><p>Look for March 11th as the start date.
</p>


]]></description>
</item>
</channel>
</rss>