Fairphone 5 install script stuck at "Sending 'bluetooth_a'"

I was following the install guide for the FP5 and everything went normal until I executed the install script which just came as far as Sending 'bluetooth_a' (3356 KB) and is just stuck there (waited for up to 30 min, it should take less than a second). I did both unlock steps and fastboot oem device-info returns:

(bootloader) Verity mode: true
(bootloader) Device unlocked: true
(bootloader) Device critical unlocked: true
(bootloader) Charger screen enabled: true

I can cancel the script in the terminal. When I do, lsusb is not listing the phone anymore. But after disconnect USB > Restart PC > Restart Bootloader on the Phone > reconnect it does see it again and, e.g. fastboot devices also lists it again.

The fact that the script gets as far as Sending 'bluetooth_a' also means that it was able to see the phone initially. I already repeated the procedure several times and also tried it with the community instead of the official build but there it is exactly the same.

I am afraid to do anything else than “restart bootloader” on the phone b/c of the possibility that it might brick the phone in this undefined state.

Do you have any idea what I could try to overcome this situation? Or can you think of a reason why it is getting stuck there reproducibly?

  • Is the previous version of /e/ for FP5 still available for download anywhere (officially)?
  • What would happen if I were to reboot the phone normally now? (And would I at least be able to get back into the bootloader?)
  • is there a danger of the phone running out of battery and not charging anymore? (happened to me with a tablet once which needed at least one .img (the recovery?) to be flashed correctly in order to charge)

Thanks a lot for any help :+1:

Edit: This is the Terminal output:

[jme@jme FP5]$ ./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)...
INFO: One Fairphone 5 in fastboot mode found (serial number: XXXXXXXX).
Info: Your phone is in regular bootloader mode.
Sending 'bluetooth_a' (3356 KB) 

Is the “Info: Your phone is in regular bootloader mode.” an issue?

it cannot charge in bootloader mode, but in recovery mode and normal mode

your device is currently untouched as Sending 'bluetooth_a' is the first step of the script :

Résumé

./flash_FP4_factory.sh 

*** Fairphone 4 flashing script ***

