Port-amiga archive

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

should COMPAT_LINUX work?



Hi NetBSD/amiga,

I'm playing around with NetBSD 7.1 on my Amiga1200/Blizzard1260 setup. It
mostly works fine. I'm trying to push my luck with getting Linux 68k
binaries to run on this box, which I would even need for some of my
projects.

Built a kernel with COMPAT_LINUX enabled. It seems to show up in sysctl:

bsdmiga# sysctl -a | grep emul
emul.linux.kern.ostype = Linux
emul.linux.kern.osrelease = 3.11.6
emul.linux.kern.osversion = #1 SMP PREEMPT Thu Oct 24 16:23:02 UTC 2013

However, when I try to run ldconfig, which is the first binary to run, I
get ENOEXEC from execve().

bsdmiga# file /emul/linux/sbin/ldconfig
/emul/linux/sbin/ldconfig: ELF 32-bit MSB executable, Motorola m68k,
68020, version 1 (SYSV), statically linked, for GNU/Linux 3.2.0,
BuildID[sha1]=2e0e2743f62294654734956c312f567dd811ec98, stripped

But:
 13522      1 ktruss   execve("/emul/linux/sbin/ldconfig", 0x1dffed00,
0x1dffed08) Err#8 ENOEXEC

Or:
bsdmiga# /emul/linux/sbin/ldconfig
-sh: Cannot execute ELF binary /emul/linux/sbin/ldconfig

The binaries are off a working and quite recent Debian Linux/m68k system,
they known to work.

I found an ancient (like, from 2002) PR regarding this. I guess this is
still the state, and there's no chance of this to work?

https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=15334

Thanks,
--
Charlie


Home | Main Index | Thread Index | Old Index