mirror of
https://github.com/nix-community/raspberry-pi-nix.git
synced 2025-11-09 03:56:03 +01:00
set linux and firmware to latest release tag
disable KUNIT in kernel config
This commit is contained in:
parent
43258812a1
commit
7c6fa52715
5 changed files with 98 additions and 95 deletions
15
flake.lock
generated
15
flake.lock
generated
|
|
@ -62,15 +62,16 @@
|
|||
"rpi-firmware-src": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1686136390,
|
||||
"narHash": "sha256-Uq1yIp8zgexz2hwgAxEtmo9paytel4VPof5VMys01UM=",
|
||||
"lastModified": 1680694337,
|
||||
"narHash": "sha256-UtUd1MbsrDFxd/1C3eOAMDKPZMx+kSMFYOJP+Kc6IU8=",
|
||||
"owner": "raspberrypi",
|
||||
"repo": "firmware",
|
||||
"rev": "13fbbc4f5ea698353486915986de8b48f18018f6",
|
||||
"rev": "055e044d5359ded1aacc5a17a8e35365373d0b8b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "raspberrypi",
|
||||
"ref": "stable",
|
||||
"repo": "firmware",
|
||||
"type": "github"
|
||||
}
|
||||
|
|
@ -78,16 +79,16 @@
|
|||
"rpi-linux-6_1-src": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1686133523,
|
||||
"narHash": "sha256-r5L3hqk0wlefqkgO8jH4mupeUkbx9cSjHskLOxQQdZw=",
|
||||
"lastModified": 1680464256,
|
||||
"narHash": "sha256-ILwecHZ1BN6GhZAUB6/UwiN/rZ8gHndKON6DUhidtxI=",
|
||||
"owner": "raspberrypi",
|
||||
"repo": "linux",
|
||||
"rev": "bb63dc31e48948bc2649357758c7a152210109c4",
|
||||
"rev": "0afb5e98488aed7017b9bf321b575d0177feb7ed",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "raspberrypi",
|
||||
"ref": "rpi-6.1.y",
|
||||
"ref": "1.20230405",
|
||||
"repo": "linux",
|
||||
"type": "github"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,11 +8,11 @@
|
|||
};
|
||||
rpi-linux-6_1-src = {
|
||||
flake = false;
|
||||
url = "github:raspberrypi/linux/rpi-6.1.y";
|
||||
url = "github:raspberrypi/linux/1.20230405";
|
||||
};
|
||||
rpi-firmware-src = {
|
||||
flake = false;
|
||||
url = "github:raspberrypi/firmware";
|
||||
url = "github:raspberrypi/firmware/1.20230405";
|
||||
};
|
||||
rpi-firmware-nonfree-src = {
|
||||
flake = false;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
final: prev:
|
||||
let
|
||||
# The version to stick at `pkgs.rpi-kernels.latest'
|
||||
latest = "v6_1_32";
|
||||
latest = "v6_1_21";
|
||||
|
||||
# Helpers for building the `pkgs.rpi-kernels' map.
|
||||
rpi-kernel = { kernel, version, fw, wireless-fw, argsOverride ? null }:
|
||||
|
|
@ -35,10 +35,6 @@ let
|
|||
in
|
||||
{
|
||||
|
||||
# disable firmware compression so that brcm firmware can be found at
|
||||
# the path expected by raspberry pi firmware/device tree
|
||||
compressFirmwareXz = x: x;
|
||||
|
||||
# A recent known working version of libcamera-apps
|
||||
libcamera-apps =
|
||||
final.callPackage ./libcamera-apps.nix { inherit libcamera-apps-src; };
|
||||
|
|
@ -76,13 +72,18 @@ in
|
|||
#
|
||||
# For example: `pkgs.rpi-kernels.v5_15_87.kernel'
|
||||
rpi-kernels = rpi-kernels [{
|
||||
version = "6.1.32";
|
||||
version = "6.1.21";
|
||||
kernel = rpi-linux-6_1-src;
|
||||
fw = rpi-firmware-src;
|
||||
wireless-fw = import ./raspberrypi-wireless-firmware.nix {
|
||||
bluez-firmware = rpi-bluez-firmware-src;
|
||||
firmware-nonfree = rpi-firmware-nonfree-src;
|
||||
};
|
||||
argsOverride = {
|
||||
structuredExtraConfig = with prev.lib.kernel; {
|
||||
KUNIT = no;
|
||||
};
|
||||
};
|
||||
}] // {
|
||||
latest = final.rpi-kernels."${latest}";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libcamera-apps";
|
||||
version = "v1.1.0";
|
||||
version = "v1.1.2";
|
||||
|
||||
src = libcamera-apps-src;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,8 @@
|
|||
"raspberry-pi-firmware-migrate" = {
|
||||
description = "update the firmware partition";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = let firmware-path = "/boot/firmware";
|
||||
serviceConfig =
|
||||
let firmware-path = "/boot/firmware";
|
||||
in {
|
||||
Type = "oneshot";
|
||||
MountImages =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue