Tow-Boot, a new U-Boot option for Pinephone Pro and other devices
#51
(04-21-2022, 06:00 AM)wibble Wrote: The multiboot image is built to use and take advantage of the features of megi's p-boot. It doesn't have the config file that tow-boot looks to for the kernel, initrd, boot args etc. so tow-boot doesn't find anything that it knows how to boot. Even if the partition layout is something tow-boot could read, and you translated the p-boot config for the boot options to the format tow-boot uses, I don't think you'd have a way to select which multi-boot option you wanted as tow-boot doesn't have a GUI on the pinephone. It's the wrong tool for the job - stick to p-boot for multiboot.

Thanks for that explanation! I was thinking “yeah, of course that makes sense and I’d completely forgotten that Megi’s p-boot was what enabled his multiboot menu...” so I shouldn’t expect it to work unless Megi were to make some changes to his multiboot image.

But then I thought: how come Tow-Boot correctly booted the multiboot menu from the microSD card install and let me select which distro/OS I wanted to launch?

If I’ve understood your explanation correctly, Tow-Boot shouldn’t have been able to “see” anything to boot from the microSD card? So my experience should have been the same as with the multiboot install on the eMMC?
  Reply
#52
You're using a PinePhone not a Pro, so the boot search order is uSD then eMMC. If you got the multiboot menu then your uSD still has p-boot on it, and this was run before it even looked at the eMMC. tow-boot wasn't involved in that one at all.
  Reply
#53
(04-22-2022, 07:39 AM)wibble Wrote: You're using a PinePhone not a Pro, so the boot search order is uSD then eMMC. If you got the multiboot menu then your uSD still has p-boot on it, and this was run before it even looked at the eMMC. tow-boot wasn't involved in that one at all.

You’re quite right - my apologies, I had thought that I’d managed to do what I described above with the PP starting on a red LED as well as enabling me to access USB mode with the blue LED Up volume button (i.e. indicating that Tow-Boot was still the functioning bootloader) but I just tried to replicate that and my PP started with a green LED then displayed Megi’s multiboot menu so I can only assume I got slightly muddled when I first tried this late into the night...

Ok so there’s no way of having ones main OS on the microSD card, Megi’s multiboot on the eMMC and be able to switch between the two without removing the microSD card?
  Reply
#54
(04-23-2022, 09:28 AM)3460p Wrote:
(04-22-2022, 07:39 AM)wibble Wrote: You're using a PinePhone not a Pro, so the boot search order is uSD then eMMC. If you got the multiboot menu then your uSD still has p-boot on it, and this was run before it even looked at the eMMC. tow-boot wasn't involved in that one at all.

You’re quite right - my apologies, I had thought that I’d managed to do what I described above with the PP starting on a red LED as well as enabling me to access USB mode with the blue LED Up volume button (i.e. indicating that Tow-Boot was still the functioning bootloader) but I just tried to replicate that and my PP started with a green LED then displayed Megi’s multiboot menu so I can only assume I got slightly muddled when I first tried this late into the night...

Ok so there’s no way of having ones main OS on the microSD card, Megi’s multiboot on the eMMC and be able to switch between the two without removing the microSD card?

I think you could do that in two ways, both using p-boot. One is to remove the bootloader from the uSD so that the process skips the uSD and uses the p-boot on the eMMC. The other is to install p-boot on the uSD. In either case you'll need to check the p-boot docs to see what config changes you need to make to p-boot to provide the extra boot options.
  Reply
#55
(04-25-2022, 02:59 AM)wibble Wrote:
(04-23-2022, 09:28 AM)3460p Wrote:
(04-22-2022, 07:39 AM)wibble Wrote: You're using a PinePhone not a Pro, so the boot search order is uSD then eMMC. If you got the multiboot menu then your uSD still has p-boot on it, and this was run before it even looked at the eMMC. tow-boot wasn't involved in that one at all.

You’re quite right - my apologies, I had thought that I’d managed to do what I described above with the PP starting on a red LED as well as enabling me to access USB mode with the blue LED Up volume button (i.e. indicating that Tow-Boot was still the functioning bootloader) but I just tried to replicate that and my PP started with a green LED then displayed Megi’s multiboot menu so I can only assume I got slightly muddled when I first tried this late into the night...

Ok so there’s no way of having ones main OS on the microSD card, Megi’s multiboot on the eMMC and be able to switch between the two without removing the microSD card?

I think you could do that in two ways, both using p-boot. One is to remove the bootloader from the uSD so that the process skips the uSD and uses the p-boot on the eMMC. The other is to install p-boot on the uSD. In either case you'll need to check the p-boot docs to see what config changes you need to make to p-boot to provide the extra boot options.

Hmm that’s effectively what I thought I’d achieved by putting a more recent build of Mobian on the microSD because IIUC Mobian’s removed the bootloader from their recent builds since they’re now relying on Tow-Boot being in place...but yeah as we’ve already discussed, Megi’s multiboot currently only works with p-boot and Tow-Boot doesn’t recognise p-boot as something into which to boot.
I’ll see what I can manage with getting p-boot on the microSD!
  Reply
#56
I've been getting ~48 hours on standby with latest Tow-boot, as opposed to ~4 hours on stock u-boot. Seems usable. Not sure about audio wake-from-suspend issues, haven't gotten a chance to test yet.

The suspend issues where the first text received while suspended wakes the suspension, but fails to be pulled into Chatty but subsequent texts are pulled from the modem into Chatty persists with tow boot. Phone calls, after about 3 rings, are to get through on a suspended device.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Latest Manjaro-Phosh and Arch-Phosh won't boot grinzie 6 254 07-01-2022, 02:01 PM
Last Post: Chief
Rainbow Waydroid on Pinephone Pro (solution for users) MadameMalady 6 818 05-16-2022, 09:55 PM
Last Post: Emilio
  F-Droid on a pinephone pro? gilwood 2 264 05-15-2022, 02:26 PM
Last Post: biketool
  Manjaro update, no boot, just noise. wilmarcdw 2 193 05-09-2022, 07:24 AM
Last Post: wilmarcdw
  Wireshark development on a PinePhone Pro realrichardsharpe@gmail.com 2 257 04-28-2022, 04:48 AM
Last Post: wibble
  GAPPS (Waydroid) on the Pinephone Pro jarbear82 3 823 04-27-2022, 01:05 PM
Last Post: TheBlindEarthican
  Waydroid on PinePhone Pro PPP (Stock Manjaro Plasma) mhedhli 6 1,352 04-25-2022, 11:27 AM
Last Post: TheBlindEarthican
  Getting Waydroid to work on the Pinephone Pro Dragonborn 7 1,681 04-19-2022, 06:07 AM
Last Post: Dragonborn
  Can't boot from a microSD card WhyNotHugo 5 400 04-10-2022, 09:15 AM
Last Post: WhyNotHugo
  Getting Started with the PinePhone Pro fxc 0 308 04-10-2022, 06:32 AM
Last Post: fxc

Forum Jump:


Users browsing this thread: 2 Guest(s)