summaryrefslogtreecommitdiffstats
path: root/sys/boot/common
Commit message (Collapse)AuthorAgeFilesLines
* It seems that the only problem with UFS2 booting on i386 is the 64bitphk2002-10-081-10/+12
| | | | | | | | | divide/remainder calls. For reasons not resolved, compiling the relevant routines from libkern into boot2 results in stack corruption. Do the simple thing: Don't use 64bit divide/remainder operations. Sponsored by: DARPA & NAI Labs
* Move the definition of UFS1_ONLY into the Makefiles where it belongs.phk2002-10-071-3/+0
| | | | Sponsored by: DARPA & NAI Labs.
* s/hint.acpi.0.disable/hint.acpi.0.disabled/iwasaki2002-08-301-1/+1
| | | | | | | | | Fix device hints entry for disabling acpi(4). This also should fix the arbitration with apm(4) when both drivers are enabled. Note that your /boot/device.hints needs to be updated if you want to stop auto-loading acpi.ko or disable acpi(4).
* Actually remove the stale a.out kld support. This is the stuff that waspeter2002-08-291-256/+0
| | | | never updated for the metadata infrastructure.
* Initiate deorbit burn of i386 a.out kld "support" in loader. Note thatpeter2002-08-291-4/+0
| | | | | | this was quite broken, it never was updated for metadata support. The a.out kld file support was never really used, as it wasn't necessary. You could always load elf kld's, even in an a.out kernel.
* mdoc(7) police: revert unapproved changes in rev. 1.43, added missing markup ↵ru2002-08-131-3/+5
| | | | bits in rev. 1.45.
* Restore autoloading of ACPI module.obrien2002-08-091-0/+4
| | | | | Document the approved ways of disabling it. Submitted by: Daniel O'Connor <doconnor@gsoft.com.au>
* Stash various networking paramters in the environment for the kerneljake2002-07-311-0/+9
| | | | to pick up, ala pxe.
* Use present tense in all the verbs, when describing loader's startup.keramida2002-07-151-2/+2
| | | | Most of them are not in a future tense already.
* The .Nmcharnier2002-07-141-3/+6
|
* Change help documentation for bootfile and module_path to reflectmp2002-07-071-6/+8
| | | | | | | | the actual code. Both use a ";" (not a ",") to delimit entries. PR: 39679 Submitted by: Cyrille Lefevre <cyrille.lefevre@laposte.net> MFC after: 3 days
* Enable UFS1_AND_UFS2 support for sparc64 by default. Booting from ufs1 orjake2002-06-211-0/+2
| | | | ufs2 filesystems seems to work fine.
* This commit adds basic support for the UFS2 filesystem. The UFS2mckusick2002-06-211-41/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | filesystem expands the inode to 256 bytes to make space for 64-bit block pointers. It also adds a file-creation time field, an ability to use jumbo blocks per inode to allow extent like pointer density, and space for extended attributes (up to twice the filesystem block size worth of attributes, e.g., on a 16K filesystem, there is space for 32K of attributes). UFS2 fully supports and runs existing UFS1 filesystems. New filesystems built using newfs can be built in either UFS1 or UFS2 format using the -O option. In this commit UFS1 is the default format, so if you want to build UFS2 format filesystems, you must specify -O 2. This default will be changed to UFS2 when UFS2 proves itself to be stable. In this commit the boot code for reading UFS2 filesystems is not compiled (see /sys/boot/common/ufsread.c) as there is insufficient space in the boot block. Once the size of the boot block is increased, this code can be defined. Things to note: the definition of SBSIZE has changed to SBLOCKSIZE. The header file <ufs/ufs/dinode.h> must be included before <ufs/ffs/fs.h> so as to get the definitions of ufs2_daddr_t and ufs_lbn_t. Still TODO: Verify that the first level bootstraps work for all the architectures. Convert the utility ffsinfo to understand UFS2 and test growfs. Add support for the extended attribute storage. Update soft updates to ensure integrity of extended attribute storage. Switch the current extended attribute interfaces to use the extended attribute storage. Add the extent like functionality (framework is there, but is currently never used). Sponsored by: DARPA & NAI Labs. Reviewed by: Poul-Henning Kamp <phk@freebsd.org>
* Make sparc64 share ufsread.c with i386.phk2002-06-051-4/+10
| | | | Sponsored by: DARPA & NAI Labs.
* Indent this file more like style(9).phk2002-06-051-108/+108
| | | | Sponsored by: DARPA & NAI Labs.
* Preparation for UFS2 commit:phk2002-06-051-0/+183
| | | | | | | Factor the ufs reading code out of the i386/boot2 loader so it can be reused by for instance sparc64. Sponsored by: DARPA and NAI Labs.
* Fix a handful of typos and grammar bogons. No content changes.schweikh2002-05-291-8/+8
| | | | | | Translators can ignore this commit. MFC after: 2 weeks
* We don't need bootinfo any more, and sparc64 doesn't have it anyways.obrien2002-05-101-1/+0
|
* Bandaid for a buffer overrun in the module searching code. When breakingpeter2002-04-111-0/+2
| | | | | | | | up the module_path string, we would walk one past the end of the buffer. This hurting ia64 originally, but it was probably also happening on i386 occasionally as well. The effects were usually harmless, it would add bogus "binary" search directories to the places it actually looked for files.
* Upgrade FICL to 3.02. Forgot this one, sorry.dcs2002-04-091-6/+7
| | | | | PR: 36308 Submitted by: dcs
* Fix another unsigned long used to index the symbol table which should bejake2002-04-091-1/+1
| | | | Elf_Hashelt.
* Use the correct elf hash table entry type. This matches a similar fixpeter2002-04-061-6/+6
| | | | | in the kernel side of things some time ago. The hash table entries are always 32 bits wide, even on 64 bit machines.
* Not all platforms have and want a.out format support.obrien2002-03-281-1/+5
|
* Remove __P.alfred2002-03-201-1/+1
|
* mdoc(7) police: fix a typo and markup.ru2002-03-151-2/+6
|
* CG superfluous prototype.sobomax2002-03-101-1/+0
|
* Declare time(not3) instead of depending on namespace pollution 3 layersbde2002-02-251-0/+2
| | | | | | | | | | | | | deep in <stand.h> to eventually include <time.h> to declare the user version. This is not quite the right place to declare it, but <stand.h> would be worse because time() is very MD so it isn't in libstand. Many places in the boot sources still get the user version using only 1 layer of pollution (#include <sys/time.h>. Some pollute themselves directly (#include <time.h>). But the boot Makefiles are too broken to enable warnings for redeclarations.
* Removed mounds of unused variables.bde2002-02-251-4/+0
|
* Document the hw.physmem kernel environment variable.davidc2002-02-211-0/+7
| | | | Reviewed by: alfred
* CG hard sentence breaks.sobomax2002-01-231-1/+2
| | | | Submitted by: ru
* Allow dump device be configured as early as possible using loader(8) tunable.sobomax2002-01-211-0/+6
| | | | | | | This allows obtaining crash dumps from the panics occured during late stages of kernel initialisation before system enters into single-user mode. MFC after: 2 weeks
* mdoc(7) police: remove hard sentence break which I didn'tru2001-12-141-1/+2
| | | | submit to Jonathan Mini.
* - Add 'fwrite' and 'fseek' words for writing to and seeking on files.jhb2001-12-111-2/+12
| | | | | | | | | | | | | - 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.
* Update to C99, s/__FUNCTION__/__func__/,obrien2001-12-102-2/+2
| | | | 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
* 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
* 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.
* 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>
* Add a DEVT_CD type for CD drivers.jhb2001-11-051-0/+1
|
* 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?
* Revert rev 1.3 which moved us away from POSIX character classes.obrien2001-11-031-4/+4
| | | | The community feels our base AWK must handle them.
* Bell-Labs AWK does not support POSIX "bracket expressions" (POSIXese forobrien2001-11-011-4/+4
| | | | | | | "character classes", basically). So change them to their character representation. Submitted by: David Wolfskill <david@catwhisker.org>
* grammar fix: to -> toosilby2001-10-011-1/+1
|
* Implement the long-awaited module->file cache database. A userlandpeter2001-09-115-119/+423
| | | | | | | tool (kldxref(8)) keeps a cache of what modules and versions are inside what .ko files. I have tested this on both Alpha and i386. Submitted by: bp
* mdoc(7) police: markup nits.ru2001-08-201-9/+17
|
* Limit the amount of KVM reserved for the buffer cache and for swap-metadillon2001-08-201-0/+27
| | | | | | | | | | | | | | | information. The default limits only effect machines with > 1GB of ram and can be overriden with two new kernel conf variables VM_SWZONE_SIZE_MAX and VM_BCACHE_SIZE_MAX, or with loader variables kern.maxswzone and kern.maxbcache. This has the effect of leaving more KVM available for sizing NMBCLUSTERS and 'maxusers' and should avoid tripups where a sysad adds memory to a machine and then sees the kernel panic on boot due to running out of KVM. Also change the default swap-meta auto-sizing calculation to allocate half of what it was previously allocating. The prior defaults were way too high. Note that we cannot afford to run out of swap-meta structures so we still stay somewhat conservative here.
OpenPOWER on IntegriCloud