device-odroid-hc2: install rootFS on HDD
The ODROID HC2 has a SATA-USB convertor builtin, you can plugin your 2.5 or 3.5 inch HDDs directly into the HC2. However, the boot partition still needs to be on the microSD card to boot the device. The rootFS on the other hand may reside on this external disk. This SATA-USB convertor takes some time to initialize so the initramfs should wait until the device node appears. Putting the rootfs on an external HDD heavily improves the reliability of these SBCs as they won't cause a lot of wear leveling on the microSD card.
- Add a script in
device-odroid-hc2-tools
subpackage to transfer the current rootFS to external HDD and update the U-boot script with the new device node. - Fix initramfs to not only search for the rootFS but also wait until the device node containing the rootFS appears.
- Updated the wiki to explain the process: https://wiki.postmarketos.org/wiki/ODROID_HC2_(odroid-hc2)#RootFS_on_external_HDD
Edited by Administrator