NixOS on ARM/NanoPi-R6C: Difference between revisions

imported>Jakubgs
Setup instructions for NanoPi-R6C
 
Pigs (talk | contribs)
m Add category
 
(5 intermediate revisions by 3 users not shown)
Line 2: Line 2:
<div class="infobox">
<div class="infobox">
{|class="table"
{|class="table"
!colspan="2" class="title"|NanoPi-R6C
!colspan="2" class="title"|NanoPi-R6C & NanoPi-R6S
|-
|-
|colspan="2"|[[File:NanoPi-R6C.jpg|frameless|256px|NanoPi-R6C SBC]]
|colspan="2"|[[File:NanoPi-R6C.jpg|frameless|256px|NanoPi-R6C SBC]]
Line 13: Line 13:
|-
|-
!Bootloader
!Bootloader
| [https://github.com/edk2-porting/edk2-rk3588 EDK2 UEFI firmware for Rockchip RK3588 platforms] or
| [https://github.com/edk2-porting/edk2-rk3588 EDK2 UEFI firmware for Rockchip RK3588 platforms] or [https://github.com/friendlyarm/uboot-rockchip/tree/nanopi6-v2017.09 Original FriendlyARM U-Boot]
| [https://github.com/friendlyarm/uboot-rockchip/tree/nanopi6-v2017.09 Original FriendlyARM U-Boot]
|-
|-
!Boot order
!Boot order
Line 25: Line 24:


== Hardware ==
== Hardware ==
NanoPi-R6C is a single board computer built around the Rockchip RK3588S SoC.
NanoPi-R6C and R6S are single board computers built around the Rockchip RK3588S SoC.


* '''CPU''': ARM Cortex-A76 and Cortex-A55
* '''CPU''': ARM Cortex-A76 and Cortex-A55
Line 57: Line 56:


In '''Boot Manager''' You can select what device to boot from this time and in '''Boot Maintenance Manager''' You can configure permanent boot order.
In '''Boot Manager''' You can select what device to boot from this time and in '''Boot Maintenance Manager''' You can configure permanent boot order.
Keep in mind this example uses the image for R6C and you'll need the right UEFI image for R6S.


=== Booting NixOS ===
=== Booting NixOS ===
Since [https://github.com/edk2-porting/edk2-rk3588/issues/88 EDK2 UEFI firmware does not support extlinux] an [https://hydra.nixos.org/job/nixos/trunk-combined/nixos.iso_minimal.aarch64-linux ISO <tt>aarch64</tt> image] needs to be used to successfully boot NixOS.
Since [https://github.com/edk2-porting/edk2-rk3588/issues/88 EDK2 UEFI firmware does not support extlinux] an [https://hydra.nixos.org/job/nixos/trunk-combined/nixos.iso_minimal.aarch64-linux ISO <tt>aarch64</tt> image] needs to be used to successfully boot NixOS.


Currently NixOS 23.11 images can see the NVMe without issues, but eMMC storage is unavailable.
Currently NixOS images can see the NVMe without issues, but eMMC storage is unavailable.


=== Installing NixOS ===
=== Installing NixOS ===
Line 77: Line 78:
   mkswap    "${DEV}p2";
   mkswap    "${DEV}p2";
   mkfs.vfat "${DEV}p1";
   mkfs.vfat "${DEV}p1";
   mkfs.ext4 "${DEV}p2";
   mkfs.ext4 "${DEV}p3";
}
}
</syntaxhighlight>
</syntaxhighlight>
Line 86: Line 87:
swapon /dev/nvme0n1p2
swapon /dev/nvme0n1p2
mount  /dev/nvme0n1p3 /mnt
mount  /dev/nvme0n1p3 /mnt
mkdir /mnt/boot
mount  /dev/nvme0n1p1 /mnt/boot
mount  /dev/nvme0n1p1 /mnt/boot
</syntaxhighlight>
</syntaxhighlight>
Line 99: Line 101:
   };
   };
</syntaxHighlight>
</syntaxHighlight>
[[Category:NixOS on ARM]]