Huawei Y635 Development

Nonta72

Senior Member
Mar 27, 2013
1,547
738
0
Speed Force
10/03/2017

Considering that I no longer own the phone,
As a result, I'm unable to keep the main post up-to-date;
This thread has been successfully converted into a DevDB post.
The idea is to add more people (contributors) so that they can (maybe) keep the thread up-to-date as long as they can.
If you feel like doing that, you can contact me via PM or "Mention" or "Quote" me in the replies below. You will be added as a contributor!



Hi,
I have opened this thread to gather all development made on the Huawei Y635.
Currently, there's no stable rom yet. Most CyanogenMod (or based) roms made for G620S can boot on the device but they may be full of bugs. I have personally tested CM11, Mokee, Pac-Man and CM12.1 all boot fine but the main problem is Camera! Camera error occur in all of these rom.
There's no need to port these roms! Just download the rom and flash it! It will boot.
Don't flash CM13 or newer cm12.1 build, they won't boot. Only flash build 20150718 of surdu_petru's cm12.1 for G620S.


Unlock bootloader:

To flash custom roms and kernels, you need to unlock bootloader first!
1) Go to https://emui.huawei.com/en/plugin.php?id=unlock&mod=detail and log in with your huawei account (create one if needed)
2) Fill in the info needed and you will get a code
3) Boot to fastboot mode (power off > press and hold volume down > plug device in > immediatly press power button)
4) Open a terminal on your computer and type: fastboot oem unlock 1234567890
Note: Replace 123456789 with the code you received in first step
Recoveries:​
1) TWRP Material Design:
- Flash with PC => Google Drive
- Flash with a Custom Recovery => Google Drive
Thanks to @Gr2_srk for sharing
2) TWRP 2.8.7.0 => Download here
Source: HTCMania
Dev: EloYGomez
3) Philz Touch => Download (Mediafire)
Dev:
Source: YouTube !
4) Philz Recovery for Y635-L03
- Flash with PC => Download here
- Flash with other recovery => Download here
Thanks to @Gr2_srk for sharing

ROMs:​

Marshmallow ROMs:
BEFORE YOU FLASH ANY OF THE ROMS IN THIS SECTION, UNDERSTAND THAT I DID NOT TEST TEST THEM BECAUSE I SOLD MY Y635 LONG TIME AGO!
1) Resurrection Remix 5.7.3 for Y635
Download: mega.co.nz
Recommended to go to the whole thread located here
Dev: @Gr2_srk

Lollipop ROMs:
KEEP IN MIND: CAMERA DOES NOT WORK IN ANY OF THESE ROMS SO DON'T BOTHER ASKING FOR A FIX :cowboy:
A FIX HAS REPORTEDLY BEEN FOUND BUT IT ONLY USES 3.1MP INSTEAD OF 5MP. YOU CAN DOWNLOAD IT HERE ON MEGA.CO.NZ AND TEST YOURSELF. SPECIAL THANKS TO @NeriRock FOR POSTING IT (ON POST #91)
If you want to install lollipop roms, first you need to flash this file 4xqwt_lp_modem.zip from here http://forum.xda-developers.com/showpost.php?p=62902848&postcount=273 to fix modem issue, otherwise calls can't be hang up! You need to flash your stock modem back if you want to go back to Stock ROM or cm11 roms, I suggest you make a backup of your modem first.
Thanks to @dianlujitao
1) Flyme OS 4.5.4.2R for Y635
Download the rom here mega.co.nz (551.4Mb) and the patch from here mega.co.nz (12.7mb)
Dev: Myself
Screenshots and details at Post #14
2) CM-12.1 with kernel 3.10.49 This one is more stable than all of cm12.1 builds and some bugs have been fixed like 3G/4G/LTE connectivity and also minor graphics issue.
Download here Mediafire
Details on Post #6
Dev: @desalesouche
Review:
3) CM-12.1 for G620S by surdu petru:
Download at AndroidFileHost
Source: http://forum.xda-developers.com/android/development/rom-t3139757
Dev: @surdu_petru
4) XenonHD LP
Click here to download
Thanks to @Gr2_srk for sharing
5) Pacman Lollipop (B2):
Download : Mediafire
Dev: @NeriRock
Thanks to @Gr2_srk for sharing
6) CrDroid Lollipop Beta 1:
Download : Mega.co.nz
Thanks to @Gr2_srk for sharing
7) Infinite OS:
Download : Google Drive
Devs: @NeriRock and @Gr2_srk
8) MIUI 7 Beta 1:
Download : Mega.co.nz
Devs: @NeriRock and @Gr2_srk
9) Pacman LP v1 (B3):
Download : Mediafire
Dev: @NeriRock
Thanks to @Gr2_srk for sharing
10) Resurrection Remix 5.5.9:
Download : Mega.co.nz
Dev: @HB72K
Details and screenshots at post #164
11) CyanogenMod 12.1 NEW
Download: Mega.co.nz
Modem: BasketBuild <= THIS IS IMPORTANT
Dev: @desalesouche & @Gr2_srk
More info at post #234
12) Temasek's LP (cm-12.1 based)
Download here on mega.co.nz
Dev: @Gr2_srk
Main thread is located here

KitKat ROMs:
Note: All CM11 builds MADE for G620S can boot. I tested all of surdu petru's cm11 builds.
1) CM11 (compiled by some chinese with working camera) : The ROM have problems with baseband which is normal because chinese basebands are most of time different. You can try installing a stock modem to fix that bug.
download at mega.co.nz
Shared by @wtfminiknano2
More info at Post #90
2) CM-11 by surdu petru for G620S
Head over this thread on CM-11 G620S Post #2 and download the rom. Then simply install it.
Dev: @surdu_petru
3) HTCMania's Ported CM11 ROMs:
Carbon (Android 4.4.4) => Mediafire
Pacman (Android 4.4.4) => Mediafire
Mokee Opensource (Android 4.4.4) =>Mediafire
Porter: kyota92 @ HTCMania
Original Rom author: eloygomez, GLokin666, javiblader17 all @ HTCMania
Source: http://www.htcmania.com/showthread.php?t=1046360
4) Gamer ROM (Stock EMUI 3.0 with tweaks):
Download here mega.co.nz (480Mb)
The developer has mods for the rom, head over the Post #37 for more info.
Dev: @HB72K
5) PacMan ROM for Y635 ported from G620S
Download here mega.co.nz
Dev: @HB72K
More details on Post #39
The ROM has been updated see here on post #83
6) Carbon KitKat ROM:
Download here mega.co.nz (218,7MB)
Posted by @HB72K at Post #112
ROM review:
7) Pacman ROM Final:
Download : Mega.co.nz
Thanks to @Gr2_srk for sharing
8) Carbon ROM Final:
Download : Mega.co.nz
Thanks to @Gr2_srk for sharing
9) Carbon ROM ported from G7 (G760)
Download: REport_Carbon_Gr2_v2-5.zip (mega.co.nz
MODEM: base_band.zip (mega.co.nz)

More details at post #256

I'm personally working (with other people) on getting CM12.1 stable. Stay tuned.
Check out my github at https://github.com/nonta72


For developers:​
Here are details I got on the device hardwares so far. This is VERY useful for developers especially for kernel compiling. Thanks to @Ksawery for providing updated information.
- Touchscreen Controller:
Hardware: M-Star MSG2142
Driver: M-Star_Msg2142_Ofilm_V1.31

- Camera Controllers:
> Rear Camera:
Hardware: Samsung S5K5E2
Driver: s5k5e2_foxconn_hc0806
Code:
Photo: 4.9 MP
Max: 2560x1920
Video: 2.1 MP
Max: 1920x1080
Focus: auto infinity macro continuous-video continuous-picture manual
Flash modes: off auto on torch
> Front Camera:
Hardware: OmniVision ov2680
Driver: ov2680_byd_bm2920b
Code:
Photo: 1.9 MP
Max size: 1600x1200
Video: 1.2 MP
Max: 1280x960
Focus: fixed
No flash
- Internal Storage (EMMC):
Hardware: TOSHIBA
Driver: Unknown

- LCD (Display Adapter, not the touchscreen):
Hardware: TopStar OTM8019A
Driver: BOE_OTM8019A_5P0_FWVGA_VIDEO

- Motherboard:
Hardware: MSM8916_Y635-L01_VA
Driver: Unknown

- Battery:
Driver: 74284RBC_LG_SCUD

- Light Sensor:
Hardware: Avago Technologies apds9930
Code:
apds9930-light (avago)
range: 0...10000
resolution: 0.013 (0%)
power: 0.2mA
Driver: APS9930/TMD27723T
[url]http://www.avagotech.com/products/optical-sensors/integrated-ambient-light-proximity-sensors/apds-9930[/url]
Hardware: Rohm semiconductor rpr521
Code:
rpr521-light (rohm)
range: 0...10000
resolution: 0,013 (0%)
power: 0,2mA
[url]http://www.rohm.com/web/in/products/-/product/RPR-0521RS[/url]
- Proximity:
Hardware: Rohm Semiconductor rpr521
Code:
rpr521-proximity (rohm)
range: 0...1
resolution: 1 (100%)
power: 3mA
[url]http://www.rohm.com/web/in/products/-/product/RPR-0521RS[/url]
Hardware: Avago Technologies apds9930-light
Code:
apds9930-proximity (avago)
range: 0...1
resolution: 1 (100%)
power: 3mA
[url]http://www.avagotech.com/products/optical-sensors/integrated-ambient-light-proximity-sensors/apds-9930[/url]
- Accelerometer:
Hardware: ST Microelectronics Lis3dh
Driver: ST LIS3DH
Code:
lis3dh-accel (STMicroelectronics)
range: 0...156.8
resolution: 0.01 (0.006%)
power: 0.01mA
[url]http://www.st.com/content/st_com/en/products/mems-and-sensors/accelerometers/lis3dh.html[/url]
Hardware: Kionix KX023 Accelerometer
Code:
kx023-accel (KIONIXMicroelectron)
range: 0...156,8
resolution: 0,01 (0,006%)
power: 0,01mA
[url]http://www.kionix.com/product/KX023-1025[/url]
- Wi-Fi:
Hardware: WIFI_QUALCOMM_WCN3620

- Bluetooth:
Hardware: BT_FM_QUALCOMM_WCN3620


Special Thanks to:
@surdu_petru
@dianlujitao
@desalesouche
@eloygomez
@mparus
@Blefish
CyanogenMod Team

XDA:DevDB Information
Huawei Y635 Development, ROM for the Android General

Contributors
Nonta72
ROM OS Version: 5.1.x Lollipop
ROM Kernel: Linux 3.10.x
ROM Firmware Required: Bootloader Unlocked

Version Information
Status: Testing

Created 2017-10-01
Last Updated 2017-10-03
 
Last edited:

desalesouche

Senior Member
Feb 6, 2012
3,651
4,294
0
you should upload the cm12.1 i provided you with latest kernel i did to allow Y635 users to test and may be help to debug camera .
 

HB72K

Senior Member
Jul 19, 2015
139
182
0
Jalapa del Marqués
ROM STOCK
gamming
@Nonta72 could you please update the index post?
en esta ocasión quiero compartir les su ROM stock, gamer, tiene las siguientes caracteristicas.
Deodex
Tweaks
Busybox.
Swap 480 mb
zipalling, para mejor gestión de RAM.
Flashen la ROM luego, el super user y después el activador.

Gracias a Neri de Lenfet por proporcionarme el kernel y la tabla de particones del Y635

rom

https://mega.nz/#!m0lFxQjA!jpeJbvXLLIhPawj6b3O2cucgFzcrOffnGmV-en8ZALc
;)

Root

https://mega.nz/#!zwVgCYSC!ZVf0l500caEnqDtjZidsOfQXTRD1bSUMbRhq_ErSme4 :fingers-crossed:


Swap

https://mega.nz/#!7wdwWTSA!uIUzbL-bppVlsSldSr8XzUniwcIRn5w0dl1JUByZqLE :good:

# Instalación:
#opcional Hacer un backup con el (TWRP de preferencia) ó CWM.
——— ☆ Instructions for installing a ROM ☆ —————————————
(TWRP)
1. Restart the phone in recovery mode (Power and Volume +)
2. Select Wipe option
3. Choose Advanced Wipe
4. Choose Dalvik Cache, cache, data (#opcional internal storage, system (I use only when I gave bootloop))
5. Swipe to wipe
6. Go Back and choose Install zip from SD External, select the file you downloaded in your SD and installation will begin, vibrate after installation, then give you reboot system.
wait up to 5 minutes until the cell starts with the system properly
7. Let the rom is properly seated about 10 minutes and restart again

CWM RECOVERY:
1. Restart the phone in recovery mode (Power and Volume +)
2. Select Wipe Data / Factory Reset option
3. Select Wipe Cache Partition
4. Select Advanced, and then Wipe Dalvik Cache
5. Go Back and choose Install zip from SD Card, choose the file you downloaded in your SD and installation will begin
wait up to 5 minutes until the cell starts with the system properly
6. Let the rom is properly seated about 10 minutes and restart again


(TWRP)
1. Reiniciar el celular en modo recovery (Encendido y Volumen +)
2. Elegir la opción Wipe
3. Elegir Advanced Wipe
4. Elegir Dalvik Cache, cache, data (#opcional internal storage, system( solo lo utilizo cuando me dio bootloop ))
5. Swipe to wipe
6. Go Back y elegir Install .zip from External SD, elegir el archivo que descargaron en su SD y la instalación comenzará, vibrara al terminar la instalacion, despues le dan reboot system.
esperen máximo 5 minutos hasta que su celular inicie con el sistema correctamente
7. Dejen que la rom se asiente correctamente unos 10 minutos y vuelvan a reiniciar

CWM RECOVERY:
1. Reiniciar el celular en modo recovery (Encendido y Volumen +)
2. Elegir la opción Wipe Data/Factory Reset
3. Elegir Wipe Cache Partition
4. Elegir Advanced, y luego Wipe Dalvik Cache
5. Go Back y elegir Install .zip from SD Card, elegir el archivo que descargaron en su SD y la instalación comenzará
esperen máximo 5 minutos hasta que su celular inicie con el sistema correctamente
6. Dejen que la rom se asiente correctamente unos 10 minutos y vuelvan a reiniciar
 
Last edited:

desalesouche

Senior Member
Feb 6, 2012
3,651
4,294
0
cm-12.1 test for Y635-L01

hi all. thanks to nonta feed back and test and energy, i could compile booting cm12.1 for y635 device.
according nonta, only camera is not working. i hope you, Y635 users and devs can fix the problem.
i can't do more that what i did cos i don't own device. i only have G620s-L01.
here is the link for test.
http://www.mediafire.com/download/da1yahmr5z4e75g/cm-12.1-20160115-Y635test2-g620s.zip

here is kernel 3.10.49 sources https://github.com/desteam/android_kernel_huawei_msm8916/commits/Y635
i will push change to device tree soon but it is really minor change like correcting lcd density and resolution, adding asserts : see attached screenshots
please feed back only here in that thread. don't pm me.
 

Attachments

desalesouche

Senior Member
Feb 6, 2012
3,651
4,294
0
Y635-L03 support added

hi all. thanks to nonta feed back and test and energy, i could compile booting cm12.1 for y635 device.
according nonta, only camera is not working. i hope you, Y635 users and devs can fix the problem.
i can't do more that what i did cos i don't own device. i only have G620s-L01.
here is the link for test.
http://www.mediafire.com/download/da1yahmr5z4e75g/cm-12.1-20160115-Y635test2-g620s.zip

here is kernel 3.10.49 sources https://github.com/desteam/android_kernel_huawei_msm8916/commits/Y635
i will push change to device tree soon but it is really minor change like correcting lcd density and resolution, adding asserts : see attached screenshots
please feed back only here in that thread. don't pm me.
new build http://www.mediafire.com/download/kk3pz05jpkp31pd/cm-12.1-20160118-Y635-L01-L03-g620s.zip
let me know if there is some progress with cam
 
  • Like
Reactions: tambe

Nonta72

Senior Member
Mar 27, 2013
1,547
738
0
Speed Force
I'm testing now.
I will give you results on Hangouts.
Edit:
Tested but "Can't connect to camera" error always occur. Camera icon is still invisible!
I have also found a new bug in all of the cm12.1 builds that boot on Y635 (even surdu's builds for G620S): Calls can't be hang up! If you make call, you need to reboot (or soft reboot) to end the call :(
 
Last edited:
  • Like
Reactions: desalesouche

Nonta72

Senior Member
Mar 27, 2013
1,547
738
0
Speed Force
Camera problem

I have made logcat and dmesg of CyanogenMod 12.1 ROM and stock rom!
I compared them (somehow) and find out something very WEIRD!
The dmesg of CM12.1 states that the S5K4E1 failed to start! I didn't find any mention of S5K5E2 which is our camera sensor module. It does see the front camera but fails to start it though. I think it makes sense because the front camera depends on the rear one; so if rear one isn't detected, the front one can't probably start even if it's detected.
Code:
<3>[275, mm-qcamera-daem][   13.754314] msm_sensor_match_id: [COLOR="Red"]s5k4e1_foxconn_dc0301a[/COLOR]: read id failed
<3>[275, mm-qcamera-daem][   30.544443] msm_sensor_match_id: [COLOR="red"]ov2680_ofilm_fe16[/COLOR]: read id failed
I have also found this line in the logcat but there is no mention of either the S5K5E2 or the S5K4E1 !
Code:
01-01 10:40:19.549 E/mm-camera-sensor(  275): sensor_init_probe:347 camera_module_name:ov2680_ofilm_fe16
Note: Many of these lines are in the dmesg!

The dmesg of stock rom shows this:
Code:
<3>[307, mm-qcamera-daem][    6.330921] [COLOR="DarkGreen"]s5k5e2_foxconn_hc0806[/COLOR] probe succeeded
<3>[307, mm-qcamera-daem][    6.655225] [COLOR="darkgreen"]ov2680_byd_bm2920b[/COLOR] probe succeeded
The stock rom logcat doesn't contain any mention of S5K5E2 or OV2680

Note: I didn't find more than one of each lines in the dmesg :)

Here are all logs:
- CM-12.1 logs:
Dmesg
Logcat
- Stock ROM (EMUI 3.0 - Android 4.4.4)
Stock ROM Dmesg
Stock ROM logcat (not the entire because it exceeds 512kbs)
 
Last edited:
  • Like
Reactions: desalesouche

Nonta72

Senior Member
Mar 27, 2013
1,547
738
0
Speed Force
New update! Camera LED Flash now works !!!

After many attempts with @desalesouche we are almost done with camera. The LED Flash now works with torch apps but camera still doesn't work.
We replaced libmmcamera2_sensor_modules.so and aftet that, some progress has been made!
In fact, using the 'libmmcamera2_sensor_modules.so' from stock rom makes LED Flash work! And this is what dmesg states now regarding the camera sensors:
Code:
<3>[276, mm-qcamera-daem][    6.401282] [COLOR="Green"]s5k5e2_foxconn_hc0806[/COLOR] probe succeeded
But the front camera sensor still fails to start:
Code:
<3>[276, mm-qcamera-daem][    6.752924] [COLOR="Red"]ov2680_byd_bm2920b[/COLOR] power up failed
What logcat says now regarding the sensor:
Code:
01-01 13:27:51.409 E/mm-camera-sensor(  276): af_actuator_init:629 name = s5k5e2_foxconn_hc0806
01-01 13:27:51.409 E/mm-camera-sensor(  276): actuator_load_lib:542 name=s5k5e2_foxconn_hc0806, mode=camera
01-01 13:27:51.409 E/mm-camera-sensor(  276): actuator_load_lib:564 library libactuator_s5k5e2_foxconn_hc0806.so successfully loaded, idx=0
01-01 13:27:51.409 E/mm-camera-sensor(  276): actuator_load_lib:588 library libactuator_s5k5e2_foxconn_hc0806_camera.so successfully loaded, idx=0
01-01 13:27:51.409 E/mm-camera-sensor(  276): actuator_load_lib:542 name=s5k5e2_foxconn_hc0806, mode=camcorder
01-01 13:27:51.409 E/mm-camera-sensor(  276): actuator_load_lib:588 library libactuator_s5k5e2_foxconn_hc0806_camcorder.so successfully loaded, idx=1
If we replace just the 'libmmcamera2-sensor-modules.so" dmesg says that powering the s5k5e2 failed too and it makes sense because the cm12.1 rom we are testing doesn't come with any s5k5e2 lib! Thus, the sensor can't be powered on. After adding the missing s5k5e2 libs to the rom, the dmesg shows that the camera is successfully loaded. 13 Modules related to the s5k5e2 were missing; we added them.
The same way, we added the missing ov2680 missing files but for some reasons, it still can't start.

THE STOCK CAMERA STOPPED DISAPPEARING FROM LAUNCHER TOO !

The full DMESG: http://pastebin.com/gdYccNR5
The whole LOGCAT: http://pastebin.com/gdYccNR5

Here's a video:
https://www.youtube.com/watch?v=bl-4vmtX8sE

Keep visiting, Good things here soon; promised!
 
Last edited:
  • Like
Reactions: desalesouche

desalesouche

Senior Member
Feb 6, 2012
3,651
4,294
0
I'm testing now.
I will give you results on Hangouts.
Edit:
Tested but "Can't connect to camera" error always occur. Camera icon is still invisible!
I have also found a new bug in all of the cm12.1 builds that boot on Y635 (even surdu's builds for G620S): Calls can't be hang up! If you make call, you need to reboot (or soft reboot) to end the call :(
about calls can't be hang up problem.
here is solution. add it to op.
Baseband required in order to fix Dialer issue :

Flash 1° or 2°
1° g7-l01_modem.zip - 25.01 MB
2° 4xqwt_lp_modem.zip

you will find zip file at following link
http://forum.xda-developers.com/showpost.php?p=62902848&postcount=273
 
  • Like
Reactions: Nonta72

Nonta72

Senior Member
Mar 27, 2013
1,547
738
0
Speed Force

Nonta72

Senior Member
Mar 27, 2013
1,547
738
0
Speed Force
New ROM, Flyme OS Android 5.1.1

I have a new ROM for you guys, still have camera bug.
Flyme OS 4.5.4R for G620S (work on Y635).
>>> REAR CAMERA DOES NOT WORK. FRONT CAMERA WORKS AND TAKES PICTURES BUT PICTURES BECOME ALL BLACK <<<

Installation:​
1) Download the ROM from here Mega (551.4 MB)
2) Download the Patch from here Mega (12.7 MB)
> The patch contains camera libs to prevent camera apps from disappearing and also make front camera work. If you want to take photos with front camera, please try Camera Next from my previous post because integrated camera will start to force close after one use. So you need to reset its data in settings. The patch also contains a custom boot.img and a build.prop. Both files must be used only with this rom.
3) Put both in your sdcard, reboot to recovery and flash ROM then the patch.
4) Reboot and Enjoy :D
Note: First boot can take up to 10 minutes! Be patient.

Screenshots:​




Credits:​
- @surdu_petru
- @desalesouche
- haohao3344
- GLokin666 @ HTCMania

Source: HTCMania
 
Last edited:

surdu_petru

Recognized Contributor
Feb 3, 2010
6,587
22,195
263
Paris
After many attempts with @desalesouche we are almost done with camera. The LED Flash now works with torch apps but camera still doesn't work.
We replaced libmmcamera2_sensor_modules.so and aftet that, some progress has been made!
In fact, using the 'libmmcamera2_sensor_modules.so' from stock rom makes LED Flash work! And this is what dmesg states now regarding the camera sensors:
Code:
<3>[276, mm-qcamera-daem][    6.401282] [COLOR="Green"]s5k5e2_foxconn_hc0806[/COLOR] probe succeeded
But the front camera sensor still fails to start:
Code:
<3>[276, mm-qcamera-daem][    6.752924] [COLOR="Red"]ov2680_byd_bm2920b[/COLOR] power up failed
What logcat says now regarding the sensor:
Code:
01-01 13:27:51.409 E/mm-camera-sensor(  276): af_actuator_init:629 name = s5k5e2_foxconn_hc0806
01-01 13:27:51.409 E/mm-camera-sensor(  276): actuator_load_lib:542 name=s5k5e2_foxconn_hc0806, mode=camera
01-01 13:27:51.409 E/mm-camera-sensor(  276): actuator_load_lib:564 library libactuator_s5k5e2_foxconn_hc0806.so successfully loaded, idx=0
01-01 13:27:51.409 E/mm-camera-sensor(  276): actuator_load_lib:588 library libactuator_s5k5e2_foxconn_hc0806_camera.so successfully loaded, idx=0
01-01 13:27:51.409 E/mm-camera-sensor(  276): actuator_load_lib:542 name=s5k5e2_foxconn_hc0806, mode=camcorder
01-01 13:27:51.409 E/mm-camera-sensor(  276): actuator_load_lib:588 library libactuator_s5k5e2_foxconn_hc0806_camcorder.so successfully loaded, idx=1
If we replace just the 'libmmcamera2-sensor-modules.so" dmesg says that powering the s5k5e2 failed too and it makes sense because the cm12.1 rom we are testing doesn't come with any s5k5e2 lib! Thus, the sensor can't be powered on. After adding the missing s5k5e2 libs to the rom, the dmesg shows that the camera is successfully loaded. 13 Modules related to the s5k5e2 were missing; we added them.
The same way, we added the missing ov2680 missing files but for some reasons, it still can't start.

THE STOCK CAMERA STOPPED DISAPPEARING FROM LAUNCHER TOO !

The full DMESG: http://pastebin.com/gdYccNR5
The whole LOGCAT: http://pastebin.com/gdYccNR5

Here's a video:
https://www.youtube.com/watch?v=bl-4vmtX8sE

Keep visiting, Good things here soon; promised!

Yep, very good - you are not far away to activate the camera :eek:

First, you should keep all libraries and also ( system/bin/mm-qcamera-daemon) related camera from your stock rom, and not from cm-12.0 for G620S !

After you already repalced all libraries, please provide logcat after you try to enable camera !

If camera cannot be detected/open , please go into your device , and let me to know what you can see after this command :

Code:
> adb shell
$ su 
# mm-qcamera-daemon
Thanks !
 
  • Like
Reactions: Nonta72 and eduejro

Nonta72

Senior Member
Mar 27, 2013
1,547
738
0
Speed Force
Yep, very good - you are not far away to activate the camera :eek:

First, you should keep all libraries and also ( system/bin/mm-qcamera-daemon) related camera from your stock rom, and not from cm-12.0 for G620S !

After you already repalced all libraries, please provide logcat after you try to enable camera !

If camera cannot be detected/open , please go into your device , and let me to know what you can see after this command :

Code:
> adb shell
$ su 
# mm-qcamera-daemon
Thanks !
Hi,
Nice to see you here :D

About keeping camera libs, I have already copied everything with "actuator", "chromatix" and "mmcamera" from stock/vendor/lib to cm-12.1/vendor/lib. I can't just directly use the entire 'lib' folder from stock/vendor; else, I will get bootloop.

Anyways, here's the results from the command:
Code:
[email protected]:/ # mm-qcamera-daemon
mm-qcamera-daemon
WARNING: linker: libmmcamera_imglib.so: unused DT entry: type 0x6ffffffe arg 0x2050
WARNING: linker: libmmcamera_imglib.so: unused DT entry: type 0x6fffffff arg 0x1
[email protected]:/ #
Here are both newest logcat and dmesg:
- newest_logcat.log
- newest_dmesg.log

I know, the logcat is from Flyme OS; but the camera behave just the same way in every cm-12.1 rom and Flyme OS is based on cyanogenmod if I'm not wrong. The problem exist with all kernels: yours, desalesouche's builds and mines aswell.
 

surdu_petru

Recognized Contributor
Feb 3, 2010
6,587
22,195
263
Paris
Hi,
Nice to see you here :D

About keeping camera libs, I have already copied everything with "actuator", "chromatix" and "mmcamera" from stock/vendor/lib to cm-12.1/vendor/lib. I can't just directly use the entire 'lib' folder from stock/vendor; else, I will get bootloop.

Anyways, here's the results from the command:
Code:
[email protected]:/ # mm-qcamera-daemon
mm-qcamera-daemon
WARNING: linker: libmmcamera_imglib.so: unused DT entry: type 0x6ffffffe arg 0x2050
WARNING: linker: libmmcamera_imglib.so: unused DT entry: type 0x6fffffff arg 0x1
[email protected]:/ #
Here are both newest logcat and dmesg:
- newest_logcat.log
- newest_dmesg.log

I know, the logcat is from Flyme OS; but the camera behave just the same way in every cm-12.1 rom and Flyme OS is based on cyanogenmod if I'm not wrong. The problem exist with all kernels: yours, desalesouche's builds and mines aswell.

You shouldn't post here the whole logcat. You can upload only the lines related camera from logcat ... and you must try to open camera while you take logcat.

So do "adb logcat > log.txt" and right now please try to open camera for few times .... In this way you will be able to see into logcat all issues about camera.

Thanks !
 
  • Like
Reactions: Nonta72

Nonta72

Senior Member
Mar 27, 2013
1,547
738
0
Speed Force
You shouldn't post here the whole logcat. You can upload only the lines related camera from logcat ... and you must try to open camera while you take logcat.

So do "adb logcat > log.txt" and right now please try to open camera for few times .... In this way you will be able to see into logcat all issues about camera.

Thanks !
Well, I don't know if I did right, but I procceeded as you said. Here's what I found related to camera error.
E/mm-camera( 324): isp_hw_find_primary_cid:304 error cannot find primary sensor format
E/mm-camera( 324): ispif_proc_streamoff: error: No streams to be stopped
E/mm-camera( 324): ispif_proc_streamoff: ISPIF_CFG error = -1
E/mm-camera-img( 324): faceproc_save_album:794] Error No album
E/CAM_Util( 6224): Show fatal error dialog
E/mm-camera-sensor( 324): af_actuator_set_params:439 failed rc -1
E/mm-camera-sensor( 324): actuator_process:1094 failed rc -1
E/mm-camera-sensor( 324): module_sensor_stream_on:2426 sensor_failure : ACTUATOR_SET_PARAMETERS failed
E/mm-camera-sensor( 324): module_sensor_module_process_event:3471 failed
E/mm-camera-intf( 258): mm_stream_streamon: ioctl VIDIOC_STREAMON failed: rc=-1
E/mm-camera-intf( 258): mm_channel_start: start stream failed at idx(1)
E/mm-camera-sensor( 324): port_sensor_port_process_event:1230 failed
E/mm-camera-img( 324): faceproc_comp_eng_destroy: Album save failed -1
E/CAM2PORT_AndCamAgntImp( 6224): java.lang.RuntimeException: startPreview failed
E/CAM_CameraActivity( 6224): java.lang.RuntimeException: startPreview failed
W/PackageManager( 3269): Failure retrieving resources for com.android.camera2: Resource ID #0x0
E/mm-camera( 324): Fail,cpphw=0xb7af6558, hw_params=0xb7c31cc8, chromatix_ptr=0x0, trigger=0xb7b4fc88
E/mm-camera( 324): Fail,cpphw=0xb7af6558, hw_params=0xb7c31cc8, chromatix_ptr=0x0, trigger=0xb7b4fc88
E/mm-camera-sensor( 324): af_actuator_set_params:439 failed rc -1
E/mm-camera-sensor( 324): actuator_process:1094 failed rc -1
E/mm-camera-intf( 258): mm_stream_unreg_buf: fd=58, VIDIOC_REQBUFS failed, rc=-1
E/mm-camera( 324): c2d_hardware_process_streamoff:208: failed
E/mm-camera( 324): c2d_module_handle_streamoff_event:1496: hw streamoff failed
E/mm-camera( 324): cpp_hardware_process_streamoff:648: failed
E/mm-camera( 324): cpp_module_handle_streamoff_event:2096: hw streamoff failed
E/mm-camera( 324): Fail,cpphw=0xb7af6558, hw_params=0xb7c30438, chromatix_ptr=0x0, trigger=0xb7b88968
E/mm-camera( 324): Fail,cpphw=0xb7af6558, hw_params=0xb7c30438, chromatix_ptr=0x0, trigger=0xb7b88968
W/PackageManager( 6224): Failure retrieving resources for com.android.gallery3d: Resource ID #0x0
W/CameraBase( 6224): Camera service died!


Full log (ONLY CAMERA RELATED LINES AS YOU SUGGESTED) => camera_log.txt
 
Last edited:
  • Like
Reactions: surdu_petru

surdu_petru

Recognized Contributor
Feb 3, 2010
6,587
22,195
263
Paris
Well, I don't know if I did right, but I procceeded as you said. Here's what I found related to camera error.
E/mm-camera( 324): isp_hw_find_primary_cid:304 error cannot find primary sensor format
E/mm-camera( 324): ispif_proc_streamoff: error: No streams to be stopped
E/mm-camera( 324): ispif_proc_streamoff: ISPIF_CFG error = -1
E/mm-camera-img( 324): faceproc_save_album:794] Error No album
E/CAM_Util( 6224): Show fatal error dialog
E/mm-camera-sensor( 324): af_actuator_set_params:439 failed rc -1
E/mm-camera-sensor( 324): actuator_process:1094 failed rc -1
E/mm-camera-sensor( 324): module_sensor_stream_on:2426 sensor_failure : ACTUATOR_SET_PARAMETERS failed
E/mm-camera-sensor( 324): module_sensor_module_process_event:3471 failed
E/mm-camera-intf( 258): mm_stream_streamon: ioctl VIDIOC_STREAMON failed: rc=-1
E/mm-camera-intf( 258): mm_channel_start: start stream failed at idx(1)
E/mm-camera-sensor( 324): port_sensor_port_process_event:1230 failed
E/mm-camera-img( 324): faceproc_comp_eng_destroy: Album save failed -1
E/CAM2PORT_AndCamAgntImp( 6224): java.lang.RuntimeException: startPreview failed
E/CAM_CameraActivity( 6224): java.lang.RuntimeException: startPreview failed
W/PackageManager( 3269): Failure retrieving resources for com.android.camera2: Resource ID #0x0
E/mm-camera( 324): Fail,cpphw=0xb7af6558, hw_params=0xb7c31cc8, chromatix_ptr=0x0, trigger=0xb7b4fc88
E/mm-camera( 324): Fail,cpphw=0xb7af6558, hw_params=0xb7c31cc8, chromatix_ptr=0x0, trigger=0xb7b4fc88
E/mm-camera-sensor( 324): af_actuator_set_params:439 failed rc -1
E/mm-camera-sensor( 324): actuator_process:1094 failed rc -1
E/mm-camera-intf( 258): mm_stream_unreg_buf: fd=58, VIDIOC_REQBUFS failed, rc=-1
E/mm-camera( 324): c2d_hardware_process_streamoff:208: failed
E/mm-camera( 324): c2d_module_handle_streamoff_event:1496: hw streamoff failed
E/mm-camera( 324): cpp_hardware_process_streamoff:648: failed
E/mm-camera( 324): cpp_module_handle_streamoff_event:2096: hw streamoff failed
E/mm-camera( 324): Fail,cpphw=0xb7af6558, hw_params=0xb7c30438, chromatix_ptr=0x0, trigger=0xb7b88968
E/mm-camera( 324): Fail,cpphw=0xb7af6558, hw_params=0xb7c30438, chromatix_ptr=0x0, trigger=0xb7b88968
W/PackageManager( 6224): Failure retrieving resources for com.android.gallery3d: Resource ID #0x0
W/CameraBase( 6224): Camera service died!


