NixOS on ARM/ODROID-HC4: Difference between revisions
imported>Erdnaxe No edit summary |
imported>Erdnaxe Write Board-specific installation notes |
||
Line 26: | Line 26: | ||
== Board-specific installation notes == | == Board-specific installation notes == | ||
# First follow the [[NixOS_on_ARM#Installation|generic installation steps]] to get the '''21.05 (Latest kernel)''' installer image. | |||
# Uncompress the .zst file. One may use the <code>unzstd</code> command (equivalent to <code>zstd -d</code>) on supported machines. The zstd commands can be accessed from the <code>zstd</code> package. | |||
# Patch this image (.img file) with U-Boot for Odroid HC4. <syntaxhighlight lang="bash"> | |||
# Clone content of pull request https://github.com/NixOS/nixpkgs/pull/101454 and build | |||
git clone https://github.com/arapov/nixpkgs --depth 1 -b hardkernel && cd nixpkgs | |||
nix-build -I "nixpkgs=$PWD" -A pkgsCross.aarch64-multiplatform.ubootOdroidC4 | |||
sudo dd if=result/u-boot.bin of=PATH/TO/ nixos-sd-image-21.05.XXXX.XXXXXXXX-aarch64-linux.img conv=fsync,notrunc bs=512 seek=1 | |||
</syntaxhighlight> | |||
# Flash the modified SD image file (.img) to a microSD card. '''This will erase all the data on the card!''' | |||
== Known Problems == | == Known Problems == |
Revision as of 21:00, 10 August 2021
Hardkernel ODROID-HC4 | |
---|---|
Manufacturer | Hardkernel |
Architecture | ARMv7 |
Bootloader | U-Boot |
Boot options | SD (SATA?) |
Status
Mostly working, but some manual steps needed to get it running.
U-boot support in NixPkgs is currently in review: NixPkgs Pull Request #101454
Board-specific installation notes
- First follow the generic installation steps to get the 21.05 (Latest kernel) installer image.
- Uncompress the .zst file. One may use the
unzstd
command (equivalent tozstd -d
) on supported machines. The zstd commands can be accessed from thezstd
package. - Patch this image (.img file) with U-Boot for Odroid HC4.
# Clone content of pull request https://github.com/NixOS/nixpkgs/pull/101454 and build git clone https://github.com/arapov/nixpkgs --depth 1 -b hardkernel && cd nixpkgs nix-build -I "nixpkgs=$PWD" -A pkgsCross.aarch64-multiplatform.ubootOdroidC4 sudo dd if=result/u-boot.bin of=PATH/TO/ nixos-sd-image-21.05.XXXX.XXXXXXXX-aarch64-linux.img conv=fsync,notrunc bs=512 seek=1
- Flash the modified SD image file (.img) to a microSD card. This will erase all the data on the card!