NixOS on ARM/NanoPC-T4: Difference between revisions

imported>Tmountain
No edit summary
imported>Tmountain
mNo edit summary
Line 74: Line 74:
<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/89033499/download/1/nixos-sd-image-18.09.2227.ea0820818a7-aarch64-linux.img -O sd.img
wget https://hydra.nixos.org/build/89033499/download/1/nixos-sd-image-18.09.2599.925ff360bc3-aarch64-linux.img -O sd.img
udisksctl loop-setup -f sd.img -r
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
# mkdir eemc imgroot
# mkdir eemc imgroot
# mount /dev/mmcblk2p1 emmc
# mount /dev/mmcblk2p1 eemc
# mount /dev/loop0p2 imgroot
# mount /dev/loop0p2 imgroot
# cd imgroot
# cd imgroot