From owner-freebsd-ports@FreeBSD.ORG Thu Mar 12 17:55:28 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7B057246 for ; Thu, 12 Mar 2015 17:55:28 +0000 (UTC) Received: from udns.ultimatedns.net (unknown [IPv6:2602:d1:b4d6:e600:4261:86ff:fef6:aa2a]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4E6F0FAA for ; Thu, 12 Mar 2015 17:55:27 +0000 (UTC) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id t2CHuWVM037689; Thu, 12 Mar 2015 10:56:33 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) To: david@catwhisker.org, In-Reply-To: <201503121520.t2CFKP1N055036@mech-as221.men.bris.ac.uk> References: <201503121520.t2CFKP1N055036@mech-as221.men.bris.ac.uk> From: "Chris H" Subject: Re: <118>sysctl: unknown oid 'sysctl compat.linux.osrelease' at line 11: No such file or directory Date: Thu, 12 Mar 2015 10:56:34 -0700 Content-Type: text/plain; charset=UTF-8; format=fixed MIME-Version: 1.0 Message-id: <0bde57fff39bbb2bdc6509edbe7724b4@ultimatedns.net> Content-Transfer-Encoding: 8bit Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Mar 2015 17:55:28 -0000 On Thu, 12 Mar 2015 08:20:27 -0700 (PDT) Anton Shterenlikht wrote > >From bsd-lists@bsdforge.com Thu Mar 12 15:16:15 2015 > >> >From david@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 ? > >By virtue of the fact that kldstat(8) returns nvidia. You > >can be assured that linux has already been loaded, or > >rather, that linux is already available. Which suggests to > >me that it is already part of your kernel. dmesg(8) > >(/var.run/dmesg.boot) might well reveal that, for you. > >Perhaps even in /var/log/messages. > > $ grep -i linux /var/run/dmesg.boot > $ > > What does this tell me? [in your case] apparently, nothing. I have chosen not to include linux in my kernels, for convenience reasons. Should I need to update linux, or something goes wrong using the linux ABI. I can simply unload it, and deal with it accordingly. FWIW I know from experience that the nvidia blob will refuse to load, if the linux ABI is not present/available. So it's safe to assume, that in your case , the linux ABI 1) is available 2) must have come from within your kernel I'm sure it's possible to query various aspects of linux available. maybe by/through /proc or /compat/linux/proc and surely by other means. But I have made no effort to do so in the past. So I couldn't be of much help, there. All the best. > > Thanks > > Anton --Chris --