From owner-freebsd-current Thu Jan 4 4:48:24 2001 From owner-freebsd-current@FreeBSD.ORG Thu Jan 4 04:48:20 2001 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from citadel.cequrux.com (citadel.cequrux.com [192.96.22.18]) by hub.freebsd.org (Postfix) with ESMTP id 0F15D37B402 for ; Thu, 4 Jan 2001 04:48:17 -0800 (PST) Received: (from nobody@localhost) by citadel.cequrux.com (8.8.8/8.6.9) id OAA26733 for ; Thu, 4 Jan 2001 14:48:13 +0200 (SAST) Received: by citadel.cequrux.com via recvmail id 26615; Thu Jan 4 14:47:52 2001 Sender: gram@citadel.cequrux.com Message-ID: <3A5458B0.6FFFB454@cequrux.com> Date: Thu, 04 Jan 2001 13:04:16 +0200 From: Graham Wheeler Organization: Cequrux Technologies X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 3.4-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Manual contribution Content-Type: multipart/mixed; boundary="------------1459E9AAC9540CAF48FC5DC5" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------1459E9AAC9540CAF48FC5DC5 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi all Sometime back I submitted a short manual contribution about the kernel.conf file. I note that this hasn't found its way into the handbook; I'm attaching it to this message in the hope that someone will add it and commit it. regards gram -- Dr Graham Wheeler E-mail: gram@cequrux.com Director, Research and Development WWW: http://www.cequrux.com CEQURUX Technologies Phone: +27(21)423-6065 Firewalls/VPN Specialists Fax: +27(21)424-3656 --------------1459E9AAC9540CAF48FC5DC5 Content-Type: text/plain; charset=us-ascii; name="config.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="config.txt" Configuring An Already Compiled Kernel If you don't want to create a custom kernel, you can configure many hardware settings for none Plug 'n' Play devices without doing so, by putting them in the /boot/kernel.conf file. This file contains a sequence of commands compatible with those that are supported by the kernel configuration editor (which you may have seen when you first installed FreeBSD, and which is also accessible by booting with a `-c' argument). Because the commands in this file are essentially fed to the kernel configuration editor, the last command in the file should be `q' for `quit'. The commands that the kernel configuration editor understands are: di(sable) Disable device en(able) Enable device dr(q) Set DMA channel for device to ei(sa) Set number of EISA slots to probe f(lags) Set the device-specific flags for the device iom(em)
Sets the base address of the I/O memory ios(ize) Sets the size of the I/O memory ir(q) Set the IRQ for the device po(rt) Set the I/O port base address for the device ex Exit (quit) q Quit The commands are shown with their full names, and the optional parts parenthesised. Thus, for example, the "enable" command can be abbreviated to "en". There are other commands, for example to list the devices or reset the CPU, but these only make sense when using the interactive editor, and not when using kernel.conf. , , ,
, are all numeric arguments. They can be either decimal numbers, or hexadecimal numbers (in which case they must be prefixed by "0x"). Here is a simple example, which sets the interrupt and port for device ed0 to be irq 10, port 0x320: irq ed0 10 port ed0 0x320 q --------------1459E9AAC9540CAF48FC5DC5-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message