NixOS on ARM/NanoPC-T4: Difference between revisions

From NixOS Wiki
imported>Tmountain
No edit summary
imported>Tmountain
No edit summary
Line 23: Line 23:
</div>
</div>
The NanoPC-T4 is a single board computer built around the Rockchip RK3399 SoC.
The NanoPC-T4 is a single board computer built around the Rockchip RK3399 SoC.
== Status ==


The board '''boots NixOS from eMMC''' and will also load NixOS via its integrated microSD reader.
The board '''boots NixOS from eMMC''' and will also load NixOS via its integrated microSD reader.
Line 31: Line 33:


Pre-built u-boot images are available [https://github.com/tmountain/arch-nanopct4/tree/main/images/ here].
Pre-built u-boot images are available [https://github.com/tmountain/arch-nanopct4/tree/main/images/ here].
== Board Specific Installation Notes
The NanoPC-T4 reserves space for u-boot at the beginning of its eMMC and/or microSD. As a result, successful image installation relies upon a custom partitioning scheme.
<syntaxhighlight lang="bash">
# dd if=/dev/zero of=/dev/mmcblk2 bs=1M count=32
# fdisk /dev/mmcblk2
Command (m for help): g
Created a new GPT disklabel (GUID: 2E750097-829F-614C-AD9E-271DA3413E3E).
Command (m for help): n
Partition number (1-128, default 1):
First sector (2048-30535646, default 2048): 32768
Last sector, +/-sectors or +/-size{K,M,G,T,P} (32768-30535646, default 30535646):
Created a new partition 1 of type 'Linux filesystem' and of size 14.6 GiB.
Command (m for help): w
</syntaxhighlight>

Revision as of 03:50, 15 January 2021

NanoPC-T4
NanoPC-T4 SBC
Manufacturer FriendlyElec
Architecture AArch64
Bootloader u-boot with ARM trusted boot and Rockchip Miniloader
Boot order official: eMMC
Maintainer tmountain

The NanoPC-T4 is a single board computer built around the Rockchip RK3399 SoC.

Status

The board boots NixOS from eMMC and will also load NixOS via its integrated microSD reader.

The official documentation, which is comprehensive, can be found on the FriendlyElec wiki.

U-Boot for this board is not entirely open, incorporating a binary blob for the tertiary program loader (TPL). Compilation instructions are featured in section 15.7 of the FriendlyElec wiki, and a build target is also provided in upstream u-boot (nanopc-t4-rk3399_defconfig).

Pre-built u-boot images are available here.

== Board Specific Installation Notes

The NanoPC-T4 reserves space for u-boot at the beginning of its eMMC and/or microSD. As a result, successful image installation relies upon a custom partitioning scheme.

# dd if=/dev/zero of=/dev/mmcblk2 bs=1M count=32

# fdisk /dev/mmcblk2
Command (m for help): g
Created a new GPT disklabel (GUID: 2E750097-829F-614C-AD9E-271DA3413E3E).
Command (m for help): n
Partition number (1-128, default 1):
First sector (2048-30535646, default 2048): 32768
Last sector, +/-sectors or +/-size{K,M,G,T,P} (32768-30535646, default 30535646):
Created a new partition 1 of type 'Linux filesystem' and of size 14.6 GiB.
Command (m for help): w