sodcalculator

10 Tech How-To

Gentoo Laptop Hardware & Firmware Upgrade Guide

Guide 10-48052 · Updated · Step by step

This guide helps you choose a laptop that works well with Gentoo Linux, check its firmware, and safely upgrade firmware and system components. You’ll learn what hardware to look for, how to verify firmware compatibility, and how to perform upgrades without breaking your system.

What You’ll Need

  • A laptop (either one you’re considering buying or one you already own)
  • Access to a terminal with root privileges (for firmware upgrades)
  • An internet connection
  • Basic familiarity with the command line
  • For firmware upgrades: a USB drive (if your laptop requires BIOS/UEFI updates via bootable media)

Step-by-Step

Part 1: Choosing Gentoo-Compatible Hardware

  1. Check CPU architecture and support – Gentoo supports x86_64, ARM64, and other architectures. For most laptops, choose an x86_64 CPU (Intel or AMD). Verify that the CPU is supported by the kernel you plan to use. For example, recent Intel Core and AMD Ryzen processors are well-supported. Avoid very new CPUs that may require the latest kernel or firmware.
  2. Verify GPU compatibility – For Intel integrated graphics, use the i915 driver (or newer xe driver for very recent Intel GPUs). For AMD, use amdgpu. NVIDIA requires proprietary drivers (nvidia-drivers) or nouveau (open-source, but slower). For a hassle-free experience, choose Intel or AMD graphics.
  3. Check wireless chipset – Look for Intel wireless cards (e.g., Intel AX200, AX210) or Atheros/Qualcomm chips. These have good open-source driver support. Avoid Realtek cards that may need firmware blobs or have spotty support. Check the Gentoo Wiki’s networking section for known good chipsets.
  4. Assess firmware requirements – Most laptops need firmware blobs for wireless, GPU, and sometimes storage. Check if the laptop’s firmware is available in sys-kernel/linux-firmware. If the laptop is very new, firmware might not be in the package yet – you may need to manually download it.
  5. Check UEFI/BIOS update availability – Look for a laptop manufacturer that provides UEFI updates as downloadable files (e.g., .cap or .fd). Some manufacturers only provide Windows executables, which can be tricky to run on Gentoo. Prefer laptops with UEFI updates that can be applied via a USB stick or from the UEFI shell.
  6. Consider storage and RAM – Ensure the laptop uses standard M.2 NVMe SSDs and SODIMM RAM (if upgradeable). Some ultrabooks have soldered RAM/storage, which limits upgrades. Gentoo benefits from more RAM for compilation, so choose at least 16GB if possible.
  7. Search Gentoo Wiki and forums – Before buying, search for the laptop model on the Gentoo Wiki and forums. See if other users have reported issues. This can save you from painful troubleshooting.

Part 2: Checking Current Firmware

  1. Check UEFI/BIOS version – Run dmidecode -t bios (as root) to see the current firmware version. Compare it with the latest available on the manufacturer’s support page.
  2. Check kernel and initramfs – Run uname -r to see your kernel version. Make sure it’s recent enough to support your hardware. Also check that your initramfs is up to date (if you use one).
  3. Check loaded firmware – Use dmesg | grep firmware to see which firmware files were loaded. If any are missing, you’ll see errors.
  4. Verify linux-firmware package – Run emerge -pv sys-kernel/linux-firmware to see the installed version and whether updates are available. Keep it up to date with emerge -u sys-kernel/linux-firmware.
  5. Check for microcode updates – For Intel CPUs, install sys-firmware/intel-microcode; for AMD, sys-firmware/amd-microcode. Ensure your bootloader loads the microcode update.

