xdna: source NPU firmware from Ubuntu linux-firmware deb#85
Open
poad42 wants to merge 2 commits into
Open
Conversation
Stop fetching NPU firmware from AMD-hosted repo.radeon.com URLs and source the .sbin blobs exclusively from Ubuntu's linux-firmware package (stable, distro-mirrored URLs): - add extract_npu_firmware.sh to pull the amdnpu .sbin blobs out of the linux-firmware deb - Dockerfile: run extract_npu_firmware.sh so the firmware is baked into the image, and replace the driver's download_npufws() with an empty stub so the build never reaches repo.radeon.com (download_vtd_archives, used for the xrt-smi validate data, is left intact) - README: document installing the firmware on the host (the kernel driver loads it from the host's /lib/firmware/amdnpu) - add .gitattributes to force LF on *.sh (CRLF breaks the shebang of extract_npu_firmware.sh when COPYed into the container) Co-authored-by: Cursor <cursoragent@cursor.com>
Keep the inline comment to a short description of the line and move the rationale here. The driver's download_npufws() fetches the NPU .sbin firmware from AMD-hosted repo.radeon.com URLs, which are version-specific and prone to breakage. We replace it with an empty stub via sed so the build never reaches repo.radeon.com; the firmware instead comes exclusively from Ubuntu's linux-firmware deb (extract_npu_firmware.sh). download_vtd_archives, which fetches the data used by xrt-smi validate, is intentionally left intact. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Stop fetching NPU firmware from AMD-hosted repo.radeon.com URLs and source the .sbin blobs exclusively from Ubuntu's linux-firmware package (stable, distro-mirrored URLs):