Boot sequence
#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


Messages In This Thread
Boot sequence - by Zweitaktmotor - 05-15-2020, 11:49 AM
RE: Boot sequence - by Alho - 05-16-2020, 09:53 AM
RE: Boot sequence - by Zweitaktmotor - 05-16-2020, 04:26 PM
RE: Boot sequence - by colin hodsdon - 05-16-2020, 04:31 PM
RE: Boot sequence - by Zweitaktmotor - 05-16-2020, 04:44 PM
RE: Boot sequence - by Alho - 05-16-2020, 07:04 PM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)