Commit graph

47 commits

Author SHA1 Message Date
Thomas Veerman
7f99f3a293 Rename tools to releasetools
This is in preparation of NetBSD's tools directory to build tools
for cross compilation.
2012-06-18 10:53:37 +00:00
Ben Gras
cd47780252 only elf/multiboot images 2012-05-31 00:58:44 +02:00
Arun Thomas
74caf0e21f mkboot: ensure image target dir is cleaned up 2012-02-16 23:08:22 +01:00
Ben Gras
bb364f9cc8 simplify chrootmake.sh
. just use make world
2012-02-15 01:19:12 +01:00
Ben Gras
2fe8fb192f Full switch to clang/ELF. Drop ack. Simplify.
There is important information about booting non-ack images in
docs/UPDATING. ack/aout-format images can't be built any more, and
booting clang/ELF-format ones is a little different. Updating to the
new boot monitor is recommended.

Changes in this commit:

	. drop boot monitor -> allowing dropping ack support
	. facility to copy ELF boot files to /boot so that old boot monitor
	  can still boot fairly easily, see UPDATING
	. no more ack-format libraries -> single-case libraries
	. some cleanup of OBJECT_FMT, COMPILER_TYPE, etc cases
	. drop several ack toolchain commands, but not all support
	  commands (e.g. aal is gone but acksize is not yet).
	. a few libc files moved to netbsd libc dir
	. new /bin/date as minix date used code in libc/
	. test compile fix
	. harmonize includes
	. /usr/lib is no longer special: without ack, /usr/lib plays no
	  kind of special bootstrapping role any more and bootstrapping
	  is done exclusively through packages, so releases depend even
	  less on the state of the machine making them now.
	. rename nbsd_lib* to lib*
	. reduce mtree
2012-02-14 14:52:02 +01:00
Evgeniy Ivanov
f6c5d09978 ELF hardlinks in /boot for compatibility with old boot. 2012-02-14 12:53:34 +01:00
Evgeniy Ivanov
8979450631 Rotate kernels/images/modules.
Kernels and system services are stored in a single directory in the
/boot/minix/ and rotated like /boot/images. /boot/minix_latest slink
is created automatically.
System serives are prefixed by "modNN_" to allow to easily load them
using "mod*" pattern.
2012-02-09 18:54:44 +01:00
Evgeniy Ivanov
fa6c4a2580 Port installboot as installboot_nbsd and rename the old one.
Also following functionality was added:
- Add install_master to the installboot from NetBSD.
- Check if enough space for bootxx.

Old installboot was renamed to installboot_minix.
2012-02-09 18:54:24 +01:00
Ben Gras
cedeabb357 mainstream-format fstab format
. detect both formats in /etc/rc
	. generate new format in setup
	. obsoletes /etc/fstab.local: everything can go in /etc/fstab
	. put shutdown/reboot/halt and a copy of /usr/adm/wtmp
	  (/etc/wtmp) on root FS so that we can do shutdown checks before
	  mounting /usr
	. new fstab format makes getfsent() and friends work
