Tow-boot problems and restoring uboot
#1
Today I ran into issue #1 listed in the Mobian Wiki, where the boot process stops at a black screen.

https://wiki.mobian-project.org/doku.php?id=tow-boot

Holding in the power button resulted in the phone rebooting rather than powering off, where the cycle repeated. It took several tries to get Mobian booted up. Tried the reset button in the back and finally had to remove the battery even though that's not recommended. This was a real pain, so for now I'd like to go back to uboot which never seemed to have any problems.

Before installing tow-boot I took an image backup of the eMMC using jumpdrive. Obviously the entire image could be copied back to the eMMC, but would it be possible to just extract uboot from there and write it to the eMMC using dd? What is the offset and length of the uboot image?
  Reply
#2
Did you install tow-boot to the SPI? And is is the PP or the PPP?
  Reply
#3
(04-19-2022, 10:06 AM)Fish Wrote: Did you install tow-boot to the SPI? And is is the PP or the PPP?

It's the standard Pinephone with tow-boot installed to the eMMC.
  Reply
#4
There's quite a lot of detail on the bootloader layout here:
https://bloggerbust.ca/post/how-to-updat...pinephone/

That explains the bs=1024 seek=8 at the end of the dd command given for installing u-boot given in multiple locations. It doesn't help with the size though, so it may be better to track down u-boot-sunxi-with-spl.bin or u-boot-sunxi-with-spl-pinephone.bin either in the backup filesystem (assuming it wasn't purged before you backed up) or from the old package.
  Reply
#5
Thanks! Probably easier and less hassle to just restore my image backup, just takes longer. Smile
  Reply
#6
How does one locate the u-boot boot sector on a SD card and delete it to enable tow-boot's volume down while powering on dual boot feature?
  Reply
#7
Based on the doc linked in post #4 I think zeroing 32k starting at an 8k offset should remove enough of the u-boot from the SD for the pinephone to boot from eMMC, but I haven't tried it. Something like this, assuming I've remembered which device is uSD and which eMMC - do check!
dd if=/dev/zero of=/dev/mmcblk0 bs=1024 seek=8 count=32
  Reply
#8
Since I started this thread I should probably follow up and say I never did get around to reflashing the eMMC with a non-tow-boot image. The problems I described have not happened again so for now I'm just going to leave it as-is. I'll be sure to keep an image without tow-boot around just in case. (I do love the convenience of the built-in Jumpdrive functionality for making image backups.)
  Reply
#9
(05-18-2022, 12:33 PM)Zebulon Walton Wrote: Since I started this thread I should probably follow up and say I never did get around to reflashing the eMMC with a non-tow-boot image. The problems I described have not happened again so for now I'm just going to leave it as-is. I'll be sure to keep an image without tow-boot around just in case. (I do love the convenience of the built-in Jumpdrive functionality for making image backups.)

What are your current feelings about towboot?
  Reply
#10
I just tried tow-boot with a recent image of mobian-installer, one of the August releases. Over a dozen boots with and without the keyboard case and it hasn't missed yet. From my experience so far it is more reliable than jumpdrive. Though I have been using the same version of jumpdrive since it was announced in this forum or the wiki, cannot remember. The issue I've had with jumpdrive is failing to boot altogether. This may be due to the MicroSD card on my Pinephone needing to be pulled back out about the thickness of a human hair or two, I haven't figured out if the issue is strictly physical or software too.

Like Zebulon I do full eMMC clones and tow-boot has so far been very reliable for August releases of Mobian.
Quartz64, RockPro64, PinePhone Mobian, PineBook Pro, PineTime, and all the trimmings that make FOSS fun.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  boot gets stuck shortly after disk decryption vortex 9 5,229 09-11-2024, 05:40 AM
Last Post: normangraves
  mobian installed to eMMC - how to install tow-boot grump_fiddle_reinstall 6 3,629 11-22-2023, 11:46 AM
Last Post: aLoop100o
  How to check if tow-boot is installed? jojuma 3 1,658 09-29-2023, 11:29 PM
Last Post: tllim
  Mobian boot failed with zstd message after upgrade. Mahgue 0 924 09-01-2023, 11:29 AM
Last Post: Mahgue
  Stability problems with 6.1 kernel Zebulon Walton 9 3,641 05-12-2023, 08:09 AM
Last Post: zetabeta
  4G data on default startup / boot dcinoz 1 1,150 04-29-2023, 11:24 PM
Last Post: dcinoz
  PinePhone won't boot after software update jb2000 2 1,829 03-17-2023, 07:26 AM
Last Post: Zebulon Walton
  Boot log analyses -> GPU no regulator (mali) found freelectro 0 1,323 03-06-2023, 12:06 PM
Last Post: freelectro
  [solved] Black screen at boot time mdk 0 1,220 01-13-2023, 03:33 AM
Last Post: mdk
  No boot after upgrade: vibration, red LED, then 2 vibrations and yellow LED 3x5co 1 1,318 01-04-2023, 06:46 PM
Last Post: 3x5co

Forum Jump:


Users browsing this thread: 1 Guest(s)