Building nixos installer images for quartz64 devices
Go to file
2023-03-02 13:35:30 -06:00
images Try integrating SD image build into flake 2023-01-17 12:39:34 -06:00
pkgs Add linux_6_2 2023-02-22 12:40:14 -06:00
.gitignore Try adding soquartz 2023-01-12 18:31:59 -06:00
flake.lock Add linux_6_2 2023-02-22 12:40:14 -06:00
flake.nix SoQuartz: reference correct uboot 2023-03-02 13:35:30 -06:00
README.md Update readme 2023-02-03 19:09:12 -06:00

NixOS aarch64 images

Build aarch64 images for ARM single board computer that require custom uboot firmware.

Based on original work here: https://github.com/Mic92/nixos-aarch64-images

Example (requires flakes)

$ nix build .#soquartz-blade
$ nix build .#soquartz-cm4
$ nix build .#quartz64b

Built images can be than copied to sdcards etc as usual:

$ sudo dd if=./result of=/dev/mmcblk0 iflag=direct oflag=direct bs=16M status=progress

Replace /dev/mmcblk0 with your actual device.

Of course, you can replace soquartz-blade with any of the outputs included in this flake. To see the outputs, you can invoke nix flake show:

git+file:///home/asonix/Development/nix/nixos-aarch64-images
└───packages
    └───x86_64-linux
        ├───pinebookPro: package 'image'
        ├───quartz64a: package 'image'
        ├───quartz64b: package 'image'
        ├───roc-pc-rk3399: package 'image'
        ├───rock64: package 'image'
        ├───rockPro64: package 'image'
        ├───rockPro64v2: package 'image'
        ├───soquartz-blade: package 'image'
        ├───soquartz-cm4: package 'image'
        └───soquartz-model-a: package 'image'

Supported boards

Board Attribute Status
SoQuartz with Blade Baseboard soquartz-blade Tested & works
SoQuartz with CM4IO Baseboard soquartz-cm4 Untested
SoQuartz with Model A Baseboard soquartz-model-a Untested
Quartz64 Model A quartz64a Tested & works
Quartz64 Model B quartz64b Tested & works
Rock64 rock64 Tested & works
RockPro64 rockPro64 Untested since I forked
RockPro64 (v2) rockPro64v2 Tested & works
roc-pc-rk3399 roc-pc-rk3399 Untested since I forked
PinebookPro pinebookPro Untested since I forked

Add a new board

See images/rockchip.nix for an example. All options are defined in here;

Board wishlist

Allwinner boards have their bootloader in a free space after mbr:

https://nixos.wiki/wiki/Template:ARM/installation_allwinner