From 7c745e170acfcf918e04ae895cc2040c0c69939b Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 18 Jan 2023 15:49:38 +0100 Subject: rpiboot: 2021.07.01 -> 20221215-105525 Bump to the latest relase. The current version is outdated and doesn't seem to be able to boot my CM4 to mass storage device mode. This version does, and according to https://github.com/raspberrypi/usbboot/releases/tag/20221215-105525, it "works on all current Raspberry Pi models and uses the default bootloader that is signed with the secure-boot ROM key". --- pkgs/development/misc/rpiboot/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/development/misc/rpiboot/default.nix b/pkgs/development/misc/rpiboot/default.nix index 35fb41d0a8d..acdc29352f9 100644 --- a/pkgs/development/misc/rpiboot/default.nix +++ b/pkgs/development/misc/rpiboot/default.nix @@ -1,17 +1,18 @@ -{ lib, stdenv, fetchFromGitHub, libusb1 }: +{ lib, stdenv, fetchFromGitHub, libusb1, pkg-config }: stdenv.mkDerivation rec { pname = "rpiboot"; - version = "2021.07.01"; + version = "20221215-105525"; src = fetchFromGitHub { owner = "raspberrypi"; repo = "usbboot"; - rev = "v${version}"; - sha256 = "sha256-BkNyYCrasfiRs7CbJa7tCo2k70TLGcXkOX+zGPyZGGE="; + rev = version; + hash = "sha256-Y77IrDblXmnpZleJ3zTyiGDYLZ7gNxASXpqUzwS1NCU="; }; - nativeBuildInputs = [ libusb1 ]; + buildInputs = [ libusb1 ]; + nativeBuildInputs = [ pkg-config ]; patchPhase = '' sed -i "s@/usr/@$out/@g" main.c -- cgit 1.4.1