2011-11-14 14:47:28 +00:00
Ben Gras
d1cfc50811 mkboot: include git id in image name if available. 2010-11-25 15:25:17 +00:00
Erik van der Kouwe
df0ba02a38 Multiboot support (contributed by Feiran "Fam" Zheng);
keep in mind that GRUB needs to be patched to read MFS for now;
use /boot/image_latest to boot the last compiled image in GRUB
2010-07-23 14:24:34 +00:00
Ben Gras
122a32b928 mkboot fix, missing " 2010-07-21 14:23:52 +00:00
Ben Gras
63deb069bb uname: make uname -r and -v both print out full version info.
the world seems to expect this, and do this.
2010-07-21 12:47:48 +00:00
Thomas Veerman
1749530ec1 Fix bug item #405: missing # in front of comment 2010-03-15 10:42:51 +00:00
Ben Gras
daca9de450 Fix to make making a bootable cd possible again.
ow that the image has grown beyond the 1.44M that fits on a floppy.
(previously, the floppy emulation mode was used for cd's.)

the boot cd now uses 'no emulation mode,' where an image is provided on
the cd that is loaded and executed directly. this is the boot monitor.

in order to make this work (the entry point is the same as where the
image is loaded, and the boot monitor needs its a.out header too) and
keep compatability with the same code being used for regular booting, i
prepended 16 bytes that jumps over its header so execution can start
there.

to be able to read the CD (mostly in order to read the boot image),
boot has to use the already present 'extended read' call, but address
the CD using 2k sectors.
2010-01-18 14:10:04 +00:00
David van Moolenbroek
5e9a8f05ff unbreak building CDs 2009-12-23 23:59:32 +00:00
Ben Gras
e2932a1180 . remove small image (doesn't fit)
. edparams line a bit more readable
 . use image built in build tree, not regular source tree
2007-07-17 14:36:42 +00:00
Ben Gras
c6f8154df0 use shorter ata timeout for identify commands when running from cd
to shorten probe time.
2007-02-09 15:58:33 +00:00
Philip Homburg
0438bca7aa Small image doesn't fit on boot floppy. 2006-11-24 13:57:37 +00:00
Ben Gras
0f0cb51072 Compute 1440k for mkboot 2006-04-12 15:53:19 +00:00
Ben Gras
d93b0e8f18 Tralala 2006-04-04 11:46:50 +00:00
Ben Gras
3bd337d54c make a ramdisk if necessary 2006-03-13 14:44:34 +00:00
Ben Gras
acdac1ec92 Don't choose FS by labels after all. 2006-03-13 08:47:05 +00:00
Ben Gras
6fe89cfbe8 Hack small and big fs into a single image. Must now set BIG or SMALL label. 2006-03-10 14:11:19 +00:00
Philip Homburg
d4bb027db5 Accept optional device parameter for cdfdboot. 2006-02-15 11:03:28 +00:00
Ben Gras
d62732171a small fix 2006-01-18 13:26:50 +00:00
Ben Gras
c806c7ba7c Install image as e.g. 3.1.2 instead of 3.1.2r0 if there is no revision file. 2006-01-18 12:37:45 +00:00
Philip Homburg
a5cc1cb8d1 sh MAKEDEV to avoid depending on any x-bits. Make depend before make clean. 2006-01-12 14:50:05 +00:00
Ben Gras
03e6432220 ast@'s boot message 2005-09-19 13:28:37 +00:00
Ben Gras
bfde74eb67 mkboot: numbers, not letters
release: make sure compilers are bin-owned for chmems
2005-09-06 10:19:13 +00:00
Ben Gras
61a7f45a99 Can make image_small too 2005-08-29 19:59:58 +00:00
Ben Gras
cd4b66dd3f .. 2005-08-11 15:11:34 +00:00
Ben Gras
5789f7abec config version bumped to 307; NOT cvs tagged yet; misc fixes 2005-08-05 19:19:18 +00:00
Ben Gras
df831bf4a0 *** empty log message *** 2005-08-05 13:51:50 +00:00
Ben Gras
fe3a7d6b5a MINIX 3, not MINIX3 2005-07-26 13:16:07 +00:00
Ben Gras
71e6680b80 Third-oldest image is thrown away instead of oldest, if there are at least 4
images. (Oldest is kept.)

Various cd message updates.
2005-07-22 18:36:19 +00:00
Ben Gras
afcfd1871d Added some diagnostic 2005-06-29 12:04:10 +00:00
Ben Gras
2f588c50ea Added back boot banner for CD 2005-06-17 13:25:06 +00:00
Ben Gras
4e155167c8 sync after install in case of trouble while shutdowning 2005-05-24 12:03:42 +00:00
Ben Gras
821dfb06ed Minor fixes. (Skip test 28 LINK_MAX links generation, it takes too long.) 2005-05-17 08:40:32 +00:00
Ben Gras
e248f7c1a3 If the file (created by setup) exists, use boot parameters from there
for the boot floppy instead of copying it from the current root partition.
This makes making a boot floppy at installation time before booting from
the new system possible (conveniently).
2005-05-13 12:27:42 +00:00
Ben Gras
2ed3e3d79a minor boot floppy beautifications 2005-05-12 16:07:31 +00:00
Ben Gras
d8c7bda04d Some permissions issues with installs fixed 2005-05-04 13:47:05 +00:00
Ben Gras
5415e8280f More polishing to the boot and release process. Highlights:
. Less dependency on scripts to be executable (they're in cvs)
	. issue.install is the /etc/issue that goes on an install CD
	  for instructions (but not on the installed system)
	. /usr/src goes on the CD uncompressed
2005-05-03 15:37:34 +00:00
Ben Gras
b49e963b5e release package script polish 2005-05-03 08:54:36 +00:00
Ben Gras
ec96454af3 Fixing make install and chroot make process; revision should not be part
of cvs
2005-04-22 16:16:23 +00:00
Ben Gras
9865aeaa79 Initial revision 2005-04-21 14:53:53 +00:00