Closed yellowman closed 10 years ago
Any updates on this issue?
amd64 current now sets NKL2_KIMG_ENTRIES to 16 by default. However, nobody ok'ed to make it optionable in the kernel config.
On a side note, there are odd problems with full GENERIC + larger ramdisk (more than 4 or 5MB) on i386 (not affecting amd64). GENERIC + 3.5mb works fine. GENERIC + 5 or 6MB fails with certain drivers (or perhaps that's just a red herring).
Jacob, I don't know what to do with this. Is this a feature request?
Changes to the kernel should be submitted to bugs@openbsd.org.
OpenBSD committed a change that works. I couldn't get anyone to OK the #ifdef but oh well.
The patch at http://www.nmedia.net/flashrd/amd64_include_pmap_h.diff allows NKL2_KIMG_ENTIRES to be redefined. This gives you ability to set option NKL2_KIMG_ENTRIES=16 in the kernel config. On amd64, NKL2_KIMG_ENTRIES appears to be similar to NKPTP_MIN (i386), as it sets an absolute minimum. The i386 port has a user-definable nkptp option which can be set at boot time, amd64 does not. Setting NKL2_KIMG_ENTRIES=16 allows flashrd to boot with a 3.5MB ramdisk attached to a full GENERIC kernel. It would have a similar effect for flashboot users that want to use the amd64 port.