Broken OS, Please HELP!

I tried to install /e/OS on my Fairphone 5 following this guide and comparing it with this one using for it Fedora 40 and got stucked in a couple of parts.

The critical point was when I tried to launch the flash_FP5_factory.sh && ./flash_FP5_factory.sh file, because I just got:

$ chmod +x flash_FP5_factory.sh && ./flash_FP5_factory.sh

*** Fairphone 5 flashing script ***

INFO: The procedure will start soon. Please wait...
Note that this will detect and flash only on Fairphone 5 device.
INFO: You are using a Linux distribution.
INFO: Looking for connected device(s)...

And on the phone I got:

fastbootd

Android Fastboot
Product name - FP5
Bootloader version - unknown
Baseband version - 
Serial number - XXXXXXX
Secure boot - yes
HW version - 0
Use volume up/down and power.

Reboot system now
Enter recovery
Reboot to bootloader
Power off

But nothing else happened.

I tried a couple of times, until I tried to do it manually with:

sudo fastboot flash abl abl.img
sudo fastboot flash devcfg devcfg.img
sudo fastboot flash keymaster keymaster.img
sudo fastboot flash uefisecapp uefisecapp.img
sudo fastboot flash aop aop.img
sudo fastboot flash dsp dsp.img
sudo fastboot flash modem modem.img
sudo fastboot flash vbmeta vbmeta.img
sudo fastboot flash dtbo dtbo.img
sudo fastboot flash boot boot.img
sudo fastboot flash super super.img

All processed said to be “OKAY”, and at the end I ran sudo fastboot reboot. But after the reboot, now it is stucked in the bootloader. I cannot even turn off the phone there or start it. What can I do? Please help! I actually have no experience with Android or bootloaders or anything like that

good morning, try installing a recovery

Fastbootd is the wrong status you need bootloader aka fastboot, just for the records why it might not have worked at the beginning. Is your bootloader locked, if not just do it again.

Thanks a lot. Sadly, I was unable to install a recovery. I followed the official instructions, but it got stucked. I let it run the whole night, it’s been almost a day, but is still there.

The terminal says:

*** Fairphone 5 flashing script ***

INFO: The procedure will start soon. Please wait...
INFO: The package type is "user-factory"
INFO: You are using a Linux distribution.

INFO: Validating the integrity of the package.
      This might take a while. Please wait...
INFO: Validation complete.
WARNING: Flashing this image wipes all user data and settings on the phone.
         It will also remove the Google factory reset protection.
         Are you sure you want to continue?
         Type "Yes" (case sensitive) and press enter to continue: Yes
INFO: Looking for connected device(s)...

While the phone is still on the Bootloader. It is still so, that no matter if I press “START”, “Restart bootloader”, “Recovery mode” or “Power off”, it goes back to the Bootloader.

Thanks! Maybe that is the reason why it did not work, but I cannot get away the Bootloader now.

I tried to do the procedure again, and it should be unlocked, but the terminal says:

$ sudo fastboot flash abl abl.img
Warning: skip copying abl image avb footer (abl partition size: 0, abl image size: 155648).
Sending 'abl' (152 KB)

And it stays there, while the phone fails back to the Bootloader, independently if I select “START”, “Restart bootloader”, “Recovery mode” or “Power off”.

I would try the script now, else maybe try to install FPOS manually first and start again after that.

In both cases the operation fails.

If I try to install /e/OS with the script, I get

*** Fairphone 5 flashing script ***

INFO: The procedure will start soon. Please wait...
Note that this will detect and flash only on Fairphone 5 device.
INFO: You are using a Linux distribution.
INFO: Looking for connected device(s)...

If I try it with the FPOS, I get:

*** Fairphone 5 flashing script ***

INFO: The procedure will start soon. Please wait...
INFO: The package type is "user-factory"
INFO: You are using a Linux distribution.

INFO: Validating the integrity of the package.
      This might take a while. Please wait...
INFO: Validation complete.
WARNING: Flashing this image wipes all user data and settings on the phone.
         It will also remove the Google factory reset protection.
         Are you sure you want to continue?
         Type "Yes" (case sensitive) and press enter to continue: Yes
INFO: Looking for connected device(s)...

In both cases, now is “not found”.

When I try to install FPOS manually, I get on the first step:

 fastboot flash abl abl.elf
< waiting for any device >

Or:

$ sudo fastboot flash abl abl.elf
[sudo] password for akuilera: 
Warning: skip copying abl image avb footer (abl partition size: 0, abl image size: 155648).
Sending 'abl' (152 KB)

I find it strange that when I run fastboot devices, it does recognize the phone.
I already tried killing and restarting the adb server.

UPDATE:
I actually managed to pass the first command by doing random stuff with the restart bootloader option, still no big success:

FP5-TT4H-factory/images$ sudo fastboot flash abl abl.elf
Sending 'abl' (152 KB)                             OKAY [  0.006s]
Writing 'abl'                                      OKAY [  0.002s]
Finished. Total time: 0.019s
FP5-TT4H-factory/images$ sudo fastboot flash boot boot.img
fastboot: error: Failed to identify current slot

Did you check what the current slot is and did you try to change to see if it boots to system then?

Else, did you try different cable, USB Ports already? Another PC with another operating Systtem?

I did try different slots as well as cables. Sadly I only own one laptop. Maybe tomorrow I try to install a Windows bottle and see if it does it, but I’m really skeptical.

I don’t see a real point in trying a Windows bottle I use old and new Ubuntus for flashing FP3s, FP4s and FP5s just fine… and I don’t think Fedora is using any different packages (versions).

The problems I encounter the most are often using the wrong cable and doing stuff not in the right order (i.e. accidentally forgetting/skipping a step). The script takes care of everything else nowadays.

Do you use some kind of USB blocking OS extension on your laptop? Your phone will identify itself quite differently throughout the flashing process.

Last resort: Fairphone does offer to repair your phone, i.e. flash FPOS again (assuming this was the one installed first). Not sure how much they charge you.

While I agree I would not exclude that this might help and would give it a chance if possible. You never know…

Edit: the error reason seem to be that the current slot cant be detected… Thus my question above

Edit 2: checking Google for the error, what exactly have you done?

https://www.reddit.com/r/LineageOS/comments/d0tskr/fastboot_error_failed_to_identify_current_slot/?rdt=40515

1 Like