Issue reverting to stock ROM

Hi there,

After the CalyxOS announcement, I want to go back to stock ROM. My issue is the following: after rebooting in fastboot, fastboot flashing unlock work well, but when I try fastboot flashing unlock_critical, I have:

> fastboot flashing unlock_critical
FAILED (remote: '	Device already : unlocked!')
fastboot: error: Command failed

When I try the install script, I have:

> ./flash_fp4_factory.sh 

*** Fairphone 4 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)...
INFO: One Fairphone 4 in fastboot mode found (serial number: xxxxxxx).

And the script end with exit code 1.

I tried fastboot oem device-info:

> fastboot oem device-info
(bootloader) Verity mode: true
(bootloader) Device unlocked: true
(bootloader) Device critical unlocked: true
(bootloader) Charger screen enabled: false
OKAY [  0.001s]
Finished. Total time: 0.001s

So I guess I could try to modify the script to get rid of unlocking verification, because it seems to be the last point I reach, but I’m scared to brick my device.

The script exit is similar to https://forum.fairphone.com/t/back-to-stock-rom/93408/15, but it is not the same issue. For what I see in the same topic, I can’t find a solution.

Do you have any idea what I’m doing wrong?

So the script ends with the line “INFO: One Fairphone 4 in fastboot mode found (serial number: xxxxxxx).“ and no more output?

I don’t think that the unlock status is the problem (as it’s completely unlocked).

Which OS are you using on the computer where you start the script?

I had sometimes problems with Linux Minut (and fastboot on it or the drivers or…) and always succeeded when using suse live system.
And sometimes when flashing did not start I restarted into fastboot only very shortly before starting the script. May not sound logical but sometimes helped.

Thanks for your answer!

Yes, exactly!

I use Arch Linux, everything is up to date, with android-tools installed (for adb and fastboot).

I’ll try that, I’ll let you know the result.

It doesn’t seem to help, I tried to go as fast as I can

I tried someting else: in the script I commented out is_unlocked (and set INTEGRITY_CHECK to false), since the test is done on the output of fastboot oem device-info, which is conform. I have the following output:

> ./flash_fp4_factory.sh 

*** Fairphone 4 flashing script ***

INFO: The procedure will start soon. Please wait...
INFO: The package type is "user-factory"
INFO: You are using a Linux distribution.
WARNING: Skipping file validation check, as per hard-coded toggle
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)...
INFO: One Fairphone 4 in fastboot mode found (serial number: 6ef2afc).
INFO: Proceeding to flash the device.
INFO: flashing partitions...
Warning: skip copying abl_a image avb footer (abl_a partition size: 0, abl_a image size: 155648).
Sending 'abl_a' (152 KB)                           

And nothing after, it seems to freeze. I let it run for like 20 minutes, and when I stop it my phone is still usable (CalyxOS boot normally, still with the quick config I did after the reset due to fastboot flashing unlock).

Yes, I had the same symptoms (that it hung on the first content to send or failed on the unlock check although everything was also unlocked) on Linux Mint (everything up to date).

So I hope you’ll also succeed using Suse Live. At least in my case there the problem did never happen.

3 Likes

If I remember well, then after stopping the script (as you’ve done above when abl_a was not sent), even fastboot devicesno longer gave an output without restarting the phone (into fastboot).
And yes, it does not seem to send anything. So this is why CalyxOS still boots as normal.

Yes exactly the same!

Ok, thank you very much! I’ll try Suse in the following hours, as soon as possible

1 Like

I’ll keep my fingers crossed for Suse!

Btw.: this was the post (sorry, it’s in German) when restarting directly before starting the script helped (although in this case it was the script to install /e/OS). But at the end it was not the script but rather some strange fastboot behaviour. And this restarting was only a workaround needed for Mint. Using Suse, fastboot was rock solid for me, as mentioned…. :man_shrugging:

1 Like

It worked! Thank you very much, now I just to lock my bootloader with bricking it and it is done. Also thank for the post (I’ll try to remember my highschool lessons)

I wouldn’t ever think to try another distro, thanks again!

3 Likes

That’s great news (and I hope you meant “lock bootloader without bricking it” (yes, take care!)!

Rest assured that I also still don’t understand that but am very glad the other distro works…!

2 Likes

Indeed sorry, looks like I forgot some importants letters… Take care as well!

Well, as long as it works, I’m very glad as well… Curious though, I think I’ll look into it, I’ll let you know if I found out why

1 Like

Hello

Calyx OS is down for at least a few month and the devs recommand to switch rom.

I am willing to switch for IodeOS.

However I am struggling to get back to FairphoneOS before installing IodeOS.

I habe unlocked my bootloader, but when I launch de script provided by official support, it detects my phone but does nothing, the output is below

>./flash_fp4_factory.sh

*** Fairphone 4 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)…
INFO: One Fairphone 4 in fastboot mode found (serial number: ********).

Any Idea how to make this script work?

Do you guys have any alternative suggestions to replace calyxos for fairphone?

Thanks !

Moved your post here, see above.

1 Like

Is this step needed?

I would directly move to the new target ROM.

Do you plan to close the bootloader?

2 Likes

Hello

I decided to try to move directly to IodeOS without reverting to stock rom before. The IodeOS installer did not finish and seem to freeze but after a few reboots, it now works.

Thanks for helping.

1 Like