Non c'entra niente ma il problema sono i drivers. Se qualcuno manca devi portarlo nel kernel G510 dal kernel G330. Tuttavia se la diversa versione del kerne ha cambiato le interfacce verso il driver potrebbe non compilare o meglio compilare e non funzionare correttamente...
Non c'entra niente ma il problema sono i drivers. Se qualcuno manca devi portarlo nel kernel G510 dal kernel G330. Tuttavia se la diversa versione del kerne ha cambiato le interfacce verso il driver potrebbe non compilare o meglio compilare e non funzionare correttamente...
Ho detto una cazzata... probabilmente non hai i sorgenti del driver. Quindi non compili un bel niente! Sono stato troppo ottimista... :P Puoi solo piazzare un firmware vecchio in una ROM nuova e sperare che riesci a far andare la baracca...
05-07-13, 23:24
DemonFirefox
Hey folks!
First of all a huge thanks to Ikon for your great tutorial! I followed all steps and was able to compile the kernel successfully. However my WiFi and Bluetooth are broken and I don't know what went wrong. I applied the kernel to a clean boot.img (version B958) and flashed it via CWM to the phone. All .ko-files have been copied to /system/lib/modules aswell and signatures of the files are correct.
Everytime I try to enable WiFi or Bluetooth I'm getting these errors in LogCat:
Have you tried to launch wifi and bluetooth modules manually from terminal emulator?
05-07-13, 23:49
Ikon
Hello Demon thank you and don't worry for writing in English. I think my patch is not changing anything important, since I just added some #pragmas to avoid errors using GCC 4.7. First time I compiled I used GCC 4.4 and I didn't need that #pragmas. Anyway in both cases I had to do a fix related to the bluetooth in /arch/arm/mach-msm/board-msm7x27a.c:
As you can see I conditionally removed the initialization of the bluetooth module. Usually BT and WIFI modules are on the same chip... and this could explain your problems. I don't know why, but in the other source files all the function calls to the msm7627a_bt stuff are under conditional compilation. In the makefile we should set HUAWEI_BT_BLUEZ_VER30=1.
I will make a try and let you know. If you find a solution before me tell me... I can't spend a lot of time on that since I'm quite busy.
P.S.: I remember that in a previous of the post #1 I wrote "check if the BT works aftere this change" :P
06-07-13, 16:08
Ikon
Quote:
Originariamente inviato da Ikon
Hello Demon thank you and don't worry for writing in English. I think my patch is not changing anything important, since I just added some #pragmas to avoid errors using GCC 4.7. First time I compiled I used GCC 4.4 and I didn't need that #pragmas. Anyway in both cases I had to do a fix related to the bluetooth in /arch/arm/mach-msm/board-msm7x27a.c:
As you can see I conditionally removed the initialization of the bluetooth module. Usually BT and WIFI modules are on the same chip... and this could explain your problems. I don't know why, but in the other source files all the function calls to the msm7627a_bt stuff are under conditional compilation. In the makefile we should set HUAWEI_BT_BLUEZ_VER30=1.
I will make a try and let you know. If you find a solution before me tell me... I can't spend a lot of time on that since I'm quite busy.
P.S.: I remember that in a previous of the post #1 I wrote "check if the BT works aftere this change" :P
This means the BT module will be initialized... moreover in my .config I found:
CONFIG_HUAWEI_KERNEL=y
I also found:
# CONFIG_HUAWEI_KERNEL_DEBUG is not set
You could try to set in .config "CONFIG_HUAWEI_KERNEL_DEBUG=y" and probably you will get further infos about your issue.
By the way, I don't believe that kernel is really ok. If you try to compile it (with GCC 4.4) you get an error in /arch/arm/mach-msm/board-msm7x27a.c. This means Huawei developers have never compiled it, so I'm not sure whether this kernel is the working one or not!!!
06-07-13, 16:47
Ikon
Quote:
Originariamente inviato da Ikon
By the way, I don't believe that kernel is really ok. If you try to compile it (with GCC 4.4) you get an error in /arch/arm/mach-msm/board-msm7x27a.c. This means Huawei developers have never compiled it, so I'm not sure whether this kernel is the working one or not!!!
Ok the problem is the following. Reverting the changes about the bluetooth I get again the following error:
arch/arm/mach-msm/board-msm7x27a.c: In function ‘msm7x2x_init’:
arch/arm/mach-msm/board-msm7x27a.c:1495:2: error: implicit declaration of function ‘msm7627a_bt_power_init’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mach-msm/board-msm7x27a.o] Errore 1
make: *** [arch/arm/mach-msm] Errore 2
The function:
msm7627a_bt_power_init
Is declared in /arch/arm/mach-msm/board-msm7627a.h. Here we have:
Using the #error directive I noticed that none of the declarations is compiled... it's so weird :/
Anyway we need a fix in the patch file I did it in the post #1... moreover I am going to test the configuration here: /arch/arm/configs/hw_msm8x25_defconfig (with some changes on the camera, I read our camera can work at 8Mpx... the problem is my autofocus sensor has broken when my phone fell down on the ground :()