Xperia Tama flashing: troubleshooting

Hi Rinigus and other Tama porters. I’m trying to flash an xz2c and initially I got the message “fastboot: error: cannot get boot partition size”. I redownloaded the image file and now I get “The supported Sony Vendor partition image wasn’t found in the current directory.
Please download it from
Ensure you download the supported version of the image found under:
“Software binaries for AOSP Pie (Android 9.0) - Kernel 4.9 - Tama”
and unzip it into this directory.”
The binary I used was “SW_binaries_for_Xperia_Android_10.0.7.1_r1_v12a_tama.img”…any suggestions? TIA

Which version do you try to flash? We have alpha for AOSP10 based port and released one for AOSP9 based port. For AOSP10, you need the binary that you have. For AOSP9, find the one for it

I’m trying to flash sfos and now I’m getting confused. The flashing instructions say to use the binaries for aosp10, the device is updated to android 10. Is there a way to find which binary is the correct one, or is that trial and error?

You read flashing instructions for AOSP10 build, in non-default branch. As you go for AOSP9 based one, see main/ at master · sailfishos-sony-tama/main · GitHub

It seems at this stage that the previous owner may have interfered with the bootloader in some way. I’m trying to reflash or repair wirh xperia companion but can’t because the bootloader is locked. I can’t relock because …"adb reboot bootloader

  • daemon not running; starting now at tcp:5037
  • daemon started successfully
    error: no devices/emulators found" and vol down + power doesn’t enter recovery. Any ideas?

Get to fastboot mode:

  • shutdown device, remove USB if attached
  • hold vol up while you insert USB into the phone

It should boot into fastboot mode and you can access using “fastboot” command. For example, fastboot devices

Then you can follow instructions on how to flash. In this case, make sure you

  • follow correct branch of the flashing document,
  • run fastboot reboot-bootloader before flashing. This will prevent one fastboot bug from interfering.

Thank you Rinigus for your patience. The secret was fastboot reboot-bootloader which I had tried before but without the dash. Everything seems fine except the camera doesn’t react well to high contrasts.
Thanks again for all your work.

Great to hear. Beware that we may switch to AOSP10 based port (for better camera, but with other issues). This would require full reflash of SFOS.