Difference between revisions of "User:Keithy/Experience Log - Keith"
Jump to navigation
Jump to search
m |
m (Fxc moved page Experience Log - Keith to User:Keithy/Experience Log - Keith: User draft) |
||
(One intermediate revision by one other user not shown) | |||
Line 4: | Line 4: | ||
<pre> | <pre> | ||
$> nix-build -Av rock64 | $> nix-build -Av rock64 | ||
$> sudo dd if=./result of=/dev/sdc bs=1M | $> sudo dd if=./result of=/dev/sdc bs=1M & | ||
$> watch -n 20 sudo kill -USR1 $(ps | awk '/[0-9] dd/ { print $1 }') # report progress | $> watch -n 20 sudo kill -USR1 $(ps | awk '/[0-9] dd/ { print $1 }') # report progress | ||
</pre> | </pre> |
Latest revision as of 10:47, 7 December 2021
Using an intel server running NixOS this code https://github.com/Mic92/nixos-aarch64-images provides the ability to assemble a bootable image suitable for various Pine hardware using pieces are pre-built from other community builds.
$> nix-build -Av rock64 $> sudo dd if=./result of=/dev/sdc bs=1M & $> watch -n 20 sudo kill -USR1 $(ps | awk '/[0-9] dd/ { print $1 }') # report progress
The instructions create an image file that can be written to an sdcard, but no instructions on how to customise the image. Having written the sdcard, we add the emmc-disable jumper and boot the board.
Once successfully booted, we remove the sdcard, and mount it again to take a look at it. At this point we can mmanually add an ssh key to /home/nixos/.ssh/authorized_keys
Testing on a Rock64, the image boots from the sdcard and is accessible via ssh.