Navigation Menu

Skip to content
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

Merged
merged 1 commit into from Oct 20, 2020

Conversation

dasJ
Copy link
Member

@dasJ dasJ commented May 24, 2020

Motivation for this change

cc @cleverca22

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

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") ]}"
Copy link
Contributor

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

Copy link
Contributor

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?

Comment on lines 6 to 13
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=";
};
Copy link
Member

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.

Copy link
Contributor

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

Copy link
Member

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.

@dasJ
Copy link
Member Author

dasJ commented Oct 7, 2020

@cleverca22 @samueldr Is it better this way?

@dasJ dasJ changed the title raspberrypi-eeprom: Init at 2020-05-15 raspberrypi-eeprom: Init at 2020-10-05 Oct 7, 2020
@dasJ dasJ requested review from ajs124 and Lassulus October 15, 2020 20:12
@ajs124 ajs124 merged commit 038afc6 into NixOS:master Oct 20, 2020
@ajs124 ajs124 deleted the init/rpi-eeprom branch October 20, 2020 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants