NixOS on ARM: Difference between revisions

imported>Samueldr
m Enable UART: misc. enhancemetns
imported>Samueldr
Line 108: Line 108:
|-
|-
| Wandboard
| Wandboard
| Wandboard Solo/Dual/Quad
| [[NixOS_on_ARM/Wandboard|Wandboard Solo/Dual/Quad]]
| Freescale i.MX6
| Freescale i.MX6
| ARMv7
| ARMv7
Line 153: Line 153:


<syntaxhighlight lang="bash">sudo dd if=uboot-Linksprite_pcDuino3_Nano_defconfig-2015.07_u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8</syntaxhighlight>
<syntaxhighlight lang="bash">sudo dd if=uboot-Linksprite_pcDuino3_Nano_defconfig-2015.07_u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8</syntaxhighlight>
=== Wandboard ===
U-Boot and its SPL need to be copied to specific sectors on the microSD card with dd. Download U-Boot & SPL for the board (<code>uboot-wandboard_defconfig-2017.03_u-boot.img</code>, <code>uboot-wandboard_defconfig-2017.03_SPL</code>), and copy them to the correct location with (again, replace /dev/sdX with the correct path to the SD card device):
<syntaxhighlight lang="bash">
sudo dd if=uboot-wandboard_defconfig-2017.03_SPL        of=/dev/sdX seek=1 bs=1k
sudo dd if=uboot-wandboard_defconfig-2017.03_u-boot.img of=/dev/sdX seek=69 bs=1k
</syntaxhighlight>
Only the Quad model has been tested, but the others should work as well with the same U-Boot binary.


== Enable UART ==
== Enable UART ==
Line 251: Line 240:


USB keyboards and HDMI displays work perfectly. Also a 3.3v serial port via the 3-pin header works.
USB keyboards and HDMI displays work perfectly. Also a 3.3v serial port via the 3-pin header works.
=== Wandboard ===
Only serial console (via the DB-9 connector) is supported.


== Porting NixOS to new boards ==
== Porting NixOS to new boards ==