unable to cross-compile kernel?

Dave McGuire <[email protected]> Fri, 4 Jul 2025 17:37:40 -0400
Newsgroups gmane.os.netbsd.ports.sparc
Message-ID <[email protected]>
   Hi folks, I hope everyone is doing well here.  It has been a while.

   I've cross-compiled a sparc GENERIC.MP kernel on an amd64 system, 
transferred it over to the target system (SPARCstation-10, 2x SM41) and 
it fails to boot.  The bootstrap says "Cannot load netbsd: error=5" and 
prompts me for a boot device.

   The build machine is a fresh-off-the-ISO 10.1 amd64 system; I 
installed the 10.1 source sets and ran what I believe to be is the 
standard process for cross-compiling a kernel:

cd /usr/src
./build.sh -O /usr/obj-sparc -m sparc tools
./build.sh -O /usr/obj-sparc -m sparc kernel=GENERIC.MP

   The build completed without error, as far as I'm aware.  Errno 5 is 
EIO; before I go digging through the sources is that the error that's 
being printed by the bootstrap?  The disk is fine; I made a few copies 
of the file (to use different blocks) and the behavior is the same.

   I've not yet built a GENERIC kernel, but I can try that tomorrow.

   The machine runs the off-the-ISO GENERIC kernel just fine, and it 
also runs (via another disk) SunOS4 without difficulty.

   So I guess my first question is, should this be working?  Is my build 
process above correct?  Does anyone have any advice?

   Problems or not, it's nice to be running this again.  It had been far 
too long.

           Thanks,
           -Dave

-- 
Dave McGuire, AK4HZ
New Kensington, PA