aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/forth
Commit message (Collapse)AuthorAgeFilesLines
...
* Partially revert r280974: Back to previous mode-endings based on feedbackDevin Teske2015-04-062-2/+2
| | | | | | | | | | MFC after: 3 days X-MFC-to: stable/10 X-MFC-with: r290974 Reported by: lattera Notes: svn path=/head/; revision=281177
* Partially revert r280925: Back to previous mode-endings based on feedbackDevin Teske2015-04-061-1/+1
| | | | | | | | | MFC after: 3 days X-MFC-with: r280925 Reported by: lattera Notes: svn path=/head/; revision=281176
* Make sure forth manpages are only installed once.Baptiste Daroussin2015-04-041-0/+13
| | | | | | | | Differential Revision: https://reviews.freebsd.org/D2224 Reviewed by: imp Notes: svn path=/head/; revision=281081
* Revert .PATH changes to fix mips build.Jung-uk Kim2015-04-031-1/+0
| | | | | | | | Reported by: bz Pointy hat to: jkim Notes: svn path=/head/; revision=281009
* Install newly added brand-*.4th and logo-*.4th files and reduce duplication.Jung-uk Kim2015-04-021-0/+26
| | | | | | | | Reviewed by: dteske Pointy hat to: dteske Notes: svn path=/head/; revision=281002
* Use ^[[m mode-ending (as-in screen.4th `me') versus ^[[37mDevin Teske2015-04-021-16/+16
| | | | | | | | MFC after: 3 days X-MFC-to: stable/10 Notes: svn path=/head/; revision=280976
* Eliminate literal escape sequences from *.4thDevin Teske2015-04-028-93/+154
| | | | | | | | | Suggested by: alfred MFC after: 3 days X-MFC-to: stable/10 Notes: svn path=/head/; revision=280975
* Use fg/b/me from screen.4th instead of literalsDevin Teske2015-04-022-11/+7
| | | | | | | | MFC after: 3 days X-MFC-to: stable/10 Notes: svn path=/head/; revision=280974
* Whoops! "arc commit --revision" != "arc diff --update"Devin Teske2015-04-013-45/+7
| | | | Notes: svn path=/head/; revision=280939
* Add "GELI Passphrase:" prompt to boot loader.Devin Teske2015-04-013-7/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Add "GELI Passphrase:" prompt to boot loader. 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: (your name[s] here) MFC after: 3 days X-MFC-to: stable/10 Relnotes: yes Test Plan: Drop a head copy of check-password.4th into /boot and then apply the patch (only the patch to /boot/check-password.4th is required; no other changes are required but you do have to have a HEAD copy of check-password.4th to apply the patch). NB: The rest of your /boot files can be up to 2 years old but no older. NB: The test won't work unless your kernel has the following change https://svnweb.freebsd.org/base?view=revision&revision=273489 Now, put into /boot/loader.conf: geom_eli_passphrase_prompt="YES" and reboot. You should be prompted for a GELI passphrase before the menu (if enabled), just after loading loader.conf(5). NB: It doesn't matter if you're using GELI or not. However if you are using GELI and a sufficiently new enough release (has SVN r273489) and you entered the proper passphrase to mount your GELI encrypted root device(s), you should notice that the boot process did not stop (you went from loader all the way to login). Reviewers: cperciva, allanjude, scottl, kmoore Subscribers: jkh, imp Differential Revision: https://reviews.freebsd.org/D2105 Notes: svn path=/head/; revision=280938
* Solve dreaded "dictionary full" issue by segregating words into newDevin Teske2015-04-0110-254/+329
| | | | | | | | | | | | | | | vocabularies delay-processing, password-processing, version-processing, frame-drawing, menu-infrastructure, menu-namespace, menu-command-helpers, and menusets-infrastructure. The net effect is to remove almost 200 definitions from the main forth vocabulary reducing the dictionary size by over 50%. The chances of hitting "dictionary full" should be greatly reduced by this patch. MFC after: 3 days X-MFC-to: stable/10 Notes: svn path=/head/; revision=280937
* When forced to draw ASCII lines/boxen, use `=' for the horizontal lineDevin Teske2015-04-011-1/+6
| | | | | | | | | | when double frames are requested versus single. MFC after: 3 days X-MFC-to: stable/10 Notes: svn path=/head/; revision=280936
* Securely overwrite (zero) user input when we finish password checks.Devin Teske2015-04-011-5/+14
| | | | | | | | MFC after: 3 days X-MFC-to: stable/10 Notes: svn path=/head/; revision=280935
* Add remainder of supported ANSI escape sequences.Devin Teske2015-04-011-0/+12
| | | | | | | | MFC after: 3 days X-MFC-to: stable/10 Notes: svn path=/head/; revision=280934
* Move beastie to logo-*.4th; brands to brand-*.4thDevin Teske2015-04-019-229/+333
| | | | | | | | | Suggested by: jkh, alfred MFC after: 3 days X-MFC-to: stable/10 Notes: svn path=/head/; revision=280933
* Comments. No functional change.Devin Teske2015-04-011-1/+1
| | | | | | | | MFC after: 3 days X-MFC-to: stable/10 Notes: svn path=/head/; revision=280931
* Whitespace and cleanup. No functional change(s).Devin Teske2015-03-311-24/+16
| | | | | | | | MFC after: 3 days X-MFC-to: stable/10 Notes: svn path=/head/; revision=280926
* Optimize bootmsg to use fg/bg/me from screen.4thDevin Teske2015-03-311-7/+6
| | | | | | | | | | NB: screen.4th is included by way of check-password.4th MFC after: 3 days X-MFC-to: stable/10 Notes: svn path=/head/; revision=280925
* Comments. No functional change(s).Devin Teske2015-03-3111-18/+71
| | | | | | | | MFC after: 3 days X-MFC-to: stable/10 Notes: svn path=/head/; revision=280924
* Whitespace. No functional change(s).Devin Teske2015-03-312-28/+11
| | | | | | | | MFC after: 3 days MFH: stable/10 Notes: svn path=/head/; revision=280923
* Change contents of the exec variable in loader.conf to be friendly to bothDevin Teske2015-03-311-1/+1
| | | | | | | | | Ficl/Forth and Lua. No visible change for Forth while enabling Lua support. Submitted by: rpaulo Notes: svn path=/head/; revision=280922
* Remove from legacy ata(4) driver support for hardware, supported by newerAlexander Motin2015-03-241-2/+0
| | | | | | | | | and more functional drivers ahci(4), siis(4) and mvs(4). This removes about 3400 lines of code, unused since FreeBSD 9.0 release. Notes: svn path=/head/; revision=280451
* Add missing variables password/bootlock_password.Devin Teske2015-03-231-0/+2
| | | | | | | | | | | | NB: Using NULL for default values in-case someone or something uncomments it and reboots. See check-password.4th(8) for additional details. MFC after: 3 days X-MFC-to: stable/10 stable/9 Notes: svn path=/head/; revision=280385
* Increase max input for password/bootlock_password from 16 to 255.Devin Teske2015-03-231-44/+32
| | | | | | | | | | | | | | | When taking user input, don't show asterisks as the user types but instead spin a twiddle. Implement Ctrl-U to clear user input. If the buffer is empty, either because the user has yet to type anything, presses Ctrl-U at any time, or presses backspace enough to end in an empty buffer, the twiddle is erased to provide feed- back to the user. MFC after: 3 days X-MFC-to: stable/10 stable/9 Notes: svn path=/head/; revision=280384
* Prevent password/bootlock_password features of loader.conf(5) fromDevin Teske2015-03-231-8/+9
| | | | | | | | | | | | | locking out everyone in the case of setting a password longer than the maximum (currently 16 characters). Now the required password is truncated to the maximum input that can be read from the user. PR: kern/198760 MFC after: 3 days MFH: stable/10 stable/9 Notes: svn path=/head/; revision=280383
* Fix sgetkey indentation to be consistent with the rest of the file.Devin Teske2015-03-231-26/+21
| | | | | | | | | | Remove some blank lines, adjust some comments and update copyright. MFC after: 3 days X-MFC-to: stable/10 stable/9 Notes: svn path=/head/; revision=280382
* Revert SVN r277693.Devin Teske2015-02-062-6/+8
| | | | | | | | Discussed on: src-committers Approved by: core (emaste) Notes: svn path=/head/; revision=278335
* Fix the font in the text version. This has bothered me for a long time...Dag-Erling Smørgrav2015-01-252-8/+6
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=277693
* loader: implement multiboot support for Xen Dom0Roger Pau Monné2015-01-153-6/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement a subset of the multiboot specification in order to boot Xen and a FreeBSD Dom0 from the FreeBSD bootloader. This multiboot implementation is tailored to boot Xen and FreeBSD Dom0, and it will most surely fail to boot any other multiboot compilant kernel. In order to detect and boot the Xen microkernel, two new file formats are added to the bootloader, multiboot and multiboot_obj. Multiboot support must be tested before regular ELF support, since Xen is a multiboot kernel that also uses ELF. After a multiboot kernel is detected, all the other loaded kernels/modules are parsed by the multiboot_obj format. The layout of the loaded objects in memory is the following; first the Xen kernel is loaded as a 32bit ELF into memory (Xen will switch to long mode by itself), after that the FreeBSD kernel is loaded as a RAW file (Xen will parse and load it using it's internal ELF loader), and finally the metadata and the modules are loaded using the native FreeBSD way. After everything is loaded we jump into Xen's entry point using a small trampoline. The order of the multiboot modules passed to Xen is the following, the first module is the RAW FreeBSD kernel, and the second module is the metadata and the FreeBSD modules. Since Xen will relocate the memory position of the second multiboot module (the one that contains the metadata and native FreeBSD modules), we need to stash the original modulep address inside of the metadata itself in order to recalculate its position once booted. This also means the metadata must come before the loaded modules, so after loading the FreeBSD kernel a portion of memory is reserved in order to place the metadata before booting. In order to tell the loader to boot Xen and then the FreeBSD kernel the following has to be added to the /boot/loader.conf file: xen_cmdline="dom0_mem=1024M dom0_max_vcpus=2 dom0pvh=1 console=com1,vga" xen_kernel="/boot/xen" The first argument contains the command line that will be passed to the Xen kernel, while the second argument is the path to the Xen kernel itself. This can also be done manually from the loader command line, by for example typing the following set of commands: OK unload OK load /boot/xen dom0_mem=1024M dom0_max_vcpus=2 dom0pvh=1 console=com1,vga OK load kernel OK load zfs OK load if_tap OK load ... OK boot Sponsored by: Citrix Systems R&D Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D517 For the Forth bits: Submitted by: Julien Grall <julien.grall AT citrix.com> Notes: svn path=/head/; revision=277215
* mdoc: improvements to SEE ALSO.Joel Dahl2014-12-275-8/+8
| | | | Notes: svn path=/head/; revision=276292
* Add a new loader(8) variable, twiddle_divisor, allowing control over theIan Lepore2014-12-221-0/+1
| | | | | | | | | | output frequency of the "twiddle" IO progress indicator. The default value is 1. For larger values N, the next stage of the animation is only output on every Nth call to the output routine. A sufficiently large N effectively disables the animation completely. Notes: svn path=/head/; revision=276087
* Renove faith(4) and faithd(8) from base. It looks like industryAlexander V. Chernikov2014-11-091-1/+0
| | | | | | | | | | | | have chosen different (and more traditional) stateless/statuful NAT64 as translation mechanism. Last non-trivial commits to both faith(4) and faithd(8) happened more than 12 years ago, so I assume it is time to drop RFC3142 in FreeBSD. No objections from: net@ Notes: svn path=/head/; revision=274331
* Add support for calling pcibios routines from theWarner Losh2014-09-101-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bootloader. Implement the following routines: pcibios-device-count count the number of instances of a devid pcibios-read-config read pci config space pcibios-write-config write pci config space pcibios-find-devclass find the nth device with a given devclass pcibios-find-device find the nth device with a given devid pcibios-locator convert bus device function ti pcibios locator These commands are thin wrappers over their PCI BIOS 2.1 counterparts. More informaiton, such as it is, can be found in the standard. Export a nunmber of pcibios.X variables into the environment to report what the PCI IDENTIFY command returned. Also implmenet a new command line primitive (pci-device-count), but don't include it by default just yet, since it depends on the recently added words and any errors here can render a system unbootable. This is intended to allow the boot loader to do special things based on the hardware it finds. This could be have special settings that are optimized for the specific cards, or even loading special drivers. It goes without saying that writing to pci config space should not be done without a just cause and a sound mind. Sponsored by: Netflix Notes: svn path=/head/; revision=271406
* add a hit that you can enable this by default if you want... necessaryJohn-Mark Gurney2014-07-041-0/+1
| | | | | | | | | if you want the keyboard break to work early in boot.. MFC after: 1 week Notes: svn path=/head/; revision=268254
* Allow customization of the brand displayed in the boot menu.Craig Rodrigues2014-06-011-0/+11
| | | | | | | | | | | | | | If the user specifies in /boot/loader.conf: loader_brand="mycustom-brand" Then "mycustom-brand" will be executed instead of "fbsd-logo". Submitted by: alfred Obtained from: FreeNAS Notes: svn path=/head/; revision=266938
* lindev(4): finish the partial commit in r265212Eitan Adler2014-05-021-1/+0
| | | | | | | | | | | | | | lindev(4) was only used to provide /dev/full which is now a standard feature of FreeBSD. /dev/full was never linux-specific and provides a generally useful feature. Document this in UPDATING and bump __FreeBSD_version. This will be documented in the PH shortly. Reported by: jkim Notes: svn path=/head/; revision=265215
* Disable the beastie menu for EFI console which doesn't support ANSI codesDevin Teske2014-04-273-2/+11
| | | | | | | | | | (so things like `at-xy', `clear', and other commands don't work making it impossible to generate a living menu). Reviewed by: nwhitehorn, emaste Notes: svn path=/head/; revision=265028
* Add geom_uncompress to the list of available geom modules on loader.conf.Luiz Otavio O Souza2014-02-271-0/+1
| | | | | | | Approved by: adrian (mentor) Notes: svn path=/head/; revision=262562
* Retire the nve(4) driver; nfe(4) has been the default driver for NVIDIAChristian Brueffer2014-02-161-1/+0
| | | | | | | | | | nForce MCP adapters for a long time. Yays: jhb, remko, yongari Nays: none on the current and stable lists Notes: svn path=/head/; revision=261975
* Add a try-include word (which acts the same as "include") and use it toDevin Teske2013-11-174-1/+22
| | | | | | | | | | | conditionally include (but ignore failures) /boot/loader.rc.local and /boot/menu.rc.local -- to make customizing the menu easier. Reviewed by: alfred Discussed on: -hackers Notes: svn path=/head/; revision=258270
* Refactor draw-beastie function.Devin Teske2013-11-171-46/+16
| | | | | | | Discussed on: -hackers Notes: svn path=/head/; revision=258269
* Extend loader_delay as-documented in beastie.4th(8) and delay.4th(8), making ↵Devin Teske2013-11-073-4/+14
| | | | | | | | | | | | | | | it available to architectures that do not use or load the beastie menu. This is reported to save headaches on some PPC systems where unload followed by load does not produce the desired results wherein if-given the opportunicy to abort the initial loading sequence, you can customize the first load. Reviewed by: nwhitehorn, kan Discussed on: -current Notes: svn path=/head/; revision=257821
* Defer loading of kernel and modules if the beastie menu is enabled. Add aDevin Teske2013-11-0410-130/+379
| | | | | | | | | | | | | | kernel selection menu to the beastie menu. List of kernels is taken from `kernels' in loader.conf(5) as a space (or comma) separated list of names to display (up to 9). If not set, default value is "kernel kernel.old". Does not validate that kernels exist because the next enhancement will be to allow selection of the root device. Discussed on: -current MFC after: 3 days Notes: svn path=/head/; revision=257650
* Remove more remnants of ng_fec(4).Gleb Smirnoff2013-10-281-1/+0
| | | | | | | | | | | The ng_create_one() and ng_mkpeer() functions in network.subr are now not used anywhere, but I left them, since they can be useful in future in netgraph scripting. Submitted by: pluknet Notes: svn path=/head/; revision=257261
* Snapshot.Mark Murray2013-10-061-0/+11
| | | | | | | | | | | Looking pretty good; this mostly works now. New code includes: * Read cached entropy at startup, both from files and from loader(8) preloaded entropy. Failures are soft, but announced. Untested. * Use EVENTHANDLER to do above just before we go multiuser. Untested. Notes: svn path=/projects/random_number_generator/; revision=256094
* Update copyright.Devin Teske2013-08-271-1/+1
| | | | Notes: svn path=/head/; revision=254952
* Building upon SVN r254237, disable automated activation of alternate layoutsDevin Teske2013-08-263-19/+34
| | | | | | | | | | | | | and add support for default underride to $loader_version, acting as a way to name a release. Release text is not displayed for the aforementioned feature of alternate display layout (introduced in r254237); however, for all other layouts (incl. default), the release name is displayed at lower-right. See version.4th(8) for additional information and/or historical details. NOTE: Also a minor edit to version.4th(8) while we're here. Notes: svn path=/head/; revision=254942
* Add optional support for default override of standard setup; but only ifDevin Teske2013-08-121-3/+35
| | | | | | | | corresponding functions are provided. If override function does not exist, boot remains unmodified. This patch should not result in any changes. Notes: svn path=/head/; revision=254237
* Update legacy static assignments in old code to support dynamic framing,Devin Teske2013-08-082-16/+96
| | | | | | | plotting, and alignment coinciding with enhancements in SVN r242667. Notes: svn path=/head/; revision=254108
* Since the introduction of SVN r244048 and [follow-up] r244089, it is nowDevin Teske2013-08-088-43/+51
| | | | | | | safe to build upon ``boot_serial?'' functionality to make safer UI choices. Notes: svn path=/head/; revision=254105