New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
raspberrypi-eeprom: Init at 2020-10-05 #88825
Conversation
9873e78
to
a10fccb
Compare
wrapProgram $out/bin/rpi-eeprom-update \ | ||
--set FIRMWARE_ROOT $out/share/rpi-eeprom \ | ||
--set VCMAILBOX ${raspberrypi-tools}/bin/vcmailbox \ | ||
--prefix PATH : "${lib.makeBinPath [ binutils-unwrapped findutils kmod pciutils raspberrypi-tools (placeholder "out") ]}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it may help to omit raspberrypi-tools
, vl805
and maybe rpi-eeprom-update
when targeting x86, since the rpi-eeprom-config
script still works on x86, and is useful to have there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is rpi-eeprom-config
useful on x86? What's the use-case?
version = "unstable-2020-05-15"; # USB boot on the beta channel | ||
|
||
src = fetchFromGitHub { | ||
owner = "raspberrypi"; | ||
repo = "rpi-eeprom"; | ||
rev = "ad18a5b468f787ed37ab62e0a699dabeaa580e27"; | ||
sha256 = "sha256-E+Fq7VO+gLbCVAawuYfYxBFGER6nelgR8EHwSnc37GQ="; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we should follow the stable (critical?) channel by default, but most likely we also want to provide a trivial-to-use way to use beta; I'm not sure if it's common to provide an attribute to the derivation like betaChannel
and change the source on that attribute.
Though, we should follow the stable channel, that is for sure, we can't have a beta update slip on user's systems if they don't want it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the channels on the eeprom are a bit confusing
the latest version for each channel is all in a single git repo, at the same time, with slightly confusing names
i think the one in critical
on master, is considered stable and safe for use by anybody
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see... this could get confusing fast.
I would recommend not putting that comment about USB boot, though possibly a comment stating that we are following the tip of master, which does not mean that the firmware files are unstable.
Though, at the current time, it seems using a tagged release is possible, and might be preferred still, if only to better communicate what is being used?
v2020.05.28-137ad
is basically the tip, except for a small QOL change in the eeprom script.
@cleverca22 @samueldr Is it better this way? |
Motivation for this change
cc @cleverca22
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)