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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Won't boot, black screen mdk 4 338 07-03-2022, 06:38 PM
Last Post: Chief
  Does tow-boot allow periodic wake from suspension to check for notifications? DrPlamsa 3 375 05-24-2022, 11:49 AM
Last Post: DrPlamsa
  DNS Problems with Mobile Data arno_nuehm 27 5,105 05-16-2022, 04:14 PM
Last Post: henrythemouse
  Moving to Tow-Boot: Towards Device-Independant Images user641 9 1,263 04-30-2022, 07:56 PM
Last Post: TRS-80
  Tow-boot required to new installations user641 2 571 04-17-2022, 04:23 PM
Last Post: vusra
  Glacially slow system updates on Mobian - waiting on boot 20m - 1h bujiraso 5 1,068 03-01-2022, 10:06 AM
Last Post: bujiraso
  Browser cog - Problems on Mobian arno_nuehm 5 1,506 02-10-2022, 03:27 PM
Last Post: pothos
  ARM Microsoft Teams-problems installing eaglebeckley 15 7,986 01-14-2022, 01:59 AM
Last Post: Tazdevl
  When I set SD card as /home, PP can't complete boot nelstomlinson 4 1,085 12-27-2021, 03:06 PM
Last Post: nelstomlinson
  Suddenly, nothing but a backlight and a boot logo flash 3x5co 8 1,240 12-05-2021, 08:24 PM
Last Post: Anna

Forum Jump:


Users browsing this thread: 1 Guest(s)