aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/boot
Commit message (Collapse)AuthorAgeFilesLines
* Remove the old a.out-only boot loader, we don't use it any more.Peter Wemm2000-03-1983-16124/+0
| | | | | | | | | | | The new boot1/boot2 can load a.out and elf kernels directly. I think the sys/pc98 version can go too as the sys/boot/pc98 code appears to be functional, but I'll leave that for the pc98 folks. "There can be only one." Notes: svn path=/head/; revision=58284
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-296-8/+10
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55205
* Removed vestiges of BAD144 support.Bruce Evans1999-12-231-1/+2
| | | | Notes: svn path=/head/; revision=55055
* Removed vestiges of BAD144 support.Bruce Evans1999-12-232-4/+1
| | | | | | | Removed -mno-486 from CFLAGS since it is no longer supported by gcc. Notes: svn path=/head/; revision=55054
* Remove BAD144 support, it has already been disabled for some time.Poul-Henning Kamp1999-12-084-328/+3
| | | | Notes: svn path=/head/; revision=54294
* GC bdbtofsb()Peter Wemm1999-09-261-8/+0
| | | | Notes: svn path=/head/; revision=51686
* Try to win back the "removal of most crufty code" trophy from markm:Poul-Henning Kamp1999-09-011-6/+0
| | | | | | | | | | | | Remove WD formatting code which has never worked in 386bsd or FreeBSD. Remove DIOCSSTEP and DIOCSRETRIES ioctls as well, they belong in history, along with the SMD disks. OK'ed by: bde Notes: svn path=/head/; revision=50744
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2854-54/+54
| | | | Notes: svn path=/head/; revision=50477
* Back the last change out.Brian Somers1999-05-251-2/+2
| | | | | | | It upsets the calculations in sys.c (switch(maj)). Notes: svn path=/head/; revision=47483
* Allow booting from "ad"Brian Somers1999-05-251-2/+2
| | | | | | | Reviewed by: Søren Notes: svn path=/head/; revision=47482
* Update #include statements to reflect the new location of "sioreg.h".John Polstra1999-04-221-2/+2
| | | | | | | | | With these changes plus the egcs fix I committed a few minutes ago, "make -DWANT_AOUT world" works again. Most likely, "make upgrade" is fixed too, though I haven't tested that. Notes: svn path=/head/; revision=45945
* Don't refer to i386/isa/kbdio.h anymore. Use dev/kbd/atkbdcreg.h instead.Kazutaka YOKOTA1999-01-111-2/+3
| | | | Notes: svn path=/head/; revision=42507
* Don't build biosboot by default - there's no point now that nothingJordan K. Hubbard1999-01-061-2/+2
| | | | | | | | looks for /usr/mdec/boot{1,2}. The other stuff in here is probably equally useless/pointless but I'm going to not worry about it for now. Notes: svn path=/head/; revision=42341
* Revert r1.4 - I was confused as to its real meaning.Jordan K. Hubbard1999-01-031-1/+1
| | | | | | | Noted by: bde Notes: svn path=/head/; revision=42263
* Clean up some more residual /usr/mdec references. I left all theJordan K. Hubbard1999-01-032-4/+4
| | | | | | | | extra rbootd/boot rom cruft pointing at /usr/mdec since it either doesn't exist or doesn't work anyway, so who cares? :) Notes: svn path=/head/; revision=42261
* Enforce building with -aout, since building with OBJFORMAT=elf doesn'tBruce Evans1998-12-301-4/+3
| | | | | | | | | work. Rely on ../Makefile.inc to set the the default for BINDIR. Notes: svn path=/head/; revision=42177
* Rely on ../Makefile.inc to set the object format in CFLAGS and theBruce Evans1998-12-301-7/+4
| | | | | | | | | default for BINDIR. Fixed some style bugs in previous aout enforcement. Notes: svn path=/head/; revision=42176
* Enforce building with -aout, since building with OBJFORMAT=elf doesn'tBruce Evans1998-12-301-3/+3
| | | | | | | work. Notes: svn path=/head/; revision=42174
* Enforce building with -aout, since building with OBJFORMAT=elf doesn'tBruce Evans1998-12-301-8/+3
| | | | | | | | | | | work. Rely on ../Makefile.inc to set the the default for BINDIR. Removed comments about installing links to bootxx and xxboot. Notes: svn path=/head/; revision=42173
* Rely on ../Makefile.inc to set the default for BINDIR.Bruce Evans1998-12-301-2/+1
| | | | Notes: svn path=/head/; revision=42172
* Rely on ../Makefile.inc to set the object format in CFLAGS and theBruce Evans1998-12-301-14/+5
| | | | | | | | | | | | | | | | default for BINDIR. The default BINDIR of /usr/mdec can't be overridden yet because libdisk still uses /usr/mdec and installing in /boot might clobber the new boot blocks. Don't install links to bootxx or xxboot. Install boot1 and boot2 in 1 step. Don't delete the boot.help source file on installing it when ${COPY} is null. Notes: svn path=/head/; revision=42171
* Add -aout to CFLAGS centrally.Bruce Evans1998-12-301-1/+3
| | | | | | | Set the default for BINDIR (to /usr/mdec) centrally. Notes: svn path=/head/; revision=42170
* Fix my breakage of `make installworld'. However, i don't think it's right toJoerg Wunsch1998-11-281-6/+7
| | | | | | | | | | | | install all those images at all (nor to install them under /usr/mdec), given the high degree of customization this Makefile needs in order to get images that are actually useful for some NIC. Submitted by: John Hay <jhay@mikom.csir.co.za>, Paul Allenby <pallenby@mikom.csir.co.za> Notes: svn path=/head/; revision=41379
* Make netboot work again. All this depends on the object format beingJoerg Wunsch1998-11-261-10/+13
| | | | | | | a.out (by now). Notes: svn path=/head/; revision=41352
* add -aout key to cc, size, strip - it not work for elf systemAndrey A. Chernov1998-11-211-4/+4
| | | | Notes: svn path=/head/; revision=41282
* Argh, I don't know how I managed this, but it would help to actuallyPeter Wemm1998-11-111-2/+2
| | | | | | | provide the routines that kern/inflate.c expects. Notes: svn path=/head/; revision=41092
* kzipboot uses kern/inflate.c outside the kernel by providing its ownPeter Wemm1998-11-101-4/+2
| | | | | | | minimal malloc/free implementation. Stop passing M_GZIP to it. Notes: svn path=/head/; revision=41057
* Removed all `vector xxxintr' specifications. Interrupt handlers are nowBruce Evans1998-10-221-3/+3
| | | | | | | configured in drivers. Notes: svn path=/head/; revision=40586
* Don't pretend to support ix86's with 16-bit ints by using longs justBruce Evans1998-10-103-11/+11
| | | | | | | | | to ensure 32-bit variables. Doing so broke i386's with 64-bit longs. This also fixes printf format errors. Notes: svn path=/head/; revision=40183
* Fixed warnings for pointer versus int type mismatches. Addresses mustBruce Evans1998-10-102-7/+7
| | | | | | | | be converted to fixed-sized integers when they are passed across the binary interface to the kernel. Notes: svn path=/head/; revision=40181
* Fixed warnings for pointer versus int type mismatches. Addresses mustBruce Evans1998-10-101-3/+3
| | | | | | | | | | | be converted to fixed-sized integers when they are passed across the binary interface to the kernel. Didn't fix rotted bits (including not passing dosdev to the kernel and serious out of dateness when initially committed). Notes: svn path=/head/; revision=40180
* Pass the BIOS unit number from which the kernel/loader was obtained inMike Smith1998-10-011-1/+2
| | | | | | | the bootinfo struct so that it can be reused later. Notes: svn path=/head/; revision=39864
* Remove the -b boot option. It is no longer necessary now that the VESAKazutaka YOKOTA1998-09-233-42/+3
| | | | | | | BIOS support is optionally available for syscons. Notes: svn path=/head/; revision=39587
* Correct description of get_diskinfo result.Robert Nordier1998-09-171-1/+1
| | | | Notes: svn path=/head/; revision=39427
* Adjust for sd->da and the loss of od.Justin T. Gibbs1998-09-155-29/+25
| | | | Notes: svn path=/head/; revision=39241
* Correct an irritating documentation error.Mike Smith1998-08-041-2/+2
| | | | | | | (get_diskinfo is unnecessarily obfuscated) Notes: svn path=/head/; revision=38064
* TFTP_ACK goes to port 69 (default tftp port) and tftpd says 'Timeout'.Poul-Henning Kamp1998-07-311-0/+1
| | | | | | | | | | | It will be sent to source port of received packet. PR: 7442 Reviewed by: phk Submitted by: Sergey Shkonda <serg@bcs.zp.ua> Notes: svn path=/head/; revision=37984
* Typo fix: teh --> (the|they)Alexander Langer1998-07-301-2/+2
| | | | Notes: svn path=/head/; revision=37965
* Added a `build-tools' target for internal tools.Bruce Evans1998-07-071-7/+10
| | | | | | | Honor LDFLAGS for building internal tools. Notes: svn path=/head/; revision=37464
* Add workaround to allow the FreeBSD boot block to work onBill Paul1998-07-021-1/+13
| | | | | | | | | | | | | | | | | Kapok Computer Co. notebook with AMI 'WinBIOS' which seems to insist on having a short jump and nop as the first instructions in the boot sector code. The prevailing theory is that the BIOS is doing some sort of boot sector virus detection and refusing to run any boot block that doesn't start with the same instruction sequence as MS-DOG boot sector code. If this is the case, it would be nice if it actually printed an error message to this effect instead of just saying 'FAILED.' This workaround has no effect on the boot sector code other than to increase its size by three bytes. Notes: svn path=/head/; revision=37342
* Sigh, we need this one now.Poul-Henning Kamp1998-06-301-0/+1
| | | | Notes: svn path=/head/; revision=37292
* These are a selection of small problems and annoyances with the netbootPoul-Henning Kamp1998-06-304-15/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | code. Apart from the first one, none really affect typical configurations but are nevertheless unnecessary limitations. We use netbooted PCs as student X-terminals and all of the below fixes have been useful. Apologies for including them all in one PR, but some are just too silly or trivial to send on their own! a) Newer SMC cards have hardware addresses starting with 00:E0. Netboot compares the MAC address with 00:00:C0 to determine if it is a WD/SMC card, so it fails to detect these. b) Netboot is unable to boot kzipped kernels, as it assumes that the kernel load address is 0x100000. c) Users can abort the booting process and enter arbitrary network addresses, or boot from a floppy disk. This can be a problem when netbooted machines are used in a student environment. d) It is not possible to set all options via bootp. For example there is no way to remotely force a client to boot from disk. With both SECURE_BOOT(patch below) and NO_TFTP defined, short of unplugging the eprom there is no way at all to get the client to boot locally. A generic solution is to allow complete netboot commands to be sent using bootp lines such as: :T132="diskboot": e) The last character of netboot command names is not checked. You can type 'iz 10.0.0.1' and it will be interpreted as 'ip'. This is only important if you try to add a new command which is the same as an existing one except for the last character. f) We have a configuration where multiple servers are willing to serve a diskless client. The tftp config file, or the bootptab entry on each server must specify the root and swap filesystems as 'ip:/fs' even though 'ip' will usually be the responding server's IP address. It would be nice if netboot could automatically prepend the server's IP address to an entry specified as just '/fs', so that multiple servers can use the same tftp or bootp configuration files. Admittedly this is hardly a major problem! PR: 7098 Submitted by: Ian Dowse <iedowse@maths.tcd.ie> Notes: svn path=/head/; revision=37290
* Fixed bogus dependency on `beforedepend'. File targets should neverBruce Evans1998-06-291-2/+2
| | | | | | | depend on phony targets or they would always be out of date. Notes: svn path=/head/; revision=37270
* Install ${DESTDIR}/boot.help during `make distribution'.Joseph Koshy1998-05-271-1/+5
| | | | | | | | PR: 6063 Submitted by: Doug <Studded@dal.net> Notes: svn path=/head/; revision=36415
* Install in /usr/lib/aoutSøren Schmidt1998-05-271-2/+2
| | | | Notes: svn path=/head/; revision=36409
* Add two new functions, get{micro|nano}time.Poul-Henning Kamp1998-03-261-14/+1
| | | | | | | | | | | | | | | They are atomic, but return in essence what is in the "time" variable. gettime() is now a macro front for getmicrotime(). Various patches to use the two new functions instead of the various hacks used in their absence. Some puntuation and grammer patches from Bruce. A couple of XXX comments. Notes: svn path=/head/; revision=34901
* Removed duplicated -I options.Bruce Evans1998-03-122-4/+3
| | | | Notes: svn path=/head/; revision=34513
* Removed hacks to pass -nostdinc to mkdep. bsd.dep.mk now handlesBruce Evans1998-03-121-2/+2
| | | | | | | -nostdinc properly. Notes: svn path=/head/; revision=34512
* Make this handle -j<large>, and avoid .depend pointing at /usr/include.Eivind Eklund1998-03-075-58/+33
| | | | Notes: svn path=/head/; revision=34167
* Use port 0x110 to avoid PNP conflicts.Steve Price1998-02-231-1/+1
| | | | | | | PR: 5614, 5781 Notes: svn path=/head/; revision=33766