summaryrefslogtreecommitdiffstats
path: root/sys/boot/common
Commit message (Collapse)AuthorAgeFilesLines
* Typo: "can't boot 'boot'" should be "can't boot 'kernel'"dfr1999-05-301-2/+2
|
* Always output a linefeed when we've decided whether to bootbrian1999-05-281-6/+3
| | | | | | or display a loader prompt; either we've said "Booting [%s]..." or we've received a non-line-feed character and need a '\n' anyway.
* Fix a reference to the mysterious Mike Smisth.rnordier1999-05-221-2/+2
|
* Found the needle in the haystack!jb1999-05-111-2/+2
| | | | | | | | Use colons instead of semi-colons in the default init_path to behave like UNIX instead of DOS. Suggested by: bde Reminded by: des (with no hint as to *which* man page).
* Changes to support diskless booting on the alpha:dfr1999-05-031-4/+21
| | | | | | | | | | | | * Make the network code in the bootstrap more chatty (helps debugging) * Add nfs root stuff to cpu_rootconf(). I also added a check to make sure it really was netbooting which allows the use of the same kernel for local and network boots. * Tweak the de driver so that it takes the speed setting from the console for the alpha (some PWSs have broken de chipsets). This is the same behaviour as NetBSD/alpha. Submitted by: Andrew Gallatin <gallatin@cs.duke.edu>
* Correct typos.jkoshy1999-05-031-5/+6
| | | | | PR: docs/11445 Submitted by: Kazuo Horikawa <horikawa@jp.freebsd.org>
* Make man page reflect reality on parsing rules. Now I know Jordandcs1999-04-251-3/+4
| | | | never read this man page... :-)
* Make the location of init(8) tunable at boot time.des1999-04-202-2/+15
|
* Don't clobber the "prompt" variable if it has already been set (e. g.joerg1999-04-201-2/+3
| | | | | | from within loader.conf). Reviewed by: dcs
* Bring the 'new-bus' to the i386. This extensively changes the way thepeter1999-04-161-3/+3
| | | | | | | | | | | | | | | | | | i386 platform boots, it is no longer ISA-centric, and is fully dynamic. Most old drivers compile and run without modification via 'compatability shims' to enable a smoother transition. eisa, isapnp and pccard* are not yet using the new resource manager. Once fully converted, all drivers will be loadable, including PCI and ISA. (Some other changes appear to have snuck in, including a port of Soren's ATA driver to the Alpha. Soren, back this out if you need to.) This is a checkpoint of work-in-progress, but is quite functional. The bulk of the work was done over the last few years by Doug Rabson and Garrett Wollman. Approved by: core
* The man page, version 0.1.dcs1999-03-151-0/+747
|
* Fix syntax for boot commandmsmith1999-03-141-1/+1
| | | | Noticed by: Ruslan Ermilov <ru@ucb.crimea.ua>
* Increase ficl's dictionary size, in preparation for the newer loader.rc.dcs1999-03-081-2/+2
|
* Fix a number of memory leaks and other memory-related disorders.dcs1999-03-084-9/+19
| | | | | | | | | | | | | | | Also, unbreak the breakage introduced at the last revision of module.c. This changes the semantics of mod_searchfile() (and mod_searchmodule()) to make the caller's responsibility freeing the buffer returned. This is different from other functions in loader's code, and was done as a fix for kern/9631. If someone wants to revert this to the original behavior, don't forget to fix kern/9631 in another way. This should also fix bin/10462, which was introduced as a result of the first try at kern/9631 (module.c last revision). PR: bin/10462 Submitted by: Takanori Saneto <sanewo@ba2.so-net.ne.jp>
* Don't treat empty lines as end-of-file in include(). (I can'tdcs1999-03-021-2/+2
| | | | believe this bug is still here... :-( )
* Fix assorted memory leak/buffer reuse problems.dcs1999-02-222-7/+24
| | | | | | | Not restricted to, but including: PR: kern/9631 Submitted by: Bill Fenner <fenner@parc.xerox.com>
* Enable load of i386 ELF kernels with larger KVA range (e.g. starting attegge1999-02-151-2/+2
| | | | 0xe0100000u or 0xc0100000u instead of the usual 0xf0100000u).
* Remove strange-looking quotes. This part of the code is #if'ed out,dcs1999-02-071-1/+1
| | | | | | | | and the variable doesn't even exist (though it is referenced elsewhere). Just make sure it produces error messages when Mike get back to it. PR: kern/9934 Submitted by: Adrian Filipi-Martin
* Make use of prototypes to silence warnings.dcs1999-02-044-37/+84
| | | | | | | | | | | | | | | | | | | Change include() so it will be able to load files with forth code, instead of just builtins. Remove #@- from the include section of the help file, since they don't work in the new version of include, unless BOOT_FORTH is not defined. Change bf_run() so it will return the result returned by ficlExec(). Also, make bf_run() push "interpret" to be executed by ficlExec(), since ficlExec() doesn't do it by itself. (Things worked previously because nothing recursed through ficlExec() by the way of bf_run()). Change/extend comments on builtin behavior. Search for "interpret" at the end of bf_init(), so /boot/boot.4th can provide it's own version. Remove dead code.
* Silence a warning.dcs1999-02-041-2/+2
| | | | PR: bin/9754
* Mention the net.inet.tcp.tcbhashsize tunable.msmith1999-02-031-0/+5
|
* PC98 version of new boot loader. Because boot2 has not yet ported,kato1999-02-031-2/+4
| | | | | | files in boot2 directory are copies from legacy biosboot. Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>
* Whoops! Forgot to include Mr. Sobray's more command in the last setjkh1999-02-012-2/+56
| | | | | | of commits. Submitted by: Daniel C. Sobral <dcs@newsguy.com>
* Document the machdep.pccard.pcic_irq tunable, which allows the user to tunemsmith1999-01-291-0/+8
| | | | | | the interrupt which will be given to the PCIC. If the value supplied is illegal or not available, interrupts will be turned off and polled mode used instead.
* Make builtin's state-aware in loader.jkh1999-01-281-14/+106
| | | | | Submitted by: Daniel C. Sobral PR: 9663
* Correctly record the end of the a.out symbol table. In practice, arnordier1999-01-251-3/+3
| | | | | | | | | bootinfo structure where bi_esymtab < bi_symtab was being passed to the kernel. In the case of older 2.x kernels, this was causing garbage to be printed to the video console, followed by an exception. This should resolve a problem reported on -current by Peter Jeremy <peter.jeremy@auss2.alcatel.com.au>.
* bootstrap.hmsmith1999-01-226-141/+87
| | | | | | | | | | | | | | | | | | | | | | help.common interp.c Rename the 'source' command to 'include' in order to avoid conflict with the ANS Forth command of the same name. (kern/9473) interp_forth.c: Changes from kern/9412 (EXCEPTION word), kern/9442 (TIB buffer sizing) and an improved version of kern/9460 (set version numbers). load_aout.c: Trim some obsolete #if 0'ed cruft. pnp.c: Tidy the pnpscan output, turn off the module scanning until we sort out how to do it right. PR: kern/9412 kern/9442 kern/9460 kern/9473 Submitted by: PRs from Daniel Sobral <dcs@newsguy.com>
* Fix extraneous free() on error.rnordier1999-01-221-2/+1
|
* Add 'set tunables' help, list the kernel tunable values that can currentlymsmith1999-01-211-0/+18
| | | | be overridden.
* Transition from using Perl to using awk for our text-manipulationmsmith1999-01-182-182/+101
| | | | | | | needs. This removes the dependancy on Perl for the generation of the loader, allowing the world to be built on a perl-free system. Submitted by: Joe Abley <jabley@clear.co.nz>
* Replace duplicated "old" linker set definitions with an include ofjdp1999-01-161-52/+2
| | | | <sys/linker_set.h>. Note, this isn't used on the i386.
* Fall back to /boot/boot.conf, if /boot/loader.rc was not fount. This isabial1999-01-152-12/+20
| | | | | | to cover the transition period. Suggested by: msmith
* Change /boot/boot.conf to /boot/loader.rc - this name reflects what itabial1999-01-131-2/+2
| | | | | | really is. Agreed upon by: jkh, msmith and many others
* Typo in patch application.msmith1999-01-131-2/+2
| | | | | PR: kern/9459 Submitted by: "Daniel C. Sobral" <dcs@newsguy.com>
* No builtin command resets getopt before using it, causingmsmith1999-01-114-3/+10
| | | | | | | | problems in case a wrong option was given previously, and no option is given to the next command. PR: kern/9371 Submitted by: "Daniel C. Sobral" <dcs@newsguy.com>
* Enable escapes for $ to make it possible to insert variable names intomsmith1999-01-102-4/+9
| | | | other variable values.
* Add a description for 'lsdev' so that it shows up in the '?' displaymsmith1999-01-091-2/+3
|
* Fix variable initialization.. It was written with '==' instead of '-'.peter1999-01-041-2/+3
| | | | #include <string.h> for string prototypes.
* Clean some unused variables lintpeter1999-01-041-2/+4
|
* Don't forget a trailing \n when loading a kernel that has been stripped.peter1999-01-041-7/+8
| | | | | (This might make ELF_VERBOSE look funny, but I'm tempted to delete that anyway)
* * Begin integration of built-ins with Forth: leave the exit code fromabial1998-12-223-30/+46
| | | | | | | a built-in command on Forth stack. * Fix a bug which was causing a panic when loading stripped aout kernels. Reviewed by: jkh
* Removed dynamic loading of FileHandlen_hibma1998-12-161-4/+2
|
* Reformat help to improve subtopic display appearance, other minormsmith1998-12-151-5/+5
| | | | | cleaning. The 'help' command in the loader should now be usable and hopefully informative.
* Build the composite help file from the generic and architecture-specificmsmith1998-12-152-1/+224
| | | | help files, sorting topics and subtopics to allow maximum flexibility.
* Fix misallocation of buffer bug (too short)archie1998-11-201-1/+1
|
* This fixes a bug in the bcache code whereby false cache hits occurpaul1998-11-191-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the first time block 0 is read. This fix initialises the block numbers to -1 which isn't the most correct thing for a daddr_t but it isn't likely to cause a problem in the boot blocks and it could do with a more thought out fix later. The bug is probably benign on the i386 but on the alpha it can cause initial file opens to fail. This is the cause of the "can't open /boot/boot.conf" errors. It appears on the alpha because of a number of combining factors. On the alpha the LABELSECTOR is 0 so block 0 needs to be read in from the media. The first time this happens you get a false hit because the bc_blkno field is zero initially. Also, the timestamp check against this cache hit succeeds because on the alpha a hacked getsecs() function can return 0 when it starts counting so that the zero initial timestamp + BCACHE_TIMEOUT is greater than the current time until getsecs() has counted passed BCACHE_TIMEOUT. The overall effect is that the first open() that occurs gets a false cache hit and returns garbage to the bd_strategy() function which then fails the open() call. This false hit then stays in the cache until BCACHE_TIMEOUT getsecs() ticks have passed; all open() calls during this time fail. This explains why you can generally access the media by the time you get to interp() and start issuing commands but the earlier attempts to run the boot scripts are failing. It's possible that this is causing the problem switching to the mfsroot floppy as well but I haven't confirmed that.
* Add documentation for $rootdev.msmith1998-11-131-1/+10
|
* Eliminate much code cruft by extending simple file I/O API to includejkh1998-11-071-4/+9
| | | | | fopen and fclose. Also look for /boot/boot.4th now and, if found, load its contents.
* Don't have debugging on by default - it makes testing annoying. :)jkh1998-11-071-2/+2
|
* Ack. Create parseable command tail properly, and eat args out of the TIB.msmith1998-11-061-2/+5
|
OpenPOWER on IntegriCloud