Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Feb 2001 14:20:48 +1300
From:      "Dan Langille" <dan@langille.org>
To:        freebsd-hackers@FreeBSD.ORG
Cc:        freebsd-doc@FreeBSD.ORG
Subject:   An example script for creating a bootable floppy
Message-ID:  <200102040101.f1411gR08079@ns1.unixathome.org>

next in thread | raw e-mail | index | archive | help
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-doc" in the body of the message




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