A temporary hack to install the Surface Go firmware
This commit is contained in:
parent
9a35571829
commit
080c44106f
|
@ -1,13 +1,15 @@
|
||||||
{stdenv, pkgs, firmwareLinuxNonfree, ...}:
|
{stdenv, pkgs, firmwareLinuxNonfree, ...}:
|
||||||
let
|
let
|
||||||
repos = (pkgs.callPackage ../repos.nix {});
|
repos = (pkgs.callPackage ../repos.nix {});
|
||||||
|
ath10k = ./ath10k;
|
||||||
|
# ath10k = repos.ath10k-firmware;
|
||||||
in
|
in
|
||||||
|
|
||||||
firmwareLinuxNonfree.overrideAttrs (old: rec {
|
firmwareLinuxNonfree.overrideAttrs (old: rec {
|
||||||
pname = "microsoft-surface-go-firmware-linux-nonfree";
|
pname = "microsoft-surface-go-firmware-linux-nonfree";
|
||||||
srcs = [
|
srcs = [
|
||||||
firmwareLinuxNonfree.src
|
firmwareLinuxNonfree.src
|
||||||
repos.ath10k-firmware
|
ath10k
|
||||||
];
|
];
|
||||||
|
|
||||||
sourceRoot = firmwareLinuxNonfree.src;
|
sourceRoot = firmwareLinuxNonfree.src;
|
||||||
|
@ -15,15 +17,12 @@ firmwareLinuxNonfree.overrideAttrs (old: rec {
|
||||||
|
|
||||||
dontMakeSourcesWritable = true;
|
dontMakeSourcesWritable = true;
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# rm -v $out/lib/firmware/ath10k/{hw2.1,hw3.0}/board.bin
|
# Delete the non-working firmware:
|
||||||
# rm -v $out/lib/firmware/ath10k/{hw2.1,hw3.0}/board2.bin
|
rm -v $out/lib/firmware/ath10k/QCA6174/{hw2.1,hw3.0}/board.bin
|
||||||
|
rm -v $out/lib/firmware/ath10k/QCA6174/{hw2.1,hw3.0}/board-2.bin
|
||||||
|
|
||||||
# cp $srcs[1] $out/lib/firmware/ath10k/hw2.1/
|
# Install the Surface Go Wifi firmware:
|
||||||
# cp $srcs[1] $out/lib/firmware/ath10k/hw3.0/
|
cp ${ath10k}/K1535_Debian/board.bin $out/lib/firmware/ath10k/QCA6174/hw2.1/
|
||||||
|
cp ${ath10k}/K1535_Debian/board.bin $out/lib/firmware/ath10k/QCA6174/hw3.0/
|
||||||
#TODO:
|
|
||||||
pwd
|
|
||||||
echo src = $src, srcs = $srcs
|
|
||||||
exit 1
|
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
BIN
microsoft/surface/firmware/ath10k/K1535_Debian/board.bin
Normal file
BIN
microsoft/surface/firmware/ath10k/K1535_Debian/board.bin
Normal file
Binary file not shown.
Loading…
Reference in a new issue