summaryrefslogtreecommitdiffstats
path: root/sys/boot
Commit message (Collapse)AuthorAgeFilesLines
* Drop boot.help support.rnordier1999-01-112-20/+10
|
* 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>
* Preserve the previous loader as loader.old.msmith1999-01-111-1/+4
| | | | | | | | Note no matching commit for the Alpha, as the alpha boot0 stage does not have the ability to prompt for user input. PR: kern/9406 Submitted by: "Daniel C. Sobral" <dcs@newsguy.com>
* Disable kzipping the loader; it seems to be breaking the aout-to-elf buildmsmith1999-01-101-3/+3
|
* Remove redundant line of code.steve1999-01-101-2/+1
| | | | | PR: 9364 Submitted by: Daniel C. Sobral <dcs@newsguy.com>
* Use etc/make.conf settings for serial port and speed.rnordier1999-01-106-16/+28
| | | | | Submitted by: rvb Reviewed by: bde
* Damn, I thought I had committed this already, but it seems not.peter1999-01-104-12/+12
| | | | | | | | | | Move the relocated boot1 and arg transfer space from 0x600/0x800 to 0x700/0x900. In theory this should make no difference, apart from the fact that Buslogic controllers happen to use a few bytes at 0x600 for some sort of scratch space for it's int 0x13 hook (!!!), causing the machine to crash badly when the boot2 code makes it's callbacks into boot1 for disk IO. Submitted by: Robert Nordier <rnordier@freebsd.org>
* Enable escapes for $ to make it possible to insert variable names intomsmith1999-01-102-4/+9
| | | | other variable values.
* Explicitly look for kzip in /usr/bin, again this is a stopgap, to avoidmsmith1999-01-091-2/+2
| | | | making kzip a build tool.
* kzip the loader, this shrinks it to about 60% of its original size.msmith1999-01-091-1/+3
| | | | Note that this is a stopgap with dependancies on the a.out tools.
* Extend bd_print() so that it displays slices and partitions on disks.msmith1999-01-091-7/+82
|
* Add a description for 'lsdev' so that it shows up in the '?' displaymsmith1999-01-091-2/+3
|
* Alpha-specific help topics (currently empty)msmith1999-01-051-0/+0
|
* Fix a potential sign extension bug on 8-bit chars.peter1999-01-041-3/+3
| | | | | Outputting a backspace isn't supposed to be destructive.. It isn't on most terminals, nor on the standard bios output (vs. TERM_EMU mode)
* 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)
* Restore dependancy to build loader.help heremsmith1999-01-041-2/+2
|
* Add dependancy to build loader.help heremsmith1999-01-041-1/+1
|
* First cut at generating loader.help for the alphamsmith1999-01-031-0/+12
|
* Reenable generation of the loader.help filemsmith1999-01-031-9/+9
|
* Update for new boot block location.jkh1999-01-021-5/+1
|
* Add support for some FACILITY words:abial1998-12-311-1/+74
| | | | | | | | | | | | key? ( -- flag) \ check to see if there's a key to be read from input ms ( u -- ) \ wait that many milliseconds seconds ( -- u ) \ get number of seconds from midnight. 'words' now outputs the list page by page - this probably should go through libstand's pager, but will have to wait for closer integration of built-ins with Forth... Submitted partially by: W Gerald Hicks <wghicks@bellsouth.net>
* Add back ability to make beeps when using new TERM_EMU.abial1998-12-311-6/+15
| | | | Submitted by: W Gerald Hicks <wghicks@bellsouth.net>
* Add simple terminal emulator, compatible with cons25. Currently supportedabial1998-12-222-9/+386
| | | | | | | | | | capabilities are: AF, AB, cm, ho, me, cd. The code is hidden behind -DTERM_EMU - should it cause any problems, you can remove this define to get back the old behaviour. You'll find some examples how to use it in src/share/examples/bootforth. Reviewed by: jkh
* Add new word ".#" which acts like "." but doesn't output a space separator.abial1998-12-221-0/+13
| | | | | I found it impossible to output parametrized strings like "\033[%d;%dH" without building them first in pad area.
* * 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
|
* Disable build/install of boot.help until we sort out how to construct itmsmith1998-12-161-10/+10
| | | | in the makeworld environment.
* Reformat help to improve subtopic display appearance, other minormsmith1998-12-152-9/+9
| | | | | 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-154-4/+257
| | | | help files, sorting topics and subtopics to allow maximum flexibility.
* unlocalise build date (merge from i386)msmith1998-12-151-0/+1
|
* unlocalize dateache1998-12-071-0/+1
| | | | Submitted by: Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>
* Revise some comments and labels.rnordier1998-12-051-16/+22
|
* Drop EDD support detection, though retain configurable use of diskrnordier1998-11-292-104/+110
| | | | | packet interface. Add booteasy-style F5 support. Add no-update option. Implement various space optimizations and consistency fixes.
* Drop use of BIOS int 0x14 services in favor of direct port I/O.rnordier1998-11-221-37/+48
| | | | Feedback and testing: Adrian Filipi-Martin <adrian@ubergeeks.com>
* 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
|
* Add a new variable $num_ide_disks which is used to offset the unit numbermsmith1998-11-134-15/+21
| | | | | | for SCSI disks when converting from BIOS unit numbers to da unit numbers. Prompted by Kevin Street <street@iname.com>
* bootforth seems to be working well enough for me and others to turnjkh1998-11-121-8/+8
| | | | on by default. If it causes trouble, it's very easy to switch off again.
* Revise error messages.rnordier1998-11-112-4/+4
|
* Prevent boot.config being parsed more than once.rnordier1998-11-082-2/+4
|
* Drop the familiar 'text=xxxx data=xxxx bss=xxxx ...' display whilernordier1998-11-082-28/+4
| | | | | | loading. This eliminates noise when loading boot/loader; and when loading a kernel, they generally flash by too fast to be intelligible anyway.
* boot1: Eliminate EDD detection and optional use of disk packetrnordier1998-11-087-203/+164
| | | | | | | | interface. Do some general consistency fixes and space optimizations. Use of some freed-up space to defend against possible BIOS misfeatures. boot2: Revise disk read interface to provide for boot1 changes. Free up space for this.
* o Add proper stack checking to all file wordsjkh1998-11-071-28/+48
| | | | | | | | | o add fkey and fread o eliminate fexists now that this can be expressed in HLL forth ( : fexists fopen dup -1 <> if fclose 1 else drop 0 then ; ) :-) Once we get the ability to write files, it should be possible to do stand-alone rescue work from the 3rd stage boot. :)
* Eliminate much code cruft by extending simple file I/O API to includejkh1998-11-073-55/+101
| | | | fopen and fclose.
* 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.
* Take init out of here - it's a layering violation.jkh1998-11-071-3/+0
|
* Don't have debugging on by default - it makes testing annoying. :)jkh1998-11-071-2/+2
|
OpenPOWER on IntegriCloud