summaryrefslogtreecommitdiffstats
path: root/sys/boot/common
Commit message (Collapse)AuthorAgeFilesLines
* Style: use the defined() expression explicitly.ru2004-02-071-3/+3
|
* Rename the kern.vm.kmem.size tunable to the more logical vm.kmem_size. Todes2004-01-272-6/+6
| | | | | | | | | | | assure backward compatibility (conditional on !BURN_BRIDGES), look it up by its old name first, and log a warning (but accept the setting) if it was found. If both the old and new name are defined, the new name takes precedence. Also export vm.kmem_size as a read-only sysctl variable; I find it hard to tune a parameter when I don't know its default value, especially when that default value is computed at boot time.
* Override the root server address if an IP address is specified iniedowse2003-11-031-7/+9
| | | | | | | | | the root path. This is reported to make non-PXE netbooting, such as is used on sparc64 systems, work correctly when the TFTP server is not the same as the root server. PR: kern/57328 Submitted by: Per Kristian Hove <Per.Hove@math.ntnu.no>
* Use __FBSDID().obrien2003-08-2521-49/+74
| | | | Also some minor style cleanups.
* Capitalize an occurrence of 'ficl' for consistency.brueffer2003-06-291-1/+1
| | | | | Submitted by: Andre Guibert de Bruet <andy@siliconlandmark.com> MFC after: 3 days
* Build on amd64. Yes, I know this isn't particularly nice.peter2003-06-261-4/+0
|
* Fixed the markup and wording of the kern.ipc.nsfbufs tunable.ru2003-05-171-3/+5
| | | | | | (It does not modify NSFBUFS, but just overrides it if set.) Approved by: re (blanket)
* Fix lookup of module metadata on amd64 systems. While this is inpeter2003-05-121-5/+25
| | | | | | | | common code, the non-trivial part is #ifdef'ed and only executes when loading amd64 kernels. The rest is trivial but needed for the the amd64 case. (Two variables changed from char ** to Elf_Addr). Approved by: re (amd64 "low-risk" stuff)
* Since we insist on loading the POS ACPI by default, give the poor userobrien2003-05-051-0/+5
| | | | instructions on the main help screen for disabling it.
* Fix a bunch of typos and grammatical errors.murray2003-05-041-42/+43
| | | | | | PR: docs/40234 Submitted by: Chris Pepper <pepper@rockefeller.edu> (mostly) MFC After: 3 days
* Enable the i386 loader to load and run an amd64 kernel. If this putspeter2003-05-015-56/+88
| | | | | | | | | | | | | | | things over floppy size limits, I can exclude it for release builds or something like that. Most of the changes are to get the load_elf.c file into a seperate elf32_ or elf64_ namespace so that you can have two ELF loaders present at once. Note that for 64 bit kernels, it actually starts up the kernel already in 64 bit mode with paging enabled. This is really easy because we have a known minimum feature set. Of note is that for amd64, we have to pass in the bios int 15 0xe821 memory map because once in long mode, you absolutely cannot make VM86 calls. amd64 does not use 'struct bootinfo' at all. It is a pure loader metadata startup, just like sparc64 and powerpc. Much of the infrastructure to support this was adapted from sparc64.
* Zap some a.out leftoverspeter2003-04-061-3/+0
|
* Libdisk does not need to include <sys/diskslice.h> any more.phk2003-04-042-2/+0
| | | | | | | | | Move the remaining bits of <sys/diskslice.h> to <i386/include/bootinfo.h> Move i386/pc98 specific bits from <sys/reboot.h> to <i386/include/bootinfo.h> as well. Adjust includes in sys/boot accordingly.
* Fix a few spelling errors.trhodes2003-03-071-3/+3
| | | | Submitted by: Stefan Farfeleder <stefan@fafoe.dyndns.org> via -doc.
* Document the tunable kern.ipc.nsfbufs in help.common and loader.8. Smallseanc2003-03-042-4/+11
| | | | | | | nearby grammar fixup that saves a line of display while in the loader (help set tunables), but reuses the line for kern.ipc.nsfbufs. Approved by: roam
* FreeBSD 5.0 has stopped shipping /modules 2.5 years ago. Catchru2003-03-033-3/+3
| | | | | up with this further by excluding /modules from the (default) kern.module_path.
* Only apply rev 1.10 (which hacks around the i386 boot2 being too big forobrien2003-02-251-0/+5
| | | | both ufs1 and ufs2 support) on i386.
* Revert to old (broken for over 1.5Tb filesystems) version of cgbasemckusick2003-02-241-0/+2
| | | | | | so that boot loader once again will fit. Sponsored by: DARPA & NAI Labs.
* s/hw.pci_allow_unsupported_io_range/hw.pci.allow_unsupported_io_range/trhodes2003-02-081-1/+1
| | | | The former was incorrect and gave an `unknown oid' error.
* Fix module dependency (pre)loading on sparc64 by relocating the variablesjake2003-01-211-6/+57
| | | | | | | | read from the raw kld files. Submitted by: Hartmut Brandt <brandt@fokus.gmd.de> PR: 46870 Tested on: alpha (obrien), i386, sparc64
* Minimally document hw.syscons.sc_no_suspend_vtswitch.mdodd2003-01-151-0/+6
| | | | Requested by: Nate Lawson <nate@root.org>
* Restructure so we can compile UFS1_ONLY, UFS2_ONLY or UFS1_AND_UFS2phk2002-12-141-91/+33
| | | | versions from the same basic function.
* Uniformly refer to a file system as "file system".ru2002-12-121-1/+1
| | | | Approved by: re
* Create a new 32-bit fs_flags word in the superblock. Add code to movemckusick2002-11-271-1/+1
| | | | | | | | | | | | | | | | | the old 8-bit fs_old_flags to the new location the first time that the filesystem is mounted by a new kernel. One of the unused flags in fs_old_flags is used to indicate that the flags have been moved. Leave the fs_old_flags word intact so that it will work properly if used on an old kernel. Change the fs_sblockloc superblock location field to be in units of bytes instead of in units of filesystem fragments. The old units did not work properly when the fragment size exceeeded the superblock size (8192). Update old fs_sblockloc values at the same time that the flags are moved. Suggested by: BOUWSMA Barry <freebsd-misuser@netscum.dyndns.dk> Sponsored by: DARPA & NAI Labs.
* Eliminate references to defunct kernel tunables.yar2002-11-262-23/+0
| | | | | Approved by: re PR: bin/43343
* Document loader tunables hw.pci.enable_io_modes andmdodd2002-11-132-0/+24
| | | | | | | hw.pci.allow_unsupported_io_range. Submitted by: Hiten Pandya <hiten@angelica.unixdaemons.com> Approved by: re (murray)
* Loader tunable 'machdep.disable_mtrrs'.mdodd2002-11-132-0/+6
| | | | | | | | Sysctl of same name to reflect status. Submitted by: jhb Approved by: re (murray) MFC after: 1 day
* 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
|
OpenPOWER on IntegriCloud