summaryrefslogtreecommitdiff
path: root/sys/boot/forth
AgeCommit message (Collapse)Author
2017-11-14Move sys/boot to stand. Fix all references to new locationWarner Losh
Sponsored by: Netflix Notes: svn path=/head/; revision=325834
2017-11-13Don't add /boot/dt*s* but /boot/dt*b*. Stupid think-o. /boot/dtb wasWarner Losh
what was tested... Notes: svn path=/head/; revision=325780
2017-11-13Add /boot/dts to the list of default modules. The minimal arm and mipsWarner Losh
loader.conf for uboot have this in the list, but the default one didn't. Since there's no harm and it's a failsafe, add it to the list. Sponsored by: Netflix Notes: svn path=/head/; revision=325779
2017-11-13Add loader.conf to the list of files that are MD.Warner Losh
loader.conf is also different between machines. On arm it's a minimal one that's not quite compatible with the default one. On arm it's minimal for speed, which is good, but there's also extra things in it relative to the default on which break loading FDT which is bad. This doesn't address that issue, but instead ensures the minimal one for arm is used. A similar issue for mips exists, but since we can have a beri variant of /boot/loader and a uboot variant, I'm leaving that mess alone for the moment. Sponsored by: Netflix Notes: svn path=/head/; revision=325775
2017-11-12Make sure the proper loader.rc gets installed.Warner Losh
There were two things wrong. First, the wrong path was listed in .PATH statement. Second, BOOTSRC wasn't yet defined for the .PATH, so it didn't properly add it. Third, even if these were right, . was in the path before, so it wouldn't have worked. Replace this with a simple loop so the proper loader.rc gets selected. Noticed by: dhw@ (menus stopped working on boot) Sponsored by: Netflix Notes: svn path=/head/; revision=325743
2017-11-10Install the 4th files in sys/boot/forth instead of each loaderWarner Losh
Also, move generation of loader.help into loader.mk. Set HELP_FILES= to disable this (so we only install one help file, for now). At the same time remove some duplicate -I lines. Fix several FILES= and CLEANFILES= into the += form since we're touching both of those in the .mk files. Make sure we only build one loader.help file per platform in a unified way (we were building many on some, with the last to install winning, though often they were the same text). Also, we're now installing loader.rc and menu.rc everywhere. arm and mips uboot installed these as menu.rc.sample, but there's no need since the loader.rc for those platforms doesn't do menu.rc processing by default. pcibios.4th is now installed everywhere, but will failsafe on non x86 platforms (it isn't loaded by default anywhere). These changes are too intertwined to do separately since aspects of each are required to have a bug-free commit. Sponsored by: Netflix Notes: svn path=/head/; revision=325694
2017-09-05Add smn(4) driver for AMD System Management NetworkConrad Meyer
AMD Family 17h CPUs have an internal network used to communicate between the host CPU and the PSP and SMU coprocessors. It exposes a simple 32-bit register space. Reviewed by: avg (no +1), mjoras, truckman Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D12217 Notes: svn path=/head/; revision=323184
2017-06-16Add chain loader support for loaderToomas Soome
Implement simple chain loader in loader; this update does add chain command, taking device or file as argument to load and start new boot loader. In case of BIOS, the chain will read the boot block to address 0000:7c00 and jumps on it. In case of UEFI, the chain command is to be used with efi application, typically stored in EFI System Partition. The update also does add simple menu entry, if the variable chain_disk is set. The value of the variable chain_disk is used as argument for chain loading. Relnotes: yes Differential Revision: https://reviews.freebsd.org/D5992 Notes: svn path=/head/; revision=320011
2017-06-10Switch the example name for variables controlling loading memory imagesEdward Tomasz Napierala
in /boot/defaults/loader.conf to something that's actually commonly used, "mdroot". It's arbitrary, but it's easier to find this way. MFC after: 2 weeks Notes: svn path=/head/; revision=319798
2017-04-24Remove the NATM framework including the en(4), fatm(4), hatm(4), andBrooks Davis
patm(4) devices. Maintaining an address family and framework has real costs when we make infrastructure improvements. In the case of NATM we support no devices manufactured in the last 20 years and some will not even work in modern motherboards (some newer devices that patm(4) could be updated to support apparently exist, but we do not currently have support). With this change, support remains for some netgraph modules that don't require NATM support code. It is unclear if all these should remain, though ng_atmllc certainly stands alone. Note well: FreeBSD 11 supports NATM and will continue to do so until at least September 30, 2021. Improvements to the code in FreeBSD 11 are certainly welcome. Reviewed by: philip Approved by: harti Notes: svn path=/head/; revision=317383
2017-04-16Replace the RC4 algorithm for generating in-kernel secure randomMark Murray
numbers with Chacha20. Keep the API, though, as that is what the other *BSD's have done. Use the boot-time entropy stash (if present) to bootstrap the in-kernel entropy source. Reviewed by: delphij,rwatson Approved by: so(delphij) MFC after: 2 months Relnotes: yes Differential Revision: https://reviews.freebsd.org/D10048 Notes: svn path=/head/; revision=317015
2017-03-23The original author abused Nd (one-line description, used by makewhatis)Dag-Erling Smørgrav
for its side effect of producing an en-dash. This broke whatis with newer versions of mdocml. Use \(en instead. MFC after: 1 week Notes: svn path=/head/; revision=315850
2017-03-22Garbage collect if_igb reference in loader.confEnji Cooper
if_igb was merged with if_em in r311849 X-MFC with: r311849 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=315739
2017-03-22Document some more 10GbE+ network drivers in loader.confEnji Cooper
- if_cxgbe - if_ixl - if_ixlv - sfxge MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=315738
2017-02-28Remove SVR4 (System V Release 4) binary compatibility support.Gleb Smirnoff
UNIX System V Release 4 is operating system released in 1988. It ceased to exist in early 2000-s. Notes: svn path=/head/; revision=314373
2017-02-01loader.efi environment related cleanupsToomas Soome
Since we have dedicated libefi/env.c file for variable support, the following changes are done: Simple cstyle changes in env.c Moved efi variable related commands from loader/main.c to libefi/env.c Did create function to set "efi-version" environment variable in env.c. This function does serve two purposes: for first a small clean up of the loader main(), and for second, it does replace the otherwise unused efi_variable_support hack. A bit of cleanup of ficl backend functions. The TEST_MAIN has no meaning, and removed few memory leaks. The forth code is updated to use "efi-version" variable, instead of ficl environment check. Reviewed by: imp Approved by: imp (mentor) Differential Revision: https://reviews.freebsd.org/D9165 Notes: svn path=/head/; revision=313042
2017-01-28Remove pc98 support completely.Yoshihiro Takahashi
I thank all developers and contributors for pc98. Relnotes: yes Notes: svn path=/head/; revision=312910
2016-12-22Add a dumpdev example to /boot/defaults/loader.confAlan Somers
Submitted by: rgrimes MFC after: 4 weeks Sponsored by: Spectra Logic Corp Notes: svn path=/head/; revision=310417
2016-11-15New driver for Broadcom NetXtreme-C and NetXtreme-E devices.Stephen Hurd
This driver uses the iflib framework supporting Broadcom 25/50Gbps devices. Reviewed by: gallatin, wblock Approved by: davidch MFC after: 2 weeks Relnotes: yes Sponsored by: Broadcom Limited Differential Revision: https://reviews.freebsd.org/D7551 Notes: svn path=/head/; revision=308696
2016-11-09boot/forth spelling issue in forth wordToomas Soome
Reviewed by: dteske, imp Approved by: imp (mentor) Differential Revision: https://reviews.freebsd.org/D8484 Notes: svn path=/head/; revision=308476
2016-10-24Preliminary support for EFI in boot loader. Define efi-boot forthWarner Losh
environment variable to allow conditional compilation based on EFI being present or not. Provide efi-setenv, efi-getenv, and efi-unsetenv, though those need improvement. Move the efi definition to libefi (but include a reference so they get included). Notes: svn path=/head/; revision=307879
2016-08-31Remove accidentally committed stray comment.Warner Losh
Noticed by: dteske@ Notes: svn path=/head/; revision=305132
2016-08-31Create a hook 'post-initialize' for people that want to defineWarner Losh
something (perhaps in loader.rc.local) that can read in .conf files after all the other .conf files have been read and override settings in them. This is quite handy if the .conf file name is determined while the loader is running, but might be generically useful for other things. If this hook exists, call it, otherwise don't do anything. Doing it in these functions ensures that this file is reliably read. It also works around a defect in forth where s" isn't allowed outside a function (well, in a compile context) leading to gross workarounds if one were to hack loader.rc like: : maybe-some-func s" some-func" sfind if execute else drop then ; maybe-some-func which somehow seems worse. Though I'm sure there's some clever forthy way of doing that with a macro. Sponsored by: Netflix, Inc Notes: svn path=/head/; revision=305107
2016-05-18Explain why extra sutff always outputs even when it shouldn't for theWarner Losh
'?' command. Wasted a bunch of time tracking it down tonight. Notes: svn path=/head/; revision=300115
2016-05-17Remove the reiserfs(5) manpage and an example of loading the kernel module.John Baldwin
Notes: svn path=/head/; revision=300071
2016-04-30boot/forth: spelling fixes.Pedro F. Giffuni
Reviewed by: dteske MFC after: 2 weeks Notes: svn path=/head/; revision=298831
2016-04-08Document vfs.root.mountfrom.Maxim Sobolev
Reviewed by: imp, wblock Differential Revision: https://reviews.freebsd.org/D5332 Notes: svn path=/head/; revision=297690
2016-02-24Obsolete mkulzma(8) and geom_uncompress(4), their functionalityMaxim Sobolev
is now provided by mkuzip(8) and geom_uzip(4) respectively. MFC after: 1 month Notes: svn path=/head/; revision=295945
2016-01-06Enable the beastie menu for the UEFI consoleEd Maste
As of r293233 the UEFI console includes basic terminal emulator support. MFC after: 2 weeks Relnotes: Yes Notes: svn path=/head/; revision=293234
2015-12-31Introduce the ZFS Boot Environments menu to the loader menuAllan Jude
If the system was booted with ZFS, a new menu item (#7) appears It contains an autogenerated list of ZFS Boot Environments This allows the user to switch to an alternate root file system Use Cases: - Revert a failed upgrade - Concurrently run different versions of FreeBSD with common home directory - Easier integration with the sysadmin/beadm utility Requested by: many Reviewed by: dteske MFC after: 10 days Relnotes: yes Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D3167 Notes: svn path=/head/; revision=293001
2015-12-31Remove supposition comment that code would better live elsewhere.Devin Teske
Thinking this through, and looking at process_assignment, I believe moving the code would be wrong considering that set_conf_files is called in one condition while set_nextboot_conf is guarded by a different condition of having nextboot_enable="YES". So these must stay separated and not combined. MFC after: 1 week Notes: svn path=/head/; revision=293000
2015-12-31Fix a memory leak. nextboot_conf_file is not volatile, as far as IDevin Teske
can tell, and thus the strdup is entirely unnecessary. Thanks to: Toomas Soome (tsoome at-me dot-com) MFC after: 1 week Notes: svn path=/head/; revision=292999
2015-12-31Remove debugging messages. NB: SVN r187143 reads:Devin Teske
comment out some debugging messages that slipped in by mistake (removing them 7 years after they have been commented out) MFC after: 1 week Notes: svn path=/head/; revision=292996
2015-12-30Fix stack leak introduced by SVN r97201 (nextboot_conf support).Devin Teske
Fix erroneous error path in error messages when processing boot_conf. Fixup stack comments for functions introduced by SVN r97201. Remove a questioning stack comment introduced by SVN r186789. NB: Comment removed because strdup usage here is correct/not a leak. MFC after: 1 week Notes: svn path=/head/; revision=292899
2015-12-01META MODE: Update dependencies with 'the-lot' and add missing directories.Bryan Drewery
This is not properly respecting WITHOUT or ARCH dependencies in target/. Doing so requires a massive effort to rework targets/ to do so. A better approach will be to either include the SUBDIR Makefiles directly and map to DIRDEPS or just dynamically lookup the SUBDIR. These lose the benefit of having a userland/lib, userland/libexec, etc, though and results in a massive package. The current implementation of targets/ is very unmaintainable. Currently rescue/rescue and sys/modules are still not connected. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291563
2015-08-06Remove guards around overwriting loader.rc and menu.rcAllan Jude
There have been .local version of each for user modifications for some time This allows users to receive future updates to these files PR: 183765 Submitted by: Bertram Scharpf, Nikolai Lifanov (patch) Reviewed by: dteske, loos, eadler Approved by: bapt (mentor) MFC after: 1 month Relnotes: yes Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D3176 Notes: svn path=/head/; revision=286368
2015-07-31Document the existence of cloudabi_load and cloudabi64_load.Ed Schouten
Notes: svn path=/head/; revision=286111
2015-07-25Use consistent spacing.Edward Tomasz Napierala
MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=285882
2015-07-25Add md_root example to defaults/loader.conf.Edward Tomasz Napierala
Note that this doesn't quite work yet - the preloaded image gets loaded twice for some reason. MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=285881
2015-07-25Use double newlines consistently.Edward Tomasz Napierala
MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=285875
2015-06-30Updated random(4) boot/shutdown scripting.Mark Murray
Fix the man pages as well. Differential Revision: https://reviews.freebsd.org/D2924 Approved by: so (delphij) Notes: svn path=/head/; revision=284960
2015-06-21Install version.4th.8 againAntoine Brodin
It was disconnected from installation in r281081, but was never removed from the tree or added to ObsoleteFiles.inc Notes: svn path=/head/; revision=284672
2015-06-02Add comments to indicate where the flag for later abort" originates.Devin Teske
MFC after: 3 days X-MFC-to: stable/10 Notes: svn path=/head/; revision=283933
2015-04-29Improve support for blacklisting bad memory locations. The user can supplyScott Long
a text file with a list of physical memory addresses to exclude, and have it loaded at boot time via the provided example in loader.conf. The tunable 'vm.blacklist' remains, but using an external file means that there's no practical limit to the size of the list. This change also improves the scanning algorithm for processing the list, scanning the list only once instead of scanning it for every page in the system. Both the sysctl and the file can be unsorted and contain duplicates so long as each entry is numeric (decimal or hex) and is separated by a space, comma, or newline character. The sysctl 'vm.page_blacklist' is now provided to report what memory locations were successfully excluded. Reviewed by: imp, emax Obtained from: Netflix, Inc. MFC after: 3 days Notes: svn path=/head/; revision=282228
2015-04-16Add "GELI Passphrase:" prompt to boot loader.Devin Teske
A new loader.conf(5) option of geom_eli_passphrase_prompt="YES" will now allow you to enter your geli(8) root-mount credentials prior to invoking the kernel. See check-password.4th(8) for details. Differential Revision: https://reviews.freebsd.org/D2105 Reviewed by: imp, kmoore Discussed on: -current MFC after: 3 days X-MFC-to: stable/10 Relnotes: yes Notes: svn path=/head/; revision=281616
2015-04-08Re-do proper mode-endings. Antithesis of r281176-281179 which revertedDevin Teske
earlier migration away from sloppy mode-endings (r280925,280974-280976) due to a red-herring in diagnosing HardenedBSD boot lockup. Thanks to: lattera (shawn.webb@hardenedbsd<dot>org) MFC after: 3 days X-MFC-to: stable/10 X-MFC-with: r280925,280974-280976,281176-281179 Notes: svn path=/head/; revision=281275
2015-04-08Fix a bootlock condition if/when loader_logo is set in loader.conf(5)Devin Teske
NB: This deeply effected HardenedBSD which had a default value set. Embarassingly, I allowed the `type' primitive to be passed -1/-1 for c-addr/u stack input (the effect of which is to pull INT_MAX bytes from character address negative one in which hilarity ensues over a black screen in full-on bootlock). Much thanks to Shawn Webb [lattera] for helping me diagnose. NB: The mode-ending revisions were initially suspected (and reverted) but proved to be a red-herring. Proper mode endings will be returning. Thanks to: lattera (@HardenedBSD [<dot><com>]) Reported by: lattera MFC after: 3 days X-MFC-to: stable/10 Notes: svn path=/head/; revision=281271
2015-04-06Eliminate literal escape sequences from *.rcDevin Teske
Suggested by: alfred MFC after: 3 days X-MFC-to: stable/10 X-MFC-with: r280976, r281179 Notes: svn path=/head/; revision=281180
2015-04-06Partially revert r280976: Back to previous mode-endings based on feedbackDevin Teske
Reported by: lattera MFC after: 3 days X-MFC-to: stable/10 X-MFC-with: r280976 Notes: svn path=/head/; revision=281179
2015-04-06Partially revert r280975: Back to previous mode-endings based on feedbackDevin Teske
Reported by: lattera MFC after: 3 days X-MFC-to: stable/10 X-MFC-with: r280975 Notes: svn path=/head/; revision=281178