FreeBSD Bugzilla – Attachment 225465 Details for
Bug 256343
Proposal for a generic boot/loader.conf, mainly for hints (in addition to defaults/loader.conf)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Template/draft for a generic boot/loader.conf
loader.conf.template (text/plain), 6.30 KB, created by
Harald Schmalzbauer
on 2021-06-01 16:42:24 UTC
(
hide
)
Description:
Template/draft for a generic boot/loader.conf
Filename:
MIME Type:
Creator:
Harald Schmalzbauer
Created:
2021-06-01 16:42:24 UTC
Size:
6.30 KB
patch
obsolete
># /boot/loader.conf: loader(8) configiguration file ># (and a brief description of the boot process as of FreeBSD 13) ># See also /boot/defaults/loader.conf! ># ># This file overrides defaults for the 3rd and final stage of FreeBSD's kernel ># bootstrapping process, before kernel takes over the control (next stage). ># On amd64 architectures, boot1.efi(8) is used to load loader.efi(8), the UEFI ># kernel loader, from the ESP (/efi/freebsd/loader.efi or /efi/boot/BOOT64.EFI). ># On IA32 (i386) architectures, BTX (stage 2) loads loader(8) (/boot/loader) ># from partition âaâ of either the floppy or the hard disk. ># The 2nd stage loader (BTX) reads /boot.config (or /boot/config) which can be ># used to define very early console parameters (see BOOT(8)), and predefine the ># following loader environment variable settings: ># 'echo "-DS115200 > /boot/config"': ># comconsole_speed="115200" ># console="vidconsole comconsole" ># boot_multicons="YES" ># ># 'echo "-qm > /boot/config"' would supress the 2nd stage prompt (q, while still ># waiting some time for key press to interrupt auto boot) and also mute (-m) the ># next stage console outpout, which is the kernel probing messages. ># Instead of kernel messages, if 'vbe_max_resolution' resp. 'efi_max_resolution' ># is defined (VESA resp. GOP graphic modes, src.conf BOOT_FRAMEBUFFER_MODE=yes) ># the /boot/images/freebsd-logo-rev.png is shown. This is an alternative to ># replace the yet unsupported splash(4) on vt(4) console. ># ># '-n' eliminates the keypress-timeout before the kernel boot (menu) timeout. ># ># Neither -q nor -m prevents the (default) boot menu to show up, ># if not disabled by beastie_disable="YES". >#beastie_disable="YES" # Disable boot menu >#autoboot_delay="4" # reduce the 10 second timeout if menue is not utilized >#boot_ddb="YES" # Set kernel flag to enter the DDB kernel debugger (see > # ddb(4)) as early as possible in kernel initialization >#boot_verbose="YES" # Set kernel flag to be verbose during device probing. > ># ># Serial console ># ># BIOS loader has it's own configuration file (see above) where to predefine ># dual/serial console parameters. ># Only for EFI loader you might want to set the following. >#boot_multicons="YES" # For EFI loader only, BIOS loader has /boot/config >#console="efi comconsole" # first is used for primary console (rc(8) messages) >#comconsole_speed="115200" # For EFI loader only, BIOS loader has /boot/config > ># ># Video console ># ># vt(4) is the default video console with backend drivers for vt_efifb, vt_vga, ># vt_vbefb and vt_fb. ># syscons (sc(4)) is the legacy console, and splash(4) ># doesn't work with vt(4), like many vidcontrol(1) features are ># not available for vt(4). ># After kernel is started, KMS driver is needed to alter the video console ># (see "drm-fbsd13-kmod" (ports(7)) for amdgpu, i915, and radeon DRM modules). ># vt_fb is the backend driver for KMS graphic adapters >#kern.vt.fb.default_mode="1280x1024" # KMS resolution to be set by kernel >#kern.vt.fb.modes.LVDS-1="1080p" # (resolution for a specific connector) ># ># If no KMS driver is loaded, the loader(8) initialization defines the console. ># All loader types read this loader.conf(5), but EFI loader and BIOS loader use ># different parameters. ># BIOS loader(8) switches to VESA BIOS Extension (VBE) frame buffer mode ># if "hw.vga.textmode=1" doesn't mandate to stay in VGA text mode. ># Additonally, vbe_max_resolution may need to be defined (undefined by default), ># although 800x660 should be used if no EDID is available (currently not true). >#hw.vga.textmode=1 # Prevents switching to 640x480x16 VGA mode for vt_vga >vbe_max_resolution="1024x768" # VESA BIOS Extension resolution, overriding EDID ># ># EFI loader keeps the UEFI firmware initialized GOP resolution if the default ># value for "efi_max_resolution=1x1" not defined different. >efi_max_resolution="1080p" # UEFI GOP, defaults to "1x1" >screen.font="10x20" # Default is 8x16, overrides auto-detection. > # Starting with 1024x768 (non Hi-DPI displays) look > # better with 10x20 font (larger fonts for Hi-DPI, > # see /boot/fonts) > ># ># platform/machine specifics for HPEU48-BOSCO ># > >#hint.hwpstate_intel.0.disabled="1" > >#kern.cam.sa.allow_io_split="1" # Workarround for sa(4) changes to make 'btape readlabel' work >kern.geom.label.disk_ident.enable="0" >kern.geom.label.gptid.enable="0" >kern.ipc.nmbclusters=262144 # defaults to 25600 >kern.ipc.nmbjumbo9=65536 > ># kern.vty="vt" default since 11 >#kern.vt.kbd_halt=0 >#kern.vt.kbd_poweroff=0 >kern.vt.kbd_reboot=0 >#kern.vt.kbd_debug=0 >#hw.syscons.kbd_reboot=0 >#hint.sc.0.flags=0x80 > >#hint.acpi.0.disabled=1 >#hint.uart.1.disabled=1 >hint.agp.0.disabled=1 >#hw.pci.realloc_bars=1 >#hw.pci.honor_msi_blacklist=0 # VMware directpath devices are on the list, we care manually (if_igb is one example which works some magnitudes more efficient) >#hw.pci.enable_msix=0 # msi-x doesn't work for VMware passthroug at least <=5.1! >#hw.pci.enable_msi=0 # makes PCI passthru of 82579LM (PHY for Intel C200/Series50 chipset integrated MAC) working if VT-d is enabled in BIOS, but interrupt-remapping and dma-mapping _disabled_! >#hw.mps.disable_msix=1 # IntrType init error, VMKPCIPassthru does MSI(Type=2) while mps want MSI-X(Type=4) >#hw.vmm.topology.cores_per_package=4 >#dev.igb.0.iflib.disable_msix # We have rc.local unloading and re-loading if_igb as workarround (otherwise same IntrType-init error as with mps occurs) >dev.igb.0.iflib.override_nrxqs=2 >dev.igb.1.iflib.override_nrxqs=2 >dev.igb.2.iflib.override_nrxqs=2 >dev.igb.3.iflib.override_nrxqs=2 > >#vfs.zfs.trim_disable=0 >vfs.zfs.arc_max=6442450944 # 6GB >#vfs.zfs.arc_meta_limit=786432000 # increase to 1/2 arc_max, instead of 1/4 >#vfs.zfs.txg.timeout=3 >#vfs.zfs.write_limit_override=1610612736 #1.5G (1610612736) results in ~130MB/s of 230MB/s max > >#splash_pcx_load="YES" >#bitmap_load="YES" >#bitmap_name="/boot/splash.pcx" > >net.fibs="6" >#net.add_addr_allfibs="0" >net.link.bridge.inherit_mac="1" >#net.isr.maxthreads=4 >#net.isr.defaultqlimit=4096 >#net.isr.bindthreads=1 > ># Intel i350 onboard port 2 and 3 of 4 (igb1+igb2), used for ServerGuest + router VM >pptdevs="2/0/1 2/0/2" ># Intel NVMe SSD 760p for VM passthrough ># used for VM passthrough (else igb4, Port 5 and igb5, Port 6) ># crashes host as of 2020/12: pptdevs2="7/0/0" > > >cc_htcp_load="YES" >aio_load="YES" >nvme_load="YES" >nvd_load="YES" # nvd(4) is for passthrough, don't need nda(4) >vmm_load="YES" >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 256343
: 225465