From owner-freebsd-questions@FreeBSD.ORG Sun Feb 7 16:14:16 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B3A71065670 for ; Sun, 7 Feb 2010 16:14:16 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-fx0-f224.google.com (mail-fx0-f224.google.com [209.85.220.224]) by mx1.freebsd.org (Postfix) with ESMTP id E95868FC08 for ; Sun, 7 Feb 2010 16:14:15 +0000 (UTC) Received: by fxm24 with SMTP id 24so1798524fxm.3 for ; Sun, 07 Feb 2010 08:14:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:organization:to:subject :date:user-agent:cc:references:in-reply-to:mime-version:message-id :content-type:content-transfer-encoding; bh=dnNH7UiKtbAvgxtmBMEV1uNYgP3VhpnXtKkeVu3muyE=; b=D88XSxbjaoJx0rc98URf8kWWtJ8ijkcAXCxC5AEcWj0fz6nFCtxIRllabJuVE31V/z ZzgCQbCOIUeusHITOrUWvB860tmNrsZVMgx/ZscAFxr9vowohzFEMgkuC0qqQCEGV4Kg KZyCfdRVx9ueUzkQQyr346Aqc0VPs3/9dT9Yc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:message-id:content-type :content-transfer-encoding; b=iYcGqGolL5FJ7LYFZ2ad6pq+NfPBbnrFB3G1CKCMSexWQWO3bSiqUBx9eV7PFAEQ+J c9Ie3tTA/nqzqNA+LXWPBcqgJExqxFeLI43H9ZSxHz5TpgBitqCcnF/ANn8b0DnVF8vo 2BqTMRmiRwQHZvKlgT+5zQLI9mnDV0eH4ErNw= Received: by 10.223.77.85 with SMTP id f21mr5172845fak.40.1265559254218; Sun, 07 Feb 2010 08:14:14 -0800 (PST) Received: from dragon.dg ([41.216.197.15]) by mx.google.com with ESMTPS id 16sm1478617fxm.4.2010.02.07.08.14.12 (version=SSLv3 cipher=RC4-MD5); Sun, 07 Feb 2010 08:14:13 -0800 (PST) From: David Naylor Organization: Private To: James Colannino Date: Sun, 7 Feb 2010 18:14:21 +0200 User-Agent: KMail/1.13.0 (FreeBSD/8.0-STABLE; KDE/4.3.95; amd64; ; ) References: <4B6E3623.2070109@colannino.org> In-Reply-To: <4B6E3623.2070109@colannino.org> MIME-Version: 1.0 Message-Id: <201002071814.25374.naylor.b.david@gmail.com> Content-Type: multipart/signed; boundary="nextPart2098885.e8g3DqyreY"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Modules and Custom Kernels X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Feb 2010 16:14:16 -0000 --nextPart2098885.e8g3DqyreY Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi James On Sunday 07 February 2010 05:40:19 James Colannino wrote: > Hey everyone. Please bear with me as I'm very new to FreeBSD. I've > recently started building a custom kernel after having had to apply a > patch to enable support for my wireless device (Atheros 9285) in > 8.0-RELEASE, and had a quick question about the process in general. If you are building custom kernels then you are not that new to FreeBSD ;-) > According to the documentation, a line with device will > cause that driver to be compiled into the kernel. If one of those lines > is commented out, does that mean that the driver will still be built, > but that it will be installed as a module? I didn't see anything that > told me that explicitly in the documentation, but that's the feeling I > got from what I read. I just want to make sure that my assumption is > correct, and if not, how to make sure that something gets built as a > module rather than built directly into the kernel. Not all devices have a corresponding module (or some are bundled together i= n a=20 single module). Most of the devices you are interested in do have modules = but=20 the module names are not always the same as the device name (i.e. network=20 devices have a if_ prefixed to the module name). =20 =46or further information have a look at the manual pages for a given devic= e. =20 e.g. `man 4 bge` shows that bge requires devices miibus and bge in the kern= el=20 or can be loaded using `if_bge_load=3D"YES"` in loader.conf(5). This impli= es=20 the module name is if_bge. `man 4 sc` shows that no module is available (b= ut=20 it does have many options that can be specified in the kernel configuration= =20 file). =20 By default all modules are built (even those whose devices are build in the= =20 kernel). This behaviour can be changed. For a list of all the modules=20 available look at /sys/modules and `ls /boot/kernel/*.ko`. =20 > In all, the process looks relatively painless as long as I'm careful not > to make too many changes to the GENERIC config. I normally just copy GENERIC and tweak it but there are better ways than th= is. =20 > Hopefully this isn't a dumb question :) I really like FreeBSD so far, > and think I'm going to enjoy my new experience quite a bit. Not at all. Enjoy :-) Regards, David --nextPart2098885.e8g3DqyreY Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEABECAAYFAktu5uEACgkQUaaFgP9pFrIURACggvKsyV35iIZBEN6N20MFa6Nu dAUAn33TeSjJdrObkVvxPHLs2jo6F/1K =E88a -----END PGP SIGNATURE----- --nextPart2098885.e8g3DqyreY--