INFO: The procedure will start soon. Please wait...
Note that this will detect and flash only on FP4 device.
INFO: You are using a Linux distribution.
INFO: Looking for connected device(s)...
INFO: One Fairphone 4 in fastboot mode found (serial number: xxx).
Sending 'bluetooth_a' (940 KB)                     OKAY [  0.007s]
Writing 'bluetooth_a'                              OKAY [  0.012s]
Finished. Total time: 0.026s
Sending 'bluetooth_b' (940 KB)                     OKAY [  0.005s]
Writing 'bluetooth_b'                              OKAY [  0.011s]
Finished. Total time: 0.020s
Sending 'devcfg_a' (42 KB)                         OKAY [  0.001s]
Writing 'devcfg_a'                                 OKAY [  0.006s]
Finished. Total time: 0.011s
Sending 'devcfg_b' (42 KB)                         OKAY [  0.001s]
Writing 'devcfg_b'                                 OKAY [  0.006s]
Finished. Total time: 0.011s
Sending 'dsp_a' (65536 KB)                         OKAY [  0.314s]
Writing 'dsp_a'                                    OKAY [  0.286s]
Finished. Total time: 0.604s
Sending 'dsp_b' (65536 KB)                         OKAY [  0.298s]
Writing 'dsp_b'                                    OKAY [  0.213s]
Finished. Total time: 0.516s
Sending 'modem_a' (149596 KB)                      OKAY [  0.640s]
Writing 'modem_a'                                  OKAY [  0.508s]
Finished. Total time: 1.153s
Sending 'modem_b' (149596 KB)                      OKAY [  0.639s]
Writing 'modem_b'                                  OKAY [  0.515s]
Finished. Total time: 1.158s
Sending 'xbl_a' (3298 KB)                          OKAY [  0.017s]
Writing 'xbl_a'                                    OKAY [  0.018s]
Finished. Total time: 0.038s
Sending 'xbl_b' (3298 KB)                          OKAY [  0.016s]
Writing 'xbl_b'                                    OKAY [  0.023s]
Finished. Total time: 0.044s
Sending 'tz_a' (2944 KB)                           OKAY [  0.018s]
Writing 'tz_a'                                     OKAY [  0.018s]
Finished. Total time: 0.041s
Sending 'tz_b' (2944 KB)                           OKAY [  0.019s]
Writing 'tz_b'                                     OKAY [  0.018s]
Finished. Total time: 0.041s
Sending 'hyp_a' (399 KB)                           OKAY [  0.004s]
Writing 'hyp_a'                                    OKAY [  0.008s]
Finished. Total time: 0.016s
Sending 'hyp_b' (399 KB)                           OKAY [  0.003s]
Writing 'hyp_b'                                    OKAY [  0.007s]
Finished. Total time: 0.015s
Sending 'keymaster_a' (257 KB)                     OKAY [  0.003s]
Writing 'keymaster_a'                              OKAY [  0.007s]
Finished. Total time: 0.014s
Sending 'keymaster_b' (257 KB)                     OKAY [  0.002s]
Writing 'keymaster_b'                              OKAY [  0.006s]
Finished. Total time: 0.012s
Sending 'abl_a' (148 KB)                           OKAY [  0.002s]
Writing 'abl_a'                                    OKAY [  0.006s]
Finished. Total time: 0.011s
Sending 'abl_b' (148 KB)                           OKAY [  0.001s]
Writing 'abl_b'                                    OKAY [  0.006s]
Finished. Total time: 0.011s
Sending 'boot_a' (98304 KB)                        OKAY [  0.443s]
Writing 'boot_a'                                   OKAY [  0.373s]
Finished. Total time: 0.822s
Sending 'boot_b' (98304 KB)                        OKAY [  0.437s]
Writing 'boot_b'                                   OKAY [  1.393s]
Finished. Total time: 1.836s
Sending 'recovery_a' (98304 KB)                    OKAY [  0.547s]
Writing 'recovery_a'                               OKAY [  0.405s]
Finished. Total time: 0.955s
Sending 'recovery_b' (98304 KB)                    OKAY [  0.552s]
Writing 'recovery_b'                               OKAY [  0.363s]
Finished. Total time: 0.917s
Sending 'dtbo_a' (24576 KB)                        OKAY [  0.142s]
Writing 'dtbo_a'                                   OKAY [  0.088s]
Finished. Total time: 0.233s
Sending 'dtbo_b' (24576 KB)                        OKAY [  0.144s]
Writing 'dtbo_b'                                   OKAY [  0.094s]
Finished. Total time: 0.242s
Sending 'vbmeta_system_a' (4 KB)                   OKAY [  0.001s]
Writing 'vbmeta_system_a'                          OKAY [  0.005s]
Finished. Total time: 0.010s
Sending 'vbmeta_system_b' (4 KB)                   OKAY [  0.001s]
Writing 'vbmeta_system_b'                          OKAY [  0.005s]
Finished. Total time: 0.009s
Sending 'vbmeta_a' (8 KB)                          OKAY [  0.001s]
Writing 'vbmeta_a'                                 OKAY [  0.005s]
Finished. Total time: 0.010s
Sending 'vbmeta_b' (8 KB)                          OKAY [  0.001s]
Writing 'vbmeta_b'                                 OKAY [  0.005s]
Finished. Total time: 0.010s
Sending sparse 'super' 1/11 (262140 KB)            OKAY [  1.352s]
Writing 'super'                                    OKAY [  1.480s]
Sending sparse 'super' 2/11 (258052 KB)            OKAY [  1.173s]
Writing 'super'                                    OKAY [  1.447s]
Sending sparse 'super' 3/11 (262142 KB)            OKAY [  1.291s]
Writing 'super'                                    OKAY [  0.810s]
Sending sparse 'super' 4/11 (262143 KB)            OKAY [  1.144s]
Writing 'super'                                    OKAY [  0.894s]
Sending sparse 'super' 5/11 (251179 KB)            OKAY [  1.489s]
Writing 'super'                                    OKAY [  0.829s]
Sending sparse 'super' 6/11 (261236 KB)            OKAY [  1.249s]
Writing 'super'                                    OKAY [  0.814s]
Sending sparse 'super' 7/11 (259644 KB)            OKAY [  1.467s]
Writing 'super'                                    OKAY [  0.831s]
Sending sparse 'super' 8/11 (259076 KB)            OKAY [  1.423s]
Writing 'super'                                    OKAY [  1.459s]
Sending sparse 'super' 9/11 (257971 KB)            OKAY [  1.458s]
Writing 'super'                                    OKAY [  1.462s]
Sending sparse 'super' 10/11 (255484 KB)           OKAY [  1.384s]
Writing 'super'                                    OKAY [  0.853s]
Sending sparse 'super' 11/11 (93552 KB)            OKAY [  0.407s]
Writing 'super'                                    OKAY [  1.001s]
Finished. Total time: 25.777s
Sending 'aop_a' (174 KB)                           OKAY [  0.003s]
Writing 'aop_a'                                    OKAY [  0.004s]
Finished. Total time: 0.011s
Sending 'aop_b' (174 KB)                           OKAY [  0.002s]
Writing 'aop_b'                                    OKAY [  0.003s]
Finished. Total time: 0.009s
Sending 'featenabler_a' (84 KB)                    OKAY [  0.002s]
Writing 'featenabler_a'                            OKAY [  0.003s]
Finished. Total time: 0.007s
Sending 'featenabler_b' (84 KB)                    OKAY [  0.001s]
Writing 'featenabler_b'                            OKAY [  0.003s]
Finished. Total time: 0.007s
Sending 'imagefv_a' (524 KB)                       OKAY [  0.004s]
Writing 'imagefv_a'                                OKAY [  0.004s]
Finished. Total time: 0.011s
Sending 'imagefv_b' (524 KB)                       OKAY [  0.004s]
Writing 'imagefv_b'                                OKAY [  0.008s]
Finished. Total time: 0.015s
Sending 'multiimgoem_a' (13 KB)                    OKAY [  0.001s]
Writing 'multiimgoem_a'                            OKAY [  0.005s]
Finished. Total time: 0.010s
Sending 'multiimgoem_b' (13 KB)                    OKAY [  0.001s]
Writing 'multiimgoem_b'                            OKAY [  0.006s]
Finished. Total time: 0.011s
Sending 'qupfw_a' (53 KB)                          OKAY [  0.001s]
Writing 'qupfw_a'                                  OKAY [  0.006s]
Finished. Total time: 0.011s
Sending 'qupfw_b' (53 KB)                          OKAY [  0.001s]
Writing 'qupfw_b'                                  OKAY [  0.006s]
Finished. Total time: 0.010s
Sending 'uefisecapp_a' (121 KB)                    OKAY [  0.002s]
Writing 'uefisecapp_a'                             OKAY [  0.006s]
Finished. Total time: 0.012s
Sending 'uefisecapp_b' (121 KB)                    OKAY [  0.002s]
Writing 'uefisecapp_b'                             OKAY [  0.006s]
Finished. Total time: 0.012s
Sending 'xbl_config_a' (94 KB)                     OKAY [  0.001s]
Writing 'xbl_config_a'                             OKAY [  0.007s]
Finished. Total time: 0.013s
Sending 'xbl_config_b' (94 KB)                     OKAY [  0.001s]
Writing 'xbl_config_b'                             OKAY [  0.007s]
Finished. Total time: 0.012s
Sending 'core_nhlos_a' (111884 KB)                 OKAY [  0.561s]
Writing 'core_nhlos_a'                             OKAY [  0.405s]
Finished. Total time: 0.971s
Sending 'core_nhlos_b' (111884 KB)                 OKAY [  0.653s]
Writing 'core_nhlos_b'                             OKAY [  0.419s]
Finished. Total time: 1.076s
Erasing 'userdata'                                 OKAY [  0.709s]
Finished. Total time: 0.711s
Erasing 'metadata'                                 OKAY [  0.004s]
Finished. Total time: 0.007s
Setting current slot to 'a'                        OKAY [  0.036s]
Finished. Total time: 0.037s
-----------

