Difference between revisions of "Sony Xperia E Dual (sony-nanhu)"

From postmarketOS
Jump to: navigation, search
m (CmdrWgls moved page Xperia-E-Dual to Sony Xperia E Dual (sony-nanhu): Device title format change.)
(Added infobox.)
Line 1: Line 1:
 
[[Category:Unsupported Devices]]
 
[[Category:Unsupported Devices]]
=== Contributors ===
+
[[Category:Devices]]
 +
{{Infobox device
 +
| manufacturer = Sony
 +
| name = Xperia E Dual
 +
| codename = nanhu
 +
| releaseyear = 2013
 +
| originalsoftware = Android 4.0.4 on Linux 3.0.1
 +
| cpu = Qualcomm MSM7227A Snapdragon S1
 +
| gpu = Adreno 200
 +
| storage = 4GB
 +
| display = 320x480 IPS
 +
| memory = 512MB
 +
}}
 +
== Contributors ==
  
 
* Nicknack
 
* Nicknack
  
=== What works ===
+
== What works ==
  
 
* Compiling the kernel
 
* Compiling the kernel
  
=== What does not work ===
+
== What does not work ==
  
 
* Flashing, there are problems with Sony's boot image format
 
* Flashing, there are problems with Sony's boot image format
Line 14: Line 27:
 
The built kernel boots with a black screen and no further sign of acitivity. Fastboot flashes without errors but flash offsets are probably wrong. Only known working kernels have a different ELF file format.
 
The built kernel boots with a black screen and no further sign of acitivity. Fastboot flashes without errors but flash offsets are probably wrong. Only known working kernels have a different ELF file format.
  
=== Boot image format ===
+
== Boot image format ==
  
 
There is one tool avaiable for unpacking Sony's ELF boot format into the normal ANDROID format:<br />
 
There is one tool avaiable for unpacking Sony's ELF boot format into the normal ANDROID format:<br />
Line 29: Line 42:
 
* https://books.google.de/books?id=2qo6AwAAQBAJ&pg=PA313&lpg=PA313&dq=sony+boot.img+format&source=bl&ots=0mtMMle9eZ&sig=adCVtfarXK9cticvd5qqYA6g39Y&hl=de&sa=X&ved=0ahUKEwjgp5mfx5XVAhUHWRQKHWSeDZcQ6AEIQzAB#v=onepage&q&f=false
 
* https://books.google.de/books?id=2qo6AwAAQBAJ&pg=PA313&lpg=PA313&dq=sony+boot.img+format&source=bl&ots=0mtMMle9eZ&sig=adCVtfarXK9cticvd5qqYA6g39Y&hl=de&sa=X&ved=0ahUKEwjgp5mfx5XVAhUHWRQKHWSeDZcQ6AEIQzAB#v=onepage&q&f=false
  
=== Next possible steps ===
+
== Next possible steps ==
  
 
* Try booting pmOS with a prebuilt kernel.
 
* Try booting pmOS with a prebuilt kernel.
Line 35: Line 48:
 
* UART debugging?
 
* UART debugging?
  
=== Links ===
+
== Links ==
  
 
* [https://github.com/Nicknack/pmOs_device_sony_nanhu Device package]
 
* [https://github.com/Nicknack/pmOs_device_sony_nanhu Device package]

Revision as of 22:46, 14 September 2017

Sony Xperia E Dual
[[|200px|alt=]]
Manufacturer Sony
Name Xperia E Dual
Codename nanhu
Released 2013
Original software Android 4.0.4 on Linux 3.0.1
Hardware
CPU Qualcomm MSM7227A Snapdragon S1
GPU Adreno 200
Display 320x480 IPS
Storage 4GB
Memory 512MB
Features
USB Networking
Flashing
Touchscreen
Display
WiFi
Xwayland
FDE
Mainline
Battery
3D Acceleration
Accelerometer
Audio
Bluetooth
Camera
GPS
Mobile data
SMS
Calls
USB OTG


Contributors

  • Nicknack

What works

  • Compiling the kernel

What does not work

  • Flashing, there are problems with Sony's boot image format

The built kernel boots with a black screen and no further sign of acitivity. Fastboot flashes without errors but flash offsets are probably wrong. Only known working kernels have a different ELF file format.

Boot image format

There is one tool avaiable for unpacking Sony's ELF boot format into the normal ANDROID format:
libbootimg

Sadly, even unpacking and repacking a working prebuilt kernel doesn't seem to work.

I had more luck with mkelf.py script from Sony. You can loosely follow the tutorial here. This time unpacking a working kernel elf image and repacking it with mkefl.py worked. Needed to change only a few bits with vbindiff. Now we only need to find a working set of offsets and image parts to do the same with a custom kernel!

Here are some links describing the problem with Sony's boot format:

Next possible steps

  • Try booting pmOS with a prebuilt kernel.
  • Try repacking built kernel into ELF format
  • UART debugging?

Links