*BSD News Article 75705


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!samba.rahul.net!rahul.net!a2i!olivea!venus.sun.com!wnoc-sfc-news!kogwy!hosokawa
From: hosokawa@mt.cs.keio.ac.jp (HOSOKAWA Tatsumi)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Building Boot Disk
Date: 8 Aug 1996 09:47:04 GMT
Organization: Tokoro Laboratory, Keio University, Yokohama Japan.
Lines: 69
Message-ID: <4ucd2o$8f5@kogwy.cc.keio.ac.jp>
References: <4ttcm2$42k@rs1.dsi.uanl.mx>
NNTP-Posting-Host: remington.mt.cs.keio.ac.jp
Dnas-Posting-Host: leinlein.mt.cs.keio.ac.jp
X-Newsreader: gn + gnspool [Version 1.31 OCT.1,1994 (Unix)]

Hi!  I'm the maintainer of PC-card boot disk and L10N boot disk.

Of course, "make World" can make boot.flp, but it needs too much disk
space (hundreds megabytes of disks) and it takes too long time for
compilation.

I found a "shortcut" method to make boot.flp in less disk space and
less compilation time.

This method is applicable for 2.1.5-RELEASE system (and probably
2.2-SNAP system).  I'm using this method for developping my PC-card
and L10N boot floppies.

In article <4ttcm2$42k@rs1.dsi.uanl.mx>
ardz@magna.bcms.uanl.mx writes:

>> someone know how make boot disk??? i try with /usr/src/release 
>> 
>> make boot.flp
>> 
>> but' some headers files are missing :(((, anyone could help me?
>> i need add SCSII device in boot-jp.flp, Adaptec 27xxx :(((

My method:

1. Make a kernel which has "vn" (vnode filesystem) support, and reboot
   with this kernel.

2. Make a small shell script for convinience (put it as
   /usr/src/release/makefd and do "chmod +x" for it)

---------------------------------------------------------------------
#!/bin/sh
make CHROOTDIR=/usr/chroot RELEASEDIR=/usr/release $*
---------------------------------------------------------------------

3. Make "vi" and "route" manually

	# cd /usr/src/usr.bin
	# make vi
	# cd /usr/src/sbin
	# make route

4. Make phase 1

	# cd /usr/src/release
	# ./makefd release.1

5. Do some ditry hacks :-)

	# cd /usr/release/stage/trees/bin/dev
	# cp /dev/MAKEDEV .
	# sh MAKEDEV all
	# cd /usr/release/stage/trees/bin/usr/mdec
	# (chdir /usr/mdec ; tar cf - . ) | tar xvf -
	# cd /usr/release/stage/trees/bin/etc
	# (chdir /usr/src/etc ; tar cf - . ) | tar xvf -

6. Make boot.flp

	# cd /usr/src/release
	# ./makefd boot.flp

You get your boot.flp at /usr/release/stage/floppies/boot.flp.  Enjoy :-)!

--
          HOSOKAWA, Tatsumi            E-mail: hosokawa@mt.cs.keio.ac.jp
                                               hosokawa@jp.FreeBSD.org
          WWW homepage: http://www.mt.cs.keio.ac.jp/person/hosokawa.html