INFO: Done. The device will reboot now.
Rebooting                                          OKAY [  0.000s]
Finished. Total time: 0.804s

INFO: You can unplug the USB cable now.

fastboot mode could be required…

(To get to fastboot mode, press Volume-Down and plug in the USB-C)

hey, thanks a lot @piero !
in the guide fastboot mode and bootloader mode are used interchangeably, e.g.:

  1. “Boot into bootloader/fastboot mode.”

So I think that this is where I already am. From there fastboot commands do work (e.g. fastboot oem device-info) so this should be fine?

your output :

Info: Your phone is in regular bootloader mode.

an unofficial way is to use TWRP,

Download twrp-3.7.1_12-0-FP5.img

fastboot boot twrp.img

then install this file :

e-2.4.1-t-20241008439851-official-FP5.zip
(instead of IMG-e-2.4.1-t-20241008439851-official-FP5.zip)
.
.
documentation :

TWRP for Fairphone 5 - Development - Fairphone Community Forum
.

https://twrp.me/fairphone/fairphone5.html
.
https://gerrit.twrp.me/plugins/gitiles/twrpme/+/refs/heads/master/_includes/fastbootabinstall.html

hey thanks a lot again! still reading through the links you posted.

TWRP: I thought that is not supported since FP 3 or 4? – are you sure it would work?

