yashsingh1/xdaforums huggingface dataset:
[Android Software Development] somadsul:
I am getting this error for all Governors

CC drivers/cpufreq/cpufreq_darkness.o
drivers/cpufreq/cpufreq_darkness.c: In function 'darkness_check_cpu':
drivers/cpufreq/cpufreq_darkness.c:187:3: error: implicit declaration of function 'get_cpu_idle_time' [-Werror=implicit-function-declaration]
cur_idle_time = get_cpu_idle_time(j, &cur_wall_time, 0);
^
drivers/cpufreq/cpufreq_darkness.c:245:2: error: implicit declaration of function 'cpufreq_notify_utilization' [-Werror=implicit-function-declaration]
cpufreq_notify_utilization(policy, max_load);
^
CC kernel/trace/trace_sched_switch.o
cc1: all warnings being treated as errors
scripts/Makefile.build:308: recipe for target 'drivers/cpufreq/cpufreq_darkness.o' failed
make[2]: *** [drivers/cpufreq/cpufreq_darkness.o] Error 1
scripts/Makefile.build:455: recipe for target 'drivers/cpufreq' failed
make[1]: *** [drivers/cpufreq] Error 2
Makefile:828: recipe for target 'drivers' failed
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
[Android Software Development] neonkat:
https://github.com/neonkat/tw_lp_kernel/commit/b28cc3378d24d888cc83cd483b7bea2db67010ce and https://github.com/neonkat/tw_lp_kernel/commit/38b51e7ebd99e1d22baafe9ad2afc6dcd0883d2f
[Android Software Development] somadsul:
this need to be done with all Governors??? :confused:

I am doing all manually on PC

