summaryrefslogtreecommitdiffstats
path: root/sys/arch/sgi/stand/boot/boot.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Let sgi bootblocks build again.visa2020-06-061-4/+4
|
* /etc/random.seed reuse can now be detected. The stat +T bit marks the filederaadt2020-05-261-1/+7
| | | | | (fchmod +T by bootcode, chmod 600 by /etc/rc). If the seed is reused, and HWRNG isn't available, the kernel won't get RB_GOODSEED indication...
* make loadrandom() return 0 for success, -1 for failure. While here,deraadt2020-05-251-12/+18
| | | | | | relax the fstat() check because the system will have left the file in the right mode. ok visa kettenis
* Use arc4 to bit-spread the 512-byte random buffer over the .openbsd.randomdataderaadt2019-10-291-1/+6
| | | | | | | | | section, which has grown a fair bit with the introduction of retguard. Mortimer discovered the repeated 512-byte sequence as retguard keys, and this resolves the issue. (Chacha does not fit on the media, so 1.5K early drop RC4 is hopefully sufficient in our KARL link universe) Version crank the bootblocks. sysupgrade -s will install new bootblocks. ok djm mortimer
* merge version directly into codederaadt2019-10-281-3/+2
|
* change marks[] array to uint64_t, so the code can track full 64-bitderaadt2019-04-101-2/+2
| | | | | details from the ELF header instead of faking it. Proposal from mlarkin, tested on most architectures already
* /etc/random.seed support in the boot blocks (only when loading from disk).miod2014-02-221-6/+49
|
* Try to load entropy data from disk:/etc/random.seed, and additionallyderaadt2013-12-281-1/+3
| | | | | | | use a MD-supplied random function. Then, insert this into the ELF openbsd.randomdata of the kernel, so that it has entropy right from the start. Some help from jsing for the softraid aspects. Also tested by phessler
* Bring the `let decide ARCBios address at runtime' code to the SGI bootblocks,miod2012-09-291-3/+6
| | | | | | which allows them to run on IP26 (POWER Indigo2 R8000). Crank boot blocks version.
* Support for the POWER Indigo2 R10000 systems (IP28). Currently running withmiod2012-05-251-1/+2
| | | | | ECC checking disabled, which allows the existing Indigo2 drivers to run unmodified.
* Put more smarts into the limited bootblocks brain; they will now happilymiod2012-03-291-24/+63
| | | | | | | | | | | | recognize a kernel bootpath (when not autobooting) even if it does not start with a /, and will also recognize when this is a full path (e.g. bootp()mykernel), in which case OSLoadPartition does not need to be prepended to the constructed path. This will allow ELF kernels to be booted on ELF-unaware PROM with bootp()bootecoff bootp()kernel without doomed-to-fail tomfoolery to convert the 64-bit ELF kernel to a 32-bit ECOFF binary.
* Teach the bootblocks how to load kernel from tftp (i.e. when OSLoadPartitionmiod2012-03-191-1/+5
| | | | | | | | is bootp() instead of a disk). Kind of ugly because of the usual `can't seek' problem causing kernels with symbols to be read from the network twice. While there, add a 32 bit ECOFF boot block, not hooked to the build yet, to be used shortly.
* Make this compile without warnings in all modes, and do not use NULL whenmiod2011-04-091-4/+4
| | | | integer zero is intended.
* Undo unrelated changes commitedby mistake.miod2010-09-141-6/+4
|
* Force .rodata.str1.4 section to be merged into .text for the 32-bit bootblocks,miod2010-09-141-4/+6
| | | | fallout from using -mno-abicalls noticed by jsing@
* Use the new Elfxx_Phdr check hook to prevent loading a kernel not compiledmiod2009-11-301-1/+39
| | | | | for the platform we are running on (i.e. trying to boot e.g. bsd.IP32 on an IP27 machine).
* KSEG->CKSEG fallout.miod2009-11-241-4/+4
|
* When booting in `install software' mode from the SGI boot menu, do not try tomiod2009-05-301-18/+25
| | | | load bsd.rd but bsd.rd.IP## matching the IP code of the machine.
* In addition to the existing IP32 boot block, build a real 64 bit boot blockmiod2009-05-141-7/+21
| | | | | | | as a relocatable object, suitable for IP27/IP30/IP35. Boot blocks are now found is /usr/mdec/boot{32,64}, with boot-IP## being hard links to them for easy boot block pick.
* Change the OpenBSD/sgi boot loader so that we use libsa loadfile(), ratherjsing2008-05-201-402/+28
| | | | | | than rolling our own load functions. tested jasper@, feedback and ok miod@
* If we fail to load the kernel, drop the user into interactive mode of ARCS,jsing2008-03-281-3/+3
| | | | | | rather than just rebooting. ok deraadt@, miod@, jasper@
* Cleanup/style(9) code and comments.jsing2008-03-081-63/+65
|
* simple misspell, miod@ okjj2007-05-111-3/+3
|
* Create installation media that is recognized as such by the PROM.kettenis2005-08-011-17/+21
| | | | ok deraadt@
* spacingderaadt2005-04-271-52/+49
|
* if SystemPartition contains a cdrom boot specifier, whack thederaadt2005-04-271-10/+27
| | | | OSLoadPartition variable to point to partition 0 of the same unit.
* avoid the o{open,read,lseek} interfaces, and use the regular ones, becausederaadt2005-04-271-18/+18
| | | | we want to be able to handle gzip files
* Update boot with miods ELF64 symtab fixes and my 32 bit compilespefo2004-09-161-19/+138
|
* Kernel moves to 64 bit. A few more tweaks when binutils is updated.pefo2004-09-091-61/+154
|
* disk boot and tools for sgipefo2004-08-231-0/+298