Part 3: Upgrading Firmware Safely

  1. Back up your data – Before any firmware upgrade, back up important files. Firmware updates can fail and potentially corrupt your system.
  2. Update linux-firmware and microcode – Run emerge -u sys-kernel/linux-firmware and the appropriate microcode package. Then rebuild your kernel if needed (especially if you use modules).
  3. Update the kernel – If you use a custom kernel, download the latest sources and rebuild. If you use genkernel, run genkernel all. After rebooting, verify with uname -r.
  4. Update UEFI/BIOS – Download the latest firmware from the manufacturer’s website. If it’s a .cap file, you can often apply it from a USB stick using the UEFI’s built-in update tool. Some laptops allow updating from a bootable USB with a DOS/EFI shell. Follow the manufacturer’s instructions exactly.
  5. Update other firmware (e.g., SSD, NVMe) – Some SSDs have firmware updates that can be applied via the vendor’s tool (often available for Linux). Check your SSD manufacturer’s site. Be cautious – only update if you have a specific reason (e.g., bug fixes).
  6. Reboot and verify – After updates, reboot and check that everything still works. Run dmesg for errors, and check lspci -k to see if drivers loaded correctly.

Common Mistakes

  • Ignoring firmware blobs – Forgetting to install linux-firmware can lead to non-working wireless or GPU.
  • Using a too-new kernel – A bleeding-edge kernel may have regressions. Stick to a stable release.
  • Not checking UEFI update method – Some laptops only offer Windows-based updates, which can be difficult to apply on Gentoo.
  • Skipping microcode updates – Without microcode, you may miss security fixes and performance improvements.
  • Updating firmware during a power outage – Always ensure AC power is connected before updating UEFI/BIOS.

Tips

  • Keep a backup of your current kernel and initramfs so you can boot if something goes wrong.
  • Use the Gentoo Wiki’s hardware compatibility list as a starting point.
  • If you’re buying a laptop, consider one with a coreboot-supported motherboard for more open firmware.
  • Check the Gentoo forums for user experiences with your exact model.
  • When in doubt, wait a few weeks after a new laptop release before buying – this gives time for firmware and drivers to mature.

Troubleshooting

  • Wireless not working after update – Check if the firmware file is present: ls /lib/firmware/. Re-emerge linux-firmware and reboot.
  • GPU issues after kernel update – Make sure the correct driver is enabled in the kernel config. For Intel, check CONFIG_DRM_I915; for AMD, CONFIG_DRM_AMDGPU.
  • System doesn’t boot after UEFI update – Try resetting UEFI settings to defaults. If that fails, you may need to reinstall the bootloader (e.g., GRUB) from a live USB.
  • Microcode not applied – Check dmesg | grep microcode for errors. Ensure your bootloader loads the microcode file (e.g., in GRUB: initrd /boot/intel-ucode.img /boot/initramfs.img).
  • Firmware update fails – Try using a different USB stick (FAT32 formatted) and ensure the file is in the root directory. Some UEFI updates require a specific file name.

Frequently Asked Questions

Do I need to update firmware immediately after buying a new laptop?

Not necessarily, but it’s a good idea to check for updates that fix security vulnerabilities or improve stability. Wait a few weeks after release to see if any issues are reported.

Can I use NVIDIA graphics with Gentoo?

Yes, but it requires installing the proprietary nvidia-drivers package. This is more involved than Intel or AMD, but it works well for most users.

How do I know if my laptop’s firmware is compatible with Linux?

Check the manufacturer’s support page for Linux downloads. Also search the Gentoo Wiki and forums for your model. If the manufacturer only provides Windows executables, you may have difficulty.

Is it safe to update UEFI/BIOS from Linux?

Yes, if you follow the manufacturer’s instructions. Many modern laptops allow updating from a USB drive. Ensure the laptop is plugged into AC power and do not interrupt the process.

What is the difference between firmware and microcode?

Firmware is software that runs on devices (like wireless cards, SSDs). Microcode is a CPU-level update that fixes bugs and adds features. Both are important for system stability.

Can I downgrade firmware if an update causes problems?

Sometimes. Many manufacturers allow downgrading, but not always. Check the manufacturer’s policy. If downgrading isn’t possible, you may need to wait for a newer update that fixes the issue.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →