Pablito2020 / kernel-bq-krillin

🆒 Stock bq kernel sources for the E4.5 device
Other
1 stars 1 forks source link

Bootable #1

Open assusdan opened 8 years ago

assusdan commented 8 years ago

Hello! Is this kernel bootable on your device?

Pablito2020 commented 8 years ago

Another bug @assusdan speaker is working but the sound is very very low.... Already replaced arch/arm/mach-mt6582/alps/sound and drivers/misc/mediatek/sound....

Hope you know how to fix it! THanks in advance

assusdan commented 8 years ago

cm14 commit: https://github.com/assusdan/cyanogenmod_kernel_hs_zerasrs/commit/1cef327fa6fe0e46540430ff8515f6668990a083 don't touch build.sh, it is not for cm14. There still are many bugs on cm14 (non-kernel). Look here: http://4pda.ru/forum/index.php?showtopic=570400&view=findpost&p=53514195 No camera, no root, unstable system, bad video codecs

assusdan commented 8 years ago

@Pablito2020 for camera, revert this: https://github.com/assusdan/android_kernel_hs_zerasrs/commit/ec4eefb80004ad7f32f770dc22c9de0408282e8b#diff-6fb90df9cc334a943f5b4bd16983d2a8

assusdan commented 8 years ago

So your camera path is not /drivers/misc/mediatek/imgsensor. It is /arch/arm/mach-mt6582/alps/imgsensor

Pablito2020 commented 8 years ago

@assusdan latest news:

.-I booted AOSP 7.0 from explay fresh thank you for your commit! But I have a question, Why in explay fresh camera is working? Is something related to kernel issue? Did you try to replace your libcam blobs?

.-And for camera: Know : Front Camerais now working fine Thanks! Now will try to add my camera imgsensor files to /arch/arm/mach-mt6582/alps/imgsensor and to defconfig.

assusdan commented 8 years ago

1) Really don'nt know :open_mouth: 2) try it! Don't forget about kd_camerahw.

Pablito2020 commented 8 years ago

@assusdan , Finally fixed rear camera + flashlight in this commit: https://github.com/Pablito2020/cyanogenmod_kernel_bq_krillin/commit/5b6e02fe56999abd33d3be7c79aa33aef6e6e942 But now bug is frontal camera.... Any idea for fix it without breaking the camera and the flashlight?

assusdan commented 8 years ago

No ideas. I have the some bug :smile:

Pablito2020 commented 8 years ago

@assusdan you have the same bug???? But your cyanogenmod for hs zerars wasn't stable?? Thanks in advance

assusdan commented 8 years ago

some bug. It's not so stable (bugs are non-switching cameras and no AF), but users love it as is.

Pablito2020 commented 8 years ago

@assusdan in AOSP for your device switch cameras seems to be working... : http://4pda.ru/forum/index.php?showtopic=570400&st=15980#entry53600934 (did you flash this rom?)

And in cyanogenmod 13 for your device say that there is a patch... "Не работаeт переключение камер, патч есть."

Thanks in advance

assusdan commented 7 years ago

I have no device (remote testerman). "There is a patch" means there are 2 kernels. 1 is frontal, 2 is rear :)

Pablito2020 commented 7 years ago

@assusdan Another bug: sound is not working. But in headset is working... Any idea forma hiw to fix it? Thanks in advance

assusdan commented 7 years ago

Speaker pin? What log says?

Pablito2020 commented 7 years ago

@assusdan Log or dmesg?

assusdan commented 7 years ago

dmesg

assusdan commented 7 years ago

did you set your codegen and .h codegen files?

Pablito2020 commented 7 years ago

@assusdan. Yes I add it. Look here: https://github.com/Pablito2020/cyanogenmod_kernel_bq_krillin/tree/cm-13.0/arch/arm/mach-mt6582/alps/dct/dct

assusdan commented 7 years ago

Oh, I remember. Look here: https://github.com/Pablito2020/cyanogenmod_kernel_bq_krillin/blob/cm-13.0/arch/arm/mach-mt6582/alps/accdet/accdet_custom_def.h P.S. As far as I know, you're already changed it. So may be you must recompile audio libs with this params.

