01-06-2020, 09:31 AM
(This post was last modified: 01-06-2020, 11:51 AM by dukla2000.
Edit Reason: add postmarketOS experience
)
(01-05-2020, 02:45 PM)VaZso Wrote: I would say copying the data is one thing... even for it, dd is not a right tool, you may want to simply copy all files while preserving permissions.The benefit of dd is that it will duplicate the disk partition layout.
(01-05-2020, 02:51 PM)the7thstranger Wrote: Do you happen to know how the eMMC will be presented? Does one boot the image from the SD card and then run dd from the phone? Or is there a way to mount the device as mass storage on a computer and run dd from there?No idea on the partition layout: it seems to be release dependant, e.g. on my RockPro64 the ayufan releases use 7 partitions on the disk, 1 for boot,1 for root and 5 others, whereas a Manjaro image implements a single partition.
Would there be a single partition to write the image to? Because I'm a bit worried to - for instance - overwrite U-Boot or something similar.
Yup - I imagine booting from the SDcard then using dd to clone the SDcard (may well be /dev/mmcblk0 as per the RockPro64?) to the eMMC (may well be /dev/mmcblk1 as per theRockPro64?). Will be 1 good reason to have an 8Gb SDcard (or smaller) lying around :-)
Certainly 1 of my arm SBCs has presented the eMMC as a device in a special boot mode, offhand I cannot remember which. I know the Allwinner chips have a FEL mode which seems that it could be useful t get a PinePhone mounted as mass storage though.
Hopefully not too many more days until we can actually answer this stuff definitively!
PS - I just built myself a postmarketOS SDcard using the pmbootstrap script and notice 2 things:
1) pmOS creates 2 partitions on the SDcard, boot & root.
2) The pm bootstrap script already can build your eMMC from your SDcard after booting if you want. See here - postmarketOS may be installed onto the eMMC by running pmbootstrap install --sdcard=/dev/mmcblk... from a Linux distribution booted via the microSD card.
- ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Arch (6.2 kernel, Openbox desktop) for general purpose daily PC.
- PinePhone Pro Explorer Edition, daily driver, rk2aw & U-boot on SPI, Arch/SXMO & Arch/phosh on eMMC
- PinePhone BraveHeart now v1.2b 3/32Gb, Tow-boot with Arch/SXMO on eMMC