Compilation error in P6810 kernel - mdnie.c - Galaxy Tab 7.7 General

Hi there,
I'm trying to compile the P6810's kernel. I got some errors (with asyn.c ou lktdm.c) but I got to managed them so far. But now, this time I don't get this one. The compilation stuck on this :
[email protected]:~/Bureau/android/kernel_modif$ make ARCH=arm CROSS_COMPILE=/opt/arm-2011.03/bin/arm-none-eabi-
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: « include/generated/mach-types.h » est à jour.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC drivers/video/samsung/mdnie.o
cc1: warnings being treated as errors
drivers/video/samsung/mdnie.c: In function 'set_mdnie_value':
drivers/video/samsung/mdnie.c:181:6: error: comparison between 'enum SCENARIO' and 'enum SCENARIO_COLOR_TONE' [-Wenum-compare]
drivers/video/samsung/mdnie.c:181:6: error: comparison between 'enum SCENARIO' and 'enum SCENARIO_COLOR_TONE' [-Wenum-compare]
make[3]: *** [drivers/video/samsung/mdnie.o] Erreur 1
make[2]: *** [drivers/video/samsung] Erreur 2
make[1]: *** [drivers/video] Erreur 2
make: *** [drivers] Erreur 2
The syntax seems to be good... And the value seems to be set though... help me guys ! I'm almost there for a kernel

Shouldn't you be using a newer version of the arm have binaries?
Sent from my Galaxy Nexus using Tapatalk 2

which one do you use then ?
onicrom said:
Shouldn't you be using a newer version of the arm have binaries?
Edit : Same problem with the latest binaries...
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse

Thread Moved​
Its a question, so it goes in general.​

up

Related

.Config or better yet tun.ko sought for Nexus S

Hi,
I recently received the OTA update to 4.1.2 for my Nexus S but it broke tethering for me. After looking and waiting to hear reports if the 4.2 update would fix things it appears that it will not. Therefore I have installed the stock 4.1.1 version on my phone but would like to get DroidVPN working which brings me to looking for the tun.ko.
My phone:
Model: Nexus S
Android Version: 4.1.1
Baseband version: I9020AUCKJ1
Kernel Version: 3.0.31-g3b0c5d2
Build Number: JRO03E
Goal: Get DroidVPN working, need tun.ko
If someone has the correct tun.ko, or could help by compiling one, it would be the best outcome. I have followed the different guides for compiling my own, but I am stuck with no proc/config.gz on the phone. Another thread indicated I might be able to get one using "make herring_defconfig" but it did not work. It gives the error at the end.
Any assistance is appreciated.
[email protected]:~/android/samsung$ make herring_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
***
*** Can't find default configuration "arch/x86/configs/herring_defconfig"!
***
make[1]: *** [herring_defconfig] Error 1
make: *** [herring_defconfig] Error 2
Tried tun.ko installer?
https://play.google.com/store/apps/details?id=com.aed.tun.installer
I should have mentioned it. I downloaded the tun.installer from the store and tried it but unfortunately they don't have my phone specifics in their database.
I have a working one, will post asap.
Sent from my Nexus S using xda app-developers app
And here it is...
Here's my tun.ko, let me know if it's still working.
Remove the ".h" from the filename and it's good to go.
BrotherOdin said:
Hi,
I recently received the OTA update to 4.1.2 for my Nexus S but it broke tethering for me. After looking and waiting to hear reports if the 4.2 update would fix things it appears that it will not. Therefore I have installed the stock 4.1.1 version on my phone but would like to get DroidVPN working which brings me to looking for the tun.ko.
My phone:
Model: Nexus S
Android Version: 4.1.1
Baseband version: I9020AUCKJ1
Kernel Version: 3.0.31-g3b0c5d2
Build Number: JRO03E
Goal: Get DroidVPN working, need tun.ko
If someone has the correct tun.ko, or could help by compiling one, it would be the best outcome. I have followed the different guides for compiling my own, but I am stuck with no proc/config.gz on the phone. Another thread indicated I might be able to get one using "make herring_defconfig" but it did not work. It gives the error at the end.
Any assistance is appreciated.
[email protected]:~/android/samsung$ make herring_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
***
*** Can't find default configuration "arch/x86/configs/herring_defconfig"!
***
make[1]: *** [herring_defconfig] Error 1
make: *** [herring_defconfig] Error 2
Click to expand...
Click to collapse
It looks like you did not set your ARCH variable. Set 'ARCH=arm' before you try 'make herring_defconfig'
I will play around with the provided Tun.ko later on tonight. Thanks Jorim!
My pleasure
Sent from my Nexus S using xda app-developers app

manifest.xml error while compiling aosp rom

