Jump to content


Photo

Building CM7 for the ZTE Tureis

- - - - -

  • Please log in to reply
27 replies to this topic

#21
hecatae

hecatae

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 3,253 posts
  • Gender:Male
  • Location:northampton
  • Devices:Moto E
cyanogen_tureis.mk

# Inherit AOSP device configuration for tureis.
$(call inherit-product, device/zte/tureis/device_tureis.mk)

# Inherit some common cyanogenmod stuff.
$(call inherit-product, vendor/cyanogen/products/common_full_no_themes.mk)

# Include GSM stuff
$(call inherit-product, vendor/cyanogen/products/gsm.mk)

#
# Setup device specific product configuration.
#
PRODUCT_NAME := cyanogen_tureis
PRODUCT_BRAND := zte
PRODUCT_DEVICE := tureis
PRODUCT_MODEL := Tureis
PRODUCT_MANUFACTURER := ZTE
PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=blade BUILD_ID=GRJ22 BUILD_FINGERPRINT=google/passion/passion:2.3.4/GRJ22/121341:user/release-keys PRIVATE_BUILD_DESC="passion-user 2.3.4 GRJ22 121341 release-keys"

# Add LDPI assets, in addition to MDPI
PRODUCT_LOCALES += ldpi mdpi

# Extra overlay for LDPI
PRODUCT_PACKAGE_OVERLAYS += vendor/cyanogen/overlay/ldpi

# Release name and versioning
PRODUCT_RELEASE_NAME := Tureis
PRODUCT_VERSION_DEVICE_SPECIFIC :=
-include vendor/cyanogen/products/common_versions.mk

#
# Copy legend specific prebuilt files
#
PRODUCT_COPY_FILES +=  \
    vendor/cyanogen/prebuilt/ldpi/media/bootanimation.zip:system/media/bootanimation.zip

got to here:
make: *** No rule to make target `vendor/zte/tureis/proprietary/libloc_api-rpcqc.so', needed by `out/target/product/tureis/system/lib/libloc_api-rpcqc.so'. Stop.
make: *** Waiting for unfinished jobs....

using your sources

  • 0

#22
schmatzler

schmatzler

    Regular

  • Members
  • PipPip
  • 61 posts
I don't have a vendor folder, everything is happening in the device folder. The proprietaries are also in the device folder.

Did you run the extract-files or setup-makefiles script? I did not update them.

  • 0

#23
hecatae

hecatae

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 3,253 posts
  • Gender:Male
  • Location:northampton
  • Devices:Moto E
that probably explains where I went wrong.

so I'll better update those scripts then

  • 0

#24
schmatzler

schmatzler

    Regular

  • Members
  • PipPip
  • 61 posts
I'm getting to the end!

LED notifications work flawlessly. Bluetooth finally works again (had to use precompiled hciattach because this one fires up the broadcom stack), Wifi works flawlessly. 2G and 3G work and get APN settings automatically from my provider (which isn't possible in the stock ROM). I also updated the GL drivers for the Adreno 200 and Angry Birds is not lagging anymore. This is simply awesome! :)

Just two major flaws and two minor flaws are remaining:

- Microphone is not working. It cannot open the source
- I'm getting GL errors when viewing videos. Audio works, video is a white screen

- FM Radio isn't working. I get static but I cannot seek. I'm playing with the FM radio config, should work.
- Sensor not working. Precompiled libsensors is uploaded to the device, but nothing happens when I turn the screen 90 degrees. Damn.

When I've solved the microphone issue and the video issue I will post a first release. Stay tuned!

  • 0

#25
hecatae

hecatae

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 3,253 posts
  • Gender:Male
  • Location:northampton
  • Devices:Moto E
is usb tethering working?

  • 0

#26
schmatzler

schmatzler

    Regular

  • Members
  • PipPip
  • 61 posts

is usb tethering working?


As far as I know, hostapd is required for this and it is not yet included in my build.

But: I managed to solve the microphone issue now. Finally. Took me ages to do that. I am able to take a phone call now. Wohoo :)

I just have to solve the white screen on videos...and to investigate why the SYM-Key isn't working. They defined it as SYM1 in the .kl file, I renamed it to SYM to comply with Androids standards but still no reaction. Maybe it's something in the .kcm.bin.

When I found out these two errors I will release the first build. Just give me a little more time :) By the way: I got 130 Megs of free internal storage now with this build. Totally rocks.

Edit: This one should fix the SYM key problem. Yes I'm near the end.

Edited by schmatzler, 09 June 2013 - 11:08 PM.

  • 0

#27
hecatae

hecatae

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 3,253 posts
  • Gender:Male
  • Location:northampton
  • Devices:Moto E
wow impressed with your work.

  • 0

#28
schmatzler

schmatzler

    Regular

  • Members
  • PipPip
  • 61 posts

I'm back!

 

Still can't afford a new phone so I tried to port CM 10.1 to this device.

 

The biggest problem is the fact, that /system and /data need to be formatted for ext4 and the original kernel has no ext4 support.

 

At the moment I was able to build a custom kernel with ext4 support that can fire up CWM6 - and it does!

 

But even CWM6 is not formatting these partitions for ext4, I will have to examine that.

 

When I fixed this, I need to see how I can load up an ext4 module at boot time with the original kernel. It is a hell of a mess, but without the original kernel we would have no camera.

 

I hope I can get it to the end this time. See the promising attached image :)

 

Attached File  DSC_2066.JPG   66.71KB   0 downloads


Edited by schmatzler, 20 December 2013 - 11:46 AM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users