From 36e11d05608269052fb087b6797b6c9ac0552288 Mon Sep 17 00:00:00 2001 From: giorez Date: Sun, 17 Mar 2024 20:35:52 +0100 Subject: [PATCH 1/2] Update Multi-distribution_image.adoc typo --- .../PinePhone_Pro/Software/Multi-distribution_image.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/documentation/PinePhone_Pro/Software/Multi-distribution_image.adoc b/content/documentation/PinePhone_Pro/Software/Multi-distribution_image.adoc index 67715b93..037912e8 100644 --- a/content/documentation/PinePhone_Pro/Software/Multi-distribution_image.adoc +++ b/content/documentation/PinePhone_Pro/Software/Multi-distribution_image.adoc @@ -191,7 +191,7 @@ $ sudo mount /dev/$DEVICE$PARTNUMBER /mnt/$PARTNAME/device/ $ sudo scp -r /mnt/$PARTNAME/boot/* /mnt/$PARTNAME/device/boot ---- -==== sailfishOS +==== SailfishOS These distribution needs different commands. Download and decompress the image: @@ -352,7 +352,7 @@ $ sudo losetup -D == Resizing the partitions -On the first boot, if it doesn't happen automatically, you can manually resize each image to fill the entire partition using GParted GUI software or using the CLI. Please note that Sailfish doesn't need any resizing. +On the first boot, if it doesn't happen automatically, you can manually resize each image to fill the entire partition using GParted GUI software or using the CLI. Please note that SailfishOS doesn't need any resizing. [source,console] ---- From ea978706ed5c18f07dab4a4c4c9c1d7a18295ba7 Mon Sep 17 00:00:00 2001 From: giorez Date: Sun, 17 Mar 2024 20:51:26 +0100 Subject: [PATCH 2/2] multi-distribution - splitted zeroes commands - sailfishOS > SailfishOS typo --- .../Software/Multi-distribution_image.adoc | 28 +++++++++++++++++-- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/content/documentation/PinePhone_Pro/Software/Multi-distribution_image.adoc b/content/documentation/PinePhone_Pro/Software/Multi-distribution_image.adoc index 037912e8..8720272f 100644 --- a/content/documentation/PinePhone_Pro/Software/Multi-distribution_image.adoc +++ b/content/documentation/PinePhone_Pro/Software/Multi-distribution_image.adoc @@ -72,13 +72,33 @@ This guide has been tested with following images: == Building -Connect your PinePhone Pro to a Linux computer and press power button on. From the graphical menu select _eMMC over USB_ or _SD over USB_ to expose the device to your computer. Make sure there are no signatures or partitions left with the command `sudo wipefs /dev/$DEVICE`. To erase all signatures, type `sudo wipefs --all --force /dev/$DEVICE`. +Connect your PinePhone Pro to a Linux computer and press power button on. From the graphical menu select _eMMC over USB_ or _SD over USB_ to expose the device to your computer. -Overwrite the device with zeroes by either overwriting the first sectors with zeroes (command 1) or the whole device (command 2): +Make sure there are no signatures or partitions left with the command: + +[source,console] +---- +$ sudo wipefs /dev/$DEVICE +---- + +To erase all signatures, type: + +[source,console] +---- +$ sudo wipefs --all --force /dev/$DEVICE +---- + +Clean the device by overwriting the first sectors with zeroes: [source,console] ---- $ sudo dd if=/dev/zero of=/dev/$DEVICE status=progress bs=32768 count=1 +---- + +Optionally you can zeroes the whole device: + +[source,console] +---- $ sudo dd if=/dev/zero of=/dev/$DEVICE status=progress bs=32768 count=$(expr $(lsblk -bno SIZE /dev/$DEVICE | head -1) \/ 32768) ---- @@ -216,7 +236,9 @@ $ sudo mount /dev/$DEVICE$PARTNUMBER /mnt/$PARTNAME/device $ sudo rsync -avz --progress $WORKDIR/distros/sailfishos/ /mnt/$PARTNAME/device ---- -==== For all the distributions you also need some adjustments on `boot.scr`, `extlinux.conf` and `fstab` files: +==== All distributions + +You also need some adjustments on `boot.scr`, `extlinux.conf` and `fstab` files. Remame `/boot/boot*.scr`, if exists, to keep graphical menu clean: