| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
GIANT from VFS.
This is not targeted for MFC.
|
|
|
|
|
|
| |
GIANT from VFS.
This is not targeted for MFC.
|
|
|
|
|
|
| |
GIANT from VFS.
This is not targeted for MFC.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"boot verbose", "single user mode", "ACPI" and more are now stateful boolean
menuitems rather than direct action-items.
A short-coming in this new menu system is that when a user sets a non-default
value in loader.conf(5), this non-default state is not reflected in the menu
-- leading to confusion as to whether the option was taking effect or not.
This patch adds dynamic menuitem constructors _and_ the necessary Forth
callbacks to initialize these stateful menuitems -- causing the aforementioned
menuitems to adhere to loader.conf(5) settings.
PR: bin/172529
Approved by: adrian (co-mentor)
MFC after: 21 days
|
|
|
|
|
|
|
| |
NOTE: This is in an unused portion of the menu framework.
Reviewed by: eadler, adrian (co-mentor)
Approved by: adrian (co-mentor)
|
|
|
|
|
|
|
| |
accommodate 10 different states.
Reviewed by: eadler, adrian (co-mentor)
Approved by: adrian (co-mentor)
|
|
|
|
|
|
| |
Reviewed by: eadler, adrian (co-mentor)
Approved by: adrian (co-mentor)
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
executed to better differentiate between loader-specific errors and kernel-
specific errors (if ever any of either).
This type of functionality hasn't been required before the introduction of the
advanced menu system (r222417). Adding this functionality will help different-
iate errors at the loader-level such as a BTX halt caused by heap exhaustion
and errors that may be involved with executing the kernel (wrong architecture
for example). A user can learn that messages before "Booting..." are related to
the loader(8) environment and it's Forth-ilk, while those after are not
related to loader(8) -- the point that loader(8) has ``left the building''.
This patch also includes a man-page update to color.4th(8) as the color logic
moves to a lower-level (from being included by beastie.4th to being included
by loader.4th).
After noticing a delay between execution of the overloaded "boot" FICL word and
the display of text on-screen, gcooper confirmed that the introduction of a
builtin memory test (disabled by adding hw.memtest.tests="0" to loader.conf(5))
was the cause of the delay.
This patch adds an echo to produce "Booting..." when the overloaded "boot" word
is executed (this includes from the interactive command-prompt on all arches,
from the menu system on arches that run the beastie menu, and even those arches
that run the menu but disable it by setting beastie_disable="YES" in
loader.conf(5)). When loader_color="YES" in loader.conf(5), the same message is
produced but in white text on a blue background (only the letters produced have
this background -- opposed to perhaps the entire line).
|
|
|
|
|
| |
Reviewed by: adrian (co-mentor)
Approved by: adrian (co-mentor)
|
|
|
|
|
|
|
|
| |
Note that this commit slightly increases size of boot blocks.
Reviewed by: jhb
Tested by: Olivier Cochard-Labbe <olivier@cochard.me>
MFC after: 26 days
|
|
|
|
|
|
|
|
|
|
|
| |
- clear capability flags when hw timeouts
- retire comc_started status variable and directly use c_flags to see
if comconsole is selected for use
Reviewed by: jhb
Tested by: Uffe Jakobsen <uffe@uffe.org>,
Olivier Cochard-Labbe <olivier@cochard.me>
MFC after: 26 days
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- clarify meaning of console flags
- perform i/o via a console only if both of the following conditions are met:
o console is active (selected by user or config)
o console flags that it can perform the operation
- warn if a chosen console can not work (the warning may go nowhere without
working and active console, though)
Reviewed by: jhb
Tested by: Uffe Jakobsen <uffe@uffe.org>,
Olivier Cochard-Labbe' <olivier@cochard.me>
MFC after: 26 days
|
|
|
|
|
|
|
|
|
|
|
| |
The first discovered pool, whether it covers the whole boot disk or not,
is going to be first in zfs_pools list. So there is no need at all
for spapp parameter.
This commit also fixes a bug where NULL would be assigned to NULL
pointer when probe_drive was called with the spapp parameter of NULL.
MFC after: 21 days
|
|
|
|
|
|
|
| |
This is work in progress to for znextboot and it also provides
some convenient infrastructure.
MFC after: 20 days
|
|
|
|
|
|
|
| |
... as opposed to the previous behavior of treating it as boot
dataset (specified by bootfs or default)
MFC after: 19 days
|
|
|
|
| |
MFC after: 9 days
|
|
|
|
| |
MFC after: 5 days
|
|
|
|
|
|
|
| |
... and drop those for which it fails.
Also, add more sanity checking to the function.
MFC after: 16 days
|
|
|
|
|
|
|
| |
Also, pool name alone now names a root dataset of the pool regardless
of bootfs property value.
MFC after: 15 days
|
|
|
|
|
|
|
| |
... to list child datasets of a specified dataset.
Dataset name should be provided in poolname/dsname format.
MFC after: 17 days
|
|
|
|
|
|
|
|
|
| |
- only filesystem datasets are supported
- children names are printed to stdout
To do: allow to iterate over the list and fetch names programatically
MFC after: 17 days
|
|
|
|
| |
MFC after: 8 days
|
|
|
|
| |
Suggested by: grehan@
|
| |
|
|
|
|
| |
next files.
|
|
|
|
| |
loader.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
disk_open(). Very often this is called several times for one file.
This leads to reading partition table metadata for each call. To
reduce the number of disk I/O we have a simple block cache, but it
is very dumb and more than half of I/O operations related to reading
metadata, misses this cache.
Introduce new cache layer to resolve this problem. It is independent
and doesn't need initialization like bcache, and will work by default
for all loaders which use the new DISK API. A successful disk_open()
call to each new disk or partition produces new entry in the cache.
Even more, when disk was already open, now opening of any nested
partitions does not require reading top level partition table.
So, if without this cache, partition table metadata was read around
20-50 times during boot, now it reads only once. This affects the booting
from GPT and MBR from the UFS.
|
|
|
|
|
| |
time. This slightly reduces an overhead, when loader tries to open
file that doesn't exist.
|
|
|
|
|
|
| |
number is not exactly specified. When the disk has MBR, also try to read
BSD label after ptable_getpart() call. When the disk has GPT, also set
d_partition to 255. Mostly, this is how it worked before.
|
|
|
|
| |
loader/i386: replace ugly inb/outb re-implementations with cpufunc.h
|
| |
|
|
|
|
|
|
|
| |
resolve dependencies of modules at boot time and load additional modules when
needed.
MFC after: 1 week
|
|
|
|
|
|
|
| |
'path' argument of ofw_parsedev() if devspec refers raw device with no path.
For example, `ls /pci@1f,0/ide@d/disk@0,0:a/` works fine, while
`ls /pci@1f,0/ide@d/disk@0,0:a` panicked before this change.
|
|
|
|
|
|
|
|
| |
Use of __builtin_constant_p in a function that is only called via
a pointer is a good example of how out-of-date it was.
Suggested by: bde
MFC after: 1 week
|
|
|
|
| |
this support to pull out the SoC specific parts of the dts file.
|
|
|
|
|
|
|
|
| |
MSI are implemented via software interrupt. PCIe cards will write
into software interrupt register which will cause inbound shared
interrupt which will be interpreted as a MSI.
Obtained from: Marvell, Semihalf
|
|
|
|
|
|
|
|
|
|
| |
- Add functions to calculate clocks instead using hardcoded values
- Update reset and timers functions
- Update number of interrupts
- Change name of platform from db88f78100 to db78460
- Correct DRAM size and PCI IRQ routing in dts file.
Obtained from: Semihalf
|
| |
|
|
|
|
|
|
| |
pxe0: 192.168.3.1:/storage/nfsroot/amd64
, instead of confusing and less useful:
192.168.3.1:pxeboot
|
|
|
|
| |
MFC after: 25 days
|
|
|
|
|
|
| |
... this matches mzap_list behavior
MFC after: 12 days
|
|
|
|
|
|
|
|
|
| |
The previous one was totally bogus as it used hash value of
_output_ variable as an index for searching...
The only reliable way to do a reverse lookup here is to iterate
over all entries.
MFC after: 15 days
|
|
|
|
|
|
| |
This change is cosmetic.
MFC after: 10 days
|
|
|
|
|
|
| |
... the same way it's done for type argument.
MFC after: 2 weeks
|
|
|
|
| |
MFC after: 1 week
|
|
|
|
|
|
| |
libstand(3) tries to detect file system in the predefined order,
but zfsloader usually is used for the booting from ZFS, and there is
no need to try detect several file system types for each open() call.
|
| |
|
| |
|
| |
|