PINE64
Erasing the eMMC | Pinephone Pro - 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: Erasing the eMMC | Pinephone Pro (/showthread.php?tid=15593)



Erasing the eMMC | Pinephone Pro - Vermi - 12-22-2021

After I got the Pinephone Pro I wiped the preinstalled AOSP Image according to PinePhone_Pro Wiki

and afterward tinkered with the Arch Image for some time.



Sometime later I noticed pacman showing me in when updating that I could update uboot:



Code:
dd if=/boot/idbloader.img of=/dev/mmcblkX seek=64 conv=notrunc,fsync
dd if=/boot/u-boot.itb of=/dev/mmcblkX seek=16384 conv=notrunc,fsync




and I thought updating uboot might help in someway. I unfortunately wrote the bootloader onto the eMMC(mmcblk2) and uboot wont boot my SD card and now I'm stuck.

I managed to see uboot trying to boot, but failing.



My question is, is there some otherway to wipe the eMMC or is there a way to get into the uboot cmdline to wipe it from there...so that I can boot again from the SD card



My uboot output is this:



Code:
U-Boot TPL 2021.10-3 (Dec 11 2021 - 19:16:00)
Channel 0: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
Channel 1: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
256B stride
lpddr4_set_rate: change freq to 400000000 mhz 0, 1
lpddr4_set_rate: change freq to 800000000 mhz 1, 0
Trying to boot from BOOTROM
Returning to boot ROM...

U-Boot SPL 2021.10-3 (Dec 11 2021 - 19:16:00 +0000)
Trying to boot from MMC1
Card did not respond to voltage select! : -110
spl: mmc init failed with error: -95
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###



RE: Erasing the eMMC | Pinephone Pro - Danct12 - 12-27-2021

You can disable the eMMC by shorting the two test pads and power on. Image attached (courtesy to Alho from Pinedev Chat)


RE: Erasing the eMMC | Pinephone Pro - kuleszdl - 01-03-2022

Can you access the serial console of u-boot? If yes, you could boot something different via u-boot cmdline and erase the eMMC from there. Not sure if you can directly erase it from u-boot.


RE: Erasing the eMMC | Pinephone Pro - jvanveen - 01-19-2022

Did you manage to reflash the emmc using one of the listed methods? I would like to flash the emmc as well, but am still a bit reluctant due to the emmc boot issue.


RE: Erasing the eMMC | Pinephone Pro - dukla2000 - 01-26-2022

(01-19-2022, 11:02 AM)jvanveen Wrote: Did you manage to reflash the emmc using one of the listed methods? I would like to flash the emmc as well, but am still a bit reluctant due to the emmc boot issue.

This is going to become exceedingly relevant in the next few days as the Explorer Edition hits the streets.

If my stalking on the dev channels pays off then it seems holding the PPP reset while power on also disables the eMMC (a bit like shorting the 2 pins on a RockPro64) which will be really cool. Because releasing the pins on a RockPro64 as soon as the SDcard starts booting also means the eMMC is available from the SDcard OS.