From owner-freebsd-hackers Sat Feb 3 17:21:36 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ns1.unixathome.org (ns1.unixathome.org [203.79.82.27]) by hub.freebsd.org (Postfix) with ESMTP id 2EB3C37B699; Sat, 3 Feb 2001 17:20:51 -0800 (PST) Received: from wocker (wocker.int.nz.freebsd.org [192.168.0.99]) by ns1.unixathome.org (8.11.1/8.11.1) with ESMTP id f1411gR08079; Sun, 4 Feb 2001 14:01:42 +1300 (NZDT) (envelope-from dan@langille.org) Message-Id: <200102040101.f1411gR08079@ns1.unixathome.org> From: "Dan Langille" Organization: novice in training To: freebsd-hackers@FreeBSD.ORG Date: Sun, 4 Feb 2001 14:20:48 +1300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: An example script for creating a bootable floppy Reply-To: dan@langille.org Cc: freebsd-doc@FreeBSD.ORG X-mailer: Pegasus Mail for Win32 (v3.12c) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At http://www.freebsd.org/handbook/backup-programs.html, there is a script for creating a bootable floppy. Part of this script is the MINI kernel. The example is out of date and doesn't work under 4.2. I've included my amended mini-kernel when trying to convert it to 4.2- stable. But it fails to compile (the error is at the end of this message). Given the increase in kernel size since this document was created, is it still possible to create a single floppy kernel + tools which is bootable? If so, could someone please advise me on how to correct the error below. If not, I'll submit a patch removing this section from the handbook. thanks. # # MINI -- A kernel to get FreeBSD on onto a disk. # machine "i386" cpu "I486_CPU" ident MINI maxusers5 options INET# needed for _tcp _icmpstat _ipstat #_udpstat _tcpstat _udb options FFS #Berkeley Fast File System options FAT_CURSOR #block cursor in syscons or pccons options SCSI_DELAY=1500 #Be pessimistic about Joe SCSI device options MAXCONS=2 # number of virtual consoles options USERCONFIG #Allow user configuration with -c XXX #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? flags 0x100 device npx0 at nexus? port IO_NPX irq 13 device da0 device da1 device da2 device sa0 pseudo-device loop# required by INET pseudo-device gzip# Exec gzipped a.out' cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I../.. -I../../../include -D_KERNEL -include opt_global.h -elf -mpreferred-stack-boundary=2 ../../kern/kern_sig.c ../../kern/kern_sig.c:359: warning: function declaration isn't a prototype ../../kern/kern_sig.c: In function `osigaction': ../../kern/kern_sig.c:367: dereferencing pointer to incomplete type ../../kern/kern_sig.c:367: dereferencing pointer to incomplete type ../../kern/kern_sig.c:369: dereferencing pointer to incomplete type ../../kern/kern_sig.c:370: dereferencing pointer to incomplete type ../../kern/kern_sig.c:372: dereferencing pointer to incomplete type ../../kern/kern_sig.c:379: dereferencing pointer to incomplete type ../../kern/kern_sig.c:384: dereferencing pointer to incomplete type ../../kern/kern_sig.c: At top level: ../../kern/kern_sig.c:532: warning: function declaration isn't a prototype ../../kern/kern_sig.c: In function `osigprocmask': ../../kern/kern_sig.c:538: dereferencing pointer to incomplete type ../../kern/kern_sig.c:539: dereferencing pointer to incomplete type ../../kern/kern_sig.c: At top level: ../../kern/kern_sig.c:567: warning: function declaration isn't a prototype ../../kern/kern_sig.c:721: warning: function declaration isn't a prototype ../../kern/kern_sig.c: In function `osigsuspend': ../../kern/kern_sig.c:729: dereferencing pointer to incomplete type *** Error code 1 -- Dan Langille pgpkey - finger dan@unixathome.org | http://unixathome.org/finger.php To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message