rock64-nix
rock64-nix copied to clipboard
Upstreaming kernel in nixpkgs.
I also recently got a rock64 board. What do you think about upstreaming the kernel in nixpkgs? We plan to provide official support for aarch64 in nixos starting with the next release.
I'd love to upstream the entire thing to the point that hydra produces an sd image that boots out of the box. There's a bit of polishing work in making the ext4 filesystem with integrated /boot
, making gpt formatted images, and careful reading of distribution terms for arm trusted firmware and binary blobs from Rockchip ("rkbin").
As for the kernel, it's entirely ayufan's work with configuration tweaks to make nix build. I'm happy for my comparatively small efforts to be upstreamed. Is it a problem that it's based on linux/kernel/manual-config.nix
, and not linux/kernel/generic.nix
?
I would first open the pull request with linux/kernel/manual-config.nix
and then we can discuss, if we can make the kernel expressions flexible enough to support the changes we need for this kernel or if leave it as it is.
If rkbin
is not re-distributable this would be indeed a problem. We can mark it as non-free, but if it has to be included in the download image for booting, then we cannot build in on hydra.
Any updates on this?
Hey! I recently got RockPro64 and ended up with the following:
https://github.com/prusnak/nixpkgs/commit/fdddc554de5d3ac57441d09206f4ca26d1602f0f
Lots of stuff is already in the master (such as recent U-Boot that supports RockPro64 without any proprietary code, etc.)
I would love to see the support for Rock64 in nixpkgs master, but my knowledge is a little bit small for this. If some of you could help with combining the sd-image-rock64.nix
from my repo with the sd-image-rockchip.nix
presented in this repo, the goal is not very far.
I opened a PR to get the kernel in nixpkgs: https://github.com/NixOS/nixpkgs/pull/86007
sd-image-rock64.nix
will come in a subsequent PR.