[ROM][WT88047][L][5.1.1] CyanogenMod unofficial builds

Search This thread

Top Liked Posts

  • There are no posts matching your filters.
  • 40
    CyanogenMod is a free, community built, aftermarket firmware distribution of Android 5.1.x (Lollipop), which is designed to increase performance and reliability over stock Android for your device.

    Code:
    /*
     * Your warranty is now void.
     *
     * I am not responsible for bricked devices, dead SD cards, dead cats,
     * thermonuclear war, or you getting fired because the alarm app failed.  
     * YOU are choosing to make these modifications, and if
     * you point the finger at me for messing up your device, I will break it! [emoji14]
     * Act accordingly
     */

    CyanogenMod is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    The source code for CyanogenMod is available in the CyanogenMod Github repo. And if you would like to contribute to CyanogenMod, please visit our Gerrit Code Review. You can also view the Changelog for a full list of changes & features.

    Important information:
    This thread is for CyanogenMod 12.1 opensource builds for Wingtech WT88047, marketed as Redmi 2 by Xiaomi. The following will not be supported in this thread:
    - Custom Kernels
    - Mods
    - Modified system files
    - Xposed

    Instructions:
    Comprehensive installation instructions for CM on Wingtech WT88047 can be found on the CyanogenMod Wiki: http://wiki.cyanogenmod.org/w/Install_CM_for_rendang

    Issues?
    Experience issues? Please provide the following info:
    • If the device was hard reboot, please provide the file "/sys/fs/pstore/console-ramoops".
    • If the device was soft reboot or is "bootlooping", please run a logcat and provide the full output.
    • Please use Pastebin when possible.

    Download Links:
    Google Drive: https://goo.gl/zhGZjQ
    AFH: https://goo.gl/5sqZGp
    EmfoxZhou's build: https://goo.gl/iQNZjC

    I would like to thank everyone involved in helping with testing, coding, debugging & documenting! Enjoy!

    Known Issues:
    • Both back and front camera not working
    • Sound out from both speaker and headset
    • Compass chip Yamaha YAS537 known not supported, Asahi Kasei Microdevices AKM09911 working flawlessly
    • Use VOL UP + VOL DOWN + POWER button to enter recovery mode
    • At the start of video or any stereo recording, audio noise in about 5 seconds. Please use a different camera app and set audio format to AMR-NB (mono)
    • If you experiencing a random freeze, tell me your MMC type. You can check it using "dmesg | grep mmcblk0" command as root. Known chip in Redmi 2 variant:
      • Redmi 2 8 GB:
        • H8G2d 7.28 GiB - Hynix - inside my Redmi 2, no freeze
        • QN1SMB 7.28 GiB - Samsung
        • P1J95K 7.29 GiB - Numonyx Micron - reported random freeze
      • Redmi 2 16 GB:
        • HAG2e 14.6 GiB - Hynix
        • R1J96N 14.6 GiB - Numonyx Micron

    XDA:DevDB Information
    [ROM][WT88047][L][5.1.1] CyanogenMod unofficial builds, ROM for Wingtech WT88047 devices (see above for details)

    Contributors
    ketut.kumajaya, @zwliew
    Source Code: https://github.com/kumajaya/android_device_wingtech_wt88047

    ROM OS Version: 5.1.x Lollipop
    ROM Kernel: Linux 3.10.x
    Based On: CyanogenMod

    Version Information
    Status: Beta

    Created 2015-09-14
    Last Updated 2015-12-23
    14
    Initial development thread: http://en.miui.com/thread-148731-1-1.html

    A great how to: http://forum.xda-developers.com/and.../how-to-convert-qualcomms-dtb-to-dts-t3221223

    Xiaomi still refuse to release Redmi 2 kernel source, they continue violate the GPL accompanied by ex. Google Hugo Barra.

    I believe more than one hardware revision available out there, luckily this port working smoothly on my own Redmi 2 device. Some facts:
    • Compass chip Yamaha YAS537 known not supported, Asahi Kasei Microdevices AKM09911 working flawlessly
    • I'm afraid Wingtech use a different battery charger management chip on selected model, SMB13x chip supported
    • My device model HM2014817 1GB RAM, board revision S88047E1, R61308 LCD driver with AUO3.5 LCD panel, AKM09911 compass chip

    Current manifest:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <manifest>
      <project name="kumajaya/android_device_wingtech_wt88047" path="device/wingtech/wt88047" remote="github" revision="cm-12.1" />
      <project name="kumajaya/android_kernel_cyanogen_msm8916" path="kernel/cyanogen/msm8916" remote="github" revision="cm-12.1-amss-2.1-wt88047" />
      <project name="kumajaya/proprietary_vendor_wingtech" path="vendor/wingtech" remote="github" revision="cm-12.1" />
      <project name="kumajaya/android_device_cyanogen_msm8916-common" path="device/cyanogen/msm8916-common" remote="github" revision="cm-12.1" />
      <project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" />
      <project name="kumajaya/android_packages_apps_SnapdragonCamera" path="packages/apps/SnapdragonCamera" remote="github" revision="cm-12.1" />
    </manifest>
    13
    20160318 build available at Drive.
    9
    Camera status

    Kernel space:
    • Camera eeprom loaded
    • Both back and front camera module loaded
    • All nodes (v4l-subdev*, video0, video1) registered to /dev successfully
    User space:
    Camera server sub module (imglib) crash, kernel space stopped because of user space problem

    Logcat output:
    Code:
    --------- beginning of crash
    F/libc    (  262): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 2888 (mct_pipe_start)
    I/DEBUG   (  249): property debug.db.uid not set; NOT waiting for gdb.
    I/DEBUG   (  249): HINT: adb shell setprop debug.db.uid 100000
    I/DEBUG   (  249): HINT: adb forward tcp:5039 tcp:5039
    I/DEBUG   (  249): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    I/DEBUG   (  249): Build fingerprint: 'Xiaomi/2014811/HM2014811:4.4.4/KTU84P/V6.6.7.0.KHJMICF:user/release-keys'
    I/DEBUG   (  249): Revision: '0'
    I/DEBUG   (  249): ABI: 'arm'
    I/DEBUG   (  249): pid: 262, tid: 2888, name: mct_pipe_start  >>> /system/bin/mm-qcamera-daemon <<<
    I/DEBUG   (  249): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
    I/DEBUG   (  249):     r0 b7db57f8  r1 00000001  r2 b7db5860  r3 00000000
    I/DEBUG   (  249):     r4 b7db57f8  r5 b6ea3db7  r6 b6468d84  r7 00000001
    I/DEBUG   (  249):     r8 b7db57f8  r9 b7dbb418  sl b6e4f475  fp b6468dd0
    I/DEBUG   (  249):     ip b6ebbeb8  sp b6468d28  lr b6ea3dc7  pc 00000000  cpsr a0000010
    I/DEBUG   (  249): 
    I/DEBUG   (  249): backtrace:
    I/DEBUG   (  249):     #00 pc 00000000  <unknown>
    I/DEBUG   (  249):     #01 pc 00007dc5  /system/vendor/lib/libmmcamera2_imglib_modules.so
    I/DEBUG   (  249):     #02 pc 00006297  /system/vendor/lib/liboemcamera.so (mct_list_traverse+26)
    I/DEBUG   (  249):     #03 pc 000062b9  /system/vendor/lib/liboemcamera.so (mct_list_traverse+60)
    I/DEBUG   (  249):     #04 pc 000062b9  /system/vendor/lib/liboemcamera.so (mct_list_traverse+60)
    I/DEBUG   (  249):     #05 pc 000084f3  /system/vendor/lib/libmmcamera2_imglib_modules.so
    I/DEBUG   (  249):     #06 pc 00002699  /system/vendor/lib/liboemcamera.so
    I/DEBUG   (  249):     #07 pc 00013493  /system/lib/libc.so (__pthread_start(void*)+30)
    I/DEBUG   (  249):     #08 pc 000113bf  /system/lib/libc.so (__start_thread+6)
    I/DEBUG   (  249): 
    I/DEBUG   (  249): Tombstone written to: /data/tombstones/tombstone_05

    Solution:
    Restore some Smartfren Andromax Q (known built for Lollipop) https://github.com/kumajaya/proprie...mmit/d20417a6a35c9ac52cd8e359b0420aab51313c47

    Conclusion:
    For KitKat camera blobs, a compatible kernel driver needed because user space system call slightly different to the current kernel. How I did it fairly easy, you can trace my kernel commits on github. The rest, you can trace my proprietary vendor blobs commits.
    9
    Mainly from official Cyanogen device: bacon (because I have OnePlus One), rendang, lettuce, tomato, crackling, kipper, r7plus for YAS537 reference driver, etc. Oh God, it's hard because of Xiaomi stupidity.