<118>sysctl: unknown oid 'sysctl compat.linux.osrelease' at line 11: No such file or directory
Anton Shterenlikht
mexas at bris.ac.uk
Thu Mar 12 13:01:57 UTC 2015
>From mexas Thu Mar 12 12:49:17 2015
>To: david at catwhisker.org, mexas at bris.ac.uk
>Subject: Re: <118>sysctl: unknown oid 'sysctl compat.linux.osrelease' at line 11: No such file or directory
>Cc: freebsd-ports at freebsd.org
>Reply-To: mexas at bris.ac.uk
>In-Reply-To: <20150312122324.GL1225 at albert.catwhisker.org>
>
>>From david at catwhisker.org Thu Mar 12 12:44:43 2015
>>
>>What does output of "kldstat | grep linux" look like?
>>
>>Expected:
>>
>>g1-251(11.0-C)[1] kldstat |grep linux
>> 2 3 0xc17a4000 74c90 linux.ko
>>g1-251(11.0-C)[2]=20
>>
>>
>>But if it's not loaded, I suspect that might be a valid reason for
>>the OID to fail to be recognized
>
># kldstat
>Id Refs Address Size Name
> 1 9 0xffffffff80200000 e33630 kernel
> 2 1 0xffffffff81034000 e10350 nvidia.ko
> 3 1 0xffffffff81e45000 2ba58 bwn_v4_ucode.ko
># kldload linux
>kldload: can't load linux: module already loaded or in kernel
>#
>
>I have in the kernel config file:
>
>options COMPAT_43
>options COMPAT_LINUX32
>options LINPROCFS
>options LINSYSFS
>
>Perhaps I also need to add
> options COMPAT_LINUX ?
This gives:
# make buildkernel KERNCONF=MINKY
--------------------------------------------------------------
>>> Kernel build for MINKY started on Thu Mar 12 12:52:06 GMT 2015
--------------------------------------------------------------
===> MINKY
mkdir -p /usr/obj/usr/src/sys
--------------------------------------------------------------
>>> stage 1: configuring the kernel
--------------------------------------------------------------
cd /usr/src/sys/amd64/conf; PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/legacy/bin:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin config -d /usr/obj/usr/src/sys/MINKY -I '/usr/src/sys/amd64/conf' '/usr/src/sys/amd64/conf/MINKY'
/usr/src/sys/amd64/conf/MINKY: unknown option "COMPAT_LINUX"
*** Error code 1
This option is mentioned in NOTES:
# grep COMPAT_LINUX /usr/src/sys/amd64/conf/NOTES
# To enable Linuxulator support, one must also include COMPAT_LINUX in the
#XXX#options COMPAT_LINUX
options COMPAT_LINUX32
# Enable the linux-like proc filesystem support (requires COMPAT_LINUX32
#Enable the linux-like sys filesystem support (requires COMPAT_LINUX32
#
Or is this no longer supported?
Do I need to build linux modules, rather
than use kernel config options?
Thanks
Anton
More information about the freebsd-ports
mailing list