PINE64
Upgrading eMMC and Installing Majaro XFCD 20.06 - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: Linux on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=114)
+--- Thread: Upgrading eMMC and Installing Majaro XFCD 20.06 (/showthread.php?tid=10523)



Upgrading eMMC and Installing Majaro XFCD 20.06 - lyssa - 07-01-2020

Upgrading The eMMC And Installing Manjaro Xfce (or whatever image, I think)

Thanks to many others for bits and pieces, including Syonyk’s how-to at https://forum.pine64.org/showthread.php?tid=10279.

This post is more for the noob, like me. I did not want to use aditional software, like Etcher. Just use what I had.

Part 1 – Setting up the temporary SD card

1. Download compressed image and sha256 files to functioning PBP running from eMMC. Mine was 64Gb.

2. Verify whatever.img.xz file integrity against sha256 file. Note: whatever is place holder for your filename.

Code:
sha256sum -b whatever.img.xz

If OK, proceed. Smile Otherwise, begin Part 1 again Angry .

3. Expand the img.xz file.

Code:
unxz whatever.img.xz

Note: The compressed file will disappear unless you save a copy somewhere else before expanding. This procedure assumes everything is in your Downloads folder as is your terminal. Note: This takes a few minutes on PBP.

4. Write downloaded and checked Manjaro Xfce (or whatever) image to SD card with dd:

WARNING: CHECK WITH LSBLK TO VERIFY AND NOTE WHICH DEVICE IS YOUR SDCARD BEFORE RUNNING "dd" COMMAND TO WRITE YOUR IMAGE TO IT!

In my case, the target SD card was mmcblk1 while running on eMMC. Yours could be different, maybe?

Code:
sudo dd if=whatever.img of=/dev/mmcblk1 bs=4M status=progress

5. Power off and restart Manjaro Xfce from SD card. No need to remove, disable, turn off eMMC. Woohoo! It worked.

Part 2

At this point, the eMMC has been replaced with a new blank part, and the tools put away. Mine is 128Gb. There are other how-tos on that. Very simple. You are powered up now and running on the SD in the Downloads directory. I think it is easiest and safer to download the image files again instead of trying to shuffle things around between the SD and the old eMMC. So here we go again.

1. Download compressed image and sha256 files to your functioning PBP running from SD.

2. Verify whatever.img.xz file integrity against sha256 file. Note: whatever is place holder for your filename.

Code:
sha256sum -b whatever.img.xz

If OK, proceed. Smile Otherwise, begin Part 2 again Angry .

3. Expand the img.xz file.

Code:
unxz whatever.img.xz

Note: The compressed file will disappear unless you save a copy somewhere else before expanding. This procedure assumes everything is in your Downloads folder as is your terminal. Note: This takes a few minutes on PBP.

4. Write downloaded, checked, and expanded Manjaro Xfce (or whatever) image to the new eMMC card with dd:

WARNING: CHECK WITH LSBLK TO VERIFY AND NOTE WHICH DEVICE IS YOUR eMMC BEFORE RUNNING "dd" COMMAND TO WRITE YOUR IMAGE TO IT!

In my case, the eMMC was mmcblk2. Yours could be different, maybe?

Code:
sudo dd if=whatever.img of=/dev/mmcblk2 bs=4M status=progress

5. Turn off PBP, remove SD card and turn PBP on. It should boot from eMMC with Manjaro Xfce (or whatever) installed. Second woohoo! It worked again.


Sleepy