packer: include lib/firmware from kernel package in root filesystem#99
Open
phaus wants to merge 2 commits intogokrazy:mainfrom
Open
packer: include lib/firmware from kernel package in root filesystem#99phaus wants to merge 2 commits intogokrazy:mainfrom
phaus wants to merge 2 commits intogokrazy:mainfrom
Conversation
added 2 commits
April 18, 2026 01:25
Older gokrazy instances do not expose the device-specific update endpoint, returning HTTP 404. Previously this aborted the entire OTA update before the A/B partition switch, leaving the device stuck on the old root filesystem. Treat 404 the same as ErrUpdateHandlerNotImplemented so the update completes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
lib/firmware/from the kernel package directory in the root filesystem, alongside the existinglib/modules/support.lib/firmware/directory exists in the kernel package; otherwise nothing changes.Motivation
Linux drivers that load firmware at runtime (e.g. WiFi drivers like
rtl8xxxu) need firmware blobs at/lib/firmware/. Currently, gokrazy only copieslib/modules/from the kernel package into the root filesystem. There is no way to ship firmware blobs without this change.The existing
FirmwarePackageconfig field serves a different purpose (Raspberry Pi GPU bootloader blobs) and does not place files under/lib/firmware/.Testing
Tested on a Banana Pi BPI-R1 (Allwinner A20) with RTL8192CU WiFi. Firmware blobs placed in the kernel package at
lib/firmware/rtlwifi/are correctly included in the root filesystem and loaded by the kernel at runtime.