- Nix 100%
| example | ||
| fml13v01 | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
NixOS for the fml13v01
Based on initial work from Robin Finkelmann, see robinfinkelmann/fml13v01-nixos
Whats works
- Cross-compilation
- Vendor's Linux kernel (6.6.20)
- U-Boot (2026.10 upstream, so no display support while booting)
- XFCE and LightDM (using a nixpkgs fork)
Example
There is a basic example project included, you can build a working sd-card image using the following commands. (note, this will take some time because all packages need to be build locally).
cd example
nix build .
# Use the following command after setting up an ssh key and ssh config for the root user (or an other user with the required rights) to remote rebuild nixos
nixos-rebuild switch --flake .#fml13v01 --target-host fml13v01
Packages that work
This is a small collection of packages that work (or are patched to work) when cross-compiling to RISC-V
- Firefox
- Docker
- Remmina
Upstream vendor kernel
The default kernel used in the vendor's kernel (DC-DeepComputing/fml13v01-linux) has a minimal patch file applied to fix the compilation issues. Another option is to use the mainline kernel. This one boots but lacks the GPU drivers. Finally, there's a fork I made of the vendor's kernel, with the upstream kernel merged back into it. It can be easily enabled by changing one line in the config: boot.kernelPackages = pkgs.linuxPackagesFor (fml13v01.kernelUpstream);. (Note: there is currently an issue where the cros_ex_spi_high is using one whole CPU core).
Known issue
There is currently a cross compilation issue in the upstream nixpkgs causing LightDM to not work out of the box, it is being fixed upstream (see NixOS/nixpkgs#591388).