summaryrefslogtreecommitdiff
path: root/sys/stand
AgeCommit message (Collapse)Author
2015-09-02Initial commit of uefi boot loader of OpenBSD.YASUOKA Masahiko
ok deraadt yuo
2014-07-20Merge cmd.c from zboot into boot, dropping "clear" command while at it.Tobias Stoeckmann
With input from deraadt@ okay jasper@, uebayashi@
2014-07-11whatever mickey had to drink 13 years ago, he's not going to find it again. soJasper Lievisse Adriaanse
just remove the comment and unneeded functionality which has been "#ifdef notused" for the past 13 years. OK uebayasi@
2014-06-27Avoid buffer overflow on max line length by ending string with just one \0.Tobias Stoeckmann
ok deraadt@
2014-06-27Avoid buffer overflow if there were too many arguments, also adjust lenpTobias Stoeckmann
to contain actually consumed space on truncation. bootarg_list can be static again, it's not referenced from outside. ok deraadt@
2014-02-19Don't try to close(-1) if EPERM.Miod Vallat
2014-01-24OK, loadrandom should not care about EPERM I supposeTheo de Raadt
2014-01-24remove irrelevant error handling in loadrandom; this operates on theTheo de Raadt
principe of fire and forget, and we really want developers to start trying to write per-architecture XOR thingies using timers and such
2014-01-24Only report about random seed failures, not attempts.Theo de Raadt
Discussed with jsing
2014-01-02loadrandom() status should be ignored, so that we do not loop.Theo de Raadt
issue reported by halex
2013-12-28Try to load entropy data from disk:/etc/random.seed, and additionallyTheo de Raadt
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
2013-12-23remove junkTheo de Raadt
2013-06-01Remove the old mkuboot since it was moved.Brandon Mercer
yes of course deraadt@
2013-05-30Make mkuboot install into the path so we can use it during builds.Brandon Mercer
OK jasper@
2011-04-17Tweak the behaviour of boot(8) on hppa. Normal boots now will give you aMark Kettenis
chance to interrupt the boot procedure before booting the default kernel, just like (most) of our other hardware platforms. Interactive boots, where you interrupt the firmware boot procedure and answer "Y" to the "Interact with IPL?" question will now wait for human intervention at the boot> prompt (without a timeout). Should reduce frustration when trying to boot an alternative kernel. ok deraadt@, miod@, jsing@, todd@
2010-07-10Remove debug print left in on last commit.Dale Rahn
2010-06-30tweak previous;Jason McIntyre
2010-06-30Add support for naming images and setting the type, including boot scripts.Dale Rahn
Input from deraadt@ and mk@
2010-03-10fix the option that sets the image operating system.Igor Sobrado
ok jmc@
2010-02-12Add mkuboot, a utility to build images for Das U-Boot.Michael Knudsen
This code is basically sys/arch/socppc/stand/mkboot/ but fixed to work on little endian machines and extended slightly to allow specifying the image OS and platform. Input from drahn and kettenis. ok kettenis
2009-04-30add another settable variable called db_console which the MD parts of aDavid Gwynne
bootloader will pass to the kernel to allow you to force ddb.console to be set (and set early) on a machine without having to do it on a per kernel basis using code or config tweaks. requested by art@ (who owes me good whiskey now) no problem! deraadt@
2009-02-16Cancel the automatic boot when you hold ctrl to skip boot.conf.Stuart Henderson
"I like it" deraadt "sweet" tedu "love it" marco
2007-06-26loadfile() returns an open file descriptor on successful exit, soTom Cosgrove
close it before going off to execute the newly-loaded kernel. ok deraadt@
2007-06-24When bootfile was made global so that macppc could modify it, itTom Cosgrove
clashed with a global variable already used by the bootblocks. Therefore rename bootfile here to kernelfile. ok drahn@
2007-06-13Switch macppc to the interactive bootloader in stand/boot.Dale Rahn
Much more useable on serial console systems.
2007-05-29these standalone commands are never used anymore; ok tomTheo de Raadt
2007-05-29remove support for many alternative kernel choices -- only try /bsd andTheo de Raadt
not the other stupid names. that feature was retarded. tested on a few architectures by a few people
2007-04-27Check for Control key held down when starting, and don't read boot.confTom Cosgrove
if it is. This gives a way to recover from "switching to com0" when there's no serial cable handy. Bump version numbers. A similar change will be made to amd64 boot soon. ok toby@ deraadt@
2007-02-21hand-cruft an isprint() for deciding which characters to echo to theTheo de Raadt
console; ignore all others. based on idea by didickman@gmail.com, ok tom
2005-05-24printf(s) -> printf("%s", s)Uwe Stuehler
2004-06-26Simplify expression in loop.Tom Cosgrove
ok deraadt@
2004-06-25Avoid spurious error message "line too long" (introduced with last commit,Tom Cosgrove
which fixed a buffer overflow here). ok weingart@
2004-06-24Identify ourselves on the new console device when it's changed.Tom Cosgrove
ok weingart@
2004-06-24Turn off timeouts if the user types anything at all. This prevents anTom Cosgrove
automatic boot in 5 seconds after you type "set tty com0", for example. "I like this" deraadt@, "oh! yes" henning@, ok weingart@
2004-06-24Minor changes (structural, not behavioural) in order to support a regressTom Cosgrove
test for boot command handling. Suggested by avsm@; discussed with avsm@ and weingart@ - thanks
2004-06-24Add comment explaining what "bootprompt" is forTom Cosgrove
2004-06-24If a line in boot.conf is too long for our buffer, stop before weTom Cosgrove
overrun the buffer, print an error message, then stop processing boot.conf. Also change name of variable "eof" to "rc", since it's not just for eof. ok weingart@
2004-01-29Allow the machine-dependent part of BOOT to change the program name.Tom Cosgrove
ok weingart@, deraadt@
2003-11-08typos from Jonathon Gray;Jason McIntyre
2003-08-11ansification and knf and protosTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-02three four kill ... dale agrees on this one as he holds a kprite on it tooMichael Shalayeff
2003-06-02three four kill ...Michael Shalayeff
2003-06-01strcpy/strcat/sprintf removal in all bootblocks. various testing byTheo de Raadt
various people. outside of some messy things in src/gnu, only one thing in the main tree now violates this rule: bind
2003-05-19allow md part to skip the interactive part (the first try around)Michael Shalayeff
2003-04-17oopsMichael Shalayeff
2003-04-17there is no reason to keep both around. just renameMichael Shalayeff
2003-04-17Common bootloader file for 'loadfile' performs same action as old exec main.Dale Rahn
eg boot.conf
2002-07-14Fix ^U^U^M buffer underrun bugMarcus Watts
2002-03-14Final __P removal plus some cosmetic fixupsTodd C. Miller