NVRAM(4)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

πŸ’Ύ NVRAM(4) β€” non-volatile RAM πŸ’Ύ

okay bestie, this is the Kernel Interfaces Manual entry for nvram, and it's literally all about non-volatile RAM. 🫢


🌸 NAME 🌸

  • nvram β€” non-volatile RAM ✨

✨ SYNOPSIS ✨

To compile this driver into the kernel, place the following line in your kernel configuration file:

device nvram

Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):

nvram_load="YES"

πŸ’… DESCRIPTION πŸ’…

The nvram driver provides access to BIOS configuration NVRAM on i386 and amd64 systems. πŸ‘‘

A PC motherboard uses a small non-volatile memory to store BIOS settings, and that memory is usually part of its clock chip and sometimes referred to as β€œCMOS SRAM”. This driver exposes bytes 14 through 128 of the NVRAM β€” a total of 114 bytes β€” at offset zero of the device file /dev/nvram. πŸŽ€

This driver is useful for cloning machines that share the same hardware configuration and need same BIOS setting tweaks. πŸ¦‹

🧚 IMPLEMENTATION NOTES 🧚

The BIOS NVRAM's bytes 16 through 31 are checksummed at byte 32. This driver does not take care for these checksums.

⚠️ heads up: the driver literally does not take care for these checksums, so don't expect it to handle that for you.

πŸ”₯ EXAMPLES πŸ”₯

Backup existing BIOS NVRAM to nvram.bin:

dd if=/dev/nvram of=nvram.bin

Restore BIOS NVRAM from nvram.bin:

dd if=nvram.bin of=/dev/nvram

πŸ¦‹ SEE ALSO πŸ¦‹

🌈 HISTORY 🌈

The nvram device driver first appeared in FreeBSD 6.4. ⭐

πŸ‘‘ AUTHORS πŸ‘‘

The nvram device driver was written by Peter Wemm. This manual page was written by Xin LI. 🫢


cute sign-off: source/version is Debian, date is February 8, 2010 β€” love u, bestie, catch you in NVRAM(4)! πŸ’–πŸŽ€

πŸ“¦ where this page comes from