PINE64
UBPorts doesn't boot even after booting into recovery - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: UBPorts on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=125)
+---- Thread: UBPorts doesn't boot even after booting into recovery (/showthread.php?tid=11674)



UBPorts doesn't boot even after booting into recovery - defekto - 09-29-2020

So a couple of days ago my pinephone stopped booting into the OS after the Pine64 Logo. Today I tried this fix https://forum.pine64.org/showthread.php?tid=10130 and at first it seemed like it was working, booting into recovery started the installing update screen but about half way through the update my phone crashed and booting into recovery just shows the "awaiting command" screen. I obviously tried to power through with the rest of the fix but after the reboot command the phone still fails to boot.

Is my UBPorts image fucked or is there still a way to recover? If not does anyone have a good guide on how to reflash UBPorts on the Pinephone.

Greeting and Thanks
Defekto


RE: UBPorts doesn't boot even after booting into recovery - plainenough - 09-29-2020

The easiest thing to do is:

Install ubports image to an SDCard using etcher from here https://www.balena.io/etcher/
Then insert the SDCard into the phone and power on while holding the volume up and the power/sleep button.
After you get the awaiting command screen plug the phone in and flash the emmc using the ubports image.

Not sure what is wrong with your install, but it probably isn't worth the time to fix. Re-flashing is way easier. My bet is the bootloader or partition is corrupt and needs to be reinstalled. You could use a command like dd to grab the first 1024KB (if the partition type is GPT) or the first 512KB (if MBR - My device is mbr) from the freshly flashed SD and try writing it to the EMMC. to see if you can get past the boot issue. OR you can Try to mount the EMMC in linux and rebuild the boot config manually. Not sure how to do that since I don't know what bootloader UBPorts is actually using.


RE: UBPorts doesn't boot even after booting into recovery - defekto - 09-30-2020

(09-29-2020, 10:08 AM)plainenough Wrote: The easiest thing to do is:

Install ubports image to an SDCard using etcher from here https://www.balena.io/etcher/
Then insert the SDCard into the phone and power on while holding the volume up and the power/sleep button.
After you get the awaiting command screen plug the phone in and flash the emmc using the ubports image.

Not sure what is wrong with your install, but it probably isn't worth the time to fix. Re-flashing is way easier.  My bet is the bootloader or partition is corrupt and needs to be reinstalled.  You could use a command like dd to grab the first 1024KB (if the partition type is GPT) or the first 512KB (if MBR - My device is mbr) from the freshly flashed SD and try writing it to the EMMC. to see if you can get past the boot issue. OR you can Try to mount the EMMC in linux and rebuild the boot config manually.  Not sure how to do that since I don't know what bootloader UBPorts is actually using.
Good idea, I will see what I can do when booting from the SD.