finally load the gpu firmware in initrd
This commit is contained in:
parent
8e16dc9e6a
commit
14777d1f0c
4 changed files with 57 additions and 46 deletions
|
@ -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/"
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue