NixOS on ARM: Difference between revisions

imported>Samueldr
m Adds pkgsCross invocation to build u-boot
imported>Samueldr
m Adds writing command
Line 390: Line 390:


This should build whatever is needed for, and then build u-boot for the desired defconfig, then open a shell with the build in <code>$buildInputs</code>. Do note that this particular invocation may need more changes than only the defconfig if built for other than allwinner boards.
This should build whatever is needed for, and then build u-boot for the desired defconfig, then open a shell with the build in <code>$buildInputs</code>. Do note that this particular invocation may need more changes than only the defconfig if built for other than allwinner boards.
Here's an example command, for allwinner boards, on how to write to an SD card.
<syntaxhighlight>
$ sudo dd if=$buildInputs/u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8
</syntaxhighlight>


=== The easy way ===
=== The easy way ===