From owner-freebsd-hackers Wed Jul 22 04:08:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA07547 for freebsd-hackers-outgoing; Wed, 22 Jul 1998 04:08:38 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from ns1.yes.no (ns1.yes.no [195.119.24.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA07490 for ; Wed, 22 Jul 1998 04:08:22 -0700 (PDT) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.8.7/8.8.7) with ESMTP id LAA17486; Wed, 22 Jul 1998 11:07:45 GMT Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id NAA29911; Wed, 22 Jul 1998 13:07:45 +0200 (MET DST) Message-ID: <19980722130745.43611@follo.net> Date: Wed, 22 Jul 1998 13:07:45 +0200 From: Eivind Eklund To: Graham Wheeler , hackers@FreeBSD.ORG Subject: Re: Building a kernel with disabled devices References: <199807220959.LAA05052@cdsec.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i In-Reply-To: <199807220959.LAA05052@cdsec.com>; from Graham Wheeler on Wed, Jul 22, 1998 at 11:59:31AM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Jul 22, 1998 at 11:59:31AM +0200, Graham Wheeler wrote: > Another question on kernel building - is there a way that a kernel can be > built in which all the network devices are present but disabled, so that > on the first boot with that kernel none of them are probed? Yes, I know > that I could build a kernel, boot with -c and disable the devices, and > the resulting kernel would be what I want, but I would like to be able > to do this without having to boot the kernel, so that I can have a > Makefile that will build several kernels, each of which will have the > NIC drivers disabled, without having to go through multiple reboots > each time to do the disabling. eivind(bitbox)--% grep disable /sys/i386/conf/GENERIC device apm0 at isa? disable flags 0x31 # Advanced Power Management device sio2 at isa? disable port "IO_COM3" tty irq 5 vector siointr device sio3 at isa? disable port "IO_COM4" tty irq 9 vector siointr eivind(bitbox)--% 'nuf said? Eivind. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message