Update readme

This commit is contained in:
projectmoon 2022-11-08 17:16:00 +01:00
parent 9e6ae6db11
commit d7fe9f1fc9
1 changed files with 51 additions and 7 deletions

View File

@ -2,9 +2,9 @@ Personal Gentoo overlay, focusing mostly on needed tools and
compatibility for the Librem 14 computer. compatibility for the Librem 14 computer.
Available packages: Available packages:
- **dev-util/rust-analyzer-bin**: A properly versioned ebuild of - **sys-kernel/libre-kernel**: A dist-kernel built from the [Linux-libre
rust-analyzer-bin. sources][linux-libre].
- **sys-kernel/librem-ec-acpi**: An ebuild packaging the [Librem 14 - **sys-kernel/librem-ec-acpi**: An ebuild packaging the [Librem 14
EC ACPI kernel module][ec-acpi], necessary for proper functioning EC ACPI kernel module][ec-acpi], necessary for proper functioning
of the laptop's battery charging and function keys. of the laptop's battery charging and function keys.
@ -16,6 +16,43 @@ Using eselect-repository:
# eselect repository add projectmoon git https://git.agnos.is/projectmoon/projectmoon-overlay # eselect repository add projectmoon git https://git.agnos.is/projectmoon/projectmoon-overlay
``` ```
## The Linux-libre dist-kernel
This overlay provides a dist-kernel (based on
`sys-kernel/vanilla-kernel`) using the Linux-libre kernel sources, and
an accompanying updated version of `virtual/dist-kernel`. It is
maintained and tested for my personal use on amd64. The Linux-libre
kernel removes the ability for the Linux kernel to load firmware that
is not [Free Software][free-software]. The ebuild follows the current
stable gentoo-kernel for amd64.
The libre kernel can be installed alongside other dist-kernels, and
works with the `dist-kernel` and `initramfs` USE flags. The ebuild
does NOT fail if non-free firmware (i.e. `sys-kernel/linux-firmware`
with `redistributable` USE flag set) is installed, but it will warn
you if this is the case. It will also warn you if the `linux-firmware`
package is not found at all, like normal dist-kernel ebuilds.
The kernel installed by this ebuild has the version suffix
`-gnu-dist`, making it easy to determine which kernel it is.
To install only the Linux firmware that meets the [Free Software
Definition][free-software], configure `/etc/portage/package.use` accordingly:
```
# Install only libre firmware
sys-kernel/linux-firmware -redistributable -unknown-license
```
You can also edit `/etc/portage/profile/package.use.mask` to prevent
the linux-firmware package from ever installing the closed-source
firmware by adding this line:
```
# forcibly stop non-free firmware installation
sys-kernel/linux-firmware redistributable unknown-license
```
## Using the Librem EC ACPI kernel module ## Using the Librem EC ACPI kernel module
The Librem EC ACPI kernel module should install and be automatically The Librem EC ACPI kernel module should install and be automatically
@ -23,7 +60,14 @@ available (via modprobe) after installation, using `emerge
sys-kernel/librem-ec-acpi`. The module is currently installed to sys-kernel/librem-ec-acpi`. The module is currently installed to
`/lib/modules/<kernel>/librem/`. `/lib/modules/<kernel>/librem/`.
When upgrading or installing a new kernel, you will need to do `emerge This ebuild supports the `dist-kernel` USE flag, and the module will
@modules-rebuild` to install the module for the new kernel. automatically be rebuilt when installing a new dist-kernel if that
flag is enabled.
If you are not using a dist-kernel, when upgrading or installing a new
kernel, you will need to do `emerge @modules-rebuild` to install the
module for the new kernel.
[linux-libre]: https://www.fsfla.org/ikiwiki/selibre/linux-libre/
[free-software]: https://www.gnu.org/philosophy/free-sw.en.html#fs-definition
[ec-acpi]: https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms [ec-acpi]: https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms