[Xperia Z Android Development] joff_arris:
Flashing from Linux - Fallen at the first hurdle

Hello,

I'm struggling with FlashTool on openSUSE 12.3 (64bit) and wondering if anyone has any pointers. I can get FlashTool to recognise the phone (which is on the A.0.244 build), but when I tell it to flash the 0.423 file I get an error:

*** Error in `/usr/lib64/jvm/jre/bin/java': double free or corruption (fasttop): 0x00007f4034007690 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7abf6)[0x7f40c7583bf6]
/lib64/libc.so.6(+0x7b973)[0x7f40c7584973]
./x10flasher_lib/linux/lib64/libusbx-1.0.so(libusb_unref_device+0x7e)[0x7f40a41a7e8e]
./x10flasher_lib/linux/lib64/libusbx-1.0.so(libusb_open+0x159)[0x7f40a41a8a59]
/usr/lib64/libffi.so.4(ffi_call_unix64+0x4c)[0x7f40ac1acecc]
/usr/lib64/libffi.so.4(ffi_call+0x1ca)[0x7f40ac1ac95a]
/tmp/jna-joff/jna4149564490293830897.tmp(+0x8841)[0x7f40a43be841]
/tmp/jna-joff/jna4149564490293830897.tmp(Java_com_sun_jna_Native_invokeInt+0x20)[0x7f40a43becd0]
[0x7f40bd012738]

I can appreciate that this relates to my Java installation but beyond that I'm clueless.

I do have the option of trying this on a windows machine later today, but would rather not just for my own satisfaction so if anyone can shove me in the right direction I'd be grateful.

Cheers,

Joff.

[EDIT 2013-09-05, 14:35]

Have made some progress. Ran FlashToolConsole as su instead of the GUI and avoided the Java errors but cannot seem to get the phone to accept the 0.423 build. The log is pasted below. Can anyone see what is wrong? "Bootloader status : NOT_ROOTABLE" is the only thing that sticks out for me.

05/027/2013 14:27:16 - INFO - <- This level is successfully initialized
05/027/2013 14:27:16 - INFO - Flashtool Version 0.9.11.0 built on 2013-06-04 22:50:00
05/027/2013 14:27:16 - INFO - Choosed /home/joff/Downloads/Android/XperiaZ_Flashing/FlashTool/firmwares/XperiaZ_C660X_KernelOnly_10.3.A.0.423_Generic_NL.ftf
05/027/2013 14:27:16 - INFO - Preparing files for flashing
05/027/2013 14:27:16 - INFO - Preparing files for flashing
05/027/2013 14:27:16 - INFO - Please connect your phone in flash mode
05/027/2013 14:27:16 - INFO - Opening device for R/W
05/027/2013 14:27:16 - INFO - Device ready for R/W.
05/027/2013 14:27:16 - INFO - Reading device information
05/027/2013 14:27:16 - INFO - Phone ready for flashmode operations.
05/027/2013 14:27:16 - INFO - Current device : C6603 - CB5A1PUDV6 - 1270-4993_R13B - 1269-5309_10.3.1.A.0.244 - GLOBAL-LTE_10.3.1.A.0.244
05/027/2013 14:27:16 - INFO - Start Flashing
05/027/2013 14:27:16 - INFO - Processing loader
05/027/2013 14:27:16 - INFO - Checking header
05/027/2013 14:27:16 - INFO - Flashing data
05/027/2013 14:27:17 - INFO - Loader : S1_Root_5ca3 - Version : APQ8064_39 / Bootloader status : NOT_ROOTABLE
05/027/2013 14:27:17 - INFO - Ending flash session
05/027/2013 14:27:17 - INFO - Flashing finished.
05/027/2013 14:27:17 - INFO - Please unplug and start your phone
05/027/2013 14:27:17 - INFO - For flashtool, Unknown Sources and Debugging must be checked in phone settings

Just to confirm, Unknown Sources and Debugging are both checked. I've also tried in both MTP and MSC modes with identical results.

[/EDIT]

[EDIT]

Meh, gave up and did this on a windows machine. Was not sure it had worked as after flashing the build number in the "About Phone" section of the settings had not changed. Tried to go for the next step and.... success. It seems that expecting the build number to change to 10.3.1.A.0.423 was my mistake. Perhaps flashtool was working under linux after all.

[/EDIT]