check
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
udev,
|
||||
systemd,
|
||||
withVoutDrm ? true,
|
||||
stdenv ? null,
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
@@ -14,9 +14,9 @@ let
|
||||
tag = "stable_20250916";
|
||||
hash = "sha256-HG8Oc04V2t54l0SOn4gKmNJWQUrZfjWusgKcWvx74H0==";
|
||||
# NOTE: raspberrypifw & raspberryPiWirelessFirmware should be updated with this
|
||||
# modDirVersion = "6.18.1";
|
||||
# tag = "unstable_20251226";
|
||||
# hash = "sha256-VYrXqwK9P2nWkm3DhOU8qaXzWv5L0DUoJ2MBRF6PoEE=";
|
||||
# modDirVersion = "6.18.1";
|
||||
# tag = "unstable_20251226";
|
||||
# hash = "sha256-VYrXqwK9P2nWkm3DhOU8qaXzWv5L0DUoJ2MBRF6PoEE=";
|
||||
in
|
||||
lib.overrideDerivation
|
||||
(buildLinux (
|
||||
@@ -70,7 +70,7 @@ lib.overrideDerivation
|
||||
}
|
||||
// (args.argsOverride or { })
|
||||
))
|
||||
(oldAttrs: {
|
||||
(_oldAttrs: {
|
||||
postConfigure = ''
|
||||
# The v7 defconfig has this set to '-v7' which screws up our modDirVersion.
|
||||
sed -i $buildRoot/.config -e 's/^CONFIG_LOCALVERSION=.*/CONFIG_LOCALVERSION=""/'
|
||||
|
||||
@@ -60,4 +60,4 @@ stdenvNoCC.mkDerivation {
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ lopsided98 ];
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,4 +33,4 @@ stdenvNoCC.mkDerivation rec {
|
||||
# Maybe due to https://github.com/NixOS/nix/issues/847
|
||||
broken = stdenvNoCC.hostPlatform.isDarwin;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,4 +34,4 @@ stdenvNoCC.mkDerivation rec {
|
||||
# Maybe due to https://github.com/NixOS/nix/issues/847
|
||||
broken = stdenvNoCC.hostPlatform.isDarwin;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ stdenvNoCC.mkDerivation rec {
|
||||
pname = "uefi-rpi4";
|
||||
version = "1.50";
|
||||
|
||||
src= fetchzip {
|
||||
src = fetchzip {
|
||||
url = "https://github.com/pftf/RPi4/releases/download/v${version}/RPi4_UEFI_Firmware_v${version}.zip";
|
||||
stripRoot = false;
|
||||
hash = "sha256-g8046/Ox0hZgvU6u3ZfC6HMqoTME0Y7NsZD6NvUsp7w=";
|
||||
|
||||
@@ -1,38 +1,56 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchzip,
|
||||
fetchurl,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "uefi-rpi5";
|
||||
version = "0.3";
|
||||
version = "test1";
|
||||
|
||||
src= fetchzip {
|
||||
url = "https://github.com/worproject/rpi5-uefi/releases/download/v${version}/RPi5_UEFI_Release_v${version}.zip";
|
||||
stripRoot = false;
|
||||
hash = "sha256-bjEvq7KlEFANnFVL0LyexXEeoXj7rHGnwQpq09PhIb0=";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/NumberOneGit/rpi5-uefi/releases/download/${version}/RPI_EFI.fd";
|
||||
hash = "sha256-GIgru10KCol9PXcdgR2d1BHf2In07OQ2P1kru7GUupY=";
|
||||
};
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
dontBuild = true;
|
||||
# Firmware blobs do not need fixing and should not be modified
|
||||
dontFixup = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p "$out/firmware"
|
||||
mkdir -p "$out"
|
||||
|
||||
cp -rv "${src}" "$out/firmware"
|
||||
cp -rv "$src" "$out"
|
||||
cat > "$out/config.txt" <<'EOF'
|
||||
armstub=RPI_EFI.fd
|
||||
device_tree_address=0x3e0000
|
||||
device_tree_end=0x400000
|
||||
|
||||
# Force 32 bpp framebuffer allocation.
|
||||
framebuffer_depth=32
|
||||
|
||||
# Disable compensation for displays with overscan.
|
||||
disable_overscan=1
|
||||
|
||||
# Force maximum USB power regardless of the power supply.
|
||||
usb_max_current_enable=1
|
||||
|
||||
# Force maximum CPU speed.
|
||||
force_turbo=1
|
||||
EOF
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "RPI5 UEFI firmware";
|
||||
homepage = "https://github.com/pftf/RPi4";
|
||||
homepage = "https://github.com/NumberOneGit/rpi5-uefi";
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user