I love my slutty n4
Hey guys i am trying to comple a personal rom from sources i did with cynogenmod before it worked, but when i was trying to build an aosp one, when i enter" git clone https://android.googlesource.com/device/lge/mako " i get "fatal: manifest 'default.xml' not available
fatal: remote github not defined in /home/********/WORKING_DIRECTORY/.repo/manifests/default.xml
any solution to this problem?

[Q] [HELP NEEDED]Building AOSP 5.0 for D802[DEV]

I everybody!!
I am working on AOSP Lollipop for the D802 for around a week now.
@REV3NT3CH, @Alberto97 - can you perhaps help me to solve this error?
My problem: Building stops after some time because of the following:
make: *** No rule to make target `/data1/Flo0008/aosp_g2/out/target/product/d802/obj/STATIC_LIBRARIES/libsigchain_intermediates/export_includes', needed by `/data1/Flo0008/aosp_g2/out/target/product/d802/obj/EXECUTABLES/surfaceflinger_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
I build with TWRP recovery.
Thanks in advance!!
edit

[Q&A] [Kernel][TW][SM-G901F] GUYVER Kernel v0.3 [25/08/15]

Q&A for [Kernel][TW][SM-G901F] GUYVER Kernel v0.3 [25/08/15]
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [Kernel][TW][SM-G901F] GUYVER Kernel v0.3 [25/08/15]. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
boot loop
First of all, 10x for seeing there are developers for the new SM-G901F
But, when i install this GUYVER kernel v0.3 via TWRP i get boot loop from the start. The same happens to my SM-G901F when i install JAVILLONAS's kernel, or NOVA rom.
Now I am on SimplexGX rom v1.3.3 with SimpleGX kernel v1.2.3 with no problems so far.
Should I flash a specific pit file or there is something else at the middle of this
---------- Post added at 09:06 AM ---------- Previous post was at 08:39 AM ----------
I also mention that i have baseband version G901FXXU1BOC4
---------- Post added at 09:36 AM ---------- Previous post was at 09:06 AM ----------
I need this kernel for the overclock and undervolt support
@artaniss11k
i tested my kernel on OD6 & OE2 without any problem.( no need to any pit file )
Just update your bootloader & Modem to OD6 or OE2
10x for the response. I'll search for the upgrade files and try again.
I'm currently on BOC4 version, both the bootloader and the baseband.
I'll come back with feedback
I have one more problem. Forgive me if i miss searched but i can't find any upgrade for the bootloader.
I upgraded the modem to BOD6 and I wanted to ask you for a link to upgrade the bootloader
And sorry to hear that you won't be working further on this kernel. I would have been great to see more from you. There are not so many developers for this great G901F and it should have been a great deal to see a Stweaks implement for it and other cpu governors.
10x for your effort so far
done.
i installed another rom the new G901FXXU1BOH4 , root it, installed the Lonas custom rom v1.1, flashed the kernell and it works
the v0.4 version gives me some random freezes and reboots but the v0.3 is stable
in antutu benchmark with max overclock i got a great score of 57.200 points
@MEGAX91: can I have some help building this?
Code:
$ export ARCH=arm
$ export CROSS_COMPILE=~/arm-cortex_a15-linux-gnueabihf-linaro_4.9.4-2015.06/bin/arm-cortex_a15-linux-gnueabihf-
$ make guyver_defconfig VARIANT_DEFCONFIG=apq8084_sec_kccat6_eur_defconfig
drivers/input/joystick/Kconfig:133: can't open file "drivers/input/joystick/iforce/Kconfig"
make[1]: *** [guyver_defconfig] Error 1
make: *** [guyver_defconfig] Error 2
so comment that out then:
Code:
$ make -j4
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC scripts/mod/devicetable-offsets.s
CC arch/arm/kernel/asm-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
In file included from include/linux/mm.h:18:0,
from arch/arm/kernel/asm-offsets.c:14:
include/linux/bit_spinlock.h: In function ‘bit_spin_unlock’:
include/linux/bit_spinlock.h:62:2: error: implicit declaration of function ‘smp_mb__before_atomic’ [-Werror=implicit-function-declaration]
clear_bit_unlock(bitnum, addr);
^
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
HOSTLD scripts/mod/modpost
remove -Werror=implicit-function-declaration and edit gcc-wrapper.py so all warnings are allowed
then I get:
Code:
$ make -j1
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
CHK include/generated/compile.h
CC arch/arm/mach-msm/peripheral-loader.o
In file included from include/linux/mm.h:18:0,
from include/linux/memblock.h:18,
from arch/arm/mach-msm/peripheral-loader.c:19:
include/linux/bit_spinlock.h: In function ‘bit_spin_unlock’:
include/linux/bit_spinlock.h:62:2: warning: implicit declaration of function ‘smp_mb__before_atomic’ [-Wimplicit-function-declaration]
clear_bit_unlock(bitnum, addr);
^
In file included from arch/arm/mach-msm/peripheral-loader.c:32:0:
include/linux/interrupt.h: In function ‘tasklet_disable_nosync’:
include/linux/interrupt.h:562:2: warning: implicit declaration of function ‘smp_mb__after_atomic’ [-Wimplicit-function-declaration]
smp_mb__after_atomic();
^
In file included from include/linux/cache.h:4:0,
from include/linux/time.h:4,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from arch/arm/mach-msm/peripheral-loader.c:13:
arch/arm/mach-msm/peripheral-loader.c: In function ‘msm_pil_init’:
include/linux/kernel.h:23:18: warning: passing argument 1 of ‘msm_ion_client_create’ makes pointer from integer without a cast
#define UINT_MAX (~0U)
^
arch/arm/mach-msm/peripheral-loader.c:939:30: note: in expansion of macro ‘UINT_MAX’
ion = msm_ion_client_create(UINT_MAX, "pil");
^
In file included from include/linux/msm_ion.h:4:0,
from arch/arm/mach-msm/peripheral-loader.c:28:
include/linux/../../drivers/staging/android/ion/msm/msm_ion.h:103:20: note: expected ‘const char *’ but argument is of type ‘unsigned int’
struct ion_client *msm_ion_client_create(const char *name);
^
arch/arm/mach-msm/peripheral-loader.c:939:8: error: too many arguments to function ‘msm_ion_client_create’
ion = msm_ion_client_create(UINT_MAX, "pil");
^
In file included from include/linux/msm_ion.h:4:0,
from arch/arm/mach-msm/peripheral-loader.c:28:
include/linux/../../drivers/staging/android/ion/msm/msm_ion.h:103:20: note: declared here
struct ion_client *msm_ion_client_create(const char *name);
^
make[1]: *** [arch/arm/mach-msm/peripheral-loader.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
@Phoenix09
you have to include all config files needed. For building the .config do: make VARIANT_DEFCONFIG=apq8084_sec_kccat6_eur_defconfig apq8084_sec_defconfig TIMA_DEFCONFIG=tima_defconfig guyver_defconfig SELINUX_DEFCONFIG=selinux_defconfig
MEGAX91 said:
@Phoenix09
you have to include all config files needed. For building the .config do: make VARIANT_DEFCONFIG=apq8084_sec_kccat6_eur_defconfig apq8084_sec_defconfig TIMA_DEFCONFIG=tima_defconfig guyver_defconfig SELINUX_DEFCONFIG=selinux_defconfig
Click to expand...
Click to collapse
fails with the same error
Sent from my Galaxy S5 LTE-A using Tapatalk

Build-in VPN broken in Nougat 7.0/7.1/7.1.1 - Jiayu S3 Jiayu S3 [MT6752]

Hello,
I'm opening this thread to provide some info about a bug introduced in the nougat releases.
Since 7.0 first release build-in VPN client is broken, any connection end with an error under the menu entry, without any traffic goingout of the device.
Logcat shows a link error un the racoon binary (responsible of ipsec connections):
Code:
12-11 10:16:19.669 3496 3496 F libc : CANNOT LINK EXECUTABLE "/system/bin/racoon": cannot locate symbol "DES_is_weak_key" referenced by "/system/bin/racoon"...
12-11 10:16:19.669 3496 3496 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 3496 (racoon)
12-11 10:16:19.725 3497 3497 F DEBUG : pid: 3496, tid: 3496, name: racoon >>> /system/bin/racoon <<<
This feature was working in LP/MM, but is broken since first N release. Digging a bit into the MM libs looks like the symbol "DES_is_weak_key" was in the dynamic table of libWVStreamControlAPI_L3.so library (which is missing in N):
Code:
$ ./aarch64-linux-android-objdump -T /mnt/vendor/lib/libWVStreamControlAPI_L3.so | grep DES_is_weak_key
0019b9ac g DF .text 00000028 Base DES_is_weak_key
Hope this helps to develop a fix in next updates.
Best regards,
Hello magamo79,
thank you for providing these infos. That is probably the best bug report, we have ever got .
We are using an older racoon binary in vendor which is wrong. I already made a bigger cleanup on s3 plus (which also removes this binary from vendor so that it gets build from source). This change is missing in s3 repos. We will work on merging them in the next days. Then this error will also be fixed.
Short correction: DES_is_weak_key isn't defined by libWVStreamControlAPI_L3. It is only used in libWVStreamControlAPI_L3 and racoon. This symbol got defined by openssl which isn't used in android anymore.
Cheers
Hi again,
The VPN error is fixed in that last build (Build [7.1.1] 20170105 - Stable 6). Great Job @fire855 & Team :good:
Best regards,

Categories

Resources