Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Nov 2017 14:07:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 223780] linux_base-c7 does not work with latest 10.4 (FreeBSD 10.4-RELEASE-p3) - "FATAL: kernel too old"
Message-ID:  <bug-223780-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223780

            Bug ID: 223780
           Summary: linux_base-c7 does not work with latest 10.4 (FreeBSD
                    10.4-RELEASE-p3) - "FATAL: kernel too old"
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: jnn@synfin.org

After installing linux_base-c7, mounting the /compat/linux/proc and
/compat/linux/dev/shm mounts, and loading the linux & linux64 modules, all
Linux binaries fail to run with the following error message:

root@wintermute .../linux/usr/bin# /compat/linux/usr/bin/uname
FATAL: kernel too old

This particular error is indicative in Linux that the glibc in use was comp=
iled
with/for a kernel greater than the one currently in use.=20

Here is the status of installed modules, mounts, loaded modules, etc at the
time of the error -

------------------------------------------------------------
------------------------------------------------------------
root@wintermute .../linux/usr/bin # kldstat  | grep linux
 9    3 0xffffffff82064000 7566     linux_common.ko
11    1 0xffffffff82073000 3d0b3    linux.ko
12    1 0xffffffff820b1000 37e1a    linux64.ko

root@wintermute .../linux/usr/bin # mount | grep compat
tmpfs on /usr/compat/linux/dev/shm (tmpfs, local)
linprocfs on /usr/compat/linux/proc (linprocfs, local)

root@wintermute .../linux/usr/bin # pkg query %v linux_base-c7
7.4.1708_2

root@wintermute .../linux/usr/bin # uname -a
FreeBSD wintermute.synfin.org 10.4-RELEASE-p3 FreeBSD 10.4-RELEASE-p3 #0: T=
ue
Nov 14 09:43:55 UTC 2017=20=20=20=20
root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

------------------------------------------------------------
------------------------------------------------------------

The good news is that the latest linux_base-c6 works just fine with FreeBSD
10.4-RELEASE-p3. All the same setup info as documented above, except
linux_base-c7 has been removed and linux_base-c6 has been installed (version
6.9_4). Sample output of a successful command -

root@wintermute .../linux/usr/bin # /compat/linux/bin/uname -a
Linux wintermute.synfin.org 2.6.18 FreeBSD 10.4-RELEASE-p3 #0: Tue Nov 14
09:43:55 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

I suspect that the latest linux_base-c7 has glibc kernel requirement that, =
for
whatever reason, the linux/linux64 modules do not meet.

thanks,

John Newman
jnn@synfin.org

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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