summaryrefslogtreecommitdiffstats
path: root/sys/boot
Commit message (Collapse)AuthorAgeFilesLines
* Add -ffreestanding to avoid printf/puts/putchar conversionspeter2002-03-194-0/+4
|
* Boot from efifs first.peter2002-03-192-2/+2
|
* gcc-3.1 likes to have extra { } around the internal array initializers inpeter2002-03-191-5/+5
| | | | the GUID templates.
* Add splitfs vfs layer into libstand, which allows loading big kernels andsobomax2002-03-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | modules split across several physical medias. Following is how it works: The splitfs code, when asked to open "foo" looks for a file "foo.split" which is a text file containing a list of filenames and media names, e.g. foo.aa "Kernel floppy 1" foo.ab "Kernel floppy 2" foo.ac "Kernel and modules floppy" For each file segment, the process is: - try to open the file - prompt "Insert the disk labelled <whatever> and press any key..." - try to open the file - return error if file could not be located RE team is free to use this feature in the upcoming 5.0-DP1. Reviewed by: msmith, dcs
* mdoc(7) police: fix a typo and markup.ru2002-03-151-2/+6
|
* Implement -m and -p loader(8) "boot" command options in boot2.ru2002-03-132-6/+14
| | | | | (This is more useful for 4.x where boot blocks can still load kernels, modulo the PR kern/17422.)
* Further document "console" (nullconsole).ru2002-03-131-2/+5
|
* CG superfluous prototype.sobomax2002-03-101-1/+0
|
* Change every occurrence of "bootblock" into "boot1" afterrobert2002-03-051-7/+7
| | | | the repo-move from "src/sys/boot/sparc64/bootblock".
* - Fix seeking for offsets requiring more than 32 bits.robert2002-03-052-10/+54
| | | | | | | - Add sanity checks to lookup(). - Implement the 'l' modifier in printf(). Submitted by: tmm
* Support for USB fm radio.alfred2002-03-041-0/+1
| | | | Submitted by: David Yeske <dyeske@yahoo.com>
* Catch up to change in tte format.jake2002-03-011-3/+3
| | | | | Forgetten by: jake Submitted by: tmm
* Add -D_KERNEL to CFLAGS for ntohl().nyan2002-02-281-1/+1
|
* - Fix indentation and return statements to conform to style(9).robert2002-02-262-810/+856
| | | | | | | - Use the __FBSDID macro. - Fix some warnings. Submitted by: obrien (partly)
* 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
|
* Keep track of the ttes used to map the kernel and pass them to it as loaderjake2002-02-234-35/+126
| | | | | metadata. Modify tlb handling functions to take a tte, instead of virtual address, physical address and flags.
* Add -ffreestanding to CFLAGS.jake2002-02-231-0/+1
|
* Add make variables for fs support and propagate them to CFLAGS. Putjake2002-02-231-9/+21
| | | | -ffreestanding in CFLAGS. Remove unnecessary LDFLAGS.
* Fix test for != 0 that should be > 0.jake2002-02-231-1/+1
|
* Check the return values of index() and don't dereference it if its null;jake2002-02-231-2/+8
| | | | | the path may not have a ':' in it. The mac address property is called mac-address for sparc64. Don't allocate a dma buffer for sparc64 either.
* #if 0 more bootinfo stuff.jake2002-02-231-0/+4
|
* Fix fs support ifdefs. Add tftp support. Add physical and virtualjake2002-02-231-12/+107
| | | | | | | | watchpoint support for debugging (under LOADER_DEBUG). Claim the physical and virtual addresses used to map the kernel from the prom; we map it ourselves behind the scenes though. Add a reboot command. Submitted by: tmm
* Allocate a frame on our initial stack so that it doesn't run off intojake2002-02-232-12/+24
| | | | | | random memory. Disable interrupts while loading the tlb. Submitted by: tmm
* Add OF_claim_virt() and OF_release_phys().jake2002-02-232-0/+72
| | | | Submitted by: tmm
* Include <machine/metadata.h>.jake2002-02-231-0/+2
|
* Document the hw.physmem kernel environment variable.davidc2002-02-212-0/+8
| | | | Reviewed by: alfred
* - Remove unneeded variable.robert2002-02-151-2/+0
| | | | | | | - Remove change for my local configuration that slipped in with the last commit; I am having problems booting when multiple SCSI disks are attached, so I will change this part as soon as I find a solution, anyway.
* This file is now unneeded.robert2002-02-151-492/+0
|
* - Do not include a NetBSD header as it is not needed anymore.robert2002-02-151-24/+11
| | | | | | | | | | - Remove two constants that were needed in conjuction with the NetBSD disklabel header. Use the FreeBSD equivalents. To boot from NetBSD/sparc64 partitions, define LABELOFFSET to be 128. - Do not use the complete open firmware path to filter out cdrom drives. No path containing "cdrom" is detected as a disk now. - Simplify some code.
* Add the FreeBSD/sparc64 bootblock and its make file.robert2002-02-154-0/+1448
|
* Expand COMBRD(x) macro.nyan2002-02-011-2/+2
|
* 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-212-0/+7
| | | | | | | 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
* 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.
OpenPOWER on IntegriCloud