PINE64
How reflash my eMMC? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone Pro (https://forum.pine64.org/forumdisplay.php?fid=177)
+--- Forum: General Discussion of PinePhone Pro (https://forum.pine64.org/forumdisplay.php?fid=178)
+--- Thread: How reflash my eMMC? (/showthread.php?tid=17675)



How reflash my eMMC? - IHaveALinuxPhone - 11-29-2022

Hi. My eMMC has been bricked for quite a while - I can't get a keyboard to type in my password.  I'm finally getting around to wanting to boot that way again instead of continuing to use the software on my SD card.  I have found the following directions.  I have installed TowBoot and want to know if that will change anything.  Also, I assume that the OS I download to the SD card has to be prepared by Etcher or something like that, right? 

Here's what I found on the wiki:

  1. Boot an operating system from the microSD card. If there is already a bootloader on the eMMC installed see the section Boot order to bypass it.
  2. Download or copy the desired image to the microSD card as file
  3. Check if the eMMC appears under
    Code:
    lsblk
    . If it doesn't appear in the output of the command, the eMMC wasn't initialized due to applying the above explained bypass method for a too long time during the boot
  4. Important: Typically the image will be compressed in an archive file to reduce the download size (such as .gz or .xz). Extract the image from its archive file to get the file with the file extension .img.
  5. Flash the image file using
    Code:
    sudo dd if=IMAGE.img of=/dev/mmcblk2 bs=1M status=progress conv=fsync
    (replace IMAGE.img with the filename of the image you want to flash and make sure it has the file extension .img).
  6. Reboot the PinePhone Pro

Sorry the commands pasted funny.  Thanks in advance.


RE: How reflash my eMMC? - fxc - 11-29-2022

(11-29-2022, 02:51 PM)IHaveALinuxPhone Wrote: Hi. My eMMC has been bricked for quite a while - I can't get a keyboard to type in my password.  I'm finally getting around to wanting to boot that way again instead of continuing to use the software on my SD card.  I have found the following directions.  I have installed TowBoot and want to know if that will change anything.  Also, I assume that the OS I download to the SD card has to be prepared by Etcher or something like that, right? 

Here's what I found on the wiki:

  1. Boot an operating system from the microSD card. If there is already a bootloader on the eMMC installed see the section Boot order to bypass it.
  2. Download or copy the desired image to the microSD card as file
  3. Check if the eMMC appears under
    Code:
    lsblk
    . If it doesn't appear in the output of the command, the eMMC wasn't initialized due to applying the above explained bypass method for a too long time during the boot
  4. Important: Typically the image will be compressed in an archive file to reduce the download size (such as .gz or .xz). Extract the image from its archive file to get the file with the file extension .img.
  5. Flash the image file using
    Code:
    sudo dd if=IMAGE.img of=/dev/mmcblk2 bs=1M status=progress conv=fsync
    (replace IMAGE.img with the filename of the image you want to flash and make sure it has the file extension .img).
  6. Reboot the PinePhone Pro

Sorry the commands pasted funny.  Thanks in advance.

Simply download an image on the phone (which you booted with the microSD card), extract the image from the archive file and write it to the eMMC with the mentioned dd command. There is no need to use Etcher, the dd command writes the image to the eMMC.


RE: How reflash my eMMC? - IHaveALinuxPhone - 12-01-2022

Worked nicely. Thanks a lot.