Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Question [ROM] CWM11 recovery and Philz Touch port for Phicomm c230w (working)

OP crazytiti

8th September 2014, 08:06 PM   |  #1  
OP Member
Thanks Meter: 18
 
56 posts
Join Date:Joined: Sep 2014
More
Hello the clockworkmod recovery for the phicomm c230w is here !
I want to thank the people below who helped me a lot

Official rom :
T27 rom :
http://www.needrom.com/download/phicomm-c230w/ (registration needed) PHICOMM-C230w.rar
aka 173256 C230W_T27_inter _Fix_P_No_calculator.rar (with splash.img added) be aware that this rom have a bad system size of 500mb instead of 800
multilingal (GB by default)
In this rom there is a calculator that crash, root and superuser, it was almost the rom that came with my phone (i have a different splash.img)
http://www.phicomm.com/cn/uploads/20.../C230w_T27.zip This rom only as GB and CZ language

T30 rom (only GB and CZ language)
http://pan.baidu.com/wap/link?uk=231...086006&third=0

Mirror by Astrali :
http://lameserver.de/phicomm/

Kernel source EU version
http://gpl.phicomm.com/data/c230wEU_kernel.zip

Modded boot.img with T30 kernel and T27 ramdisk (to get latest kernel keeping your multilingual T27 rom)
http://crazytiti.free.fr/images_forum/c230/boot_t30.img

update : i also manage to build Philz Touch recovery !
Below are the files that you need to build CWM recovery or Philz (files to replace on an CM11 git repo)
mainly boardconfig.mk and some modifications to roots.c, nandroid.c, graphics_overlay.c and additional msm_ion.h / msm_mdp.h

Disclaimer : this recovery is provided "as is" and i'm not responsible for any lost (hardware / software / girlfriend ...)
How-to (not for newbie: you need to know how to get adb / fastboot and install the correct drivers for phicomm c230w wchih could be painful, i don't have time to explain it here also a lot of people have writtent on these issues)
1) Download the recovery_c230w_0.1.img from :
http://crazytiti.free.fr/images_foru..._c230w_0.1.img
or the Philz Touch (this one will replace your su apps something strange, now my phone is always root)
http://crazytiti.free.fr/images_foru...co_TWRP0.2.img
2) Plug your phicomm into your computer
3) use
Code:
adb reboot bootloader
to make it boot under the bootloader
4) use
Code:
fastboot boot recovery_c230w_0.1.img
to try the recovery (this doesn't flash anything to your phone if it won't boot just unplug the battery)
5) If everything went fine on 4 you could permanently flash the recovery with :
Code:
fastboot flash recovery recovery_c230w_0.1.imgrecovery_c230w_0.1.img
then
Code:
fastboot reboot
This recovery make nandroid backup of boot / recovery / system / cache / data, not the sdcard0 & 1

Koylaaa have sucessufully installed the recovery using nandroid manager :
https://play.google.com/store/apps/d...3t1c.bkrestore

Known bug:
The date of backup and folder name will be "1970-01..."
it's because of the qualcomm hardware and kernel having writing on the RTC disabled (to prevent some issue on modem) => no fix so far
People say that using rom manager to make backup solve the problem (to be validated)

How to build :
See below what tutorial i have been following.
When your system is able to build a recovery use the files that I provide to get a usable recovery on the msm8610 (mainly aded definition in the boarconfig.mk and some code rewrite about the sdcard0 and 1 of this device)
for CMW http://crazytiti.free.fr/images_forum/c230/reco-cm.zip
for Philz Touch http://crazytiti.free.fr/images_foru.../reco-twrp.zip

--------------------------Below is the original post ---------------------------------------------

