NixOS on ARM/ODROID-HC4: Difference between revisions

imported>Erdnaxe
m remove space
imported>Erdnaxe
Petitboot removal
Line 25: Line 25:


== Board-specific installation notes ==
== Board-specific installation notes ==
=== Petitboot removal ===
Petitboot is installed on the SPI memory of the Odroid HC4 from factory. To be able to load an upstreamed version of U-Boot without having to press a hardware button at each boot, you may remove it.
'''Please proceed with caution, this will make Hardkernel images unbootable!'''
From the Petitboot, go for “Exit to shell” and enter these commands to remove Petitboot:
<syntaxhighlight lang="bash">
flash_eraseall /dev/mtd0
flash_eraseall /dev/mtd1
flash_eraseall /dev/mtd2
flash_eraseall /dev/mtd3
</syntaxhighlight>
This will make your SPI flash memory empty and the device will now start from SD on next boot.
See [https://forum.odroid.com/viewtopic.php?f=207&t=40906 this Odroid forum topic] to restore Petitboot.
=== NixOS installation ===


# First follow the [[NixOS_on_ARM#Installation|generic installation steps]] to get the '''21.05 (Latest kernel)''' installer image.
# First follow the [[NixOS_on_ARM#Installation|generic installation steps]] to get the '''21.05 (Latest kernel)''' installer image.
Line 42: Line 61:
* [https://www.hardkernel.com/shop/odroid-hc4/ Official product page]
* [https://www.hardkernel.com/shop/odroid-hc4/ Official product page]
* [https://github.com/considerate/nixos-odroidhc4/ NixOS configuration for the ODROID HC4 microcomputer by considerate]
* [https://github.com/considerate/nixos-odroidhc4/ NixOS configuration for the ODROID HC4 microcomputer by considerate]
* [https://www.armbian.com/odroid-hc4/ Armbian Odroid HC4]