Also, do you know if there are older images of previous /e/ versions available for FP5? e.g. 2.3.x? (I should maybe avoid 2.4.0 b/c of the issue they had with the update process?)

Yes, but I also have this, just one line above:

INFO: One Fairphone 5 in fastboot mode found (serial number: XXXXXXXX).

Looking at the script it would ouput either “Info: Your phone is in fastbootD mode.” or “Info: Your phone is in regular bootloader mode.” so maybe this is just in the newest version of the script?

The function in question
# Check if the device is properly unlocked
check_unlock_status() {
  PHONE_IS_READY=true
  if (fastboot getvar is-userspace 2>&1 | grep -q yes); then
    echo "Info: Your phone is in fastbootD mode."
    if (fastboot getvar unlocked 2>&1 | grep -q no); then
      echo "Error: Your phone is still locked."
      echo "Did you execute 'fastboot flashing unlock'?"
      PHONE_IS_READY=false
    fi
  else
    echo "Info: Your phone is in regular bootloader mode."
    if (fastboot getvar unlocked 2>&1 | grep -q no); then
      echo "Error: Your phone is still locked."
      echo "Did you execute 'fastboot flashing unlock'?"
      PHONE_IS_READY=false
    fi
    if (fastboot oem device-info 2>&1 | grep -q "critical unlocked: false"); then
      echo "Error: Critical partitions are still locked."
      echo "Did you execute 'fastboot flashing unlock_critical'?"
      PHONE_IS_READY=false
    fi
  fi

  if [ "$PHONE_IS_READY" = "false" ]; then
    echo "Error: Your phone is not ready for flashing yet (see above), aborting..."
    exit 1
  fi
}
1 Like

Search results for 'Sending 'bluetooth_a' order:latest_topic' - /e/OS community

currently not on /e/ servers due to the october outage…

Feedback for v2.4.1 - #6 by urs_lesse
Feedback for v2.4.1 - #11 by Jona
Feedback for v2.4.1 - #14 by Yogi
Feedback for v2.4.1 - #20 by herrthees

1 Like

hey thanks one more time :+1:

i managed to solve it now. I needed to be in the fastbootD mode (haha, actually see the code I posted before) and then some further detours… well described in the thread i linked here…

1 Like

This topic was automatically closed after 90 days. New replies are no longer allowed.