NixOS on ARM: Difference between revisions
m →Enable UART: Rework into a more generic and useful section |
|||
Line 466: | Line 466: | ||
Some '''''users''''' have provided best effort caches for 32 bit ARM, but none are currently available. | Some '''''users''''' have provided best effort caches for 32 bit ARM, but none are currently available. | ||
== | == Troubleshooting == | ||
=== Hanging at <code>Starting kernel ...</code> === | |||
When booting a NixOS system, it may look like it is hung at <code>Starting kernel ...</code>. | |||
< | It is unlikely to be hung at this part. This is the last message printed by U-Boot. U-Boot prints to both the display and the console at once. | ||
To view the kernel messages and boot output, the “<code>stdout</code>” of the kernel needs to be configured appropriately. | |||
</ | |||
The kernel's <code>stdout</code> will differ depending on semantics. | |||
* When there are no valid <code>console=</code> kernel command-line arguments, it will default to the <code>/chosen/stdout-path</code> device tree property. (Generally a serial console.) | |||
* When valid <code>console=</code> parameters are present, the kernel picks the leftmost valid one as <code>stdout</code>. | |||
In other words, the solution may be to enable the appropriate <code>console=</code> parameters according to your hardware configuration and system. | |||
* For the display, add <code>console=tty0</code>. | |||
* For a serial console, refer to the target device configuration. | |||
== NixOS installation & configuration == | == NixOS installation & configuration == |