NixOS on ARM: Difference between revisions

imported>Drupol
mNo edit summary
imported>Drupol
mNo edit summary
Line 375: Line 375:
==== SD card images (SBCs and similar platforms) ====
==== SD card images (SBCs and similar platforms) ====


For AArch64 it is possible to download images from Hydra.
For <code>AArch64</code> it is possible to download images from Hydra.


* [https://hydra.nixos.org/job/nixos/release-22.11/nixos.sd_image.aarch64-linux 22.11]
* [https://hydra.nixos.org/job/nixos/release-22.11/nixos.sd_image.aarch64-linux 22.11]
Line 381: Line 381:
* [https://hydra.nixos.org/job/nixos/trunk-combined/nixos.sd_image_new_kernel_no_zfs.aarch64-linux unstable (Latest kernel)]
* [https://hydra.nixos.org/job/nixos/trunk-combined/nixos.sd_image_new_kernel_no_zfs.aarch64-linux unstable (Latest kernel)]


On the page click on the latest successful build to get a download link under build products. If the image has the extension <code>.zst</code>, it will need to be decompressed before writing to installation device. Use <code>nix-shell -p zstd --run "unzstd <img-name>.img.zst"</code> to decompress the image.
On the page click on the latest successful build to get a download link under build products.
 
If the image has the extension <code>.zst</code>, it will need to be decompressed before writing to installation device. Use <code>nix-shell -p zstd --run "unzstd <img-name>.img.zst"</code> to decompress the image.


=== Installation steps ===
=== Installation steps ===
Line 392: Line 394:
sudo dd if=nixos-sd-image-23.05pre482417.9c7cc804254-aarch64-linux.img of=/dev/mmcblk0
sudo dd if=nixos-sd-image-23.05pre482417.9c7cc804254-aarch64-linux.img of=/dev/mmcblk0
</code>
</code>
This should be enough to get you started, you may now boot your device for the first time.


The base images are configured to boot up with a serial TTY ( RX/TX UART ) @ 115200 Baud. That way you not necessarily have to have a HDMI Display and keyboard.
The base images are configured to boot up with a serial TTY ( RX/TX UART ) @ 115200 Baud. That way you not necessarily have to have a HDMI Display and keyboard.