summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/stand/boot
AgeCommit message (Collapse)Author
2024-06-30we don't need the NOBYFOUR space-savings option anymore, that codepathTheo de Raadt
was replaced a while ago. ok tb
2024-06-04Bump versions of boot media now capable of un-hibernating from non-DEV_BSIZEKenneth R Westerback
sectored media. Bump to common version (3.67) to indicate new MI capability. Reminded by deraadt@
2024-04-25Add boot.conf(8) 'mach idle [secs]' to halt at idle passphrase promptsKlemens Nanni
Enable users to power down their machines if there was no input after N seconds during disk descryption. Motivation is to save battery and prevent pocket heaters when notebooks unhibernate (e.g. lid accidentially opened) and sit at "Passphrase: ". Only available on efi(4) systems as the timeout is saved as EFI variable; mostly because that's trivial to do, but also because we lack a better mechanism to configure that and persist such data without the root disk. Discussed with many, starting at h2k23 OK Tests gnezdo
2023-07-22BOOTARG_UCODE for AMDJonathan Gray
ok deraadt@
2023-04-25Do not attempt to write to read-only softraidKlemens Nanni
Bootloaders have no write support for softraid volumes, which manifests in, e.g. /bsd.upgrade not being stripped of its 'x' permission bit to prevent sysupgrade loops in case of upgrade failure. Set a no-write flag handled by libsa to bail out early in write calls. There should be no real behaviour change, writes just fail earlier now. amd64 BIOS bits first, rest to come. Crank minor. "seems sensible" jsing
2023-04-17The bootblocks are 32-bit binaries which use the ENTRY() macros which nowTheo de Raadt
include endbr64 macros. That's not going to work, so use the simple method of -Dendbr64= to remove them from the instruction stream. ok kettenis guenther
2023-02-23Remove dangerous user-settable "addr" variable from MI boot loader, andMiod Vallat
only compile tty-related code (stty command, tty variable) on platforms where it makes sense for the boot loader to control it, rather than the PROM/firmware/whatever.
2022-12-08_C_LABEL() and _ASM_LABEL() are no longer useful in the "everythingPhilip Guenther
is ELF" world. Eliminate use of them in amd64, arm64, armv7, i386, macppc, mips64, and sparc64 code. ok deraadt@ jca@ krw@
2022-08-17Mention support for booting off RAID 1CKlemens Nanni
2022-08-12Crank amd64 boot loader version numbers for softraid(4) RAID 1C boot support.Stefan Sperling
2022-07-11Switch bootloaders to the extended BOOTARG_CONSDEV struct.Mark Kettenis
Make the EFI bootloader provide the extra parameters that are necessary for using the non-standard UART on the AMD Ryzen Embedded V1000 SoCs. ok anton@
2021-07-08sys/lib/libz isn't configured for lazy optimizations to save space becauseTheo de Raadt
those options are incompatible with the kernel anymore. Set DYNAMIC_CRC_TABLE and BUILDFIXED for these bootblocks, to save space on the media ok tb mlarkin
2020-12-09Use daddr_t and not daddr32_t in boot media.Kenneth R Westerback
At a minimum, amd64/i386 should now boot from 4TB GPT formatted disks. More daddr32_t terminations with extreme prejudice to follow. Tested by various, in snaps for a few days. ok deraadt@
2020-08-02additional files from libkern will be needed by clang10Theo de Raadt
from mortimer
2020-06-14crank version numberTheo de Raadt
2020-06-14rewrite mdrandom() in C. previously this XOR'd against rdrand if available,Theo de Raadt
and alternatively XOR'd against TSC. now always run both sequences, and also support rdseed as a third procedure. ok kettenis naddy
2020-05-26increment version numbers, due to recent RB_GOODSEED and fchmod +T changesTheo de Raadt
2020-03-05Allow amd64 boot(8) and friends to read from an ffs2 filesystem.Otto Moerbeek
Also enable ffs2 for floppy, so that its kernel kan access ffs2. ok deraadt@
2019-12-23The boot loader allows to inspect memory with the hexdump command.Alexander Bluhm
Document the new feature in boot(8) man page. OK jmc@ deraadt@
2019-11-28Implement a hexdump command in the boot loader. This helps toAlexander Bluhm
inspect the memory layout that the firmware has created. It is especially useful for UEFI debugging. OK deraadt@ kettenis@
2019-10-29Use arc4 to bit-spread the 512-byte random buffer over the .openbsd.randomdataTheo de Raadt
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
2019-10-20Improve previouskn
From and OK jmc
2019-10-20Document "set db_console 0|1"kn
OK deraadt
2019-08-03In the bootblocks, after discovering and opening /bsd.upgrade, fchmod -xTheo de Raadt
so the file cannot be re-executed upon the next boot. This provides a stronger one-shot-upgrade model than the upgrade script's rm /bsd.upgrade. Now various forms of upgrade failure will reboot into /bsd, which is probably more recoverable. Performing fchmod -x depends on (1) use of MI boot.c (not alpha/macppc/sparc64/sgi/octeon) and (2) "can write blocks" functionality in the IO layer. Most architectures have this support now. Two diagnostics "fchmod a-x %s: failed" and "/bsd.upgrade is not u+x" will remain in the tree while refinements happen for some of the laggard architectures. based upon a discussion florian tested in snapshots for more than a week without any complaints
2019-06-08When loading intel microcode in the non-efi case, error if the file isJonathan Gray
larger than 256KB not 128KB to cope with the 06-8e-09 microcode which is currently 193KB. Reported and tested by Paul de Weerd. Matches a diff from claudio@
2019-05-15Add support to the BIOS bootloader for random kernel base VAMike Larkin
This diff adds support to be able to load a randomly linked kernel VA (subject to some range restrictions). This change has been in snaps for a few days without any fallout. ok deraadt@
2019-05-11whitespace removalMike Larkin
2019-04-20libsa's memcpy() is actually memmove(). make a proper memmove(), and giveTheo de Raadt
memcpy() correct behaviour. This also brings the bcopy() macro into line.
2019-04-10crank versionsTheo de Raadt
2019-04-08crank version; looks good deraadtFlorian Obser
2019-01-02markup boot prompt commands using Ic, not Nm; ok jmc@anton
2018-11-07Document `machine gop [mode]' commandkn
Feedback and OK jmc
2018-08-10Bump boot loader versions for softraid passphrase handling change.Joel Sing
2018-07-11Detect vmm(4) in the bootloader and automatically switch to the serialMike Larkin
console at 115200 baud. tested by phessler and myself, ok deraadt
2018-04-18crank versionTheo de Raadt
2018-02-18document "machine video"; requested by tinkerJason McIntyre
while here, put "directory" in the right place
2018-02-06Load the Intel microcode much earlier. So far we had loaded it afterPatrick Wildt
the CPUs identified and then we had to update the CPU flags afterwards. As microcode updates can add/remove instructions and features, we need to load it earlier. Thus, make the bootloader look for the microcode and supply it to the kernel as another bootarg. This way we can update the cores' microcode before we identify them. ok deraadt@
2017-10-17remove the remaining references to .depend files since nothing creates themChristian Weisgerber
any longer; ok espie@ deraadt@
2017-09-08If you use sys/param.h, you don't need sys/types.hTheo de Raadt
2017-06-19As early as possible, create a link /bsd.booted to the /bsd kernel weTheo de Raadt
presume we booted from. If you boot from another kernel, we cannot help you later with hibernate, sorry -- The kernel does not get a useable filename from the bootblocks. In the bootblocks, detect a live hibernate signature and boot from /bsd.booted instead. with yasuoka, lots of discussion with mlarkin, ok tom
2017-05-30Allow building the bootstrap with clang:Christian Weisgerber
* skip the integrated assembler for assym.h * use as(1) to build biosboot.S and the various versions of srt0.S ok deraadt@
2016-09-18Bump boot loader versions due to bcrypt pbkdf support.Joel Sing
2016-09-18Add bcrypt pbkdf support to the softraid crypto boot loader code.Joel Sing
Based on a diff from djm@
2016-09-13crank bootloader version after .SUNW_ctf changeJasper Lievisse Adriaanse
as discussed with jsing@ it's easier this way to ensure people have bootblocks capable of loading the section
2016-09-11Switch amd64 to libsa MI softraid.Joel Sing
2016-09-11Rename softraid boot files, which are currently in an MD location. ThisJoel Sing
will allow us to bring in a MI softraid.{c,h} in lib/libsa.
2016-09-10Rename libsa pbkdf2.c to pkcs5_pbkdf2.c so that we match libutil.Joel Sing
2016-07-30Prep for relro: make sure it's off for any non-PIE stand/ programPhilip Guenther
ok millert@ kettenis@
2016-05-28crank version numbers of those bootloaders that have been changed byStuart Henderson
the com_init fix. ok beck deraadt
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung