#
3e15b01d |
| 22-Feb-2024 |
Warner Losh <imp@FreeBSD.org> |
libsa: Remove redundant sys/cdefs.h
Sponsored by: Netflix
|
#
32568e5f |
| 21-Feb-2024 |
Warner Losh <imp@FreeBSD.org> |
loader: Retire CTASSERT
The project is moving away from CTASSERT in favor of _Static_assert. Cleanup the few instances in the loader proactively.
Sponsored by: Netflix Reviewed by: manu, tsoome D
loader: Retire CTASSERT
The project is moving away from CTASSERT in favor of _Static_assert. Cleanup the few instances in the loader proactively.
Sponsored by: Netflix Reviewed by: manu, tsoome Differential Revision: https://reviews.freebsd.org/D44006
show more ...
|
Revision tags: release/14.0.0 |
|
#
1d386b48 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
Revision tags: release/13.2.0 |
|
#
ad70f2e2 |
| 11-Jan-2023 |
Warner Losh <imp@FreeBSD.org> |
stand: create common set_currdev
Pull together the nearly identical copies of set_currdev in i386, userboot and efi. Other boot loaders have variances that might be fine to use the common routine, o
stand: create common set_currdev
Pull together the nearly identical copies of set_currdev in i386, userboot and efi. Other boot loaders have variances that might be fine to use the common routine, or not. Since they are harder to test for me, and ofw and uboot do handle these setting differently, leave them be for now.
Sponsored by: Netflix Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D38005
show more ...
|
#
1c1783d6 |
| 11-Jan-2023 |
Warner Losh <imp@FreeBSD.org> |
stand: Create common gen_setcurrdev and replace code
Replace 4 identical copies of *_setcurrdev with gen_setcurrdev to avoid having to create a 5th copy. uboot_setcurrdev is actually different and n
stand: Create common gen_setcurrdev and replace code
Replace 4 identical copies of *_setcurrdev with gen_setcurrdev to avoid having to create a 5th copy. uboot_setcurrdev is actually different and needs to remain separate (even though it's quite similar).
Sponsored by: Netflix Reviewed by: fuz@fuz.su, kevans Differential Revision: https://reviews.freebsd.org/D38003
show more ...
|
#
71bbe6fb |
| 17-Dec-2022 |
Warner Losh <imp@FreeBSD.org> |
stand/zfs: Add a third argument to zfs_probe_dev: part_too
Pass in 'true' if you'd like to search this device's partitions or 'false' if you should just search the device. EFI and (in the future) kb
stand/zfs: Add a third argument to zfs_probe_dev: part_too
Pass in 'true' if you'd like to search this device's partitions or 'false' if you should just search the device. EFI and (in the future) kboot have discrete partitions that aren't accessed via the full disk device. Weird things happen if you try to search in these cases.
Sponsored by: Netflix
show more ...
|
#
66012c8f |
| 30-Nov-2022 |
Warner Losh <imp@FreeBSD.org> |
stand: create devinit
devinit() marches through all the devices, calling the inint routines if any exist. Replace all the identical copies of this code.
Sponsored by: Netflix Differential Revision
stand: create devinit
devinit() marches through all the devices, calling the inint routines if any exist. Replace all the identical copies of this code.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D37349
show more ...
|
Revision tags: release/12.4.0 |
|
#
8a744de2 |
| 18-Nov-2022 |
Warner Losh <imp@FreeBSD.org> |
stand: Remove i386-only support fire firewire
Remove support for booting off of firewire, and for having dcons via firewire in the loader. Kernel support for these things is unchanged. Discussed on
stand: Remove i386-only support fire firewire
Remove support for booting off of firewire, and for having dcons via firewire in the loader. Kernel support for these things is unchanged. Discussed on arch@ and the current state is not working (and the build was wrong to boot).
Sponsored by: Netflix Discussed: https://lists.freebsd.org/archives/freebsd-arch/2022-November/000267.html Reviewed by: kevans, melifaro, emaste Differential Revision: https://reviews.freebsd.org/D37334
show more ...
|
#
36232229 |
| 11-Aug-2022 |
Warner Losh <imp@FreeBSD.org> |
stand: i386_fmtdev can be reduced to devformat
devformat produces the same output as i386_fmtdev, so just use it to reduce on the dependencies.
Sponsored by: Netflix Reviewed by: tsoome Different
stand: i386_fmtdev can be reduced to devformat
devformat produces the same output as i386_fmtdev, so just use it to reduce on the dependencies.
Sponsored by: Netflix Reviewed by: tsoome Differential Revision: https://reviews.freebsd.org/D35927
show more ...
|
#
edb26097 |
| 11-Aug-2022 |
Warner Losh <imp@FreeBSD.org> |
stand: Replace zfs_fmtdev with generic devformat()
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D35973
|
#
d2d4e127 |
| 11-Aug-2022 |
Warner Losh <imp@FreeBSD.org> |
stand: Change zfs_fmtdev to take a struct devdesc *
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D35974
|
#
f197c0bf |
| 11-Aug-2022 |
Warner Losh <imp@FreeBSD.org> |
stand: Move i386_devdesc to a union
Rather than have the magic, hand-crafted fields that have to align with fields in other structures at the end of i386_devdesc, make it into anonymous union and ad
stand: Move i386_devdesc to a union
Rather than have the magic, hand-crafted fields that have to align with fields in other structures at the end of i386_devdesc, make it into anonymous union and adjust the code accordingly. This is safer and similar to what CAM does.
Sponsored by: Netflix Reviewed by: kevans, tsoome (prior version) Differential Revision: https://reviews.freebsd.org/D35965
show more ...
|
Revision tags: release/13.1.0, release/12.3.0 |
|
#
b4cb3fe0 |
| 12-Aug-2021 |
Toomas Soome <tsoome@FreeBSD.org> |
loader: implement mount/unmount rootfs
We want to keep our root file system open to preserve bcache segment between file accesses, thus reducing physical disk IO.
Reviewed by: imp, allanjude, kevan
loader: implement mount/unmount rootfs
We want to keep our root file system open to preserve bcache segment between file accesses, thus reducing physical disk IO.
Reviewed by: imp, allanjude, kevans (previous version) Differential Revision: https://reviews.freebsd.org/D30848 MFC after: 1 month
show more ...
|
#
c4b65e95 |
| 31-May-2021 |
Colin Percival <cperciva@FreeBSD.org> |
i386/loader: Call tslog_init
This allows the i386 loader to start recording timestamps.
Reviewed by: kevans
|
Revision tags: release/13.0.0 |
|
#
3630506b |
| 21-Dec-2020 |
Toomas Soome <tsoome@FreeBSD.org> |
loader: implement framebuffer console
Draw console on efi. Add vbe framebuffer for BIOS loader (vbe off, vbe on, vbe list, vbe set xxx). autoload font (/boot/fonts) based on resolution and font size
loader: implement framebuffer console
Draw console on efi. Add vbe framebuffer for BIOS loader (vbe off, vbe on, vbe list, vbe set xxx). autoload font (/boot/fonts) based on resolution and font size. Add command loadfont (set font by file) and variable screen.font (set font by size). Pass loaded font to kernel.
Export variables: screen.height screen.width screen.depth
Add gfx primitives to draw the screen and put png image on the screen. Rework menu draw to iterate list of consoles to enamble device specific output.
Probably something else I forgot...
Relnotes: yes Differential Revision: https://reviews.freebsd.org/D27420
show more ...
|
Revision tags: release/12.2.0 |
|
#
1dc762d4 |
| 23-Sep-2020 |
Toomas Soome <tsoome@FreeBSD.org> |
loader: fix non-zfs build
We can not include zfs headers while building without zfs.
Reported by: Oscar Holmlund
|
#
e307eb94 |
| 21-Sep-2020 |
Toomas Soome <tsoome@FreeBSD.org> |
loader: zfs should support bootonce an nextboot
bootonce feature is temporary, one time boot, activated by "bectl activate -t BE", "bectl activate -T BE" will reset the bootonce flag.
By default, t
loader: zfs should support bootonce an nextboot
bootonce feature is temporary, one time boot, activated by "bectl activate -t BE", "bectl activate -T BE" will reset the bootonce flag.
By default, the bootonce setting is reset on attempt to boot and the next boot will use previously active BE.
By setting zfs_bootonce_activate="YES" in rc.conf, the bootonce BE will be set permanently active.
bootonce dataset name is recorded in boot pool labels, bootenv area.
in case of nextboot, the nextboot_enable boolean variable is recorded in freebsd:nvstore nvlist, also stored in boot pool label bootenv area. On boot, the loader will process /boot/nextboot.conf if nextboot_enable is "YES", and will set nextboot_enable to "NO", preventing /boot/nextboot.conf processing on next boot.
bootonce and nextboot features are usable in both UEFI and BIOS boot.
To use bootonce/nextboot features, the boot loader needs to be updated on disk; if loader.efi is stored on ESP, then ESP needs to be updated and for BIOS boot, stage2 (zfsboot or gptzfsboot) needs to be updated (gpart or other tools).
At this time, only lua loader is updated.
Sponsored by: Netflix, Klara Inc. Differential Revision: https://reviews.freebsd.org/D25512
show more ...
|
#
e2515283 |
| 27-Aug-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
#
277f38ab |
| 18-Aug-2020 |
Mariusz Zaborski <oshogbo@FreeBSD.org> |
zfs: add an option to the bootloader to rewind the ZFS checkpoint
The checkpoints are another way of keeping the state of ZFS. During the rewind, the pool has to be exported. This makes checkpoints
zfs: add an option to the bootloader to rewind the ZFS checkpoint
The checkpoints are another way of keeping the state of ZFS. During the rewind, the pool has to be exported. This makes checkpoints unusable when using ZFS as root. Add the option to rewind the ZFS checkpoint at the boot time. If checkpoint exists, a new option for rewinding a checkpoint will appear in the bootloader menu. We fully support boot environments. If the rewind option is selected, the boot loader will show a list of boot environments that existed before the checkpoint.
Reviewed by: tsoome, allanjude, kevans (ok with high-level overview) Differential Revision: https://reviews.freebsd.org/D24920
show more ...
|
#
c7aa572c |
| 31-Jul-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
#
97dd57e6 |
| 19-Jul-2020 |
Toomas Soome <tsoome@FreeBSD.org> |
loader: cstyle cleanup
No functional changes intended.
Sponsored by: Netflix, Klara Inc.
|
Revision tags: release/11.4.0 |
|
#
6c140a72 |
| 20-Feb-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r358131 through r358178.
|
#
a64f0b83 |
| 20-Feb-2020 |
Warner Losh <imp@FreeBSD.org> |
Move smbios.c to libsa.
smbios used to be an i386 only kinda weird quirk to the x86 architecture. But UEFI picked it up, dusted it off and now it's many other locations. Make it base technology by m
Move smbios.c to libsa.
smbios used to be an i386 only kinda weird quirk to the x86 architecture. But UEFI picked it up, dusted it off and now it's many other locations. Make it base technology by moving it to libsa and fixing up the compliation. The code has issues with unaligned access still, but that will be addressed in a followup commit.
Differential Revision: https://reviews.freebsd.org/D23660
show more ...
|
#
ed2a6576 |
| 20-Feb-2020 |
Warner Losh <imp@FreeBSD.org> |
Create ptov() function.
Create a ptov() function. It's basically the same as the btx PTOV macro, but works everywhere. smbios needs this to translate addresses, but the translation differs between B
Create ptov() function.
Create a ptov() function. It's basically the same as the btx PTOV macro, but works everywhere. smbios needs this to translate addresses, but the translation differs between BIOS booting and EFI booting. Make it a function so one smbios.o can be used everywhere. Provide definitions for it in the two loaders affected.
Differential Revision: https://reviews.freebsd.org/D23660
show more ...
|
Revision tags: release/12.1.0 |
|
#
e9b148a3 |
| 24-Oct-2019 |
Simon J. Gerraty <sjg@FreeBSD.org> |
Add support for hypervisor check on x86
Add ficl words for isvirtualized and move ficl inb and outb words to ficl/x86/sysdep.c so can be shared by i386 and amd64
Reviewed by: imp bdrewery MFC after
Add support for hypervisor check on x86
Add ficl words for isvirtualized and move ficl inb and outb words to ficl/x86/sysdep.c so can be shared by i386 and amd64
Reviewed by: imp bdrewery MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D22069
show more ...
|