Subject: Re: "exec /sbin/init: error 8" at boot
To: None <feyrer@cs.stevens.edu>
From: Johan A.van Zanten <johan@giantfoo.org>
List: port-sparc64
Date: 10/14/2005 15:39:21
>
> Hubert Feyrer <feyrer@cs.stevens.edu> wrote:
> > You probably managed to leave out the ability to run ELF binaries, or your
> > /sbin/init is messed up. It may be a 32bit binary (did you install
> > sparc(32, not 64) userland?) and you forgot options EXEC_ELF32?
>
Johan A. van Zanten <johan@giantfoo.org> replied:
> So, booted from netbsd.generic:
>
> ganesha:/root # file /sbin/init
> /sbin/init: ELF 64-bit MSB executable, SPARC V9, version 1 (SYSV), for
> NetBSD 2.1, dynamically linked (uses shared libs), not stripped
Gah! Found the problem:
ganesha:/ # file n*
netbsd: ELF 32-bit MSB executable, SPARC32PLUS, V8+ Required, Sun
UltraSPARC1 Extensions Required, version 1 (SYSV), statically linked, not
stripped
netbsd.gdb: ELF 32-bit MSB executable, SPARC32PLUS, V8+ Required, Sun
UltraSPARC1 Extensions Required, version 1 (SYSV), statically linked, not
stripped
netbsd.generic: ELF 64-bit MSB executable, SPARC V9, version 1 (SYSV),
statically linked, not stripped
Somehow, i'm getting a 32-bit kernel out of the following command being
run on an Alpha build server:
sarasvati:/usr/src $ ./build.sh -m sparc64 -u -U -o -T /local/NetBSD/tools\
kernel=LEMONCURRY
Must be a problem in my build environment.
-johan