-
-
Notifications
You must be signed in to change notification settings - Fork 684
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
radxa/rock-4c-plus: init #1329
radxa/rock-4c-plus: init #1329
Conversation
radxa/rock-4c-plus/default.nix
Outdated
rockchip = { | ||
enable = true; | ||
diskoExtraPostVM = '' | ||
dd conv=notrunc,fsync if=${pkgs.ubootRock4CPlus}/idbloader.img of=$out/${cfg.diskoImageName} bs=512 seek=64 |
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.
Interesting approach, we can potentially have this also for other rockchip based boards.
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.
Yes and this is just a proof-of-concept. Once this PR is accepted I'll add additional devices from us.
BTW if this and EFI boot chain was accepted, then we will need to worry about updating U-Boot for like RK3588 devices where upstream is moving fast with potential DTB changes. Such updating script can also be used in The question is where should this script go? Main |
Need to rework tests now since we will have a lot more Arm devices coming: https://github.com/NixOS/nixos-hardware/blob/master/tests/flake.nix#L42-L48 I tried to run the test locally but it locked my computer up :/ |
51dc20b
to
9344888
Compare
Just added |
9344888
to
85cbc67
Compare
85cbc67
to
409ed0c
Compare
Move unfree config to |
81b0e92
to
66a105e
Compare
@msgilligan you might be interested. |
f89e31d
to
d74ee87
Compare
d74ee87
to
84c5c08
Compare
@kibiz0r reported that the original flake example does not build on system without binfmt enabled, which I assume is due to the U-Boot package (does Hydra not cache unfree package?). I also thought about what's happening next, and realized that I want an option to override the U-Boot package, so I can use packages from my nixpkgs fork while working on them. So such option is added, and an example of overriding with cross built package is provided in the example flake. It is disabled by default since it requires knowledge of implementation detail to use, so normal users are recommended to configure |
6e7bdcf
to
f0f5a63
Compare
CI failed because NixOS/nixpkgs#361461 is not merged :/ |
f0f5a63
to
84c5c08
Compare
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at d1f201f |
Description of changes
rockchip
module. Right now only used internally byradxa
module.Open to be shared with other consumers if there is a need. Documentation can follow afterwards when we see common patterns.
Things done
nixos-hardware
andimporting it via
<nixos-hardware>
or Flake input