re: unable to cross-compile kernel?
matthew green <[email protected]> Sat, 05 Jul 2025 08:21:11 +1000
| Newsgroups | gmane.os.netbsd.ports.sparc |
|---|---|
| Message-ID | <[email protected]> |
Dave McGuire writes: > > Hi folks, I hope everyone is doing well here. It has been a while. yo. > 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. that error comes from /boot, so it's some EIO coming from either sparc boot or libsa/libkern. > 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 this seems right to me. i dno't have anything useful to say but that what you're doing looks right. i would try GENERIC build, as well as trying the GENERIC.MP binary from the 10.1 release. .mrg.