From owner-freebsd-questions Thu Feb 11 09:23:50 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA15402 for freebsd-questions-outgoing; Thu, 11 Feb 1999 09:23:50 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA15390 for ; Thu, 11 Feb 1999 09:23:47 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.8.8/8.8.8) id MAA19154 for freebsd-questions@FreeBSD.ORG; Thu, 11 Feb 1999 12:25:21 -0500 (EST) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199902111725.MAA19154@cc942873-a.ewndsr1.nj.home.com> Subject: Removing Networking from kernel To: freebsd-questions@FreeBSD.ORG (FreeBSD Questions) Date: Thu, 11 Feb 1999 12:25:21 -0500 (EST) Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I was building a mini-kernel to put on a floppy for recovering from HD disasters (as outlined in handbook139.html). It's a struggle to fit everything on to the floppy, so I was paring down the kernel to the bare bones. I thought getting rid of all networking would be a way to do this. However, I get the following error during the 'make' of the kernel, . . . loading kernel machdep.o: Undefined symbol `_netisr_set' referenced from text segment *** Error code 1 Stop. [130:/sys/compile/MINI2_PC252]# If I put, option INET pseudo-device loop Back into the config, the kernel compiles. Is it possible to compile a kernel without netowrking? Would it be of any use to try (i.e. would the kernel be functional and significantly smaller than without)? Here is the complete config file that does not compile and uname, [133:/sys/i386/conf] uname -a FreeBSD pc252.scitec.com 2.2.7-RELEASE FreeBSD 2.2.7-RELEASE #0: Thu Feb 11 02:05:23 EST 1999 cjc@pc252.mydomain.org:/usr/src/sys/compile/PC252 i386 [134:/sys/i386/conf] more MINI2_PC252 # # Mini-Kernel for PC252 # # For more information read the handbook part System Administration -> # Configuring the FreeBSD Kernel -> The Configuration File. # The handbook is available in /usr/share/doc/handbook or online as # latest version from the FreeBSD World Wide Web server # # # An exhaustive list of options and more detailed explanations of the # device lines is present in the ./LINT configuration file. If you are # in doubt as to the purpose or necessity of a line, check first in LINT. # # Last modified: 2/11/99 machine "i386" cpu "I686_CPU" ident "MINI_PC252" maxusers 5 # options INET #InterNETworking options FFS #Berkeley Fast Filesystem options "CD9660" #ISO 9660 Filesystem options SCSI_DELAY=15 #Be pessimistic about Joe SCSI device options NCONS=2 # config kernel root on fd0 controller isa0 controller eisa0 controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr disk fd0 at fdc0 drive 0 options "CMD640" # work around CMD640 chip deficiency controller wdc0 at isa? port "IO_WD1" bio irq 14 vector wdintr disk wd0 at wdc0 drive 0 controller wdc1 at isa? port "IO_WD2" bio irq 15 vector wdintr options ATAPI #Enable ATAPI support for IDE bus options ATAPI_STATIC #Don't do it as an LKM device wcd0 #IDE CD-ROM # A single entry for any of these controllers (ncr, ahb, ahc, amd) is # sufficient for any number of installed devices. controller scbus0 controller ahc0 device sd0 # syscons is the default console driver, resembling an SCO console device sc0 at isa? port "IO_KBD" tty irq 1 vector scintr # Mandatory, don't remove device npx0 at isa? port "IO_NPX" flags 0x1 irq 13 vector npxintr # pseudo-device loop pseudo-device gzip # Exec gzipped a.out's If you read this far, one other question/gripe about a disaster floppy, why do pwd.db and spwd.db need to take up 41 kb apiece when they only have information for one user in them?! 82 kb is a lot on a 1359 kb filesystem. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message