NixOS on ARM/Raspberry Pi: Difference between revisions

imported>Bobvanderlinden
Raspberry Pi 3B+ needs ttyS1 and not ttyS0. This has been confirmed by me ;).
imported>Cyounkins
HDMI issues, troubleshooting info, typos
Line 152: Line 152:
}
}
</syntaxhighlight>
</syntaxhighlight>
<s>Until the kernel 3.18 is finalized, this will require a temporary work-around image. See also the note in the [[#Serial console]] section.</s> The workaround is no longer needed:
* https://github.com/NixOS/nixpkgs/issues/22014#issuecomment-399715748


== Serial console==
== Serial console==
Line 202: Line 198:
== Binary Cache ==
== Binary Cache ==


Depending on the architecture used, binary caches availability varies. Binary caches instructions are on the main [[NixOS on ARM#Binary cache|NixOS on ARM]] page. The following table desribes the architectures supported by each board.  
Depending on the architecture used, binary caches availability varies. Binary caches instructions are on the main [[NixOS on ARM#Binary cache|NixOS on ARM]] page. The following table describes the architectures supported by each board.  


{|class="wikitable"
{|class="wikitable"
Line 219: Line 215:


== Notes about the boot process ==
== Notes about the boot process ==
It takes approximately 1 minute to boot a Pi 3B.


=== Raspberry Pi (all versions) ===
=== Raspberry Pi (all versions) ===


USB keyboards and HDMI displays work perfectly.
USB keyboards and HDMI displays should work, though some issues have been reported (see Troubleshooting below).


Using the 3.3v serial port via the pin headers (exact location depends on hardware version) will get u-boot output and, when configured, a Linux kernel console.
Using the 3.3v serial port via the pin headers (exact location depends on hardware version) will get u-boot output and, when configured, a Linux kernel console.
Line 234: Line 232:
* Lightning bolt on HDMI output "breaking" the display.
* Lightning bolt on HDMI output "breaking" the display.
* Screen switching back to u-boot text
* Screen switching back to u-boot text
** Fixable temporarily when power is sufficient by swtiching VT (alt+F2 / alt+F1)
** Fixable temporarily when power is sufficient by switching VT (alt+F2 / alt+F1)
* Random hangs
* Random hangs


Line 241: Line 239:


{{note|A ''properly rated'' USB power supply, AND a good cable are necessary. The cable has to be short enough to not incur power losses through the length. Do note that thin and cheap cables usually have thinner copper wires, which in turn accentuates power losses.}}
{{note|A ''properly rated'' USB power supply, AND a good cable are necessary. The cable has to be short enough to not incur power losses through the length. Do note that thin and cheap cables usually have thinner copper wires, which in turn accentuates power losses.}}
===HDMI===
HDMI issues have been observed on the 18.09 AArch64 image. The display would hang on "Starting Kernel...", then act as if the HDMI cable was unplugged. Re-plugging the HDMI cable after boot fixed the issue, as did a different monitor and HDMI cable.
===Additional Troubleshooting===
Additional troubleshooting information may be found [https://elinux.org/R-Pi_Troubleshooting|at elinux.org].


<hr />
<hr />