NixOS on ARM/Raspberry Pi 3: Difference between revisions
imported>Motiejus m add links |
m Add missing closing paren. |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 43: | Line 43: | ||
First follow the [[NixOS_on_ARM#Installation|generic installation steps]] to get the installer image and install using the [[NixOS_on_ARM#NixOS_installation_.26_configuration|installation and configuration steps]]. | First follow the [[NixOS_on_ARM#Installation|generic installation steps]] to get the installer image and install using the [[NixOS_on_ARM#NixOS_installation_.26_configuration|installation and configuration steps]]. | ||
{{warning|1=To avoid running out of memory and ''failing'' to build, it is advised to create a swap file (see e.g. [https://wiki.archlinux.org/title/swap#Swap_file_creation]) ''before'' executing <code>nixos-rebuild</code> for the first time.}} | |||
=== Raspberry Pi 3B and 3B+ === | === Raspberry Pi 3B and 3B+ === | ||
| Line 48: | Line 50: | ||
Both the AArch64 and ARMv7 images boot out-of-the-box. Using the 64-bit AArch64 image is highly recommended, as the availability of binaries is much better and allows the use of the 64-bit instruction set. | Both the AArch64 and ARMv7 images boot out-of-the-box. Using the 64-bit AArch64 image is highly recommended, as the availability of binaries is much better and allows the use of the 64-bit instruction set. | ||
For the UART console, edit <code>/extlinux/extlinux.conf</code> on the | For the UART console, edit <code>/extlinux/extlinux.conf</code> on the main partition of the SD card to set <code>console=ttyS1,115200n8</code> in the kernel boot parameters, making sure to replace the existing <code>console=ttyS0,115200n8</code> parameter. Use the following GPIO Pins with an USB-TTL connector: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
GND - 3rd in top row, black cable | GND - 3rd in top row, black cable | ||