Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Aug 2008 11:20:13 +0400
From:      Chagin Dmitry <dchagin@freebsd.org>
To:        freebsd-emulation@freebsd.org
Subject:   x86_64 linuxulator patches
Message-ID:  <20080810072013.GA15196@dchagin.dialup.corbina.ru>

next in thread | raw e-mail | index | archive | help
Hi, as promised, I place x86_64 linuxulator patches.

here the basic patch:
http://78.107.232.239/linuxulator64-current.patch

here recvmsg && sendmsg patch (not tested with really applications):
http://78.107.232.239/send-recv-msg.patch

here master repository:
git://78.107.232.239/linuxulator

and ports used for testing (and only for testing):
git://78.107.232.239/linux_base-f8
git://78.107.232.239/linux_devel-f8
git://78.107.232.239/linux_kdump-1.6

by default on amd64 builds i386 linuxulator, for build x86_64 use
cd sys/modules/linux
make -D COMPAT_LINUX64

for correct recognition of what linuxulator version is used
added new sysctl compat.linux.platform
for example use in ports Makefile's:

LINUX_PLATFORM!=        /sbin/sysctl -n compat.linux.platform 2>/dev/null

.if ${LINUX_PLATFORM}x == "x"
IGNORE=                 linuxulator is not (kld)loaded
.elif ${LINUX_PLATFORM} == "i386"
LINUX_RPM_ARCH=         i386
.elif ${LINUX_PLATFORM} == "x86_64"
LINUX_RPM_ARCH=         x86_64
SFX=                    64
.else
IGNORE=                 ${LINUX_PLATFORM} is not supported
.endif

I shal glad to remarks, proposals and results of testing.
thnx

-- 
Have fun!
chd



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080810072013.GA15196>