Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Aug 2002 22:27:22 GMT
From:      "J.D." <jimd@siu.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   docs/41919: MINI kernel for bootfloppy (Handbook p.342) contains errors
Message-ID:  <200208222227.g7MMRMef012425@ws180239.56kdialup.siu.edu>

next in thread | raw e-mail | index | archive | help

>Number:         41919
>Category:       docs
>Synopsis:       MINI kernel for bootfloppy (Handbook p.342) contains errors
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 22 20:30:02 PDT 2002
>Closed-Date:
>Last-Modified:
>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:
>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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208222227.g7MMRMef012425>