NixOS on ARM/NanoPC-T4: Difference between revisions
imported>Tmountain mNo edit summary |
imported>Tmountain mNo edit summary |
||
| Line 54: | Line 54: | ||
Command (m for help): w | Command (m for help): w | ||
# Make the filesystem | # Make the filesystem | ||
# mkfs.ext4 /dev/mmcblk2p1 | # mkfs.ext4 /dev/mmcblk2p1 | ||
# set the disk label (crucially important) | # set the disk label (crucially important) | ||
| Line 70: | Line 70: | ||
==== Boot and RootFS ==== | ==== Boot and RootFS ==== | ||
The latest linux kernel is working with this board. Instead of building the image yourself you can fetch the latest sd-image from hydra and dd the created images onto the separate partitions. | The latest linux kernel is working with this board. Instead of building the image yourself you can fetch the latest sd-image from hydra and dd the created images onto the separate partitions. | ||
You can find | You can find recent successful builds [https://hydra.nixos.org/job/nixos/release-20.09/nixos.sd_image.aarch64-linux here]. | ||
<syntaxHighlight lang=bash> | <syntaxHighlight lang=bash> | ||
# get the latest link directly from hydra | # get the latest link directly from hydra | ||
wget https://hydra.nixos.org/build/ | wget wget https://hydra.nixos.org/build/135139819/download/1/nixos-sd-image-20.09.2623.97a13fb97fc-aarch64-linux.img.zst -O sd.img.zst | ||
udisksctl loop-setup -f sd.img -r | # unzstd sd.img.zst | ||
# udisksctl loop-setup -f sd.img -r | |||
# copy the root filesystem to the partition you created earlier | # copy the root filesystem to the partition you created earlier | ||
| Line 83: | Line 84: | ||
# cd imgroot | # cd imgroot | ||
# tar cf - . | (cd ../eemc && tar xvf -) | # tar cf - . | (cd ../eemc && tar xvf -) | ||
# sync | |||
# cd .. && umount eemc imgroot | # cd .. && umount eemc imgroot | ||
</syntaxhighlight> | </syntaxhighlight> | ||