Port-amd64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: netbsd32 emul in netbsd7



On Tue, 15 Dec 2015, Patrick Welche wrote:

Grabbing a /rescue/ls from NetBSD-5/i386, and running it on -current/amd64
works, but on a recent 7.0_STABLE/amd64 kernel gives

./ls: Exec format error. Binary file not executable.

./ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for NetBSD 5.1, stripped

   12      1 ktrace   EMUL  "netbsd"
   12      1 ktrace   CALL  execve(0x7f7ffffffdbf,0x7f7fffffdbb0,0x7f7fffffdbc0)
   12      1 ktrace   NAMI  "./ls"
   12      1 ktrace   NAMI  "./ls"
   12      1 ktrace   RET   execve -1 errno 8 Exec format error
   12      1 ktrace   CALL  execve(0x7f7ff7510146,0x7f7fffffd680,0x7f7fffffdbc0)
   12      1 ktrace   NAMI  "/bin/sh"
   12      1 ktrace   NAMI  "/libexec/ld.elf_so"
   12      1 sh       EMUL  "netbsd"
   12      1 sh       RET   execve JUSTRETURN
   12      1 sh       CALL  mmap(0,0x8000,3,0x1002,0xffffffff,0,0)
   12      1 sh       RET   mmap 140187598290944/0x7f7ff7ff8000

no mention of NAMI "/emul/netbsd32"...

modstat suggests netbsd32 emulation is available:

compat_netbsd32  exec       builtin    -1    0                -        compat,compat_sysv,nfsserver,mqueue,exec_elf32


Any thoughts on where to look?

The "-1" in the refcount field indicates that the compat_netbsd32 module
failed to initialize.

you could turn on verbose module messages with

	sysctl -w kern.module.verbose=1

and then re-run the module initialization with

	modload -f compat_netbsd32

Grab _all_ the kernel messages from the console...  :)  And you might
also provide complete output from modstat(8) so we can trace any
issues with dependencies ("required" modules).




+------------------+--------------------------+------------------------+
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:      |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com   |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org |
+------------------+--------------------------+------------------------+


Home | Main Index | Thread Index | Old Index