NixOS on ARM/NanoPC-T4: Difference between revisions

imported>Tmountain
No edit summary
imported>Tmountain
No edit summary
Line 37: Line 37:


=== Installation onto eMMC ===
=== Installation onto eMMC ===
These instructions assume that you have booted the NanoPC-T4 via an OS loaded via its microSD card. A recent Armbian boot image should flash and boot cleanly (follow their docs).
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.
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.


Line 52: Line 54:
Command (m for help): w
Command (m for help): w


# Make the filesystem and set the disk label (crucially important)
# Make the filesystem and  
# mkfs.ext4 /dev/mmcblk2p1
# mkfs.ext4 /dev/mmcblk2p1
# set the disk label (crucially important)
# tune2fs -L NIXOS_SD /dev/mmcblk2p1
# tune2fs -L NIXOS_SD /dev/mmcblk2p1
</syntaxhighlight>
</syntaxhighlight>
Line 82: Line 85:
# cd .. && umount eemc imgroot
# cd .. && umount eemc imgroot
</syntaxhighlight>
</syntaxhighlight>
After writing the filesystem, shutdown the system completely (power off state), remove the SD card, and if everything went well, it should boot into Nix via eMMC.
=== TODO ===
Add info on making integrated wifi work after booting into Nix.