summaryrefslogtreecommitdiff
path: root/sys/boot/forth
Commit message (Collapse)AuthorAgeFilesLines
* Move sys/boot to stand. Fix all references to new locationWarner Losh2017-11-1438-8711/+0
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=325834
* Don't add /boot/dt*s* but /boot/dt*b*. Stupid think-o. /boot/dtb wasWarner Losh2017-11-131-1/+1
| | | | | | | what was tested... Notes: svn path=/head/; revision=325780
* Add /boot/dts to the list of default modules. The minimal arm and mipsWarner Losh2017-11-131-1/+1
| | | | | | | | | | 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
* Add loader.conf to the list of files that are MD.Warner Losh2017-11-131-2/+1
| | | | | | | | | | | | | | | | | | 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
* Make sure the proper loader.rc gets installed.Warner Losh2017-11-121-3/+10
| | | | | | | | | | | | | | 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
* Install the 4th files in sys/boot/forth instead of each loaderWarner Losh2017-11-102-26/+29
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Add smn(4) driver for AMD System Management NetworkConrad Meyer2017-09-051-0/+1
| | | | | | | | | | | | | 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
* Add chain loader support for loaderToomas Soome2017-06-161-0/+15
| | | | | | | | | | | | | | | | | | 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
* Switch the example name for variables controlling loading memory imagesEdward Tomasz Napierala2017-06-101-3/+3
| | | | | | | | | | 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
* Remove the NATM framework including the en(4), fatm(4), hatm(4), andBrooks Davis2017-04-241-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Replace the RC4 algorithm for generating in-kernel secure randomMark Murray2017-04-161-1/+1
| | | | | | | | | | | | | | | | | 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
* The original author abused Nd (one-line description, used by makewhatis)Dag-Erling Smørgrav2017-03-231-3/+3
| | | | | | | | | | 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
* Garbage collect if_igb reference in loader.confEnji Cooper2017-03-221-1/+0
| | | | | | | | | | if_igb was merged with if_em in r311849 X-MFC with: r311849 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=315739
* Document some more 10GbE+ network drivers in loader.confEnji Cooper2017-03-221-0/+4
| | | | | | | | | | | | | - if_cxgbe - if_ixl - if_ixlv - sfxge MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=315738
* Remove SVR4 (System V Release 4) binary compatibility support.Gleb Smirnoff2017-02-281-2/+0
| | | | | | | | 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
* loader.efi environment related cleanupsToomas Soome2017-02-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* Remove pc98 support completely.Yoshihiro Takahashi2017-01-281-43/+20
| | | | | | | | | I thank all developers and contributors for pc98. Relnotes: yes Notes: svn path=/head/; revision=312910
* Add a dumpdev example to /boot/defaults/loader.confAlan Somers2016-12-221-0/+1
| | | | | | | | | Submitted by: rgrimes MFC after: 4 weeks Sponsored by: Spectra Logic Corp Notes: svn path=/head/; revision=310417
* New driver for Broadcom NetXtreme-C and NetXtreme-E devices.Stephen Hurd2016-11-151-0/+1
| | | | | | | | | | | | | | | 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
* boot/forth spelling issue in forth wordToomas Soome2016-11-091-2/+2
| | | | | | | | | Reviewed by: dteske, imp Approved by: imp (mentor) Differential Revision: https://reviews.freebsd.org/D8484 Notes: svn path=/head/; revision=308476
* Preliminary support for EFI in boot loader. Define efi-boot forthWarner Losh2016-10-243-0/+34
| | | | | | | | | | 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
* Remove accidentally committed stray comment.Warner Losh2016-08-311-2/+1
| | | | | | | Noticed by: dteske@ Notes: svn path=/head/; revision=305132
* Create a hook 'post-initialize' for people that want to defineWarner Losh2016-08-311-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Explain why extra sutff always outputs even when it shouldn't for theWarner Losh2016-05-181-0/+7
| | | | | | | '?' command. Wasted a bunch of time tracking it down tonight. Notes: svn path=/head/; revision=300115
* Remove the reiserfs(5) manpage and an example of loading the kernel module.John Baldwin2016-05-171-1/+0
| | | | Notes: svn path=/head/; revision=300071
* boot/forth: spelling fixes.Pedro F. Giffuni2016-04-305-11/+11
| | | | | | | | Reviewed by: dteske MFC after: 2 weeks Notes: svn path=/head/; revision=298831
* Document vfs.root.mountfrom.Maxim Sobolev2016-04-081-0/+25
| | | | | | | | Reviewed by: imp, wblock Differential Revision: https://reviews.freebsd.org/D5332 Notes: svn path=/head/; revision=297690
* Obsolete mkulzma(8) and geom_uncompress(4), their functionalityMaxim Sobolev2016-02-241-1/+0
| | | | | | | | | is now provided by mkuzip(8) and geom_uzip(4) respectively. MFC after: 1 month Notes: svn path=/head/; revision=295945
* Enable the beastie menu for the UEFI consoleEd Maste2016-01-063-11/+4
| | | | | | | | | | As of r293233 the UEFI console includes basic terminal emulator support. MFC after: 2 weeks Relnotes: Yes Notes: svn path=/head/; revision=293234
* Introduce the ZFS Boot Environments menu to the loader menuAllan Jude2015-12-314-0/+142
| | | | | | | | | | | | | | | | | | | | | 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
* Remove supposition comment that code would better live elsewhere.Devin Teske2015-12-311-1/+1
| | | | | | | | | | | | | 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
* Fix a memory leak. nextboot_conf_file is not volatile, as far as IDevin Teske2015-12-311-1/+1
| | | | | | | | | | 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
* Remove debugging messages. NB: SVN r187143 reads:Devin Teske2015-12-311-3/+0
| | | | | | | | | | 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
* Fix stack leak introduced by SVN r97201 (nextboot_conf support).Devin Teske2015-12-301-6/+8
| | | | | | | | | | | | 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
* META MODE: Update dependencies with 'the-lot' and add missing directories.Bryan Drewery2015-12-011-0/+11
| | | | | | | | | | | | | | | | | 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
* Remove guards around overwriting loader.rc and menu.rcAllan Jude2015-08-062-0/+6
| | | | | | | | | | | | | | | | | 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
* Document the existence of cloudabi_load and cloudabi64_load.Ed Schouten2015-07-311-0/+2
| | | | Notes: svn path=/head/; revision=286111
* Use consistent spacing.Edward Tomasz Napierala2015-07-251-4/+4
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=285882
* Add md_root example to defaults/loader.conf.Edward Tomasz Napierala2015-07-251-0/+10
| | | | | | | | | | | 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
* Use double newlines consistently.Edward Tomasz Napierala2015-07-251-0/+9
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=285875
* Updated random(4) boot/shutdown scripting.Mark Murray2015-06-302-4/+23
| | | | | | | | | | Fix the man pages as well. Differential Revision: https://reviews.freebsd.org/D2924 Approved by: so (delphij) Notes: svn path=/head/; revision=284960
* Install version.4th.8 againAntoine Brodin2015-06-211-1/+2
| | | | | | | | 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
* Add comments to indicate where the flag for later abort" originates.Devin Teske2015-06-021-3/+3
| | | | | | | | MFC after: 3 days X-MFC-to: stable/10 Notes: svn path=/head/; revision=283933
* Improve support for blacklisting bad memory locations. The user can supplyScott Long2015-04-291-0/+10
| | | | | | | | | | | | | | | | | | | | 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
* Add "GELI Passphrase:" prompt to boot loader.Devin Teske2015-04-163-7/+45
| | | | | | | | | | | | | | | | | | 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
* Re-do proper mode-endings. Antithesis of r281176-281179 which revertedDevin Teske2015-04-086-26/+26
| | | | | | | | | | | | | 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
* Fix a bootlock condition if/when loader_logo is set in loader.conf(5)Devin Teske2015-04-081-2/+4
| | | | | | | | | | | | | | | | | | | | | 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
* Eliminate literal escape sequences from *.rcDevin Teske2015-04-062-16/+19
| | | | | | | | | | Suggested by: alfred MFC after: 3 days X-MFC-to: stable/10 X-MFC-with: r280976, r281179 Notes: svn path=/head/; revision=281180
* Partially revert r280976: Back to previous mode-endings based on feedbackDevin Teske2015-04-061-16/+16
| | | | | | | | | | Reported by: lattera MFC after: 3 days X-MFC-to: stable/10 X-MFC-with: r280976 Notes: svn path=/head/; revision=281179
* Partially revert r280975: Back to previous mode-endings based on feedbackDevin Teske2015-04-062-7/+7
| | | | | | | | | | Reported by: lattera MFC after: 3 days X-MFC-to: stable/10 X-MFC-with: r280975 Notes: svn path=/head/; revision=281178