NixOS on ARM/ODROID-C2: Difference between revisions
imported>Grahamc Roughly document installing to the odroid c2 |
imported>Makefu cleanup |
||
| Line 9: | Line 9: | ||
Note this assumes u-boot is in partition 1 of your board's connected eMMC. If you haven't done that yet, read the backlog from https://logs.nix.samueldr.com/nixos-aarch64/2018-11-21#1738333; and also https://github.com/NixOS/nixpkgs/compare/master...samueldr:u-boot/odroid-c2. | Note this assumes u-boot is in partition 1 of your board's connected eMMC. If you haven't done that yet, read the backlog from https://logs.nix.samueldr.com/nixos-aarch64/2018-11-21#1738333; and also https://github.com/NixOS/nixpkgs/compare/master...samueldr:u-boot/odroid-c2. | ||
# Download the sd-image from Hydra at https://hydra.nixos.org/job/nixos/release-18.09-aarch64/nixos.sd_image.aarch64-linux/latest | |||
# Copy it to the SD card | |||
# Mount first partition to /mnt with <code>sudo mount /dev/mmcblk0p1 /mnt</code> | |||
# Edit /mnt/extlinux/extlinux.conf and delete all the console=tty.... arguments in the APPEND line | |||
# Add <code>console=ttyAML0,115200n8</code> to the end of the APPEND line | |||
it will look something like this: | it will look something like this: | ||
<syntaxhighlight> | <syntaxhighlight lang=bash> | ||
$ cat /mnt/extlinux/extlinux.conf | |||
# Generated file, all changes will be lost on nixos-rebuild! | # Generated file, all changes will be lost on nixos-rebuild! | ||
| Line 47: | Line 46: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
note p2 is bootable. | note **p2** is bootable. | ||
<syntaxhighlight> | <syntaxhighlight lang=console> | ||
$ mkfs.ext4 /dev/mmcblk0p2 | $ mkfs.ext4 /dev/mmcblk0p2 | ||
$ mkswap /dev/mmcblk0p3 | $ mkswap /dev/mmcblk0p3 | ||
| Line 77: | Line 76: | ||
== Resources == | == Resources == | ||
* [https://www.hardkernel.com/main/products/prdt_info.php?g_code=G145457216438 Product page with spec sheet] | |||
* NixOS Image Build for [https://github.com/georgewhewell/nixos-nanopim3/blob/master/hardware/boards/odroid-c2.nix Odroid-C2 by George Whewell] | |||