finally load the gpu firmware in initrd

This commit is contained in:
Adam Stephens 2024-07-30 22:25:13 -04:00
parent 8e16dc9e6a
commit 14777d1f0c
No known key found for this signature in database
4 changed files with 57 additions and 46 deletions

View file

@ -14,12 +14,23 @@ let
}
);
in
rec {
{
linux_jhovold = pkgs.callPackage linux_x13s_pkg {
src = sources.linux-jhovold;
version = "6.11.0-rc1";
defconfig = "johan_defconfig";
};
"x13s/extra-firmware" = pkgs.callPackage ./extra-firmware.nix { };
graphics-firmware =
let
gpu-src = pkgs.fetchurl {
url = "https://download.lenovo.com/pccbbs/mobiles/n3hdr20w.exe";
hash = "sha256-Jwyl9uKOnjpwfHd+VaGHjYs9x8cUuRdFCERuXqaJwEY=";
};
in
pkgs.runCommand "graphics-firmware" { } ''
mkdir -vp "$out/lib/firmware/qcom/sc8280xp/LENOVO/21BX"
${lib.getExe pkgs.innoextract} ${gpu-src}
cp -v code\$GetExtractPath\$/*/*.mbn "$out/lib/firmware/qcom/sc8280xp/LENOVO/21BX/"
'';
}