NixOS on ARM/ODROID-HC4: Difference between revisions
imported>Artemislena Updated the U-Boot build, which means SATA is working, also added information on the fan |
imported>Erdnaxe Link to nixos-hardware |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 8: | Line 8: | ||
|- | |- | ||
!Architecture | !Architecture | ||
| | |AArch64 | ||
|- | |- | ||
!Bootloader | !Bootloader | ||
Line 14: | Line 14: | ||
|- | |- | ||
!Boot options | !Boot options | ||
| | |microSD (SATA?) | ||
|} | |} | ||
</div> | </div> | ||
Line 45: | Line 45: | ||
=== NixOS installation === | === NixOS installation === | ||
# First follow the [[NixOS_on_ARM#Installation|generic installation steps]] to get the | # First follow the [[NixOS_on_ARM#Installation|generic installation steps]] to get the latest stable installer image. | ||
# Uncompress the .zst file. One may use the <code>unzstd</code> command (equivalent to <code>zstd -d</code>) on supported machines. The zstd commands can be accessed from the <code>zstd</code> package. | # Uncompress the .zst file. One may use the <code>unzstd</code> command (equivalent to <code>zstd -d</code>) on supported machines. The zstd commands can be accessed from the <code>zstd</code> package. | ||
# Patch this image (.img file) with U-Boot for Odroid HC4. <syntaxhighlight lang="bash"> | # Patch this image (.img file) with U-Boot for Odroid HC4. <syntaxhighlight lang="bash"> | ||
Line 57: | Line 57: | ||
== Known issues == | == Known issues == | ||
=== Fan doesn't work by default === | === Fan doesn't work by default === | ||
You need to use software fan control (via < | You need to use software fan control (via <code>fancontrol</code>) for this. | ||
You may refer to [[https://github.com/NixOS/nixos-hardware/blob/master/hardkernel/odroid-hc4/default.nix nixos-hardware Odroid HC4 module]] for <code>fancontrol</code> configuration. | |||
hardware. | == No HDMI audio by default == | ||
After enabling ALSA you should see a sound card named "ODROID-HC4". Audio is not correctly routed by default so you might need to open alsa-mixer and change: | |||
* <code>FRDDR_A SINK 1 SEL</code> to <code>OUT 1</code> | |||
* <code>FRDDR_A SRC 1 EN</code> to on | |||
* <code>TDMOUT_B SRC SEL</code> to <code>IN 0</code> | |||
* <code>TOHDMITX</code> to on | |||
* <code>TOHDMITX I2S SRC</code> to <code>I2S B</code> | |||
After these changes, <code>speaker-test -c 2</code> should output white noise. | |||
</ | |||
== Resources == | == Resources == |