Skip to content

Instantly share code, notes, and snippets.

@thefloweringash
Created May 1, 2019 04:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thefloweringash/720012f5e87a0b35b17244b4032c51ea to your computer and use it in GitHub Desktop.
Save thefloweringash/720012f5e87a0b35b17244b4032c51ea to your computer and use it in GitHub Desktop.
Rock64 Kernel Patches for Mainline (5.0+)
{
boot.kernelPatches =
let
alarmRev = "2026bde";
alarmPatch = { name, sha256 }: {
inherit name;
patch = pkgs.fetchpatch {
url = "https://raw.githubusercontent.com/archlinuxarm/PKGBUILDs/${alarmRev}/core/linux-aarch64/${name}";
inherit sha256;
};
};
in [
(alarmPatch {
name = "0001-net-smsc95xx-Allow-mac-address-to-be-set-as-a-parame.patch";
sha256 = "1r029758p4p6j3mxqxfl8nbanxsjxfm9r38y92cv9hpzfwy0a4m4";
})
(alarmPatch {
name = "0002-arm64-dts-rockchip-disable-pwm0-on-rk3399-firefly.patch";
sha256 = "10phkzqjdvhrrpshfd2miikr6w62pfrifxg4y25385h1swwmqn8z";
})
(alarmPatch {
name = "0003-arm64-dts-rockchip-add-usb3-controller-node-for-RK33.patch";
sha256 = "0v7413c2d7q45imfnichxdrika4vv45ybkf73pc4k2z7fz6hkrss";
})
(alarmPatch {
name = "0004-arm64-dts-rockchip-enable-usb3-nodes-on-rk3328-rock6.patch";
sha256 = "16ywplwa3dd7yz6kd4r08dj9fx2m4b8rm1zf82ps87lbw2h3j180";
})
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment