On Sat, Nov 05, 2011 at 09:50:33AM +0900, Joel Rees wrote: > > > > Did some tests. > > > > Results so far: booting ofwboot and kernel from HFS+ is indeed busted > > > > 4.1 ofwboot + 5.0 bsd.rd DOES boot > > > > 4.2 - 5.0 ofwboot do not work > > > > Loading ofwboot itself does work, only loading the kernel fails. > > > > A (theoretical) workaround is to use the 4.1 ofwboot + 5.0 bsd.rd, > > install and then copy the 5.0 ofwboot to the HFS+ volume. The moment > > an OpenBSD partition exists, ofwboot (itself loaded from HFS+) will > > load the kernel from that OpenBSD partition. That's the reason this > > bug has existed for so long. > > > > Lemme try the ofwboot 4.1 workaround... [some time passes]... > > > > Indeed, that works! The moment an OpenBSD partition exists ofwboot > > (both 4.1 and 5.0) will load a kernel from there. > > > > -Otto > > Thanks for checking, Otto. > > I tried putting both ofwboot and the install kernel on my classic (HFS+) > partition and on my Mac OS X partition (also HFS+), and it doesn't boot in > either case, whether classic: > > boot hd:10,ofwboot /bsd.rd > > or Mac OS X: > > boot hd:11,ofwboot /bsd.rd > > (cbsoleil's machine would appear to be a more recent powerbook, judging from > the Apple partition map.) > > However, I was able to boot the install kernel from the CD, install the > package sets from ftp, and now it boots the installed kernel from the openbsd > volume okay (through ofwboot on the HFS+ partition, of course), as > > boot hd:10,ofwboot /bsd > > I remember booting the install kernel from an HFS volume back in 3.something, > but I don't remember if that was HFS or HFS+. (Wish I had time to try more > combinations.)
cbsoleil's was trying to load the kernel form HFS+, because his cd drive is broken. That's why he got into this situation. In the typical case poeple install from cd and end up with an OpenBSD partition containing the kernel. In that case ofwboot has no problem, it will load the kernel without problem from the OpenBSD partition. Th actual commit the broke loading the kernel from HFS and HFS+ has been identified. It was the commit that started using the standard interactive 2nd stage boot loader. That commit was between 4.1 and 4.2. -Otto