summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand/pxeboot
AgeCommit message (Collapse)Author
2014-11-19Only keep {recv,send}udp() in the pxe-specific code, the remainder of whatMiod Vallat
used to be local net.c (renamed to pxe_udp.c) can now be obtained from libsa's net.c rather than being duplicated. No functional change.
2014-11-18Nuke some obvious #include duplications.Kenneth R Westerback
ok espie@ deraadt@ millert@ tedu@
2014-07-15mode 644 for installing these filesTheo de Raadt
2014-07-13Stop using old n_long and n_short types.Martin Pieuchot
2014-07-13move putchar() into libsaJasper Lievisse Adriaanse
"sure" miod@
2014-07-12move getchar() into libsa where applicableJasper Lievisse Adriaanse
ok miod@
2014-05-20remove irrelevant, outdated, and misleading sentence suggesting thatAlexander Hall
you need to set up a local mirror for the install sets brought to attention by pascal@ ok krw@
2014-03-13Unhook httpd(8) from build; man page bitsFlorian Obser
tweaks jmc@ OK krw@, gilles@, lteo@, tedu@, todd@, benno@, sthen@ "The time is right." and much help getting the show on the road deraadt@
2014-02-18Bump version numbers.Joel Sing
2014-01-02crank version after random instruction fix from jsingTheo de Raadt
2013-12-28crank the versionTheo de Raadt
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-10-20Add i386/amd64 boot(8) support for keydisk-based softraid crypto volumes.Stefan Sperling
So far, only passphrase-based crypto volumes were bootable. Full disk encryption with keydisks required a non-crypto partition to load the kernel. The bootloader now scans all BIOS-visible disks for RAID partitions and automatically associates keydisk partitions with their crypto volume. Attempting to boot from a volume without its keydisk currently results in a passphrase prompt (this might be changed in the future). There is no need to re-create existing volumes. Moving the root partition onto the crypto disk and running installboot(8) is all that's needed. help & ok jsing
2013-04-23Include udivdi3/umoddi3 when compiling the amd64/i386 boot blocks - theyJoel Sing
are needed for the upcoming type changes. ok deraadt@
2013-01-18fix bogus dependencies, and allow mkdep to runMarc Espie
checked on amd64 by rpe@ okay jsing@
2013-01-18Generate assym.h where we need it, instead of reaching around into otherJoel Sing
object directories.
2013-01-18Clean up/standardise makefiles for i386/stand.Joel Sing
2012-10-31Bump version numbers.Joel Sing
2012-10-31Enable softraid boot support for cdboot(8) and pxeboot(8).Joel Sing
2012-10-31Make cdboot(8) and pxeboot(8) work correctly when it is larger than 64KB inJoel Sing
size. When relocating use blocks that are a maximum of 32KB in size and increment the segment registers after relocating each block. This keeps us within the confines of the %cx register and the real mode segmented addressing.
2012-10-29Build i386 cdboot(8) and pxeboot(8) using the same method as the amd64Joel Sing
versions. Compile all required sources directly, rather than linking against uninstalled libraries. Discussed with deraadt@
2012-10-13pxe spec reference is better placed in STANDARDS;Jason McIntyre
2012-10-11Initialise the protected mode IDT after zeroing .bss - otherwise we wipeJoel Sing
the IDT that we have just finishing building.
2012-10-09Bump boot versions due to recent changes.Joel Sing
2012-10-09Remove -noinhibit-exec now that we no longer have to deal withJoel Sing
"relocation truncated" linker errors.
2012-09-25Reduce the diff between amd64/stand and i386/stand, requested by deraadt@.Pascal Stumpf
These create essentially the same bootblocks, so the build system should not be diverging too much, or at least easily diffable. There is still a lot of work to be done here, but this is the low-hanging fruit. ok jsing@
2012-08-29Kill all NOPIE and NOPIE_FLAGS in i386/stand, replacing them with -fno-piePascal Stumpf
and -nopie directly. Binaries from a PIE system are identical to those from a recent snapshot. ok deraadt@
2012-08-21Add NOPIE= bits for sys/arch/*/stand to ensure that bootblocks will always bePascal Stumpf
built with -fno-pie. This gets the hairiest part of PIE out of the way ... ok deraadt@
2012-06-03Add support for serial consoles at non-standard addresses. This implementsMark Kettenis
a new "machine comaddr" command that makes it possible to configure the io port used to access the serial port. This can be used to use serial ports on a puc(4) device as serial console.
2012-03-09- remove a redundant note about tftpd; ok dlgJason McIntyre
- whilst here, normalise Nd
2011-06-26kill mcd dead. ok krw matthew millert thibTed Unangst
2011-06-26remove remnants of scd device, discovered by Frederic PerrinTed Unangst
2011-03-08Fix extended partition searching so we don't get lost. The offsetKenneth R Westerback
of the next EBR is relative to the start of the extended partition described in the first MBR, not relative to the EBR specifying the offset in its extended partition entry. Clean up installboot -v output. Use daddr64_t for all sector numbers. Not a complete fix, but better than what we had. More tweaks to come. Inspired by a diff and cluebat from uscav on tech@ a few weeks ago. Feedback from matthew@, weingart@. ok deraadt@
2010-12-06- properly remove NENTS now after fixing the fallout.Jasper Lievisse Adriaanse
ok deraadt@
2010-12-06- partially revert previous NENTS removal for arches which got busted.Jasper Lievisse Adriaanse
2010-12-06- drop NENTS(), which was yet another copy of nitems().Jasper Lievisse Adriaanse
no binary change ok deraadt@
2010-08-11crank versionTheo de Raadt
2010-07-10actually, pxeboot must remain linked with -NTheo de Raadt
2010-07-10link bootblocks with -Z instead of -N, to ensure that the file offset andTheo de Raadt
addresses line up correctly. Newer i386 gcc4 - for some reason -- is prompting the linker with -N to not do this alignment which it used to do (perhaps because the alignment of all .o's have dropped to very small amounts??). Using -Z wastes around a page of bootblock space which matters even more on the small install media, so this definately needs revisiting. Workaround from toby
2010-07-02Add ability to limit memory presented to kernel withTobias Weingartner
'machine memory =128M' style commands. Thanks to phessler for finding a small man page niggle. Bumped version strings to a nice round fraction, and make them the same across the board. Easier to identify boot binary versions that way. ok thib@, tedu@, phessler@
2009-01-16add next-server option to exampleOleg Safiullin
ok jmc@ stevesk@
2008-04-19Change ELF loader to use the LMA as the load address for theTobias Weingartner
various segments. Hopefully this will help remove various hacks in the boot loader in the future. This should have no effect on most architectures (as we tend to have LMA == VMA). ok drahn@, soft ok's various others.
2007-11-25libkern, begone. Move to a new mechanism where config(8)'s "file"Theo de Raadt
directive can select between MI and MD versions of these files. At the same time, adjust the boot programs to pick exactly what they need, instead of the 7 or 8 mechanisms previously used. There will be some fallout from this, but testing it all by myself is a ridiculously slow process; it will be finished in-tree. Various developers were very nice and avoided making fun of me when I was gibbering in the corner..
2007-07-27We don't want to pass the PXE MAC address to the kernel when bootingTom Cosgrove
from a local disk, since the MAC address causes the kernel to look for root on NFS. Do this by remembering (not adding to boot arguments) the MAC address when opening the PXE device, and clearing this if we happen to load a file off a non-network disk. "works as advertised for me" todd@; "stop sitting on this/no objections" deraadt@
2007-06-27wt(4) was removed a while ago, so don't support booting off it anoymore.Michael Knudsen
i386/amd64 was ok tom zaurus ok drahn
2007-05-31Forgot to commit the changes to this file with the rest of the ELF32+64Tom Cosgrove
pieces. Since this is where the "boot both ELF32 and ELF64" behaviour is turned on for i386, it is quite important. Bump version numbers too. Found by ckuethe@; thanks.
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-30Pull out the ELF loadfile pieces from the standalone libraries, so thatTom Cosgrove
both 32- and 64-bit versions can be created (previously only one or the other could be built for a given boot loader). Use this to allow the i386 and amd64 boot blocks to boot both ELF32 and ELF64 kernels (i.e. amd64 boot blocks can now load i386 kernels, and vice versa). Obviously the system must support LONG mode in order to successfully run the amd64 kernel once it is loaded. Advice and discussions from/with dale@ (going back three years). Much testing nick@ and todd@; thanks.
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-12OpenBSD -> .OxJason McIntyre
> -> \*(Gt