NixOS on ARM/PINE64 Pinebook: Difference between revisions

imported>Samueldr
m Adds notes about USB boot
imported>Samueldr
m Adds partitioning notes
Line 40: Line 40:


<syntaxhighlight lang="bash" style="clear:both">sudo dd if=sopine-u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8</syntaxhighlight>
<syntaxhighlight lang="bash" style="clear:both">sudo dd if=sopine-u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8</syntaxhighlight>
=== Partitioning ===
The internal storage needs to be partitioned in a way that that the bootloader will not interfere with nor be interfered by a partition.
==== By copying the sd image internally ====
This is an easy solution, that also allows booting and installing as one would from an SD card on a generic Allwinner platform. Simply <code>dd</code> the SD image to the internal storage. The internal storage is likely to be <code>/dev/mmcblk2</code>.
==== MBR partition scheme ====


{{expansion|Installation instructions need to be written up to keep space for embedding the bootloader to the SPL.}}
{{expansion|Installation instructions need to be written up to keep space for embedding the bootloader to the SPL.}}
==== GPT partition scheme ====
The [[NixOS_on_ARM/Allwinner_GPT_Installation|Allwinner GPT Installation]] instruction explains how to create a GPT partition table while allowing the isntallation of u-boot at the required offset.


== Serial console==
== Serial console==