Pablito2020 commented 7 years ago

How to recompile audio libs with this parameters? Can you give me a guide please @assusdan Thanks in advance

assusdan commented 7 years ago

Sorry for mixing of russian, english and chinese languages... http://4pda.ru/forum/index.php?showtopic=583114&view=findpost&p=39602859 . one difference is another files paths.

Pablito2020 commented 7 years ago

Okay, @assusdan , Now I fixed audio but the sound is very very very very low, how to fix it? It must be a libaudio blob, but I don't know which is.. Thanks in advance

assusdan commented 7 years ago

How did you fix audio? I really don't know about sound...

Pablito2020 commented 7 years ago

Just replacing drivers/misc/mediatek/sound... PD: Fixed rear and frontal camera! Just use libcameracustom from your stock lp rom. It worked for me!

Know I will ask zormax about how to fix poor sound in cm rom.... Thanks for all and if you know how to fix audio please tell me ;) Thanks in advance

assusdan commented 7 years ago

Zormax answered you. I already tried this. Non-work for me (some difference in libs...)

assusdan commented 7 years ago

Oh I forget I have no stock 5.0 ^_^

assusdan commented 7 years ago

What imgsensors do you have?

Pablito2020 commented 7 years ago

My imgsensor are: ov5648_mipi_raw ov8865_mipi_raw t4k04_mipi_raw ov12830_mipi_raw

Maybe you can try your stock kk libcameracustom, maybe it will work!

assusdan commented 7 years ago

non work, I already tried it :)

Pablito2020 commented 7 years ago

@assusdan reopening this issue for trying to fix magnetometer in my ALPS kernel.

1.- Added mmc3516x st480 in defconfig and compiled it. 2.- I have atached logcat, dmesg in 4pda 3.- You said that it was i2c error.... But if I do:

pablito@pablito2020-DareDevil:~$ adb shell
root@krillin:/ # cd /sys/bus/i2c/drivers/
root@krillin:/sys/bus/i2c/drivers # ls
FM50AF L3GD20 LSM330 TMD2772 dummy fan5405 ft5336 kd_camera_hw mmc3516x st480 
root@krillin:/sys/bus/i2c/drivers # 

Says that, as you can see mmc3516x and st480 driver are showing....

Cheers and waiting for your answer :) Thanks in advance

assusdan commented 7 years ago

@Pablito2020 3. Im not sure about it, i've just asked you Anyway, test the sensor in kernel (not in the libs). To do that, find the sensor's paths in /sys dir and files like status or smth else. And " $ cat " them with different magnetic field state (take a magnet and swipe him about phone)

Pablito2020 commented 7 years ago

@assusdan , Hell yeah! It seems to be working! The parameters change when I put a magnet near my mobile! So what does it mean? It is lib issue?

` root@krillin:/sys/devices/platform/msensor/driver # ls bind chipinfo layout posturedata status uevent calidata1 daemon msensor sensordata trace unbind

2|root@krillin:/sys/devices/platform/msensor/driver # cat sensordata 43 -39 36

root@krillin:/sys/devices/platform/msensor/driver # cat sensordata -330 156 146

root@krillin:/sys/devices/platform/msensor/driver # cat sensordata 14 -34 36

root@krillin:/sys/devices/platform/msensor/driver # cat sensordata 14 -33 37

root@krillin:/sys/devices/platform/msensor/driver #

`

Pablito2020 commented 7 years ago

@assusdan finally fixed... It wasn't kernel problem... It was lib, bin and init.sprout_common.rc problem. A clean build + a clean flash fixed the problem and now I have all my sensors working.

Thanks for all!

Pablito2020

assusdan commented 7 years ago

@Pablito2020 Im glad to hear that

imranpopz commented 7 years ago

Hey bro help me pls am too adopting 3.10 kernel with my 3.4.67 kernel help me bros

dee3000 commented 7 years ago

bro help me plzzzzz, sir plzzz halp me bro sir help