Commit 7c745e17 authored by Florian Klink's avatar Florian Klink
Browse files

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".
parent 3998d525
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
{ 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