Kernels: Difference between revisions

From Alpine Linux
(Add note about installation procedure)
m (Move setup-alpine instructions above the fold)
Line 5: Line 5:
* [//git.alpinelinux.org/aports/tree/main/linux-rpi linux-rpi] is optimized for the Raspberry Pi.
* [//git.alpinelinux.org/aports/tree/main/linux-rpi linux-rpi] is optimized for the Raspberry Pi.


For installing a custom kernel, see [[Custom Kernel]].
For installing a custom kernel, see [[Custom Kernel]]. To select a specific kernel or firmware packages during installation from the Alpine ISO, simply install the desired kernel flavor and firmware packages with <code>apk add</code> before running <code>setup-alpine</code>.


== Firmware ==
== Firmware ==


The [//pkgs.alpinelinux.org/package/edge/main/x86/linux-firmware linux-firmware] meta-package is included in the [[Installation|default installation]], and depends on all firmware. This is a large download, and you may be better served by installing [//pkgs.alpinelinux.org/packages?name=linux-firmware-*&branch=edge only the firmwares you need], or [//pkgs.alpinelinux.org/package/edge/main/x86/linux-firmware-none linux-firmware-none] if you do not require any firmware. If you're unsure which firmware you need, boot up with no firmware installed and run <code>dmesg | grep firmware</code> to get an idea. Be aware that most firmware is nonfree.
The [//pkgs.alpinelinux.org/package/edge/main/x86/linux-firmware linux-firmware] meta-package is included in the [[Installation|default installation]], and depends on all firmware. This is a large download, and you may be better served by installing [//pkgs.alpinelinux.org/packages?name=linux-firmware-*&branch=edge only the firmwares you need], or [//pkgs.alpinelinux.org/package/edge/main/x86/linux-firmware-none linux-firmware-none] if you do not require any firmware. If you're unsure which firmware you need, boot up with no firmware installed and run <code>dmesg | grep firmware</code> to get an idea. Be aware that most firmware is nonfree.
== setup-alpine ==
To select a specific kernel or firmware packages during installation from the Alpine ISO, simply install the desired kernel flavor and firmware packages with <code>apk add</code> before running <code>setup-alpine</code>.

Revision as of 23:38, 30 June 2019

Alpine Linux has several kernels designed to suit different situations.

  • linux-vanilla is the stock modular kernel and is configured for a generous selection of hardware.
  • linux-virt is recommended for Alpine Linux guests, and disables most hardware in favor of a commonly-virtualized subset of drivers.
  • linux-rpi is optimized for the Raspberry Pi.

For installing a custom kernel, see Custom Kernel. To select a specific kernel or firmware packages during installation from the Alpine ISO, simply install the desired kernel flavor and firmware packages with apk add before running setup-alpine.

Firmware

The linux-firmware meta-package is included in the default installation, and depends on all firmware. This is a large download, and you may be better served by installing only the firmwares you need, or linux-firmware-none if you do not require any firmware. If you're unsure which firmware you need, boot up with no firmware installed and run dmesg | grep firmware to get an idea. Be aware that most firmware is nonfree.