Lying installer
#1
I installed Phosh on my new¹ pinephone but now I can't remember the pin/password.
And I thought that I installed it on the SD card but it appears that I actually installed it on the EMMC.
I tried to reinstall with sxmo but the phone won't boot on the SD card, it keeps booting on the EMMC.
Everybody tells me that it should boot on the SD card by default, but it doesn't (even when I press the volume button down at start).

Am I doing something wrong ?
How to check what's the problem ?



¹ Well, new since many months now, but I haven't used it yet
  Reply
#2
So a GNU friend helped me and installed Tow-boot on the phone (I remember that at the first install I didn't understand fully what was Tow-boot nor what exactly I was supposed to do, so I'm confident that I did not install it myself from a specific SD card, but that's all I can be sure about).
After that it does boot from the SD card.

But today I used the Phosh Installer tar image (dd'd on a SD card) to test that, and I was particularly careful to choose "install on the SD card" after having been burned once.
It asked me whether it should wipe the card, and I chose "yes". I also chose to encrypt the filesystem.

But even though I chose to install the OS on the SD card, it actually installed it on the EMMC...
So I guess that the first time also I didn't make any mistake, it's the installer who lied to me.

And I guess it wiped out tow-boot, because now it refuses to boot on the same SD card that I used to install it (nor on another where I dd'd another tar image).
At least it boots on the tow-boot SD card if I put it in the phone.
Also I now remember the new password - I can use the system installed if I want to.

But I bought the Pinephone in order to test the various available OS, so what should I do now ?
The Tow-boot SD card asks me whether I want to wipe the EMMC or to install Tow-boot on the boot sector of the EMMC, will the second option leave the OS installed on the EMMC functional ?
  Reply
#3
https://xnux.eu/p-boot-demo/

ezik
  Reply
#4
Thanks, I wasn't aware of this image.
But though it may be useful later, it's not the answer to my problem.
To wit :
- Why did the installer lie to me and installed the OS on the EMMC after telling me it would install it on the SD card ?
- Do all installers lie in the same way ?
- If I install tow-boot on the EMMC like the Tow-boot installer proposes, will it remove or create problems to the Phosh that is currently on the EMMC ?
  Reply
#5
(08-08-2023, 01:19 PM)LienRag Wrote: - Why did the installer lie to me and installed the OS on the EMMC after telling me it would install it on the SD card ?

As far as I know you don't run an installer for booting an OS on an SD card, you dd the image directly to the card. (At least that's the way I've done it.) I think using an installer basically implies that the OS is going to be installed on the eMMC.
  Reply
#6
(08-08-2023, 02:06 PM)Zebulon Walton Wrote:
(08-08-2023, 01:19 PM)LienRag Wrote: - Why did the installer lie to me and installed the OS on the EMMC after telling me it would install it on the SD card ?

As far as I know you don't run an installer for booting an OS on an SD card, you dd the image directly to the card. (At least that's the way I've done it.) I think using an installer basically implies that the OS is going to be installed on the eMMC.

But then why does it ask wether I want to install the OS on the EMMC or on the SD card ?
  Reply
#7
(08-09-2023, 12:29 AM)LienRag Wrote: But then why does it ask wether I want to install the OS on the EMMC or on the SD card ?

No idea. I don't recall the Mobian installer asking that when I installed it but that was quite some time ago. Unless I'm missing something, from what you're saying the installer is offering to install the OS onto the same SD card that the installer is running from. It just doesn't seem to make much sense.
  Reply
#8
Yes, that is what happened.
I thought that the installer was loaded in memory, which means that it indeed would have been able to install itself on the SD card.
A bit surprising indeed, but there wouldn't be that many other options if one wanted to install on the SD card from a SD card.

And imho, less weird than offering to install the OS on the SD card and then installing it on the EMMC...
  Reply
#9
It should either not have offered the source device as a target device at all or at least errored when you tried to proceed with the installation with those settings, not silently done something different than what you had explicitly told it. So I would say that that is a clear bug in the installer, even if you asked it to do something unreasonable.
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)