Skip to content

Commit

Permalink
feat: realtek firmware
Browse files Browse the repository at this point in the history
Adds Realtek firmware blobs extension.

fixes siderolabs/pkgs#895

Signed-off-by: Victor Seva <linuxmaniac@torreviejawireless.org>
Signed-off-by: Noel Georgi <git@frezbo.dev>
(cherry picked from commit 97e59f8)
  • Loading branch information
linuxmaniac authored and smira committed Feb 21, 2024
1 parent 2bc347f commit 9aafd4e
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 1 deletion.
1 change: 1 addition & 0 deletions .kres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ spec:
- nvidia-open-gpu-kernel-modules
- qemu-guest-agent
- qlogic-firmware
- realtek-firmware
- stargz-snapshotter
- tailscale
- thunderbolt
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-02-21T10:59:05Z by kres latest.
# Generated on 2024-02-21T11:00:16Z by kres latest.

# common variables

Expand Down Expand Up @@ -73,6 +73,7 @@ TARGETS += nvidia-fabricmanager
TARGETS += nvidia-open-gpu-kernel-modules
TARGETS += qemu-guest-agent
TARGETS += qlogic-firmware
TARGETS += realtek-firmware
TARGETS += stargz-snapshotter
TARGETS += tailscale
TARGETS += thunderbolt
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ cosign verify --certificate-identity-regexp '@siderolabs\.com$' --certificate-oi
| [intel-ice-firmware](firmware/intel-ice-firmware/) | [ghcr.io/siderolabs/intel-ice-firmware](https://github.com/siderolabs/extensions/pkgs/container/intel-ice-firmware) | Intel ICE NIC firmware | `linux firmware version` |
| [intel-ucode](firmware/intel-ucode/) | [ghcr.io/siderolabs/intel-ucode](https://github.com/siderolabs/extensions/pkgs/container/intel-ucode) | Intel CPU microcode updates | `upstream version` |
| [qlogic-firmware](firmware/qlogic-firmware/) | [ghcr.io/siderolabs/qlogic-firmware](https://github.com/siderolabs/extensions/pkgs/container/qlogic-firmware) | Qlogic firmware | `linux firmware version` |
| [realtek-firmware](firmware/realtek-firmware/) | [ghcr.io/siderolabs/realtek-firmware](https://github.com/siderolabs/extensions/pkgs/container/realtek-firmware) | Realtek firmware | `linux firmware version` |

### Drivers

Expand Down
10 changes: 10 additions & 0 deletions firmware/realtek-firmware/manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: v1alpha1
metadata:
name: realtek-firmware
version: "$VERSION"
author: Sidero Labs
description: |
This system extension provides realtek firmware binaries.
compatibility:
talos:
version: ">= v1.0.0"
23 changes: 23 additions & 0 deletions firmware/realtek-firmware/pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: realtek-firmware
variant: scratch
shell: /toolchain/bin/bash
dependencies:
- stage: base
- image: "{{ .PKGS_PREFIX }}/linux-firmware:{{ .BUILD_ARG_PKGS }}"
steps:
- prepare:
- |
sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml
install:
- |
mkdir -p /rootfs/lib/firmware
cp -R -p /lib/firmware/RTL8192E /rootfs/lib/firmware
cp -R -p /lib/firmware/rtl_bt /rootfs/lib/firmware
cp -R -p /lib/firmware/rtl_nic /rootfs/lib/firmware
cp -R -p /lib/firmware/rtlwifi /rootfs/lib/firmware
cp -R -p /lib/firmware/rtw88 /rootfs/lib/firmware
finalize:
- from: /rootfs
to: /rootfs
- from: /pkg/manifest.yaml
to: /
1 change: 1 addition & 0 deletions firmware/realtek-firmware/vars.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VERSION: "{{ .LINUX_FIRMWARE_VERSION }}"

0 comments on commit 9aafd4e

Please sign in to comment.