Jump to content

NixOS on ARM/PINE64 ROCK64: Difference between revisions

Update board specific installation notes to detail single file formatting and v2 builds for memory stability
imported>BeatLink
(Separate board specific notes for clarification)
imported>BeatLink
(Update board specific installation notes to detail single file formatting and v2 builds for memory stability)
Line 57: Line 57:
=== Manually Formatting ===
=== Manually Formatting ===


To manually format your storage, download/build U-Boot for the board, and write <code>idbloader.img</code> and <code>u-boot.itb</code>.
To manually format your storage, download/build U-Boot for the board, and write <code>idbloader.img</code> and <code>u-boot.itb</code> to the storage. As mentioned previously, Hydra builds can be found here:
 
https://hydra.nixos.org/job/nixpkgs/trunk/ubootRock64.aarch64-linux
 
Replace in the command below <code>/dev/mmcblkX</code> with the correct device to the sdcard i.e.  <code>/dev/mmcblk0</code>. You can use the <code>lsblk</code> command to get a list of all devices:
Replace in the command below <code>/dev/mmcblkX</code> with the correct device to the sdcard i.e.  <code>/dev/mmcblk0</code>. You can use the <code>lsblk</code> command to get a list of all devices:


Line 66: Line 69:


This will make the first partition of the installation device unmountable and it can be deleted, but the space needs to be kept to not overwrite the bootloader with another filesystem.
This will make the first partition of the installation device unmountable and it can be deleted, but the space needs to be kept to not overwrite the bootloader with another filesystem.
{{note|Prior to NixOS 20.03, a downstream version of U-Boot 2017.09 was packaged, which placed U-Boot in a single <code>idbloader.img</code> file. If that version is used, simply disregard the second command above.}}




{{note|Prior to NixOS 20.03, a downstream version of U-Boot 2017.09 was packaged, which placed U-Boot in a single <code>idbloader.img</code> file. If that version is used, simply disregard the second command above.}}
As an alternative to the above, the <code>u-boot-rockchip.bin</code> file combines both  <code>idbloader.img</code> and <code>u-boot.itb</code> and can be written using the single command below:
 
<syntaxhighlight lang="bash">
dd if=u-boot-rockchip.bin of=/dev/mmcblkX seek=64
</syntaxhighlight>
 
=== uboot Memory Issues  ===
If you are facing memory issues, kernel panics, kernel oops or general system instability while using the uboot images above (especially with the Rock64 version 2), you can use the ubootRock64v2 image instead, which improves system stability by lowering the memory clock speed at the cost of memory bandwidth.
 
Hydra builds can be found here (note the v2) https://hydra.nixos.org/job/nixpkgs/trunk/ubootRock64v2.aarch64-linux
 
Simply follow the manual formatting instructions as above.


== Serial console==
== Serial console==
Anonymous user