From owner-freebsd-questions@FreeBSD.ORG Sat Aug 30 06:45:13 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6C016ED5 for ; Sat, 30 Aug 2014 06:45:13 +0000 (UTC) Received: from mail-wi0-x233.google.com (mail-wi0-x233.google.com [IPv6:2a00:1450:400c:c05::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 03B1E139C for ; Sat, 30 Aug 2014 06:45:12 +0000 (UTC) Received: by mail-wi0-f179.google.com with SMTP id q5so3532394wiv.12 for ; Fri, 29 Aug 2014 23:45:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=WHs3fW+xCxbDYnisVjFWiPj9s4Sl1AAUYbq9Kupr3ek=; b=NMlowMeTvIkYE/fWn5bfwGBLbE2QYa8vk+TYY75cKLfDxzncs089HUqu608FphVck6 vvPKSfs6yg7hmrT9T5MBs09geoR7mZamQqddhSTpM5CIBTNoooOWoNwqHZOGpKU7QEe+ R8qT43iG+qXKokXT+544o6bMHlvRrkCd2b4hLTW9JeFddyeBaH/Og5c6rO+d3+0WBNvF SsCNA2zMcLFqL0U5kodefIyCWneuLjZusn4vHoWHCHUecXGJo28o8lqhiK5DuzxW0ar7 8zQgEwapFqyY9Bc8bwLAKKY4JscK31ewlz6hIH+qxKZLJnIqDvLEH7CJcVvGQuNhwzTa WKSw== X-Received: by 10.180.205.168 with SMTP id lh8mr5781185wic.67.1409381111260; Fri, 29 Aug 2014 23:45:11 -0700 (PDT) Received: from kontrol.kode5.net (host81-157-206-146.range81-157.btcentralplus.com. [81.157.206.146]) by mx.google.com with ESMTPSA id fy1sm2969143wic.6.2014.08.29.23.45.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Aug 2014 23:45:10 -0700 (PDT) Message-ID: <540172F5.4020707@gmail.com> Date: Sat, 30 Aug 2014 07:45:09 +0100 From: Jamie Griffin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: FreeBSD Questions Subject: Loading kernel modules on startup Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Aug 2014 06:45:13 -0000 I'm just wondering about the correct way to load kernel modules; namely, specifying them in /boot/loader.conf or /etc/rc.conf. For example; loading linux emulation layer, kld_list can be specified in rc.conf(5) using linsysfs, linprocfs & linux. Also, linux_enable can be used. What's the difference? Then, there is kld_list=kldi915 for the vt console driver, and also kern.vty=vt and hw.vga.textmode=1 in loader.conf for the same module. Incidentally, the vt driver did not work properly for me when I used the latter in loader.conf and I had to use the kld_list line in rc.conf(5). What is the 'right' method for kernel module loading and is it just easier to compile them into the kernel going forward?