05-16-2020, 07:04 PM
(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