account arrowhead-down arrowhead-up mobile-menu search sm-bold-x x-skinny-rounded x-skinny arrowhead-right social-facebook social-googleplus social-instagram social-linkedin social-pinterest social-qzone social-renren social-tencent social-twitter social-vkontakt social-weibo social-youku social-youtube

Please help us improve our website

Take our customer survey to evaluate your visit.

It should only take a few minutes to answer five quick questions. Just click the Launch survey button at the end of your visit to begin.

cancel
Showing results for 
Search instead for 
Did you mean: 
Welcome to the Open Devices community!

This is where we discuss open source and development related questions on our Open Devices initiative.

can't flash the new oem binaries image

Learner
Message 1 of 8
3,353 Views
Message 1 of 8

can't flash the new oem binaries image

Is there any step I've misssed to  flash the 

SW_binaries_for_Xperia_AOSP_O_MR0_4.4_v02_tone.img for my  Xperia XZ ?

 

log ( run as root):
fastboot flash oem SW_binaries_for_Xperia_AOSP_O_MR0_4.4_v02_tone.img
target reported max download size of 268435456 bytes
sending 'oem' (212596 KB)...
OKAY [ 9.656s]
writing 'oem'...
FAILED (remote: Command not allowed)
finished. total time: 9.670s

 

shasum from zip checked

7 REPLIES 7
Developer World
Message 2 of 8
3,309 Views
Message 2 of 8

Re: can't flash the new oem binaries image

Hi,

 

unfortunately to fix this issue you have to wait for the next Sony software release because a bootloader update is needed

 

The hacky option is you want to test the image is to

1. convert the sparse vendor image to a regular ext4 image

2. copy the regular ext4 image to the data partition

3. flash the regular ext4 image to the oem partition using dd

 

Regards

Alin

 

Apprentice
Message 3 of 8
3,242 Views
Message 3 of 8

Re: can't flash the new oem binaries image

I caught a typo in a prior post and was able to reach the adb push step but I get errors trying to write to the device.  I have not been able to upgrade beyond the stock rom since the Xperia flash tool does not show anything newer.  I'm using the XZ Premium dual sim FR version.

 

# ../adb push * /odm/
adb: error: failed to copy 'bin/adsprpcd' to '/odm/bin/adsprpcd': remote secure_mkdirs failed: Read-only file system
adb: error: failed to copy 'firmware/a530_pfp.fw' to '/odm/firmware/a530_pfp.fw': couldn't read from device
adb: error: failed to send ID_SEND message '/odm/lib/libC2D2.so,33188': Success
adb: error: failed to send ID_SEND message '/odm/lib64/libC2D2.so,33188': Success
adb: warning: skipping empty directory 'lost+found/'
lost+found/: 0 files pushed. 1 file skipped.
0 files pushed. 1 file skipped. 1.3 MB/s (22156 bytes in 0.016s)

 

Update:

I used some grey market tools download and flash 45.0.A.7.137 before successfully trying the oem img again, but I would still like to know the proper way to do it within the confines of AOSP and official support.

Message 4 of 8
3,207 Views
Message 4 of 8

Re: can't flash the new oem binaries image

Hello,

 

You need to remount the /odm partition to be writable, and I edited my previous post to reflect this. The same steps apply for the XZ Premium Dual, model no. G8142.

 

Regards,

Dimitar

Developer World
Message 5 of 8
3,177 Views
Message 5 of 8

Re: can't flash the new oem binaries image

Hi,

 

as I wrote in my previous post, you are not supposed to use adb to push independent files.

 

If you use adb you will lose both permissions and selinux lables and device will not boot corectly

 

Regards

Alin

 

Visitor
Message 6 of 8
2,048 Views
Message 6 of 8

Re: can't flash the new oem binaries image

Hi friends.

I really want to know , if SW_binaries_for_Xperia_Android equals the file named ODM?

Is it has anotner name called vendor?

When I flash Omni rom and AOSP, I was asked to flash SW_binaries too.

When I try to build Lineage or other rom, I was asked to provide vendor.

So I wonder if they are the same thing.

If so, can I build Lineage rom without vendor? For I can flash vendor additionally after flashing Lineage.

Or do I need to write some code to extract vendor from my device?

thanks!

hope your reply.

Visitor
Message 7 of 8
2,020 Views
Message 7 of 8

Re: can't flash the new oem binaries image

Sony AOSP build page shows OEM (as shown below) , is it odm or oem?

 

fastboot flash oem SW_binaries_for_Xperia_AOSP_O_MR0_4.4_<release version>_<platform>.img

 

 

Developer World
Message 8 of 8
1,984 Views
Message 8 of 8

Re: can't flash the new oem binaries image

Hi

please use the Sony Flashtool to update your device then you can flash the oem partition as it is described in the guide

https://developer.sonymobile.com/open-devices/flash-tool/

 

Regards

Alin