Full log (ONLY CAMERA RELATED LINES AS YOU SUGGESTED) => camera_log.txt

Ok, I saw some issues with actuator : "MAX_ACTUATOR_REGION is exceeded." - so, this function "msm_actuator_set_param" from this : "../kernel/huawei/msm8916/drivers/media/platform/msm/camera_v2/sensor/actuator/msm_actuator.c" , cannot set correct parameters for actuator - because return -EFAULT

static int32_t msm_actuator_set_param(struct msm_actuator_ctrl_t *a_ctrl,
struct msm_actuator_set_info_t *set_info) {
struct reg_settings_t *init_settings = NULL;
int32_t rc = -EFAULT;
uint16_t i = 0;
struct msm_camera_cci_client *cci_client = NULL;
CDBG("Enter\n");

for (i = 0; i < ARRAY_SIZE(actuators); i++) {
if (set_info->actuator_params.act_type ==
actuators->act_type) {
a_ctrl->func_tbl = &actuators->func_tbl;
rc = 0;
}
}

if (rc < 0) {
pr_err("Actuator function table not found\n");
return rc;
}
if (set_info->af_tuning_params.total_steps
> MAX_ACTUATOR_AF_TOTAL_STEPS) {
pr_err("Max actuator totalsteps exceeded = %d\n",
set_info->af_tuning_params.total_steps);
return -EFAULT;
}
if (set_info->af_tuning_params.region_size
> MAX_ACTUATOR_REGION) {
pr_err("MAX_ACTUATOR_REGION is exceeded.\n");
return -EFAULT;
}
*************


At this point, only a stock kernel from your device can help us - we need to make some comparisons, because I think something is missing compared to your stock kernel for your device.

So, if you have a stock Huawei kernel for your Y635 device, please push it without modification on your github - when I'll have some free time, I'll try to take a look ( maybe I can help more ) . Thanks !


On the other hand, why you not try to compile only for your device, without adding in the kernel other devices, so you can rename g620s_defconfig to y635_defconfig and disable all support for other devices, you should let only "CONFIG_SUPPORT_Y635 = y" - then edit Makefile from ... ../kernel/huawei/msm8916/arch/arm/boot/dts/qcom/ !


Also you can take a look here about camera blobs, my advice is to remove all dependency related camera from cm-12.1, and than you can add back from your device - in your device may be more or fewer libraries, so should not be mixed with the cm-12.1 for G620S !
 

Nonta72

Senior Member
Mar 27, 2013
1,547
738
0
Speed Force
At this point, only a stock kernel from your device can help us - we need to make some comparisons, because I think something is missing compared to your stock kernel for your device.
That really makes sense! In you cm11 builds, I could fix camera by using stock zImage with cm11 ramdisk then replacing the vendor/lib folder of that rom with stock one :D But stock kernel can't be used in cm12.1

So, if you have a stock Huawei kernel for your Y635 device, please push it without modification on your github - when I'll have some free time, I'll try to take a look ( maybe I can help more ) . Thanks !
Sure, I will push it; it will be ready tomorrow.

On the other hand, why you not try to compile only for your device, without adding in the kernel other devices, so you can rename g620s_defconfig to y635_defconfig and disable all support for other devices, you should let only "CONFIG_SUPPORT_Y635 = y" - then edit Makefile from ... ../kernel/huawei/msm8916/arch/arm/boot/dts/qcom/ !
Well, we just used your kernel source with some little modifications. I will try what you suggested.

Also you can take a look here about camera blobs, my advice is to remove all dependency related camera from cm-12.1, and than you can add back from your device - in your device may be more or fewer libraries, so should not be mixed with the cm-12.1 for G620S !
We've already did so...Somehow. But we added missing libraries especially related to s5k5e2 and ov2680. I also created a test vendor blob with only y635; but I was running into some weird errors during compiling process.
Anyways, see this commit here on github
 
  • Like
Reactions: surdu_petru
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone