Kernels: Difference between revisions
Prabuanand (talk | contribs) m (added wikilink to see also) |
Prabuanand (talk | contribs) (added wikilinks and reference to akms) |
||
| (7 intermediate revisions by 3 users not shown) | |||
| Line 3: | Line 3: | ||
* {{Pkg|linux-lts}} — Long-term support kernel, configured for a generous selection of hardware | * {{Pkg|linux-lts}} — Long-term support kernel, configured for a generous selection of hardware | ||
** {{Pkg|linux-virt}} — Long-term support kernel, configured for VM guests (disables most hardware in favor of a commonly-virtualized subset of drivers) | ** {{Pkg|linux-virt}} — Long-term support kernel, configured for VM guests (disables most hardware in favor of a commonly-virtualized subset of drivers) | ||
* {{Pkg|linux-stable}} — Stable kernel, configured for a generous selection of hardware <i>Only supported in <code>community</code></i> | * {{Pkg|linux-stable}} — Stable kernel, configured for a generous selection of hardware <i>Only supported in <code>community</code>. For Alpine 3.22 and older there was {{pkg|linux-edge|branch=v3.21|arch=}}, see [[Release_Notes_for_Alpine_3.23.0#linux-stable_replaces_linux-edge]]</i> | ||
* {{pkg|linux-rpi|arch=}} — Raspberry Pi's kernel, configured for the Raspberry Pi. <i>For Alpine 3.18 and older there is also {{pkg|linux-rpi2|branch=v3.18|arch=}} and {{pkg|linux-rpi4|branch=v3.18|arch=}} optimized for the Raspberry Pi 2 and 4 respectively.</i> | * {{pkg|linux-rpi|arch=}} — Raspberry Pi's kernel, configured for the Raspberry Pi. <i>For Alpine 3.18 and older there is also {{pkg|linux-rpi2|branch=v3.18|arch=}} and {{pkg|linux-rpi4|branch=v3.18|arch=}} optimized for the Raspberry Pi 2 and 4 respectively.</i> | ||
* {{Pkg|linux-openpax}} — Kernel with OpenPAX patches which provide a layer of defense against memory safety-related vulnerabilities. | * {{Pkg|linux-openpax}} — Kernel with OpenPAX patches which provide a layer of defense against memory safety-related vulnerabilities. <i>Only supported in <code>community</code></i> | ||
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 {{ic|apk add}} before running {{ic|setup-alpine}}. | 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 {{ic|apk add}} before running {{ic|setup-alpine}}. | ||
| Line 11: | Line 12: | ||
== Firmware == | == Firmware == | ||
The {{Pkg|linux-firmware}} meta-package is included in the [[Installation|default installation]], and depends on all firmware. It is a large download. You may be better served by installing only the firmware you need (see {{Pkg|linux-firmware-*}}), or {{Pkg|linux-firmware-none}} if you do not require any firmware. If you're unsure which firmware you need, boot with no firmware installed and run {{ | The {{Pkg|linux-firmware}} meta-package is included in the [[Installation|default installation]], and depends on all firmware. It is a large download and due to this reason, installation of this package can produce errors on [[Installation#Diskless Mode|diskless]] or [[Installation#Data Disk Mode|data disk]] modes. If such errors occur, switch to [[Installation#System Disk Mode|system disk]] mode. | ||
You may be better served by installing only the firmware you need (see {{Pkg|linux-firmware-*}}), or {{Pkg|linux-firmware-none}} if you do not require any firmware. If you're unsure which firmware you need, boot with no firmware installed and run below command to to get an idea. {{Cmd|<nowiki># dmesg|grep firmware</nowiki>}} | |||
Be aware that most firmware is non-free. | |||
[[Alpine kernel module support|Alpine kernel module support]](AKMS) page has information on the out-of-tree kernel module driver packages available in Alpine Linux and [[Alpine kernel module support#Using AKMS|how to use]] them. | |||
== Experimental Kernels == | == Experimental Kernels == | ||
| Line 20: | Line 27: | ||
* {{pkg|linux-elm|arch=aarch64}} — Elm chromebooks | * {{pkg|linux-elm|arch=aarch64}} — Elm chromebooks | ||
* {{pkg|linux-gru|arch=aarch64}} — Gru chromebooks | * {{pkg|linux-gru|arch=aarch64}} — Gru chromebooks | ||
* {{Pkg|linux-eswin}} — [https://github.com/jmontleon/linux-eswin Linux lts kernel] - RISC-V | |||
* {{pkg|linux-sophgo|arch=riscv64}} — Sophgo RISC-V SoC's | * {{pkg|linux-sophgo|arch=riscv64}} — Sophgo RISC-V SoC's | ||
* {{pkg|linux-p550|arch=riscv64}} — SiFive P550 RISC-V SoC's | * {{pkg|linux-p550|arch=riscv64}} — SiFive P550 RISC-V SoC's | ||
Latest revision as of 09:37, 9 December 2025
Alpine Linux has several kernels (see linux-*) designed to suit different situations.
- linux-lts — Long-term support kernel, configured for a generous selection of hardware
- linux-virt — Long-term support kernel, configured for VM guests (disables most hardware in favor of a commonly-virtualized subset of drivers)
- linux-stable — Stable kernel, configured for a generous selection of hardware Only supported in
community. For Alpine 3.22 and older there was linux-edge, see Release_Notes_for_Alpine_3.23.0#linux-stable_replaces_linux-edge
- linux-rpi — Raspberry Pi's kernel, configured for the Raspberry Pi. For Alpine 3.18 and older there is also linux-rpi2 and linux-rpi4 optimized for the Raspberry Pi 2 and 4 respectively.
- linux-openpax — Kernel with OpenPAX patches which provide a layer of defense against memory safety-related vulnerabilities. Only supported in
community
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. It is a large download and due to this reason, installation of this package can produce errors on diskless or data disk modes. If such errors occur, switch to system disk mode.
You may be better served by installing only the firmware you need (see linux-firmware-*), or linux-firmware-none if you do not require any firmware. If you're unsure which firmware you need, boot with no firmware installed and run below command to to get an idea.
# dmesg|grep firmware
Be aware that most firmware is non-free.
Alpine kernel module support(AKMS) page has information on the out-of-tree kernel module driver packages available in Alpine Linux and how to use them.
Experimental Kernels
Some kernels are not well tested and are therefor only available in the testing repository. Use at your own risk.
- linux-asahi — Apple Silicon devices, see https://asahilinux.org/
- linux-elm — Elm chromebooks
- linux-gru — Gru chromebooks
- linux-eswin — Linux lts kernel - RISC-V
- linux-sophgo — Sophgo RISC-V SoC's
- linux-p550 — SiFive P550 RISC-V SoC's
- linux-starfive — Starfive RISC-V SoC's
- linux-jh7100 — Starfive JH7100 SoC
- linux-spacemit — SpacemiT RISC-V SoC's