Boot sequence
#1
Hi,

Is there any way to bypass the boot sequence of the Pinephone?

The two leading software contenders now seem to be Ubuntu Touch and Mobian. Both can be updated on a rolling basis.

I have Ubuntu in the phone and Mobian on a card and would like to keep an eye on both. - But I cannot do so without juggling the SD card in and out.

I have no idea about programming, but can't we have a solution like the Grub menu on the desktop? That would make things so much easier!

[Dreaming mode on] Ideally, I would like to see an OS with the slick look of Ubuntu and the functionality of Mobian, but I guess this is unlikely to happen, at least not any time soon.[Dream mode off]
  Reply
#2
We actually do use Grub in the Fedora images, and can as such boot anything.
Only current problem is, that we do not yet have the screen working at this early phase,
so you have to use a debug cable to do the selection in Grub.

As a more quick and dirty solution, you could simply overwrite uboot on the sdd card with
zeros with dd, and reboot, then it boots from emmc. When you want to boot from SDD card,
do wite the uboot.bin back to the SDD card and reboot.
  Reply
#3
(05-16-2020, 09:53 AM)Alho Wrote: We actually do use Grub in the Fedora images, and can as such boot anything.
Only current problem is, that we do not yet have the screen working at this early phase,
so you have to use a debug cable to do the selection in Grub.

As a more quick and dirty solution, you could simply overwrite uboot on the sdd card with
zeros with dd, and reboot, then it boots from emmc. When you want to boot from SDD card,
do wite the uboot.bin back to the SDD card and reboot.

Instead of actually deleting uboot, could this be done with a sort of temporary flag, fooling the Pinephone into thinking there was no bootable image on the card? Like having a preliminary boot to offer a choice of boot locations, then set the flag, reboot according to the choice made and finally deleting the flag before the OS actually starts?
  Reply
#4
(05-16-2020, 04:26 PM)Zweitaktmotor Wrote:
(05-16-2020, 09:53 AM)Alho Wrote: We actually do use Grub in the Fedora images, and can as such boot anything.
Only current problem is, that we do not yet have the screen working at this early phase,
so you have to use a debug cable to do the selection in Grub.

As a more quick and dirty solution, you could simply overwrite uboot on the sdd card with
zeros with dd, and reboot, then it boots from emmc. When you want to boot from SDD card,
do wite the uboot.bin back to the SDD card and reboot.

Instead of actually deleting uboot, could this be done with a sort of temporary flag, fooling the Pinephone into thinking there was no bootable image on the card? Like having a preliminary boot to offer a choice of boot locations, then set the flag, reboot according to the choice made and finally deleting the flag before the OS actually starts?

will  the "pineloader" that is being worked on ,do this for you (see the May update )
  Reply
#5
(05-16-2020, 04:31 PM)colin hodsdon Wrote:
(05-16-2020, 04:26 PM)Zweitaktmotor Wrote: Instead of actually deleting uboot, could this be done with a sort of temporary flag, fooling the Pinephone into thinking there was no bootable image on the card? Like having a preliminary boot to offer a choice of boot locations, then set the flag, reboot according to the choice made and finally deleting the flag before the OS actually starts?

will  the "pineloader" that is being worked on ,do this for you (see the May update )

Ah yes, sounds like it is. ooking forward to it.
  Reply
#6
(05-16-2020, 04:26 PM)Zweitaktmotor Wrote:
(05-16-2020, 09:53 AM)Alho Wrote: We actually do use Grub in the Fedora images, and can as such boot anything.
Only current problem is, that we do not yet have the screen working at this early phase,
so you have to use a debug cable to do the selection in Grub.

As a more quick and dirty solution, you could simply overwrite uboot on the sdd card with
zeros with dd, and reboot, then it boots from emmc. When you want to boot from SDD card,
do wite the uboot.bin back to the SDD card and reboot.

Instead of actually deleting uboot, could this be done with a sort of temporary flag, fooling the Pinephone into thinking there was no bootable image on the card? Like having a preliminary boot to offer a choice of boot locations, then set the flag, reboot according to the choice made and finally deleting the flag before the OS actually starts?

No, I don't think so - or rather it is what I'm suggesting. A flag itself is also a rewrite of a whole block on the 'disk'.
You really only need to zero or 'unzero' the first sector/block of the place where uboot is stored - any 1 letter 'flag'
will do the same.
Creating 2 scripts with a dd command to write the block for either case should be easy
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can't boot on SD anymore LeNouveau 1 814 02-12-2024, 01:05 PM
Last Post: LeNouveau
  Does Ubuntu modify a Pinephone SD boot card? Peter Gamma 0 1,234 10-05-2023, 09:18 AM
Last Post: Peter Gamma
  Tow-boot headaches. antiwesley 3 2,088 04-30-2023, 05:03 PM
Last Post: Kevin Kofler
  problem with boot evaldas 2 2,698 03-17-2023, 06:21 AM
Last Post: gulshan212
  Article: NuttX RTOS for PinePhone: Boot to LVGL lupyuen 2 2,357 01-23-2023, 10:41 PM
Last Post: lupyuen
  tow-boot shulamy 2 2,127 09-08-2022, 12:33 AM
Last Post: shulamy
  Device memory full on multi-boot SD card Peter Gamma 4 3,483 08-27-2022, 10:03 AM
Last Post: Eugo
  wiping u-boot off sd card shulamy 6 3,887 08-17-2022, 03:38 AM
Last Post: shulamy
  Change tow-boot boot order or otherwise make Mobian on uSD the default? allworlds 3 3,034 05-04-2022, 06:27 PM
Last Post: allworlds
  Multi boot issue generaluser 4 3,983 10-06-2021, 07:45 AM
Last Post: generaluser

Forum Jump:


Users browsing this thread: 4 Guest(s)