From jimd@ws180239.56kdialup.siu.edu Thu Aug 22 20:22:51 2002 Return-Path: Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2DFCC37B400 for ; Thu, 22 Aug 2002 20:22:51 -0700 (PDT) Received: from ws180239.56kdialup.siu.edu (ws180239.56kdialup.siu.edu [131.230.180.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id F203443E65 for ; Thu, 22 Aug 2002 20:22:48 -0700 (PDT) (envelope-from jimd@ws180239.56kdialup.siu.edu) Received: from ws180239.56kdialup.siu.edu (localhost [127.0.0.1]) by ws180239.56kdialup.siu.edu (8.12.3/8.12.3) with ESMTP id g7MMROGe012426 for ; Thu, 22 Aug 2002 22:27:24 GMT Received: (from jimd@localhost) by ws180239.56kdialup.siu.edu (8.12.3/8.12.3/Submit) id g7MMRMef012425; Thu, 22 Aug 2002 22:27:22 GMT Message-Id: <200208222227.g7MMRMef012425@ws180239.56kdialup.siu.edu> Date: Thu, 22 Aug 2002 22:27:22 GMT From: "J.D." Reply-To: "J.D." To: FreeBSD-gnats-submit@freebsd.org Cc: Subject: MINI kernel for bootfloppy (Handbook p.342) contains errors X-Send-Pr-Version: 3.113 X-GNATS-Notify: >Number: 41919 >Category: docs >Synopsis: MINI kernel for bootfloppy (Handbook p.342) contains errors >Confidential: no >Severity: non-critical >Priority: low >Responsible: blackend >State: closed >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 22 20:30:02 PDT 2002 >Closed-Date: Sat Aug 21 20:50:51 UTC 2010 >Last-Modified: Sat Aug 21 20:50:51 UTC 2010 >Originator: J.D. >Release: FreeBSD 4.6-RELEASE i386 >Organization: >Environment: System: FreeBSD freebsd2.localnet10 4.6-RELEASE FreeBSD 4.6-RELEASE #3: Sat Jul 20 04:01:32 CDT 2002 jimd@freebsd2.localnet10:/usr/src/sys/compile/XSYSTEM i386 >Description: The MINI kernel suggested for creating a boot floppy is not compatible with FreeBSD-4.6 (and possibly earlier releases). The kernel source as listed in the Handbook won't configure or compile. >How-To-Repeat: Attempt to configure and/or compile MINI kernel as described. >Fix: Configuration errors have been corrected in modified sample kernel included. Compilation error has NOT been corrected. >Release-Note: >Audit-Trail: Responsible-Changed-From-To: freebsd-doc->blackend Responsible-Changed-By: blackend Responsible-Changed-When: Thu Jul 17 10:18:04 PDT 2003 Responsible-Changed-Why: I will work on this. http://www.freebsd.org/cgi/query-pr.cgi?pr=41919 State-Changed-From-To: open->closed State-Changed-By: blackend State-Changed-When: Sat Aug 21 20:50:07 UTC 2010 State-Changed-Why: I've updated this section to use the livefs CD instead of the fixit floppy. Thanks for the PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=41919 >Unformatted: >Configure and compile errors: FreeBSD 4.6-RELEASE + MINI kernel from "The FreeBSD HANDBOOK, 2nd edition", May, 2002, page 342. config MINI: config: line 11: root/dump/swap specifications obsolete config: line 14: syntax error config: line 18: syntax error config: line 19: syntax error MINI:9: unknown option "NCONS" make depend: ../../cam/scsi/scsi_all.h:52: #error "SCSI_DELAY is in milliseconds, not seconds ! Please use a larger value" make: cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -W missing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -an si -nostdinc -I- -I. -I../.. -I../../../include -I../../contrib/ipfilter -D_KE RNEL -include opt_global.h -elf -mpreferred-stack-boundary=2 ../../kern/kern_s ig.c ../../kern/kern_sig.c:360: warning: function declaration isn't a prototype ../../kern/kern_sig.c: In function `osigaction': ../../kern/kern_sig.c:368: dereferencing pointer to incomplete type ../../kern/kern_sig.c:368: dereferencing pointer to incomplete type ../../kern/kern_sig.c:370: dereferencing pointer to incomplete type ../../kern/kern_sig.c:371: dereferencing pointer to incomplete type ../../kern/kern_sig.c:373: dereferencing pointer to incomplete type ../../kern/kern_sig.c:380: dereferencing pointer to incomplete type ../../kern/kern_sig.c:385: dereferencing pointer to incomplete type ../../kern/kern_sig.c: At top level: ../../kern/kern_sig.c:534: warning: function declaration isn't a prototype ../../kern/kern_sig.c: In function `osigprocmask': ../../kern/kern_sig.c:540: dereferencing pointer to incomplete type ../../kern/kern_sig.c:541: dereferencing pointer to incomplete type ../../kern/kern_sig.c: At top level: ../../kern/kern_sig.c:569: warning: function declaration isn't a prototype ../../kern/kern_sig.c:723: warning: function declaration isn't a prototype ../../kern/kern_sig.c: In function `osigsuspend': ../../kern/kern_sig.c:731: dereferencing pointer to incomplete type *** Error code 1 Stop in /usr/src/sys/compile/MINI. >Modified MINI kernel source: machine "i386" cpu "I486_CPU" ident MINI maxusers 5 options INET options FFS options FAT_CURSOR options SCSI_DELAY=5000 options MAXCONS=2 options USERCONFIG #config kernel root on da0 swap on da0 and da1 dumps on da0 device isa0 device pci0 device fdc0 at isa? port "IO_FD1" irq 6 drq 2 device fd0 at fdc0 drive 0 device ncr0 device scbus0 device sc0 at isa? port "IO_KBD" flags 0x100 device npx0 at isa? port "IO_NPX" irq 13 device da0 device da1 device da2 device sa0 pseudo-device loop pseudo-device gzip