NixOS on ARM: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 684: | Line 684: | ||
Assuming upstream U-Boot supports the board through a defconfig, it is possible possible to build U-Boot using the cross-compiling architecture from an x86_64 host. Here's a sample use. | Assuming upstream U-Boot supports the board through a defconfig, it is possible possible to build U-Boot using the cross-compiling architecture from an x86_64 host. Here's a sample use. | ||
<syntaxhighlight> | <syntaxhighlight lang="shell-session"> | ||
# Assuming you're in a recent nixpkgs checkout | # Assuming you're in a recent nixpkgs checkout | ||
$ nix-shell \ | $ nix-shell \ | ||
| Line 697: | Line 697: | ||
Here's an example command, for allwinner boards, on how to write to an SD card. | Here's an example command, for allwinner boards, on how to write to an SD card. | ||
<syntaxhighlight> | <syntaxhighlight lang="shell-session"> | ||
$ sudo dd if=$buildInputs/u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8 | $ sudo dd if=$buildInputs/u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8 | ||
</syntaxhighlight> | </syntaxhighlight> | ||