Command line install of IMG-e-2.6.3-u-20241218455570-community-FP3.zip

Mothboy@fedora:~/Downloads/IMG-e-2.6.3-u-20241218455570-community-FP3$ chmod +x flash_FP3_factory.sh && ./flash_FP3_factory.sh

*** Fairphone 3 flashing script ***

INFO: The procedure will start soon. Please wait…
Note that this will detect and flash only on FP3 or FP3+ devices.
INFO: You are using a Linux distribution.
INFO: Looking for connected device(s)…
INFO: One Fairphone 3 in fastboot mode found (serial number: A209JH7E0201).

WARNING: Flashing this image wipes all user data and settings on the phone.
Are you sure you want to wipe data and continue?

Type “Yes” (case sensitive) and press enter to wipe data and continue. Else, just press enter: Yes

WARNING: You typed “Yes”, proceeding with data wipe.
fastboot: error: cannot load ‘/home/Mothboy/Downloads/IMG-e-2.6.3-u-20241218455570-community-FP3/modem.img’: No such file or directory

ERROR: Could not flash the modem_a partition on device A209JH7E0201.

ERROR: Please unplug the phone, take the battery out, boot the device into
ERROR: fastboot mode, and start this script again.
ERROR: (To get to fastboot mode, press Volume-Down and plug in the USB-C)
ERROR: (cable until the fastboot menu appears.)

ERROR: Aborting now (press Enter to terminate).^C
Mothboy@fedora:~/Downloads/IMG-e-2.6.3-u-20241218455570-community-FP3$

This is what i get when is try to install Android 14 via the command line. I think something is missing in the install file.
I can install the Android 13 official whitout a problem but the community Android 14 always give the above error.

Please can you ls -al the contents of the extracted folder, or use a file manager, does modem.img appear to be missing ??

and / or did you check the sha256sum of your download ?

hello @Mothboy

what is the current version installed ?

Guess not, then.
You could compare the images in the ZIP file with the images the script is trying to flash and delete or comment out the script lines trying to flash images which aren’t there.

The overall size of the data still checks out compared to prior builds, so it could well be nothing is really missing, just that the partitions and what they contain got rearranged and the script didn’t get adapted accordingly, but I don’t know.

Pinging @Manoj … IMG-e-2.6.3-u-20241218455570-community-FP3.zip seems to fail to install via command line.

Checksum is OK.
Mothboy@fedora:~/Downloads$ md5sum IMG-e-2.6.3-u-20241218455570-community-FP3.zip
262cc1f3c022e965bd192ddc65844699 IMG-e-2.6.3-u-20241218455570-community-FP3.zip

These are the files and folders in the unzipped IMG-e-2.6.3-u-20241218455570-community-FP3

I see no recent change in the master flash_FP3_factory.sh so I assume the script will attempt

  flash_image_ab_or_abort "${sn}" modem "${IMAGES_DIR}/modem.img"
  flash_image_ab_or_abort "${sn}" sbl1 "${IMAGES_DIR}/sbl1.img"
  flash_image_ab_or_abort "${sn}" rpm "${IMAGES_DIR}/rpm.img"
  flash_image_ab_or_abort "${sn}" tz "${IMAGES_DIR}/tz.img"
  flash_image_ab_or_abort "${sn}" devcfg "${IMAGES_DIR}/devcfg.img"
  flash_image_ab_or_abort "${sn}" dsp "${IMAGES_DIR}/dsp.img"
  flash_image_ab_or_abort "${sn}" aboot "${IMAGES_DIR}/aboot.img"

  flash_image_ab_or_abort "${sn}" boot "${IMAGES_DIR}/boot.img"
  flash_image_ab_or_abort "${sn}" dtbo "${IMAGES_DIR}/dtbo.img"
  flash_image_ab_or_abort "${sn}" system "${IMAGES_DIR}/system.img"
  flash_image_ab_or_abort "${sn}" vbmeta "${IMAGES_DIR}/vbmeta.img"
  flash_image_ab_or_abort "${sn}" vendor "${IMAGES_DIR}/vendor.img"
  flash_image_ab_or_abort "${sn}" mdtp "${IMAGES_DIR}/mdtp.img"
  flash_image_ab_or_abort "${sn}" lksecapp "${IMAGES_DIR}/lksecapp.img"
  flash_image_ab_or_abort "${sn}" cmnlib "${IMAGES_DIR}/cmnlib.img"
  flash_image_ab_or_abort "${sn}" cmnlib64 "${IMAGES_DIR}/cmnlib64.img"
  flash_image_ab_or_abort "${sn}" keymaster "${IMAGES_DIR}/keymaster.img"

from your image we can see why it always fails and aborts at the first line.

Is just as said

A case for Report an issue

IMG-e-2.5-t-20241111446827-community-FP3.zip

Hi,

I have exactly the same problem.
Have you reported the issue (so I don’t create a new one for the same…)?

Best regards,

I didn’t report the issue at the moment, so feel free to report it.
I don’t have a Gitlab account.

Hi,

I have reported the issue:

1 Like

for a new device, i would recommand to use the most complete/recent T based
IMG-e-X.X-t..........FP3.zip,
installed by using the included script…

then an upgrade to U using the latest OTA file
e-X.X-u..........FP3.zip
installed by recovery and adb sideload

.

only difference between
the IMG-e-..............FP3.zip and the e-.............FP3.zip
from the same build
is that the e-.............FP3.zip don’t embed any userdata.img to replace the existing one
so e-.............FP3.zip preserve the /data partition

If interested in using a script to complete the installation please check the linked post.

1 Like

Downloaded IMG-e-2.7-u-20250110460550-community-FP3 and tried to install it but it gives the same error ( see my first post above) as the IMG-e-2.6.3-u-20241218455570-community-FP3.
Opened the flash_FP3_factory.sh from the IMG-e-2.6.3-u-20241218455570-community-FP3 image in my texteditor, deleted the content and copied the script code into the file as mentioned.

Did the install via the command line and it worked flawlessly.
Rebooted phone and installed the 2.7 update directly.

@Manoj Thanks for giving a quick solution and thanks to your developer.

2 Likes