not on Git... :(
[Android Software Development] neonkat:
only interactive and the first commit.just do as given there.
[Android Software Development] somadsul:
ok you mean to say only in

arch/arm/mach-msm/msm_rq_stats.c and

drivers/cpufreq/cpufreq_interactive.c
[Android Software Development] neonkat:
check first commit,red ones need to be removed and green ones need to be added in reespective files,names listed there.you need to make all changes correctly else will get more error.

then follow 2nd one.

its not that easy.(needs lots of patience)
[Android Software Development] somadsul:
Agreed... Will do
[Android Software Development] shahram Ali:
dude u had s5 H model like me how can i fix this :confused:

RCH=arm CROSS_COMPILE=~/arm-eabi-4.4.3/bin/arm-eabi- make exynos_user_defconfig

make: *** No rule to make target 'exynos_user_defconfig'. Stop.
[Android Software Development] somadsul:
Do you have Whatsapp or Telegram? PM me +917387044390
[Android Software Development] somadsul:
Did your commit but now might got difficult

drivers/cpufreq/cpufreq_alucard.c: In function 'alucard_check_cpu':
drivers/cpufreq/cpufreq_alucard.c:588:2: error: implicit declaration of function 'cpufreq_notify_utilization' [-Werror=implicit-function-declaration]
cpufreq_notify_utilization(policy, cur_load);
^
CC lib/dynamic_queue_limits.o
CC lib/strncpy_from_user.o
CC net/ipv4/protocol.o
cc1: all warnings being treated as errors
scripts/Makefile.build:308: recipe for target 'drivers/cpufreq/cpufreq_alucard.o' failed
make[2]: *** [drivers/cpufreq/cpufreq_alucard.o] Error 1
scripts/Makefile.build:455: recipe for target 'drivers/cpufreq' failed
make[1]: *** [drivers/cpufreq] Error 2
Makefile:828: recipe for target 'drivers' failed
make: *** [drivers] Error 2
[Android Software Development] neonkat:
alucard governer needs some patches.do check any existing kernel which has alucard and search for patches.

you can try http://xdaforums.com/showpost.php?p=57513128&postcount=1393(may not work).
[Android Software Development] shahram Ali:
dude how can i fix this RCH=arm CROSS_COMPILE=~/arm-eabi-4.4.3/bin/arm-eabi- make exynos_user_defconfig

make: *** No rule to make target 'exynos_user_defconfig'. Stop.

---------- Post added at 12:57 PM ---------- Previous post was at 12:56 PM ----------

:o no bro
[Android Software Development] somadsul:
your Toolchains directory is wrong send me screen shot or picture of your toolchains directory
[Android Software Development] shahram Ali:
i also make them all in one folder still same error if you understand :(:crying:
[Android Software Development] Hacker432:
Try type commands one by one (in kernel directory of course)

export ARCH=arm

export CROSS_COMPILE=~/arm-eabi-4.4.3/bin/arm-eabi
[Android Software Development] somadsul:
You need to type your commands in Android folder
[Android Software Development] Hacker432:
No, kernel directory
[Android Software Development] Hacker432:
[MENTION=5991747]neonkat[/MENTION]

Hi

I'm trying to add dt2w to my kernel: https://github.com/Hacker432-Y550/android_kernel_huawei_msm8916/tree/exp_dt2w_cm-12.1

I have this compilation error

CC drivers/input/touchscreen/focaltech/ft6x06_ex_fun.o

CC drivers/input/touchscreen/focaltech/ft6x06_sysdebug.o

CC drivers/input/touchscreen/focaltech/ft6x06_ts.o

drivers/input/touchscreen/focaltech/ft6x06_ts.c: In function 'ft6x06_ts_suspend':

drivers/input/touchscreen/focaltech/ft6x06_ts.c:510:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]

error, forbidden warning: ft6x06_ts.c:510

make[4]: *** [drivers/input/touchscreen/focaltech/ft6x06_ts.o] Errore 1

make[3]: *** [drivers/input/touchscreen/focaltech] Errore 2

make[2]: *** [drivers/input/touchscreen] Errore 2

make[1]: *** [drivers/input] Errore 2

make: *** [drivers] Errore 2

Can you help me to understand what I did wrong?

This is the driver https://github.com/Hacker432-Y550/a...ivers/input/touchscreen/focaltech/ft6x06_ts.c
[Android Software Development] shahram Ali:
thank ya bro it works thank you so much :victory:
[Android Software Development] shahram Ali:
bro i get this error when entering make -j1

/bin/sh: 1: ../PLATFORM/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-gcc: not found

/home/sha3a/android/./Kbuild:35: recipe for target 'kernel/bounds.s' failed

make[1]: *** [kernel/bounds.s] Error 127

Makefile:868: recipe for target 'prepare0' failed

make: *** [prepare0] Error 2

any helo :(

---------- Post added at 10:59 PM ---------- Previous post was at 10:11 PM ----------

my wrong i exracted lib and arm folder right in home :D
[Android Software Development] shahram Ali:
any help :( used terminal in android and kernel folder and same problem
[Android Software Development] somadsul:
Your toolchain directory is in home directory then why you make commands like this?

you have to enter directory name before toolchain directory.

is your toolchain in Android/kernel folder?

follow this

Make directory-android

Make directory inside android- kernel

extract your toolchain in android

extract your kernel directory inside kernel

type in command

cd android

cd kernel

ARCH=arm CROSS_COMPILE=~/android/arm-eabi-4.4.3/bin/arm-eabi-exynos_user_defconfig

make ARCH=arm CROSS_COMPILE=~/android/arm-eabi-4.4.3/bin/arm-eabi- menuconfig

then add your features

for compiling type again all commands inside kernel folder

export ARCH=arm

export CROSS_COMPILE=~/android/arm-eabi-4.4.3/bin/arm-eabi-
[Android Software Development] shahram Ali:
i get this error when type make -j8

HOSTCC scripts/dtc/dtc.o

HOSTCC scripts/dtc/flattree.o

HOSTCC scripts/dtc/fstree.o

HOSTCC scripts/dtc/livetree.o

HOSTCC scripts/dtc/srcpos.o

HOSTCC scripts/dtc/treesource.o

HOSTCC scripts/dtc/util.o

HOSTLD scripts/dtc/dtc

Makefile:526: recipe for target 'scripts' failed

make: *** [scripts] Error 2

and where is output folder :confused: didnt see any kernel.elf
[Android Software Development] Hacker432:
make -j1 to see what's the error
[Android Software Development] shahram Ali:
make: /home/sha3a/android/kernel/arm-eabi-4.4.3/bin/arm-eabi-gcc: Command not found

CHK include/generated/uapi/linux/version.h

CHK include/generated/utsrelease.h

make[1]: 'include/generated/mach-types.h' is up to date.

CC kernel/bounds.s

/bin/sh: 1: /home/sha3a/android/kernel/arm-eabi-4.4.3/bin/arm-eabi-gcc: not found

/home/sha3a/android/kernel/./Kbuild:35: recipe for target 'kernel/bounds.s' failed

make[1]: *** [kernel/bounds.s] Error 127

Makefile:868: recipe for target 'prepare0' failed

make: *** [prepare0] Error 2

this :(
[Android Software Development] Hacker432:
Your toolchain path seems wrong

Please can you give me the output of this command executed in your kernel directory?

ls -l
[Android Software Development] shahram Ali:
total 115232

drwxrwxr-x 3 sha3a sha3a 4096 Mar 30 23:33 android

drwxrwxr-x 4 sha3a sha3a 4096 Apr 13 02:39 arch

drwxrwxr-x 3 sha3a sha3a 4096 Jul 8 23:58 block

-rwxrwxr-x 1 sha3a sha3a 18693 Mar 30 23:33 COPYING

-rwxrwxr-x 1 sha3a sha3a 95317 Mar 30 23:33 CREDITS

drwxrwxr-x 4 sha3a sha3a 4096 Jul 8 23:58 crypto

drwxrwxr-x 100 sha3a sha3a 12288 Mar 30 23:33 Documentation

drwxrwxr-x 124 sha3a sha3a 4096 Jul 8 23:58 drivers

drwxrwxr-x 45 sha3a sha3a 4096 Jul 8 23:58 firmware

drwxrwxr-x 76 sha3a sha3a 4096 Jul 8 23:58 fs

drwxrwxr-x 29 sha3a sha3a 4096 Jul 8 23:49 include

drwxrwxr-x 2 sha3a sha3a 4096 Jul 8 23:58 init

drwxrwxr-x 2 sha3a sha3a 4096 Jul 8 23:58 ipc

-rwxrwxr-x 1 sha3a sha3a 2536 Mar 30 23:33 Kbuild

-rwxrwxr-x 1 sha3a sha3a 252 Mar 30 23:33 Kconfig

drwxrwxr-x 11 sha3a sha3a 4096 Jul 8 23:58 kernel

-rw-rw-r-- 1 sha3a sha3a 117427257 May 30 19:52 Kernel.tar.gz

drwxrwxr-x 9 sha3a sha3a 4096 Jul 8 23:58 lib

-rwxrwxr-x 1 sha3a sha3a 255053 Mar 30 23:33 MAINTAINERS

-rwxrwxr-x 1 sha3a sha3a 49352 Mar 30 23:35 Makefile

drwxrwxr-x 2 sha3a sha3a 4096 Jul 8 23:58 mm

-rw-rw-r-- 1 sha3a sha3a 0 Jul 9 00:07 modules.order

drwxrwxr-x 57 sha3a sha3a 4096 Jul 8 23:58 net

-rwxrwxr-x 1 sha3a sha3a 18736 Mar 30 23:33 README

-rwxrwxr-x 1 sha3a sha3a 7485 Mar 30 23:33 REPORTING-BUGS

drwxrwxr-x 12 sha3a sha3a 4096 Mar 30 23:34 samples

drwxrwxr-x 13 sha3a sha3a 4096 Jul 8 23:59 scripts

drwxrwxr-x 12 sha3a sha3a 4096 Jul 8 23:58 security

drwxrwxr-x 22 sha3a sha3a 4096 Jul 8 23:58 sound

drwxrwxr-x 17 sha3a sha3a 4096 Mar 30 23:34 tools

drwxrwxr-x 2 sha3a sha3a 4096 Jul 8 23:58 usr

drwxrwxr-x 3 sha3a sha3a 4096 Mar 30 23:34 virt

:(
[Android Software Development] Hacker432:
The toolchain folder isn't here

Type the same command in home this time
[Android Software Development] shahram Ali:
this?

sha3a@ubuntu:~$ total 115232

The program 'total' is currently not installed. You can install it by typing:

sudo apt install radiance

sha3a@ubuntu:~$ drwxrwxr-x 3 sha3a sha3a 4096 Mar 30 23:33 android

drwxrwxr-x: command not found

sha3a@ubuntu:~$ drwxrwxr-x 4 sha3a sha3a 4096 Apr 13 02:39 arch

drwxrwxr-x: command not found

sha3a@ubuntu:~$ drwxrwxr-x 3 sha3a sha3a 4096 Jul 8 23:58 block

drwxrwxr-x: command not found

sha3a@ubuntu:~$ -rwxrwxr-x 1 sha3a sha3a 18693 Mar 30 23:33 COPYING

-rwxrwxr-x: command not found

sha3a@ubuntu:~$ -rwxrwxr-x 1 sha3a sha3a 95317 Mar 30 23:33 CREDITS

-rwxrwxr-x: command not found

sha3a@ubuntu:~$ drwxrwxr-x 4 sha3a sha3a 4096 Jul 8 23:58 crypto

drwxrwxr-x: command not found

sha3a@ubuntu:~$ drwxrwxr-x 100 sha3a sha3a 12288 Mar 30 23:33 Documentation

drwxrwxr-x: command not found

sha3a@ubuntu:~$ drwxrwxr-x 124 sha3a sha3a 4096 Jul 8 23:58 drivers

drwxrwxr-x: command not found

sha3a@ubuntu:~$ drwxrwxr-x 45 sha3a sha3a 4096 Jul 8 23:58 firmware

drwxrwxr-x: command not found

sha3a@ubuntu:~$ drwxrwxr-x 76 sha3a sha3a 4096 Jul 8 23:58 fs

drwxrwxr-x: command not found

sha3a@ubuntu:~$ drwxrwxr-x 29 sha3a sha3a 4096 Jul 8 23:49 include

drwxrwxr-x: command not found

sha3a@ubuntu:~$ drwxrwxr-x 2 sha3a sha3a 4096 Jul 8 23:58 init

drwxrwxr-x: command not found

sha3a@ubuntu:~$ drwxrwxr-x 2 sha3a sha3a 4096 Jul 8 23:58 ipc

drwxrwxr-x: command not found

sha3a@ubuntu:~$ -rwxrwxr-x 1 sha3a sha3a 2536 Mar 30 23:33 Kbuild

-rwxrwxr-x: command not found

sha3a@ubuntu:~$ -rwxrwxr-x 1 sha3a sha3a 252 Mar 30 23:33 Kconfig

-rwxrwxr-x: command not found

sha3a@ubuntu:~$ drwxrwxr-x 11 sha3a sha3a 4096 Jul 8 23:58 kernel

drwxrwxr-x: command not found

sha3a@ubuntu:~$ -rw-rw-r-- 1 sha3a sha3a 117427257 May 30 19:52 Kernel.tar.gz

-rw-rw-r--: command not found

sha3a@ubuntu:~$ drwxrwxr-x 9 sha3a sha3a 4096 Jul 8 23:58 lib

drwxrwxr-x: command not found

sha3a@ubuntu:~$ -rwxrwxr-x 1 sha3a sha3a 255053 Mar 30 23:33 MAINTAINERS

-rwxrwxr-x: command not found

sha3a@ubuntu:~$ -rwxrwxr-x 1 sha3a sha3a 49352 Mar 30 23:35 Makefile

-rwxrwxr-x: command not found
[Android Software Development] Hacker432:
Go to /home/yourusername/

Open a terminal here and type ls -l
[Android Software Development] shahram Ali:
total 56

drwxrwxrwx 2 sha3a sha3a 4096 Jul 8 06:08 111

drwxrwxr-x 6 sha3a sha3a 4096 Jul 8 23:39 android

drwxr-xr-x 5 sha3a sha3a 4096 Jul 8 16:11 Desktop

drwxr-xr-x 3 sha3a sha3a 4096 Jul 8 23:47 Documents

drwxr-xr-x 4 sha3a sha3a 4096 Jul 8 02:36 Downloads

-rw-r--r-- 1 sha3a sha3a 8980 Jun 28 22:21 examples.desktop

drwxrwxr-x 4 sha3a sha3a 4096 Jul 8 16:10 fgdf

drwxr-xr-x 2 sha3a sha3a 4096 Jun 28 22:38 Music

drwxr-xr-x 2 sha3a sha3a 4096 Jun 28 22:38 Pictures

drwxr-xr-x 2 sha3a sha3a 4096 Jun 28 22:38 Public

drwxr-xr-x 2 sha3a sha3a 4096 Jun 28 22:38 Templates

drwxr-xr-x 2 sha3a sha3a 4096 Jun 28 22:38 Videos
[Android Software Development] Hacker432:
I don't see your toolchain neither here

Where did you put it?
[Android Software Development] somadsul:
You are noob please read for compiling

https://source.android.com/source/building.html

Or google it
[Android Software Development] shahram Ali:
im on 6.0 and for 6.0 i should use jack as google say :/
[Android Software Development] Arvind7352:
Don't give away such words easily.... :/

Jack toolchain is ONLY for compiling Rest of Android and NOT Kernel.

Tip! : Jack will cause heavy lags and memory consumption in PCs with RAM less than 4GB

To disable it, do this

export ANDROID_COMPILE_WITH_JACK=false

every time before you start the build

Provide me locations of Kernel Source, and Kernel Toolchain in your PC. Give the location from '/' aka Root.
[Android Software Development] somadsul:
Sorry if i heart him or you,

I am trying to give him a way to do so
[Android Software Development] shahram Ali:
Wil my pc in work place maybe going there after hoyr but how can i install jack?
[Android Software Development] Arvind7352:
Jack is synced with the source, but it doesn't build the kernel, and I guess you're trying to compile a kernel?

[MENTION=6542028]shahram Ali[/MENTION]

As I asked before, provide me directory location of Kernel and Toolchain. From '/' (ex. /home/Roms or /media/roms)
[Android Software Development] shahram Ali:
Yes yes everything is ready but the only problen i cant complie the kernel :o
[Android Software Development] shahram Ali:
here is it :o
[Android Software Development] Arvind7352:
You sure that you synced the Toolchain properly from it's source?

If yes, then

cd ~/android/arm-eabi-4.4.3/bin && ls -l

If no, then

Re-Sync the Toolchain again to make sure no Errors were found while doing so...
[Android Software Development] shahram Ali:
:o

sha3a@ubuntu:~$ cd ~/android/arm-eabi-4.4.3/bin && ls -l

total 66616

-rwxrw-rw- 1 sha3a sha3a 2383301 Mar 7 2012 arm-eabi-addr2line

-rwxrw-rw- 1 sha3a sha3a 2513370 Mar 7 2012 arm-eabi-ar

-rwxrw-rw- 1 sha3a sha3a 3707290 Mar 7 2012 arm-eabi-as

-rwxrw-rw- 1 sha3a sha3a 452056 Mar 7 2012 arm-eabi-c++

-rwxrw-rw- 1 sha3a sha3a 2362468 Mar 7 2012 arm-eabi-c++filt

-rwxrw-rw- 1 sha3a sha3a 450100 Mar 7 2012 arm-eabi-cpp

-rwxrw-rw- 1 sha3a sha3a 452056 Mar 7 2012 arm-eabi-g++

-rwxrw-rw- 1 sha3a sha3a 447461 Mar 7 2012 arm-eabi-gcc

-rwxrw-rw- 1 sha3a sha3a 447461 Mar 7 2012 arm-eabi-gcc-4.4.3

-rwxrw-rw- 1 sha3a sha3a 16661 Mar 7 2012 arm-eabi-gccbug

-rwxrw-rw- 1 sha3a sha3a 252082 Mar 7 2012 arm-eabi-gcov

-rwxrw-rw- 1 sha3a sha3a 13099371 Mar 7 2012 arm-eabi-gdb

-rwxrw-rw- 1 sha3a sha3a 13099464 Mar 7 2012 arm-eabi-gdbtui

-rwxrw-rw- 1 sha3a sha3a 2764094 Mar 7 2012 arm-eabi-gprof

-rwxrw-rw- 1 sha3a sha3a 3248472 Mar 7 2012 arm-eabi-ld

-rwxrw-rw- 1 sha3a sha3a 2417803 Mar 7 2012 arm-eabi-nm

-rwxrw-rw- 1 sha3a sha3a 2939559 Mar 7 2012 arm-eabi-objcopy

-rwxrw-rw- 1 sha3a sha3a 3258624 Mar 7 2012 arm-eabi-objdump

-rwxrw-rw- 1 sha3a sha3a 2513369 Mar 7 2012 arm-eabi-ranlib

-rwxrw-rw- 1 sha3a sha3a 563745 Mar 7 2012 arm-eabi-readelf

-rwxrw-rw- 1 sha3a sha3a 2979749 Mar 7 2012 arm-eabi-run

-rwxrw-rw- 1 sha3a sha3a 2411754 Mar 7 2012 arm-eabi-size

-rwxrw-rw- 1 sha3a sha3a 2389115 Mar 7 2012 arm-eabi-strings

-rwxrw-rw- 1 sha3a sha3a 2939550 Mar 7 2012 arm-eabi-strip

-rwxrw-rw- 1 sha3a sha3a 51667 Mar 7 2012 xmlwf
[Android Software Development] kutlay1653:
How can i get my kernel sources in my mtk tablet ? Mtk does'nt porvide theri sources.Thanks
[Android Software Development] Arvind7352:
Hmm, need to change permissions. Looked at my source and each binary had permissions as rwxr-xr-x (755). While it's different in your case (766) with no-execute permissions, being the cause of your Error.

Do these steps

cd ~/android/arm-eabi-4.4.3/bin
find . -exec chmod 755 {} \;

(Reference)

and Follow Further steps of the Guide. Happy Compiling :)

MTK Devices doesn't get their Kernel Sources released. People use Pre-built kernel for Building ROM from Source, or in most of the cases, Porting is done.

Since, MTK Devices with same chipsets have the exact-same configuration with slight/minor differences as in their Spec-Sheet, Porting is highly possible.
[Android Software Development] shahram Ali:
same error when make -j8

Makefile:526: recipe for target 'scripts' failed

make: *** [scripts] Error 2

:crying: and when writing make clean got this error

make: /home/sha3a/android/kernel/arm-eabi-4.4.3/bin/arm-eabi-gcc: Command not found
[Android Software Development] neonkat:
what command are you putting?
[Android Software Development] shahram Ali:
Make clean and make -j
[Android Software Development] neonkat:
*asking for the export cross compile one.tell me all the command you are adding

*make -jx where x is no. of threadings(better use 4 incase you don't know)
[Android Software Development] perobot:
Hi

Hi I have some questions that are noob but I am a doctor I do not dedicate myself to the development of android if I like tinkering my mobile but want to know if you can add to the kernel stock xperia sony z3 features like UKM and more options thermal cpu volt hotplug faux sound any indication or help or guidance. Thanks in advance :)
[Android Software Development] shahram Ali:
My phone is quad core which means 8 and i use the commands to complie from wxport ARCH=arm to make -jx
[Android Software Development] looney_tkp™:
Quad core is 4...that's if you're talking about number of CPU cores
[Android Software Development] somadsul:
-j8 is right,

My kernel is ready with this.
[Android Software Development] shahram Ali:
oh sorry i meant Octa core :o
[Android Software Development] Yakandu:
Ok, what if I want to UNDERclock both cpu and gpu? Where should i look?

Modern kernels override "setcpu" alike apps and the only way is to compile underclocked kernels

LG G4 here...
[Android Software Development] neonkat:
you can find the .dtsi file in arch/arm(or arm64)boot/dtsi.

find that file which contains cpu and gpu clocks and update them.you will need to update other files.better look into some custom kernel already built for youe device to get some idea.

for my msm8226,the msm8226.dtsi contained cpu clocks and msm8226-gpu.dtsi contained gpu clocks.
[Android Software Development] Arkonite:
How can you do it if your source code is .Zip not .Tar.?

Can you do it by cloning the source code from Github?
[Android Software Development] neonkat:
sorry,didn't get.

if you source code is in .zip,manually unzip it or use terminal to unzip(you can get xommnad on google).

you can also clone from github and then build.
[Android Software Development] iso188:
Is it OK to build a kernel with armeabi-v7a instead of arm-eabi? I have read that armeabi-v7a is faster.
[Android Software Development] WILMANS2M:
Hello everybody,

well come here because i'm not able to find any help using google....So hope you will be able to answer my questions.

First i am totally noob in building kernel. Why i am doing this ? The answer is quite simple. I own a SM-G903F (s5 neo exynos) and we have no kernel developer.

What i have done:

- Installed ubuntu using this tutorial

- Downloaded toolchains using bitbucket for UberTC 5.3.1 & Linaro.org for Linaro 4.9

- Downloaded kernel source from samsung

Folder tree is like this: /home/kernel/toolchains/ubertc or linaro folder

=> kernel source are uncompress into kernel folder

=> ubertc toolchains into ubertc folder

=> linaro toolchains into linaro folder

When i check defconfig file from kernel, i have exynos7580 into arm64 folder

Then i edited makefile file, and write inside

export ARCH=arm64

export CROSS_COMPILE=/toolchains/ubertc/bin/aarch64-linux-android-

Then edited bashrc

sudo gedit .bashrc

#Android Toolchain PATH

export ARCH=arm64

export CCOMPILE=$CROSS_COMPILE

export CROSS_COMPILE=../kernel/toolchains/ubertc/bin/aarch64-linux-android-

export PATH=$PATH:

Then i opened again terminal and write

cd kernel

export ARCH=arm64

export CROSS_COMPILE=/toolchains/ubertc/bin/aarch64-linux-android-

make exynos7580-s5neolte_defconfig

make menuconfig (choose to include 3 governors, add ntfs support that's all)

No errors until this.

Then i write : make -j4 (i have a q6600)

=> it compiles during a certain time, then stop and i have this error:

mm/rmap.c:531:26: error: '__vma_address' is static but used in inline function 'vma_address' which is not static [-Werror]

unsigned long address = __vma_address(page, vma);

^

cc1: all warnings being treated as errors

scripts/Makefile.build:308*: la recette pour la cible «*mm/rmap.o*» a échouée

make[1]: *** [mm/rmap.o] Erreur 1

make[1]: *** Attente des tâches non terminées....

CC kernel/groups.o

CC fs/mpage.o

CC kernel/lglock.o

CC kernel/smpboot.o

CC fs/ioprio.o

CC kernel/cpu/idle.o

CC fs/proc_namespace.o

Makefile:805*: la recette pour la cible «*mm*» a échouée

make: *** [mm] Erreur 2

I do not know how to resolve it. If i switch to linaro toolchain, i have this error:

kernel/toolchains/linaro/bin/aarch64-linux-android-ld: cannot find libgcc.a: Aucun fichier ou dossier de ce type

Makefile:791*: la recette pour la cible «*vmlinux*» a échouée

I have this lib in ubertc toolchain but don't know if i can "just" copy it to linaro lib folder.

Also, i have under arm a simple exynos config file. Don't know if i can use it to compile for my phone (what is the interest to have a 64bits kernel with a 32bits rom.....)

Hope you can help me. Really thank you in advance.
[Android Software Development] neonkat:
i will recommend you to use google's gcc 4.9 or uber 4.9 because gcc 5+ requires modification in source to make it compatible.

you may try with linaro 4.9 but that prints warnings as errors.so better use google gcc 4.9 or uber 4.9.

also,editing the makefile is enough.no need to edit bash.rc or type in the export command.
[Android Software Development] WILMANS2M:
OK will try with uber 4.9. I prefer using different toolchains from google as i suppose it adds some interesting features :)
[Android Software Development] WILMANS2M:
Switch to uber 4.9 toolchains and unfortunately, got errors too.

Here is the log in case of someone knows what can i do.

Thanks.

http://pastebin.com/4Tu2VKgC
[Android Software Development] Eliminator79:
See what happens with Linaro
[Android Software Development] friozi:
Hey guys need help.

This tutorial works with Marshmallow ?

i tried but i got this errors:

I need change the SELINUX from my kernel.... i will pay for it if someone do this.

G900FD MM
[Android Software Development] neonkat:
device name,model and toolchain info. please and from where you got the source.