Hello all (i think i have to put this in the android hacking dev section but as a new user i can't )
I got this new phone from china (bangood).
It's a dual core snapdragon 200 (msm8610 in the build.prop file)
come with 512ram and 4g rom
It come rooted and with the minimal android recovery e3.
But i want to be able to make nandroid backups so i try to build the cyanomodgen 11 recovery for it.

I have followed the tutorials from
http://forum.xda-developers.com/show...utmk=235504642
and
http://xda-university.com/as-a-devel...o-a-new-device

I was able to extract the original boot.img and recovery.img from my phone.
(althought my phone use some weird partitions scheme)
I use the cyanomodgen 11 source on a virtualised ubuntu 12.04lts x64

I was able to get the recovery image builded, and the update.zip too.

After some test i discover that i have to add the dt.img into the recovery.img with the help of mkboot, that's OK.

So i tested my builded recovery.zip with fastboot boot recovery.img.

And it doesn't work :
The phone reboot, the screen goes black but the phone is usb-detected as an adb device. It is not crashed and i can reboot it with adb reboot.

For test purpose I was able to unpack the original recovery.img, modify some images, repack it and it will boot OK (so mkboot seem good)

I also try to replace only the /sbin/recovery with the cwm one in the stock recovery.img with the same result (screen black, adb usable)

I also try two other already builded CMW recovery : one for the KIS3 and one for the nokia x2, two phone based on more or less the same SOC.
( from http://www.modaco.com/topic/373213-r...-open-c-kis-3/ and http://forum.xda-developers.com/noki...ia-x2-t2850273)
The two recovery behave the same :
they work but the screen is fuzzy (at least screen resolution aren't the same, maybe gpu are different)
It is adb-detected and if i push two time the power button it will reboot indicating that the recovery works.

So i have two options :
- be able to build a correct CMW recovery from the CWM sources (i like this one because of beeing able to add a new device to cwm recovery)
- be able to reuse the already builded recovery and put it in my stock recovery.img. (i try to put the ramdisk files into my stock recovery but i only manged to get a black screen with a lot of usb drive detected, like on for each partitions)

Please tell me which option would be simple.

If you need any else information i could provide all the file that i have extarcted from my phone (boot.img recovery.img i also have the firmware.img...)

ps : please excuse some mistake in my english as i'am a french people. Please excuse if it's not the right section, i have read many thing on xda-dev but it's my first post.
Last edited by crazytiti; 16th November 2014 at 12:19 PM. Reason: correct link
The Following 6 Users Say Thank You to crazytiti For This Useful Post: [ View ]
9th September 2014, 09:03 PM   |  #2  
wladimir_tm's Avatar
Member
Thanks Meter: 14
 
30 posts
Join Date:Joined: Jul 2014
ERROR: failed to mmap framebuffer
maybe its help some;
when you boot "ported CWM" and look (via ADB) at file /tmp/recovery.log
you'll find main ERROR "failed to mmap framebuffer: Invalid argument" (graphics.c - or frame buffer driver is needed )
ps: I'm trying to port CWM to c230w too..
& additional (maybe interesting) about c230w at Russian board 4pda.ru
/forum/index.php?showtopic=592797
9th September 2014, 10:48 PM   |  #3  
OP Member
Thanks Meter: 18
 
56 posts
Join Date:Joined: Sep 2014
More
Hello,
that's exactly the error that's happening.
now that i know this i will try google to fix it...

Also thank for the russian board link

here is the recovery.log (with url removed as i'm new to xda-dev i can't post urls)

Code:
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
Starting recovery on Mon Jan  5 10:55:26 1970

failed to mmap framebuffer: Invalid argument
CWM-based Recovery v6.0.5.0
recovery filesystem table
=========================
  0 /system ext4 /dev/block/platform/msm_sdcc.1/by-name/system 0
  1 /cache ext4 /dev/block/platform/msm_sdcc.1/by-name/cache 0
  2 /data ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata -16384
  3 /sdcard1 vfat /dev/block/mmcblk1p1 0
  4 /sdcard0 vfat /dev/block/mmcblk0p21 0
  5 /boot emmc /dev/block/platform/msm_sdcc.1/by-name/boot 0
  6 /recovery emmc /dev/block/platform/msm_sdcc.1/by-name/recovery 0
  7 /misc emmc /dev/block/platform/msm_sdcc.1/by-name/misc 0
  8 /tmp ramdisk ramdisk 0

W:Unable to get recovery.fstab info for /datadata during fstab generation!
W:Unable to get recovery.fstab info for /emmc during fstab generation!
W:Unable to get recovery.fstab info for /sdcard during fstab generation!
W:Unable to get recovery.fstab info for /sd-ext during fstab generation!
W:Unable to get recovery.fstab info for /external_sd during fstab generation!
I:Completed outputting fstab.
I:Connected to Vold..
I:200 0 Volumes listed.
I:Processing arguments.
I:Boot command: boot-recovery
I:Got arguments from boot message
I:Checking arguments.
I:device_recovery_start()
Command: "recovery"

ro.cm.device=msm8610
ro.cm.display.version=11-20140905-UNOFFICIAL-msm8610
ro.cm.version=11-20140905-UNOFFICIAL-msm8610
ro.cm.releasetype=UNOFFICIAL
ro.adb.qemud=1
ro.com.google.clientidbase=android-google
ro.com.android.dateformat=MM-dd-yyyy
ro.com.android.dataroaming=false
ro.com.android.wifi-watchlist=GoogleGuest
ro.ril.hsxpa=1
ro.ril.gprsclass=10
ro.url.legal=
ro.url.legal.android_privacy=
ro.boot.emmc=true
ro.boot.console=ttyHSL0
ro.boot.baseband=msm
ro.boot.hardware=qcom
ro.boot.serialno=aa2ce47
ro.emmc=0
ro.wifi.channels=
ro.allow.mock.location=1
ro.board.platform=unknown
ro.build.id=KTU84Q
ro.build.date=vendredi 5 septembre 2014, 13:19:14 (UTC+0200)
ro.build.date.utc=0
ro.build.host=yep-VirtualBox
ro.build.tags=test-keys
ro.build.type=eng
ro.build.user=yep
ro.build.display.id=cm_msm8610-eng 4.4.4 KTU84Q 99a7608fd6 test-keys
ro.build.product=msm8610
ro.build.selinux=1
ro.build.version.sdk=19
ro.build.version.release=4.4.4
ro.build.version.codename=REL
ro.build.version.incremental=99a7608fd6
ro.build.description=cm_msm8610-eng 4.4.4 KTU84Q 99a7608fd6 test-keys
ro.build.fingerprint=PHICOMM/cm_msm8610/msm8610:4.4.4/KTU84Q/99a7608fd6:eng/test-keys
ro.build.characteristics=default
ro.error.receiver.system.apps=org.cyanogenmod.bugreport
ro.config.ringtone=Orion.ogg
ro.config.alarm_alert=Hassium.ogg
ro.config.notification_sound=Argon.ogg
ro.kernel.android.checkjni=1
ro.secure=0
ro.carrier=unknown
ro.cmlegal.url=
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.name=cm_msm8610
ro.product.board=msm8610
ro.product.brand=PHICOMM
ro.product.model=msm8610
ro.product.device=msm8610
ro.product.locale.region=US
ro.product.locale.language=en
ro.product.manufacturer=PHICOMM
ro.baseband=msm
ro.bootmode=unknown
ro.hardware=qcom
ro.revision=0
ro.serialno=aa2ce47
ro.bootloader=unknown
ro.debuggable=1
ro.modversion=11-20140905-UNOFFICIAL-msm8610
ro.rommanager.developerid=cyanogenmod
ro.factorytest=0
ro.setupwizard.enterprise_mode=1
net.bt.name=Android
net.change=net.bt.name
init.svc.adbd=running
init.svc.vold=running
init.svc.healthd=running
init.svc.ueventd=running
init.svc.recovery=running
init.svc.setup_adbd=stopped
dalvik.vm.stack-trace-file=/data/anr/traces.txt
persist.sys.dun.override=0
persist.sys.usb.config=adb
persist.sys.dalvik.vm.lib=libdvm.so
persist.sys.dalvik.multithread=false
persist.sys.root_access=1
persist.sys.recovery_update=false
service.adb.root=1
keyguard.no_require_sim=true

I:Checking for extendedcommand...


here is a picture of the c230 booting the nokia x2 CMW recovery (seems functional althought the screen is blurry)
crazytiti.free.fr/images_forum/c230/boot_nokia_x2.jpg
(can't post image as a new member..)

and the recovery.log associated (with no error in it)
Code:
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
Starting recovery on Mon Jan  5 11:02:58 1970
No /etc/extra.fstab
recovery filesystem table
=========================
  0 /system ext4 /dev/block/platform/msm_sdcc.1/by-name/system 0
  1 /data ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata -16384
  2 /cache ext4 /dev/block/platform/msm_sdcc.1/by-name/cache 0
  3 /boot emmc /dev/block/platform/msm_sdcc.1/by-name/boot 0
  4 /recovery emmc /dev/block/platform/msm_sdcc.1/by-name/recovery 0
  5 /storage/sdcard1 auto /devices/msm_sdcc.2/mmc_host 0
  6 none swap /dev/block/zram0 0
  7 /tmp ramdisk ramdisk 0

I:Connected to Vold..
I:110 0 sdcard1 /storage/sdcard1 1 -
I:200 0 Volumes listed.
I:skiping get_bootloader_message: no /misc
I:skiping set_bootloader_message: no /misc
Checking arguments.
stage is []
Left Split=0
Right Split=0
framebuffer: fd 6 (480 x 854)
PhilZ Touch 6.56.2
ClockworkMod v6.0.5.0
I:Device target: cm_kis3
I:Touch GUI revision: 1.40
I:device_recovery_start()
I:auto_restore_settings set to default (true)
I:check_root_and_recovery set to default (true)
I:compression_value set to default (low)
I:twrp_backup_mode set to default (false)
I:enable_md5sum set to default (1)
I:show_nandroid_size_progress set to default (1)
I:use_nandroid_simple_logging set to default (1)
I:nand_prompt_on_low_space set to default (1)
I:signature_check_enabled set to default (0)
I:install_zip_verify_md5 set to default (0)
I:brightness_user_path=/sys/class/leds/lcd-backlight/brightness
I:set_brightness set to default (160)
I:menu_height_increase set to default (24)
I:show_virtual_keys set to default (true)
I:min_log_rows set to default (3)
I:background_image set to default (default)
I:background_image set to default
I:Default stitch background loaded.
I:show_background_icon set to default (false)
I:show_battery set to default (true)
I:show_clock set to default (true)
I:menu_text_color set to default (8)
I:menu_background_color set to default (1)
I:menu_highlight_color set to default (7)
I:normal_text_color set to default (0)
I:menu_separator_color set to default (6)
I:header_text_color set to default (8)
I:batt_clock_color set to default (2)
I:menu_background_transparency set to default (102)
I:menu_highlight_transparency set to default (102)
I:menu_separator_transparency set to default (102)
I:show_menu_separation set to default (true)
I:dim_timeout set to default (60)
I:blank_timeout set to default (180)
I:scroll_sensitivity set to default (48)
I:touch_accuracy set to default (7)
I:touch_to_validate set to default (true)
I:enable_vibrator set to default (true)
I:boardEnableKeyRepeat set to default (true)
I:wait_after_install set to default (true)
I:slide_left_action set to default (5)
I:slide_right_action set to default (3)
I:double_tap_action set to default (2)
I:press_lift_action set to default (4)
I:press_move_action set to default (1)
I:t_zone set to default (0)
I:t_zone_offset set to default (0)
I:use_dst_time set to default (false)
I:Current time: 1970-01-05 11:03:00 (UTC 0:00) 
I:use_qcom_time_daemon set to default (0)
I:use_qcom_time_data_files set to default (0)
I:use_qcom_time_offset set to default (0)
Command: "/sbin/recovery"

av.offload.enable=false
av.streaming.offload.enable=false
mm.enable.qcom_parser=37491
ro.cm.device=kis3
ro.cm.display.version=11-20140816-UNOFFICIAL-kis3
ro.cm.version=11-20140816-UNOFFICIAL-kis3
ro.cm.releasetype=UNOFFICIAL
ro.qc.sdk.izat.service_mask=0x5
ro.qc.sdk.izat.premium_enabled=1
ro.qc.sdk.audio.fluencetype=none
ro.sf.lcd_density=240
ro.com.google.clientidbase=android-zte
ro.com.android.dateformat=MM-dd-yyyy
ro.com.android.dataroaming=false
ro.com.android.wifi-watchlist=GoogleGuest
ro.cwm.enable_key_repeat=true
ro.gps.agps_provider=1
ro.ksm.default=1
ro.url.legal=
ro.url.legal.android_privacy=
ro.boot.emmc=true
ro.boot.console=ttyHSL0
ro.boot.baseband=msm
ro.boot.hardware=qcom
ro.boot.serialno=aa2ce47
ro.emmc=0
ro.wifi.channels=
ro.allow.mock.location=0
ro.board.platform=msm8610
ro.build.id=KTU84Q
ro.build.date=Сб. авг. 16 20:19:36 MSK 2014
ro.build.date.utc=0
ro.build.host=server
ro.build.tags=test-keys
ro.build.type=userdebug
ro.build.user=ruslan
ro.build.display.id=cm_kis3-userdebug 4.4.4 KTU84Q 2c84514b15 test-keys
ro.build.product=kis3
ro.build.selinux=1
ro.build.version.sdk=19
ro.build.version.release=4.4.4
ro.build.version.codename=REL
ro.build.version.incremental=2c84514b15
ro.build.description=msm8610-user 4.4.2 KOT49H eng.root.20140509.130110 release-keys
ro.build.fingerprint=ZTE/ZTE-P821E10/ZTE-P821E10:4.4.2/KOT49H/eng.root.20140509.130110:user/release-keys
ro.build.characteristics=default
ro.config.low_ram=true
ro.config.ringtone=Orion.ogg
ro.config.alarm_alert=Hassium.ogg
ro.config.notification_sound=Argon.ogg
ro.secure=1
ro.vendor.extension_library=/system/vendor/lib/libqc-opt.so
ro.carrier=unknown
ro.cmlegal.url=
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.name=cm_kis3
ro.product.board=MSM8610
ro.product.brand=ZTE
ro.product.model=Kis 3
ro.product.device=kis3
ro.product.locale.region=US
ro.product.locale.language=en
ro.product.manufacturer=ZTE
ro.baseband=msm
ro.bootmode=unknown
ro.hardware=qcom
ro.opengles.version=196608
ro.qualcomm.cabl=0
ro.revision=0
ro.serialno=aa2ce47
ro.telephony.call_ring.multiple=false
ro.telephony.default_network=0
ro.bootloader=unknown
ro.debuggable=1
ro.modversion=11-20140816-UNOFFICIAL-kis3
ro.rommanager.developerid=cyanogenmod
ro.factorytest=0
ro.setupwizard.enterprise_mode=1
mmp.enable.3g2=true
net.bt.name=Android
net.change=net.bt.name
ril.subscription.types=NV,RUIM
use.voice.path.for.pcm.voip=true
init.svc.adbd=running
init.svc.vold=running
init.svc.healthd=running
init.svc.ueventd=running
init.svc.recovery=running
init.svc.setup_adbd=stopped
rild.libargs=-d /dev/smd0
rild.libpath=/vendor/lib/libril-qc-qmi-1.so
vidc.debug.level=1
wifi.interface=wlan0
audio.offload.pcm.enable=false
audio.offload.buffer.size.kb=32
audio.offload.disable=1
audio.offload.gapless.enabled=true
audio.offload.multiple.enabled=false
debug.sf.fb_always_on=1
debug.hwc.dynThreshold=1.5
debug.composition.type=dyn
media.stagefright.enable-aac=true
media.stagefright.enable-qcp=true
media.stagefright.enable-http=true
media.stagefright.enable-scan=true
media.stagefright.enable-fma2dp=true
media.stagefright.enable-player=true
media.aac_51_output_enabled=true
dalvik.vm.heapsize=128m
dalvik.vm.lockprof.threshold=500
dalvik.vm.heapmaxfree=2m
dalvik.vm.heapminfree=512k
dalvik.vm.heapstartsize=5m
dalvik.vm.heapgrowthlimit=48m
dalvik.vm.stack-trace-file=/data/anr/traces.txt
dalvik.vm.heaptargetutilization=0.25
tunnel.audio.encode=false
persist.gps.qc_nlp_in_use=1
persist.loc.nlp_name=com.qualcomm.services.location
persist.sys.dun.override=0
persist.sys.usb.config=adb
persist.sys.dalvik.vm.lib=libdvm.so
persist.sys.dalvik.multithread=false
persist.sys.root_access=1
persist.sys.recovery_update=false
persist.rild.nitz_plmn=
persist.rild.nitz_long_ons_0=
persist.rild.nitz_long_ons_1=
persist.rild.nitz_long_ons_2=
persist.rild.nitz_long_ons_3=
persist.rild.nitz_short_ons_0=
persist.rild.nitz_short_ons_1=
persist.rild.nitz_short_ons_2=
persist.rild.nitz_short_ons_3=
persist.audio.fluence.speaker=true
persist.audio.fluence.voicerec=false
persist.audio.fluence.voicecall=true
persist.radio.msgtunnel.start=false
persist.radio.apm_sim_not_pwdn=0
persist.timed.enable=true
persist.data_netmgrd_mtu=1358
service.adb.root=1
keyguard.no_require_sim=true
recovery.perf.mode=0
telephony.lteOnCdmaDevice=1
DEVICE_PROVISIONED=1

I:Checking for extendedcommand & OpenRecoveryScript...
I:Ignoring 'extendedcommand' boot-script: file not found
I:Ignoring 'openrecoveryscript' boot-script: file not found
I:Checking for recovery lock...
I:skiping set_bootloader_message: no /misc
Last edited by crazytiti; 9th September 2014 at 11:18 PM. Reason: adding infos
10th September 2014, 08:25 AM   |  #4  
wladimir_tm's Avatar
Member
Thanks Meter: 14
 
30 posts
Join Date:Joined: Jul 2014
Quote:

the c230 booting the nokia x2 CMW recovery (seems functional althought the screen is blurry)
..
and the recovery.log associated (with no error in it)

Code:
...
framebuffer: fd 6 (480 x 854)
PhilZ Touch 6.56.2
ClockworkMod v6.0.5.0
Ievice target: cm_kis3

compare this with "native" c230w stock recovery log
(located /cache/recovery/last_log)
fd 6 vs fd 4
& resolution of cause; but last maybe not so important as fd

command: cat /cache/recovery/last_log
Code:
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
Starting recovery on Thu Jan  1 19:29:44 1970
recovery filesystem table
=========================
  0 /system ext4 /dev/block/platform/msm_sdcc.1/by-name/system 0
  1 /cache ext4 /dev/block/platform/msm_sdcc.1/by-name/cache 0
  2 /data ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata -16384
  3 /sdcard1 vfat /dev/block/mmcblk1p1 0
  4 /sdcard0 vfat /dev/block/mmcblk0p21 0
  5 /boot emmc /dev/block/platform/msm_sdcc.1/by-name/boot 0
  6 /recovery emmc /dev/block/platform/msm_sdcc.1/by-name/recovery 0
  7 /misc emmc /dev/block/platform/msm_sdcc.1/by-name/misc 0
  8 /tmp ramdisk ramdisk 0

locale is [zh_CN]
framebuffer: fd 4 (480 x 800)
       installing_text: zh_CN (240 x 38 @ 1818)
          erasing_text: zh_CN (128 x 38 @ 1521)
       no_command_text: zh_CN (92 x 38 @ 1521)
            error_text: zh_CN (98 x 38 @ 1521)
Command: "/sbin/recovery"

ro.boot.console=ttyHSL0

& additionally - maybe useful info from shell:

Code:
command: cat /proc/fb
0 mdssfb_80000
---------------------------
command: cat /proc/fdv_info
LCD              apex              0x00209806  0   lcd_apex_ili9806c_video           0x00209806
LCD              feixun            0x00101080  1   lcd_feixun_fl10801a_video         0x00101080
LCD              feixun            0x00105510  0   lcd_feixun_NT35510_cmd            0x00105510
G_sensor         KIONIX            0x0520000f  0   Konix                             0x0520000f
G_sensor         bosch             0x05400018  1   Bosch                             0x05400018
L_Psensor        Taos              0x03200039  1   taos_alsprox_sensor               0x03200039
Camera_main      SAMSUNG           0x04100020  0   S5K4E1_camera                     0x04100020
Camera_main      OmniVision        0x06c0006c  0   OV5648_camera                     0x06c0006c
Camera_main      GALAXYCORE        0x04a00078  1   GC2235_camera                     0x04a00078
EMMC             Hynix             0x9000014a  1   H4G1d                            0x9000014a
TP               Goodix            0x0242814a  1   GT950                             0x0242814a
Camera_second    GALAXYCORE        0x04300042  1   GC0339_camera                     0x04300042
---------------------------
Last edited by wladimir_tm; 10th September 2014 at 08:37 AM. Reason: /code]
12th September 2014, 09:37 AM   |  #5  
Member
Thanks Meter: 13
 
32 posts
Join Date:Joined: Jul 2013
Quote:
Originally Posted by crazytiti

Hello,

here is the recovery.log (with url removed as i'm new to xda-dev i can't post urls)


Code:
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
Starting recovery on Mon Jan  5 10:55:26 1970

failed to mmap framebuffer: Invalid argument
CWM-based Recovery v6.0.5.0
recovery filesystem table
=========================
  0 /system ext4 /dev/block/platform/msm_sdcc.1/by-name/system 0
  1 /cache ext4 /dev/block/platform/msm_sdcc.1/by-name/cache 0
  2 /data ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata -16384
  3 /sdcard1 vfat /dev/block/mmcblk1p1 0
  4 /sdcard0 vfat /dev/block/mmcblk0p21 0
  5 /boot emmc /dev/block/platform/msm_sdcc.1/by-name/boot 0
  6 /recovery emmc /dev/block/platform/msm_sdcc.1/by-name/recovery 0
  7 /misc emmc /dev/block/platform/msm_sdcc.1/by-name/misc 0
  8 /tmp ramdisk ramdisk 0

W:Unable to get recovery.fstab info for /datadata during fstab generation!
W:Unable to get recovery.fstab info for /emmc during fstab generation!
W:Unable to get recovery.fstab info for /sdcard during fstab generation!
W:Unable to get recovery.fstab info for /sd-ext during fstab generation!
W:Unable to get recovery.fstab info for /external_sd during fstab generation!
I:Completed outputting fstab.
I:Connected to Vold..
I:200 0 Volumes listed.
I:Processing arguments.
I:Boot command: boot-recovery
I:Got arguments from boot message
I:Checking arguments.
I:device_recovery_start()
Command: "recovery"

ro.cm.device=msm8610
ro.cm.display.version=11-20140905-UNOFFICIAL-msm8610
ro.cm.version=11-20140905-UNOFFICIAL-msm8610
ro.cm.releasetype=UNOFFICIAL
ro.adb.qemud=1
ro.com.google.clientidbase=android-google
ro.com.android.dateformat=MM-dd-yyyy
ro.com.android.dataroaming=false
ro.com.android.wifi-watchlist=GoogleGuest
ro.ril.hsxpa=1
ro.ril.gprsclass=10
ro.url.legal=
ro.url.legal.android_privacy=
ro.boot.emmc=true
ro.boot.console=ttyHSL0
ro.boot.baseband=msm
ro.boot.hardware=qcom
ro.boot.serialno=aa2ce47
ro.emmc=0
ro.wifi.channels=
ro.allow.mock.location=1
ro.board.platform=unknown
ro.build.id=KTU84Q
ro.build.date=vendredi 5 septembre 2014, 13:19:14 (UTC+0200)
ro.build.date.utc=0
ro.build.host=yep-VirtualBox
ro.build.tags=test-keys
ro.build.type=eng
ro.build.user=yep
ro.build.display.id=cm_msm8610-eng 4.4.4 KTU84Q 99a7608fd6 test-keys
ro.build.product=msm8610
ro.build.selinux=1
ro.build.version.sdk=19
ro.build.version.release=4.4.4
ro.build.version.codename=REL
ro.build.version.incremental=99a7608fd6
ro.build.description=cm_msm8610-eng 4.4.4 KTU84Q 99a7608fd6 test-keys
ro.build.fingerprint=PHICOMM/cm_msm8610/msm8610:4.4.4/KTU84Q/99a7608fd6:eng/test-keys
ro.build.characteristics=default
ro.error.receiver.system.apps=org.cyanogenmod.bugreport
ro.config.ringtone=Orion.ogg
ro.config.alarm_alert=Hassium.ogg
ro.config.notification_sound=Argon.ogg
ro.kernel.android.checkjni=1
ro.secure=0
ro.carrier=unknown
ro.cmlegal.url=
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.name=cm_msm8610
ro.product.board=msm8610
ro.product.brand=PHICOMM
ro.product.model=msm8610
ro.product.device=msm8610
ro.product.locale.region=US
ro.product.locale.language=en
ro.product.manufacturer=PHICOMM
ro.baseband=msm
ro.bootmode=unknown
ro.hardware=qcom
ro.revision=0
ro.serialno=aa2ce47
ro.bootloader=unknown
ro.debuggable=1
ro.modversion=11-20140905-UNOFFICIAL-msm8610
ro.rommanager.developerid=cyanogenmod
ro.factorytest=0
ro.setupwizard.enterprise_mode=1
net.bt.name=Android
net.change=net.bt.name
init.svc.adbd=running
init.svc.vold=running
init.svc.healthd=running
init.svc.ueventd=running
init.svc.recovery=running
init.svc.setup_adbd=stopped
dalvik.vm.stack-trace-file=/data/anr/traces.txt
persist.sys.dun.override=0
persist.sys.usb.config=adb
persist.sys.dalvik.vm.lib=libdvm.so
persist.sys.dalvik.multithread=false
persist.sys.root_access=1
persist.sys.recovery_update=false
service.adb.root=1
keyguard.no_require_sim=true

I:Checking for extendedcommand...


here is a picture of the c230 booting the nokia x2 CMW recovery (seems functional althought the screen is blurry)
crazytiti.free.fr/images_forum/c230/boot_nokia_x2.jpg
(can't post image as a new member..)

and the recovery.log associated (with no error in it)
Code:
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
Starting recovery on Mon Jan  5 11:02:58 1970
No /etc/extra.fstab
recovery filesystem table
=========================
  0 /system ext4 /dev/block/platform/msm_sdcc.1/by-name/system 0
  1 /data ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata -16384
  2 /cache ext4 /dev/block/platform/msm_sdcc.1/by-name/cache 0
  3 /boot emmc /dev/block/platform/msm_sdcc.1/by-name/boot 0
  4 /recovery emmc /dev/block/platform/msm_sdcc.1/by-name/recovery 0
  5 /storage/sdcard1 auto /devices/msm_sdcc.2/mmc_host 0
  6 none swap /dev/block/zram0 0
  7 /tmp ramdisk ramdisk 0

I:Connected to Vold..
I:110 0 sdcard1 /storage/sdcard1 1 -
I:200 0 Volumes listed.
I:skiping get_bootloader_message: no /misc
I:skiping set_bootloader_message: no /misc
Checking arguments.
stage is []
Left Split=0
Right Split=0
framebuffer: fd 6 (480 x 854)
PhilZ Touch 6.56.2
ClockworkMod v6.0.5.0
I:Device target: cm_kis3
I:Touch GUI revision: 1.40
I:device_recovery_start()
I:auto_restore_settings set to default (true)
I:check_root_and_recovery set to default (true)
I:compression_value set to default (low)
I:twrp_backup_mode set to default (false)
I:enable_md5sum set to default (1)
I:show_nandroid_size_progress set to default (1)
I:use_nandroid_simple_logging set to default (1)
I:nand_prompt_on_low_space set to default (1)
I:signature_check_enabled set to default (0)
I:install_zip_verify_md5 set to default (0)
I:brightness_user_path=/sys/class/leds/lcd-backlight/brightness
I:set_brightness set to default (160)
I:menu_height_increase set to default (24)
I:show_virtual_keys set to default (true)
I:min_log_rows set to default (3)
I:background_image set to default (default)
I:background_image set to default
I:Default stitch background loaded.
I:show_background_icon set to default (false)
I:show_battery set to default (true)
I:show_clock set to default (true)
I:menu_text_color set to default (8)
I:menu_background_color set to default (1)
I:menu_highlight_color set to default (7)
I:normal_text_color set to default (0)
I:menu_separator_color set to default (6)
I:header_text_color set to default (8)
I:batt_clock_color set to default (2)
I:menu_background_transparency set to default (102)
I:menu_highlight_transparency set to default (102)
I:menu_separator_transparency set to default (102)
I:show_menu_separation set to default (true)
I:dim_timeout set to default (60)
I:blank_timeout set to default (180)
I:scroll_sensitivity set to default (48)
I:touch_accuracy set to default (7)
I:touch_to_validate set to default (true)
I:enable_vibrator set to default (true)
I:boardEnableKeyRepeat set to default (true)
I:wait_after_install set to default (true)
I:slide_left_action set to default (5)
I:slide_right_action set to default (3)
I:double_tap_action set to default (2)
I:press_lift_action set to default (4)
I:press_move_action set to default (1)
I:t_zone set to default (0)
I:t_zone_offset set to default (0)
I:use_dst_time set to default (false)
I:Current time: 1970-01-05 11:03:00 (UTC 0:00) 
I:use_qcom_time_daemon set to default (0)
I:use_qcom_time_data_files set to default (0)
I:use_qcom_time_offset set to default (0)
Command: "/sbin/recovery"

av.offload.enable=false
av.streaming.offload.enable=false
mm.enable.qcom_parser=37491
ro.cm.device=kis3
ro.cm.display.version=11-20140816-UNOFFICIAL-kis3
ro.cm.version=11-20140816-UNOFFICIAL-kis3
ro.cm.releasetype=UNOFFICIAL
ro.qc.sdk.izat.service_mask=0x5
ro.qc.sdk.izat.premium_enabled=1
ro.qc.sdk.audio.fluencetype=none
ro.sf.lcd_density=240
ro.com.google.clientidbase=android-zte
ro.com.android.dateformat=MM-dd-yyyy
ro.com.android.dataroaming=false
ro.com.android.wifi-watchlist=GoogleGuest
ro.cwm.enable_key_repeat=true
ro.gps.agps_provider=1
ro.ksm.default=1
ro.url.legal=
ro.url.legal.android_privacy=
ro.boot.emmc=true
ro.boot.console=ttyHSL0
ro.boot.baseband=msm
ro.boot.hardware=qcom
ro.boot.serialno=aa2ce47
ro.emmc=0
ro.wifi.channels=
ro.allow.mock.location=0
ro.board.platform=msm8610
ro.build.id=KTU84Q
ro.build.date=Сб. авг. 16 20:19:36 MSK 2014
ro.build.date.utc=0
ro.build.host=server
ro.build.tags=test-keys
ro.build.type=userdebug
ro.build.user=ruslan
ro.build.display.id=cm_kis3-userdebug 4.4.4 KTU84Q 2c84514b15 test-keys
ro.build.product=kis3
ro.build.selinux=1
ro.build.version.sdk=19
ro.build.version.release=4.4.4
ro.build.version.codename=REL
ro.build.version.incremental=2c84514b15
ro.build.description=msm8610-user 4.4.2 KOT49H eng.root.20140509.130110 release-keys
ro.build.fingerprint=ZTE/ZTE-P821E10/ZTE-P821E10:4.4.2/KOT49H/eng.root.20140509.130110:user/release-keys
ro.build.characteristics=default
ro.config.low_ram=true
ro.config.ringtone=Orion.ogg
ro.config.alarm_alert=Hassium.ogg
ro.config.notification_sound=Argon.ogg
ro.secure=1
ro.vendor.extension_library=/system/vendor/lib/libqc-opt.so
ro.carrier=unknown
ro.cmlegal.url=
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.name=cm_kis3
ro.product.board=MSM8610
ro.product.brand=ZTE
ro.product.model=Kis 3
ro.product.device=kis3
ro.product.locale.region=US
ro.product.locale.language=en
ro.product.manufacturer=ZTE
ro.baseband=msm
ro.bootmode=unknown
ro.hardware=qcom
ro.opengles.version=196608
ro.qualcomm.cabl=0
ro.revision=0
ro.serialno=aa2ce47
ro.telephony.call_ring.multiple=false
ro.telephony.default_network=0
ro.bootloader=unknown
ro.debuggable=1
ro.modversion=11-20140816-UNOFFICIAL-kis3
ro.rommanager.developerid=cyanogenmod
ro.factorytest=0
ro.setupwizard.enterprise_mode=1
mmp.enable.3g2=true
net.bt.name=Android
net.change=net.bt.name
ril.subscription.types=NV,RUIM
use.voice.path.for.pcm.voip=true
init.svc.adbd=running
init.svc.vold=running
init.svc.healthd=running
init.svc.ueventd=running
init.svc.recovery=running
init.svc.setup_adbd=stopped
rild.libargs=-d /dev/smd0
rild.libpath=/vendor/lib/libril-qc-qmi-1.so
vidc.debug.level=1
wifi.interface=wlan0
audio.offload.pcm.enable=false
audio.offload.buffer.size.kb=32
audio.offload.disable=1
audio.offload.gapless.enabled=true
audio.offload.multiple.enabled=false
debug.sf.fb_always_on=1
debug.hwc.dynThreshold=1.5
debug.composition.type=dyn
media.stagefright.enable-aac=true
media.stagefright.enable-qcp=true
media.stagefright.enable-http=true
media.stagefright.enable-scan=true
media.stagefright.enable-fma2dp=true
media.stagefright.enable-player=true
media.aac_51_output_enabled=true
dalvik.vm.heapsize=128m
dalvik.vm.lockprof.threshold=500
dalvik.vm.heapmaxfree=2m
dalvik.vm.heapminfree=512k
dalvik.vm.heapstartsize=5m
dalvik.vm.heapgrowthlimit=48m
dalvik.vm.stack-trace-file=/data/anr/traces.txt
dalvik.vm.heaptargetutilization=0.25
tunnel.audio.encode=false
persist.gps.qc_nlp_in_use=1
persist.loc.nlp_name=com.qualcomm.services.location
persist.sys.dun.override=0
persist.sys.usb.config=adb
persist.sys.dalvik.vm.lib=libdvm.so
persist.sys.dalvik.multithread=false
persist.sys.root_access=1
persist.sys.recovery_update=false
persist.rild.nitz_plmn=
persist.rild.nitz_long_ons_0=
persist.rild.nitz_long_ons_1=
persist.rild.nitz_long_ons_2=
persist.rild.nitz_long_ons_3=
persist.rild.nitz_short_ons_0=
persist.rild.nitz_short_ons_1=
persist.rild.nitz_short_ons_2=
persist.rild.nitz_short_ons_3=
persist.audio.fluence.speaker=true
persist.audio.fluence.voicerec=false
persist.audio.fluence.voicecall=true
persist.radio.msgtunnel.start=false
persist.radio.apm_sim_not_pwdn=0
persist.timed.enable=true
persist.data_netmgrd_mtu=1358
service.adb.root=1
keyguard.no_require_sim=true
recovery.perf.mode=0
telephony.lteOnCdmaDevice=1
DEVICE_PROVISIONED=1

I:Checking for extendedcommand & OpenRecoveryScript...
I:Ignoring 'extendedcommand' boot-script: file not found
I:Ignoring 'openrecoveryscript' boot-script: file not found
I:Checking for recovery lock...
I:skiping set_bootloader_message: no /misc

I suggest you stick with your original build first. Can you post your Boardconfig.mk? You might want to try changing your recovery pixel format. Also try adding this flag: TARGET_RECOVERY_LCD_BACKLIGHT_PATH := \"/sys/class/leds/lcd-backlight/brightness\" in your Boardconfig.mk file. That line fixed the black screen issue in my recent build (for another msm8610 phone.)
Last edited by arvinquilao; 12th September 2014 at 09:40 AM.
The Following User Says Thank You to arvinquilao For This Useful Post: [ View ]
12th September 2014, 08:10 PM   |  #6  
OP Member
Thanks Meter: 18
 
56 posts
Join Date:Joined: Sep 2014
More
Thank for the update.
I'm currently compiling it with option TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
as before i try option TARGET_RECOVERY_PIXEL_FORMAT := "BGRA_8888"
and get an "fb0 invalid argument" in the recovery.log.
Do you know other format that i can test if theses doesn't work ?

My BoardConfig.mk is attached to this post with adding pixel format and
TARGET_RECOVERY_LCD_BACKLIGHT_PATH := \"/sys/class/leds/lcd-backlight/brightness\"

EDIT : with "RGBX_8888" i get the same error as before ("invalid argument" without "fb0")
I conclude that RGBX_8888 is the default format.

I'got this list from developper.android.com
nt RGBA_4444
int RGBA_5551
int RGBA_8888
int RGBX_8888
int RGB_332
int RGB_565
int RGB_888
let's try it.... (20min build time for each test, need to find something faster than my Ph X4 965, maybe it's the VM anyway if i don't make clobber the change aren't taken)
Attached Files
File Type: txt BoardConfig.mk.txt - [Click for QR Code] (1.2 KB, 16 views)
Last edited by crazytiti; 12th September 2014 at 09:35 PM. Reason: typo
13th September 2014, 06:21 PM   |  #7  
OP Member
Thanks Meter: 18
 
56 posts
Join Date:Joined: Sep 2014
More
I try all these unsuccessfully
TARGET_RECOVERY_PIXEL_FORMAT := "BGRA_8888"
TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
TARGET_RECOVERY_PIXEL_FORMAT := "RGB_888"
TARGET_RECOVERY_PIXEL_FORMAT := "RGBA_8888"
TARGET_RECOVERY_PIXEL_FORMAT := "RGBA_4444"
TARGET_RECOVERY_PIXEL_FORMAT := "RGB_565"
TARGET_RECOVERY_PIXEL_FORMAT := "RGBA_5551"

maybe i miss something else ?
in graphics.c
mmap(0, fi.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
man page for mmap say that EINVAL (the error code returned) is for addr, length, or offset invalid in
void *mmap(void *addr, size_t lengthint " prot ", int " flags, int fd, off_t offset);int munmap(void *addr, size_t length);

In graphics.c i see :
Code:
if (!has_overlay) {
       vi.bits_per_pixel = PIXEL_SIZE * 8;
       if (PIXEL_FORMAT == GGL_PIXEL_FORMAT_BGRA_8888) {
         vi.red.offset     = 8;
         vi.red.length     = 8;
         vi.green.offset   = 16;
         vi.green.length   = 8;
         vi.blue.offset    = 24;
         vi.blue.length    = 8;
         vi.transp.offset  = 0;
         vi.transp.length  = 8;
       } else if (PIXEL_FORMAT == GGL_PIXEL_FORMAT_RGBX_8888) {
         vi.red.offset     = 24;
         vi.red.length     = 8;
         vi.green.offset   = 16;
         vi.green.length   = 8;
         vi.blue.offset    = 8;
         vi.blue.length    = 8;
         vi.transp.offset  = 0;
         vi.transp.length  = 8;
       } else { /* RGB565*/
         vi.red.offset     = 11;
         vi.red.length     = 5;
         vi.green.offset   = 5;
         vi.green.length   = 6;
         vi.blue.offset    = 0;
         vi.blue.length    = 5;
         vi.transp.offset  = 0;
         vi.transp.length  = 0;


So only 3 pixel format are supported ?
maybe i have to add other formats here...
Last edited by crazytiti; 13th September 2014 at 06:50 PM. Reason: adding infos
13th September 2014, 07:01 PM   |  #8  
OP Member
Thanks Meter: 18
 
56 posts
Join Date:Joined: Sep 2014
More
I only see know that KonstaT is giving it's source for building its CWM recovery for Kis3 :
github.com/KonstaT/android_device_zte_kis3
I will dig in...
13th September 2014, 09:19 PM   |  #9  
OP Member
Thanks Meter: 18
 
56 posts
Join Date:Joined: Sep 2014
More
After extending tests with several combinations :
it seems that something in my kernel and/or dtd prevent cwm recovery to get framebuffer.
even when i'm including all of the msm8610 board specifics lines from BoardConfig.mk from kis3 i still can't get mmap

I even try to put my compiled recovery with the dtd and zimage from kis3 => same result as using directly kis3 recovery : recovery working but screen is blury. (although in recovery.log i get fd4 480x800)
14th September 2014, 08:41 AM   |  #10  
Junior Member
Thanks Meter: 2
 
17 posts
Join Date:Joined: Oct 2013
I have same device but no cwm recovery, mine is msm8210, I am not a developer and I also need your help to port cwm recovery on this device, thank you.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes