summaryrefslogtreecommitdiffstats
path: root/sys/boot
Commit message (Collapse)AuthorAgeFilesLines
* Cut more than 500 bytes off the size of the alpha boot1 by addingiedowse2002-01-181-0/+10
| | | | | | | | | a simple version of bcopy() so we avoid picking up the overly-complex implementation in libc (via libstand). This is not necessary on -current, but RELENG_4 has apparently just exceeded the 15-sector limit for boot1. Reviewed by: wilko
* Added kgzldr for pc98.nyan2002-01-183-1/+156
| | | | crt.s is based on btx.s.
* Oops, the previous revision (1.35) broke booting from floppiesiedowse2002-01-172-12/+36
| | | | | | | | | | | | | | | because the buffers we use could end up spanning a 64k boundary. Unfortunately it causes too much bloat (228 -> 72 bytes free) to just reinstate the old malloc() function. Instead, define a structure that contains all 4 buffers which must not cross 64k boundaries. We allocate a 64k-aligned instance in main() using the magic that was in the old boot2 malloc() function. This brings the free space down to 168 bytes, but that is still better than it was before revision 1.35 (136 bytes). Reported by: Mike Brancato <funnyguy@digitalsmackdown.net> Pointy-hat to: iedowse
* Make the i386 boot2 fully blocksize-agnostic, as has already beeniedowse2002-01-142-96/+92
| | | | | | | done with boot1 on the alpha. We use 4k buffers regardless of the actual filesystem block size. Remove the simple malloc() implementation, as it is no longer used.
* Make the alpha boot1 work on filesystems that have a block sizeiedowse2002-01-111-24/+41
| | | | | | | | | | | larger than 8k. We now use 4k buffers regardless of the filesystem block size, so there is no longer a static limit. Simply increasing the buffer size from 8k to 16k as done on the i386 doesn't work on the alpha, probably because it causes us to overshoot boot1's 48k runtime memory limit. Tested by: naddy
* Catch the netboot version up to the main loader. This is pretty bogus.jhb2002-01-111-0/+5
| | | | | | | | All the alpha loaders should use the same version file. Also, we might should merge the various loaders (cdboot, loader, netboot) into one loader that can boot off of disks, CD's, and network devices. The version bump is needed so the FICL scripts won't bomb out thinking that the netboot binary is too old.
* Unrevert revision 1.12. Revision 1.14 backed this out saying it wasjhb2002-01-101-7/+17
| | | | | | | backing out the 1024 sector boot0, but revision 1.12 had nothing to do with that. Instead, it documented various compile time options for boot0 and allowed them to be overridden via make.conf or options on the make command line.
* Increase BSIZEMAX from 8k to 16k, so that we can reliably boot fromiedowse2002-01-092-2/+2
| | | | filesystems with 16k blocks.
* Don't turn on RB_CDROM if the rootdev is a BIOS cd device for now as thisjhb2002-01-043-6/+0
| | | | breaks when cdboot is used with an MFS root.
* Avoid having the text and data sections merged into one programrobert2001-12-281-1/+1
| | | | header table entry by removing the -N flag from the LDFLAGS.
* Add missing snd_ich_load entry.jim2001-12-201-0/+1
| | | | | Noticed by: will MFC after: 2 days
* mdoc(7) police: remove hard sentence break which I didn'tru2001-12-141-1/+2
| | | | submit to Jonathan Mini.
* MFi386: revision 1.35 (Add support for writing to BIOS disks)nyan2001-12-121-4/+221
|
* - Add 'fwrite' and 'fseek' words for writing to and seeking on files.jhb2001-12-118-27/+96
| | | | | | | | | | | | | - Change the 'fopen' keyword to accept a mode parameter. Note that this will break existing 4th scripts that use fopen. Thus, the loader version has been bumped and loader.4th has been changed to check for a sufficient version on i386 and alpha. Be sure that you either do a full world build or install or full build and install of sys/boot after this since loader.old won't work with the new 4th files and vice versa. PR: kern/32389 Submitted by: Jonathan Mini <mini@haikugeek.com> Sponsored by: ClickArray, Inc.
* Add support for writing blocks to the loader's disk cache.jhb2001-12-111-21/+92
| | | | | | PR: kern/32389 Submitted by: Jonathan Mini <mini@haikugeek.com> Sponsored by: ClickArray, Inc.
* Add support for writing to BIOS disks.jhb2001-12-111-3/+169
| | | | | | PR: kern/32389 Submitted by: Jonathan Mini <mini@haikugeek.com> Sponsored by: ClickArray, Inc.
* Add new boot flag to i386 boot: -p.guido2001-12-103-0/+9
| | | | | | | | | | | | This flag adds a pausing utility. When ran with -p, during the kernel probing phase, the kernel will pause after each line of output. This pausing can be ended with the '.' key, and is automatically suspended when entering ddb. This flag comes in handy at systems without a serial port that either hang during booting or reser. Reviewed by: (partly by jlemon) MFC after: 1 week
* Update to C99, s/__FUNCTION__/__func__/,obrien2001-12-105-5/+5
| | | | also don't use ANSI string concatenation.
* o Expand list of tunables documented in loader.8 to include kern.maxusers,rwatson2001-12-071-0/+8
| | | | | | since other related tunables were also documented here. Add a cross reference to tuning(7) for information on setting this value appropriately.
* The entry for the 'set' command no longer has a list of variables.des2001-12-041-2/+0
| | | | | | PR: 32454 Submitted by: Gary W. Swearingen <swear@blarg.net> MFC after: 3 days
* Remove unused filed.dcs2001-12-031-29/+0
| | | | | PR: kern/32395 Submitted by: Jonathan Mini <mini@haikugeek.com>
* Fix typo.murray2001-12-031-1/+1
| | | | | PR: 32455 Submitted by: "Gary W. Swearingen" <swear@blarg.net>
* Waits for a keypress before rebooting on panic.dcs2001-11-281-0/+3
| | | | | | PR: kern/32351 Submitted by: Jonathan Mini <mini@haikugeek.com> MFC after: 1 week
* Document the "console" setting in loader.conf, suggesting vidconsolerwatson2001-11-271-0/+6
| | | | or comconsole.
* o Add 'kern.maxusers' to the list of commented out sample tunablerwatson2001-11-261-0/+1
| | | | | variables, since that can now be tuned at boot-time without a recompile.
* Bump the CD boot loader up to 1.1 so that the FICL upgrade a while backjhb2001-11-211-0/+1
| | | | | will not fail thinking that the loader version is stale. This lets us use the Forth code on the CD now.
* Upper case the FreeBSD loader prompt.obrien2001-11-192-2/+2
| | | | | | On OFW based machines, it is just too confusing having the firmware and OS loader giving the same prompt. This is a nice compromise that 99% of the users on non-OFW platforms will probably not even notice.
* Lookup the EFI_FPSWA driver and pass the interface pointer through to thepeter2001-11-197-0/+110
| | | | | kernel before we call ExitBootServices(). I've typed the definitions in efifpswa.h from the Intel FPSWA manual (urk).
* Remove bootinfo.bi_kernel. It isn't used by the kernel. struct bootinfopeter2001-11-194-22/+0
| | | | | should go away on ia64, we should be loader metadata based since that is the only way we can boot (loader, skiload).
* Fix a dependency violation, same as in libefi/elf_freebsd.c a while back.peter2001-11-192-0/+2
|
* This is used in C, not C++. functions with no args have func(void) in ourpeter2001-11-191-0/+1
| | | | kernel.
* MFi386: revisions from 1.26 to 1.30.nyan2001-11-172-10/+196
|
* MFi386: revision 1.12nyan2001-11-171-0/+9
|
* Fix a number of misspellings of "dependency" and "dependencies" iniedowse2001-11-161-3/+3
| | | | | | | comments and function names. PR: kern/8589 Submitted by: Rajesh Vaidheeswarran <rv@fore.com>
* Initialize first to -1; this will create a (nearly) empty file on failure,fenner2001-11-071-1/+1
| | | | | | | | instead of looping until the disk is full. This kind of failure can especially happen when a version of awk that doesn't support POSIX character classes is used. Submitted by: David Wolfskill <david@catwhisker.org>
* Remove a few more debugging bits and turn on twiddle output while readingjhb2001-11-071-15/+3
| | | | from the CD. This turns off the dual console output to COM1.
* Add S4BIOS sleep (BIOS hibernation) and DSDT overriding support.iwasaki2001-11-061-0/+9
| | | | | | | | | | | | | | - Add S4BIOS sleep implementation. This will works well if MIB hw.acpi.s4bios is set (and of course BIOS supports it and hibernation is enabled correctly). - Add DSDT overriding support which is submitted by takawata originally. If loader tunable acpi_dsdt_load="YES" and DSDT file is set to acpi_dsdt_name (default DSDT file name is /boot/acpi_dsdt.aml), ACPI CA core loads DSDT from given file rather than BIOS memory block. DSDT file can be generated by iasl in ports/devel/acpicatools/. - Add new files so that we can add our proposed additional code to Intel ACPI CA into these files temporary. They will be removed when similar code is added into ACPI CA officially.
* MFi386: sys/boot/i386/loader/main.c revision 1.25nyan2001-11-061-14/+16
|
* MFi386: sys/boot/i386/libi386/Makefile revision 1.21nyan2001-11-061-2/+2
|
* - If we are booted via cdboot, use bc_add() to instantiate the cd0 devicejhb2001-11-051-14/+16
| | | | | | from the loader. - Cleanup extract_currdev() some and add support for setting the currdev to cd0 when booted via cdboot.
* Hook up the bioscd driver and the cd9660 filesystem.jhb2001-11-051-0/+2
|
* Add a device driver for the BIOS device for CD-ROM's booted via El Toritojhb2001-11-057-21/+424
| | | | | | no emulation mode. Unlike other BIOS devices, this device uses 2048 byte sectors. Also, the bioscd driver does not have to worry about slices or partitions.
* Add a DEVT_CD type for CD drivers.jhb2001-11-051-0/+1
|
* Trim all the extra debugging output including hexdumps, debug messages,jhb2001-11-041-189/+4
| | | | | | etc. The only bit of debugging left is performing dual output to both the screen and COM1. Also, the twiddle is still disabled since it seems to do weird things to the serial dump. cdboot now has 880 bytes to spare.
* Axe the old cdldr.jhb2001-11-042-298/+0
|
* Use the new cdboot instead of cdldr.jhb2001-11-041-2/+1
|
* This is a new CD bootstrap utility designed to replace cdldr. Accordingjhb2001-11-042-119/+594
| | | | | | | | | | | | | | | | | | | | | | | | to the El Torito standard for CD booting, a CD may boot in "No emulation" mode without using a floppy image. In this mode, the BIOS loads a program off of the CD into memory and creates a BIOS device using 2048 byte sectors for the CD. According to the standard, this program can be up to 0xFFFF virtual (512-byte) sectors long. The old cdldr depended on this by having the BIOS load the entire loader and the small cdldr stub as one binary similar to pxeboot so that cdldr didn't have to read the CD to find the loader. However, the NT no emulation loader just uses 1 disk sector (4 virtual sectors), so it seems that at least some BIOS writers just did enough to get NT to boot by only loading 1 sector and ignoring the sector count. Thus, while cdldr should have worked in theory, it doesn't in practice. This replacment fits entirely in 1 sector and includes simple ISO 9660 support. It looks for /boot/loader on the CD and loads it up using the BIOS. This allows us to not have to depend on the limited size of floppy images but use a full GENERIC kernel for CD-ROM installs in the future, among other things. This version of cdboot is a bit bloated as it includes some useful debugging routines that people can pull to use in other x86 assembly modules. Even with all the debugging cruft, we still have 272 bytes to spare.
* Print out 'foo devices:' as the line before displaying a group ofjhb2001-11-041-1/+1
| | | | | | devices in 'lsdev' output rather than printing out a pointer to the print function since the user really could care less about the pointer value. Perhaps this was intended to be a debugging printf?
* Whoops, missed these bits in the previous commit.jhb2001-11-032-2/+4
|
* Add support for sending messages to the serial console which is helpfuljhb2001-11-033-0/+163
| | | | | | when debugging boot problems. It is not on by default but is enabled via the BTX_SERIAL variable. The port and speed can be set via the same variables used by boot2 and the loader.
OpenPOWER on IntegriCloud