yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] adityaupreti:
[MENTION=4487443]rmbq[/MENTION] plz help im getting this error

Makefile:669: /home/aditya/kernel/samsung_ms013g_SWA/scripts/Makefile.lto: No such file or directory
make: *** No rule to make target '/home/aditya/kernel/samsung_ms013g_SWA/scripts/Makefile.lto'. Stop.

plz reply im waiting [MENTION=4487443]rmbq[/MENTION [MENTION=265227]rmb[/MENTION]q@rmbq@rmbq plz help
[Miscellaneous Android Development] arnabbiswasalsodeep:
Go to the directory and check if that file exists. If not then you have a corrupted source code or a commit breaker it
[Miscellaneous Android Development] adityaupreti:
any solution

---------- Post added at 01:49 PM ---------- Previous post was at 01:40 PM ----------

sound/soc/codecs/audience/Kconfig:40:warning: type of 'SND_SOC_ES_SLIM' redefined from 'boolean' to 'tristate'

sound/soc/codecs/audience/Kconfig:43:warning: type of 'SND_SOC_ES_I2C' redefined from 'boolean' to 'tristate'

drivers/thermal/Kconfig:84:warning: defaults for choice values not supported

drivers/thermal/Kconfig:93:warning: defaults for choice values not supported

sound/soc/codecs/audience/Kconfig:44:warning: choice value used outside its choice group

sound/soc/codecs/audience/Kconfig:41:warning: choice value used outside its choice group

***

*** Can't find default configuration "arch/arm/configs/ms013g_darkblack_defconfig"!

***

/home/aditya/kernel/samsung_ms013g_SWA/scripts/kconfig/Makefile:117: recipe for target 'ms013g_darkblack_defconfig' failed

make[1]: *** [ms013g_darkblack_defconfig] Error 1

Makefile:516: recipe for target 'ms013g_darkblack_defconfig' failed

make: *** [ms013g_darkblack_defconfig] Error 2

now im getting this
[Miscellaneous Android Development] Akash sky:
hey bro i need some help....can you tell me how to fix white balance in camera realated to kernel
[Miscellaneous Android Development] tytydraco:
delete (sorry posted on the wrong thread XD)
[Miscellaneous Android Development] wings110:
big thx for share.
[Miscellaneous Android Development] phanitej:
I downloaded the file but it gives an error while extracting. I had the prebuilt toolchain that i downloaded previously from google

git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6

Used this toolchain. No errors yet, waiting since almost 10 min.

Edit:

Seems like it worked..

I ran the command

cp -r ./*.ko Folder2/

It says "cp: cannot stat ‘./*.ko’: No such file or directory"

I dont find the files in my <root>
[Miscellaneous Android Development] rmbq:
does Folder2 exists? instead Folder2 use the absolute path of an existing folder (/home/<username> etc etc)
[Miscellaneous Android Development] phanitej:
Did not work. Created a FOlder2 in <root> and also tried a different folder in /home/username/

Same error.

I should be able to find the .ko files manually in the <root> right?
[Miscellaneous Android Development] rmbq:
yes, using ubuntu serach function, search for "*.ko"

read here to see some example of cp command http://www.computerhope.com/unix/ucp.htm
[Miscellaneous Android Development] phanitej:
I used the search in ubuntu but did not find any .ko files.

Thanks a lot for the help. Its fun building it myself. Im learning many new things. Thanks for sharing your knowledge. Really appreciate it.
[Miscellaneous Android Development] ValoXis:
In the source of Nexus 5 I've found vmlinux.bz2. Why?

Nexus 5 with Tapatalk Pro
[Miscellaneous Android Development] ValoXis:
Solved.

Nexus 5 with Tapatalk Pro
[Miscellaneous Android Development] phanitej:
Were u able to build the kernel for hammerhead?
[Miscellaneous Android Development] ValoXis:
No, I don't. This is another problem.

Nexus 5 with Tapatalk Pro
[Miscellaneous Android Development] phanitej:
Oh ok. WHen u mentioned solved i thought u got it built. Im still struck at finding the modules after using zImage Switcher. Not sure whats wrong :(
[Miscellaneous Android Development] ValoXis:
Hope anyone help us to build it.

Nexus 5 with Tapatalk Pro
[Miscellaneous Android Development] rmbq:
you can also try to flash the boot.img without modules, maybe there aren't modules and it's all built into the kernel
[Miscellaneous Android Development] phanitej:
Finally tried to flash it. Went through well. But when i reboot it just goes into bootloader mode
[Miscellaneous Android Development] mikronac.ns:
Hi [MENTION=4487443]rmbq[/MENTION]

I followed you tutorial but I getting this error aftter few minutes:

make[3]: *** [drivers/usb/gadget/android.o] Error 1
make[2]: *** [drivers/usb/gadget] Error 2
make[1]: *** [drivers/usb] Error 2
make: *** [drivers] Error 2

I pulled config.gz from /proc and extract it, rename to .config. Also tried with .config from your path...

Compile log is in attach. Thanx

EDIT: Kernel from your github is compiled without problems...
[Miscellaneous Android Development] rmbq:
in drivers/usb/gadget/f_qdss.c, line 586

replace

if (!strncmp(name, ch->name, sizeof(ch->name))) {

with

if (!strncmp(name, ch->name, (int)sizeof(ch->name))) {
[Miscellaneous Android Development] mikronac.ns:
[MENTION=4487443]rmbq[/MENTION] is it alright if I compile your kernel and just replace zImage in flashable zip? And, how you make QV and non-QV versions?
[Miscellaneous Android Development] rmbq:
it's ok, search for "bypass_qualcomm_voltages" (or only "bypass", it's the only config uses that keyword). yes -> normal version, no -> QV version
[Miscellaneous Android Development] mikronac.ns:
Yes is checked sign? :)
[Miscellaneous Android Development] rmbq:
of course ;)
[Miscellaneous Android Development] mikronac.ns:
How to compile your kernel with newest compiler? :)

EDIT: I did it :)
[Miscellaneous Android Development] abgder:
sorry fur asking..can i use backtrack to compile kernel?
[Miscellaneous Android Development] aniket.lamba:
Yup but it'd be time consuming.
[Miscellaneous Android Development] www69:
hi, I want to know how to change value of lowmemorykiller in the kernel

thx
[Miscellaneous Android Development] grorg:
Hi there, please help me to fix that

this is in terminal:

make[3]: *** [drivers/input/misc/cm3629.o] Error 1
make[2]: *** [drivers/input/misc] Error 2
make[1]: *** [drivers/input] Error 2
make: *** [drivers] Error 2

this is in log:

drivers/input/misc/cm3629.c: In function 'ps_workaround_table_show':
drivers/input/misc/cm3629.c:2045:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
error, forbidden warning: cm3629.c:2045
[Miscellaneous Android Development] rmbq:
set FRAME_WARN = 2048 in your defconfig file
[Miscellaneous Android Development] grorg:
Ok, thanks I will try

Вот это поворот..!!!
[Miscellaneous Android Development] grorg:
fs/cifs/transport.c: In function ‘SendReceive2’:
fs/cifs/transport.c:653:5: warning: ‘midQ’ may be used uninitialized in this function [-Wmaybe-uninitialized]
error, forbidden warning: transport.c:653

what's that? what should I do with this?

And, rmbq, can you advice me which kernel should I took for base for ViperOneS 3?
[Miscellaneous Android Development] rmbq:
midQ is uninitialized, search the line and put midQ=NULL.

for viperOneS you should use this https://github.com/bilalliberty/android_kernel_htc_ville-liberty because my repo is in an experimental way and isn't stable
[Miscellaneous Android Development] grorg:
thanks alot.
[Miscellaneous Android Development] Anang_Galih:
What its solution sir?
[Miscellaneous Android Development] grorg:
which defconfig should I use, viper_defconfig?

when I try to build it I get this:

(in log file)

arm-eabi-gcc: No such file or directory
Is your PATH set correctly?
HOSTCC scripts/mod/mk_elfconfig
HOSTCC scripts/pnmtologo
HOSTCC scripts/conmakehash
Generating include/generated/mach-types.h
CC kernel/bounds.s
arm-eabi-gcc: No such file or directory
Is your PATH set correctly?

and this in terminal:

fs/Kconfig:299:warning: type of 'ASYNC_FSYNC' redefined from 'boolean' to 'string'
make[2]: *** [scripts/mod/empty.o] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [kernel/bounds.s] Error 2
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
make: *** [scripts] Error 2
[Miscellaneous Android Development] rmbq:
you are compiling the kernel for x86, try

make ARCH=arm CROSS_COMPILE=<absolute path of your cross compiler>

sorry for viper one s 3.x use this or this

for the first times use google toolchain. btw you can read the errors in ./compileLog

that repo is for android 4.3 and sense 5.5
[Miscellaneous Android Development] Hai96:
Error

[MENTION=4487443]rmbq[/MENTION]

I got a few Errors after the make command and dont know how to deal with it. I didnt found a solution on google so I ask you :)

julian@julian:~/kernel/ville-4.2.2-sense5-evitaul_porting$ make ARCH=arm CROSS_COMPILE=/home/julian/toolchains/prebuilts_gcc_linux-x86_arm_arm-linux-androideabi-4.8/bin/arm-linux-androideabi- > compileLog
.config:178:warning: override: reassigning to symbol MODULE_FORCE_LOAD
.config:3000:warning: override: reassigning to symbol HTC_OFFMODE_ALARM
.config:3001:warning: override: reassigning to symbol HTC_QUICKBOOT_OFFMODE_ALARM
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
make[2]: *** [silentoldconfig] Fehler 1
make[1]: *** [silentoldconfig] Fehler 2
make: *** Keine Regel vorhanden, um das Target »include/config/auto.conf«,
benötigt von »include/config/kernel.release«, zu erstellen. Schluss.
julian@julian:~/kernel/ville-4.2.2-sense5-evitaul_porting$
[Miscellaneous Android Development] rmbq:
this

warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)

isn't important, just a warning.

btw have you modified your defconfig file? 'cos there's some mismatch there
[Miscellaneous Android Development] Hai96:
No I didn't modified my defconfig file...

Gesendet von meinem HTC One S mit Tapatalk
[Miscellaneous Android Development] rmbq:
you shouldn't use prebuilts_gcc_linux-x86_arm_arm-linux-androideabi-4.8 to compile the kernel

you should use the google arm-eabi (it's the best for beginners 'cos there are less annoying errors to fix) or another arm-eabi like this http://xdaforums.com/showthread.php?t=2098133

androideabi is only for ROM
[Miscellaneous Android Development] Hai96:
thanks for answering. I found on this page a few toolchanins ,but which one ist the google one that you mean? And how the make command needs to be chnaged when i use another toolchain?
[Miscellaneous Android Development] rmbq:
google one is in OP, in terminal paste:

git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7

the command shoud become

make ARCH=arm CROSS_COMPILE=/home/julian/toolchains/arm-eabi-4.7/bin/arm-eabi- > compileLog

if you download that toolchain in /home/julian/toolchains
[Miscellaneous Android Development] Hai96:
same warnings and error....

julian@julian:~/kernel/ville-4.2.2-sense5-evitaul_porting$ make ARCH=arm CROSS_COMPILE=/home/julian/toolchains/arm-eabi-4.7/bin/arm-eabi- > compileLog
.config:178:warning: override: reassigning to symbol MODULE_FORCE_LOAD
.config:3000:warning: override: reassigning to symbol HTC_OFFMODE_ALARM
.config:3001:warning: override: reassigning to symbol HTC_QUICKBOOT_OFFMODE_ALARM
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
make[2]: *** [silentoldconfig] Fehler 1
make[1]: *** [silentoldconfig] Fehler 2
make: *** Keine Regel vorhanden, um das Target »include/config/auto.conf«,
benötigt von »include/config/kernel.release«, zu erstellen. Schluss.
[Miscellaneous Android Development] rmbq:
at least you are doing the right thing now ;)

try

make ARCH=arm xconfig

that tool will adjust your config file
[Miscellaneous Android Development] Hai96:
next error ;)

julian@julian:~/kernel/ville-4.2.2-sense5-evitaul_porting$ make ARCH=arm xconfig
CHECK qt
* Unable to find the QT4 tool qmake. Trying to use QT3
*
* Unable to find any QT installation. Please make sure that
* the QT4 or QT3 development package is correctly installed and
* either qmake can be found or install pkg-config or set
* the QTDIR environment variable to the correct location.
*
make[1]: *** Keine Regel vorhanden, um das Target »scripts/kconfig/.tmp_qtcheck«,
benötigt von »scripts/kconfig/qconf.o«, zu erstellen. Schluss.
make: *** [xconfig] Fehler 2
julian@julian:~/kernel/ville-4.2.2-sense5-evitaul_porting$
[Miscellaneous Android Development] rmbq:
take a read at OP, you miss some package, it's all explained
[Miscellaneous Android Development] Hai96:
when i now enter

make ARCH=arm xconfig

i get this:

View attachment 2690239

But when I enter

make ARCH=arm CROSS_COMPILE=/home/julian/toolchains/arm-eabi-4.7/bin/arm-eabi- > compileLog

there is the same Error as before.
[Miscellaneous Android Development] rmbq:
have you saved saved the new config file (xcofig have automatically modified something)?

have you tried to uncheck MODULE_FORCE_LOAD HTC_OFFMODE_ALARM HTC_QUICKBOOT_OFFMODE_ALARM?
[Miscellaneous Android Development] Hai96:
Yesterday it was to late and I forgot to save the new config file....

But now there is another Error:

julian@julian:~/kernel/ville-4.2.2-sense5-evitaul_porting$ make ARCH=arm CROSS_COMPILE=/home/julian/toolchains/arm-eabi-4.7/bin/arm-eabi- > compileLog
make[4]: *** [drivers/media/common/tuners/xc4000.o] Fehler 1
make[3]: *** [drivers/media/common/tuners] Fehler 2
make[2]: *** [drivers/media/common] Fehler 2
make[1]: *** [drivers/media] Fehler 2
make: *** [drivers] Fehler 2
julian@julian:~/kernel/ville-4.2.2-sense5-evitaul_porting$
[Miscellaneous Android Development] rmbq:
open compileLog (in root of kernel folder) and there're more infos about that error. this will help you to fix https://github.com/rmbq/android_kernel_htc_msm8960/commit/949165bee0a4812f3a9bbd625674507bf193ff14
[Miscellaneous Android Development] Hai96:
It worked! :) Now I have the New Boot.img but when I entering the command to search modules it gives an error

julian@julian:~/kernel/ville-4.2.2-sense5-evitaul_porting$ cp -r ./*.ko zimage
cp: der Aufruf von stat für »./*.ko“ ist nicht möglich: Datei oder Verzeichnis nicht gefunden
julian@julian:~/kernel/ville-4.2.2-sense5-evitaul_porting$ cp -r ./*.ko zimage/
[Miscellaneous Android Development] rmbq:
does zimage folder exists? use absolute path (/home/<your username>/.......)
[Miscellaneous Android Development] Hai96:
zimage folder exist and using the absolute path changes nothing :(
[Miscellaneous Android Development] rmbq:
can you paste the command?

(and translate the error in english XD)
[Miscellaneous Android Development] Hai96:
here the command with translated error :D

julian@julian:~/kernel/ville-4.2.2-sense5-evitaul_porting$ cp -r ./*.ko /home/Julian/zimage
cp: cannot stat ‘./*.ko’: No such file or directory
julian@julian:~/kernel/ville-4.2.2-sense5-evitaul_porting$
[Miscellaneous Android Development] rmbq:
find . -name '*.ko' | cpio -pdm /home/Julian/zimage
[Miscellaneous Android Development] rmbq:
find . -name "*.ko" -exec cp -t /home/Julian/zimage {} +

this you should be ok, i'm at work and i don't remember what command i usually use for this xD
[Miscellaneous Android Development] Hai96:
i managed to get them all in the zimage folder. I looked at your bubba kernel and found only 7 modules but i have much more in my folder....

I used my zimage and my modules and used you bubba zip to flash it and now it bootloops :(

View attachment 2692086
[Miscellaneous Android Development] rmbq:
i have less modules because i disabled some of them, all this stuff is in defconfig files.

bootloops are your job man ;) that kernel is working maybe you have some wrong settings in your config file. try to compare yours and the original one
[Miscellaneous Android Development] Hai96:
with config file you mean the .config in root, or? And what do you mean with orginal one?
[Miscellaneous Android Development] rmbq:
your -> .config in <root>

original -> ville_defconfig in <root>/arch/arm/configs
[Miscellaneous Android Development] Hai96:
No bootloops anymore :) but its a litlle bit laggy xD
[Miscellaneous Android Development] Hai96:
Error

[MENTION=4487443]rmbq[/MENTION]

I get a new Error after the make command. This is out of the log:

CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC kernel/power/main.o
kernel/power/main.c:824:3: error: ‘state_onchg_attr’ undeclared here (not in a function)
&state_onchg_attr.attr,
^
[Miscellaneous Android Development] rmbq:
the error explain itself, state_onchg_attr is undefined

google is your friend

https://gitlab.com/chubbzlou/sense_422/commit/d5eaf6567f26a181f391428a569c97fbb9334d83
[Miscellaneous Android Development] Hai96:
[MENTION=4487443]rmbq[/MENTION]

I forgot to copy one line and no this Error is fixed. :)

But now there is another.... I found nothing on google so i compared the file with your file on git and the compare tool said that there were no diffrences in both files. Do you know how to fix this?

In file included from drivers/usb/gadget/android.c:70:0:
drivers/usb/gadget/f_mtp.c: In function ‘mtp_read’:
drivers/usb/gadget/f_mtp.c:560:3: error: implicit declaration of function ‘mtp_qos_enable’ [-Werror=implicit-function-declaration]
mtp_qos_enable(1);
^
cc1: some warnings being treated as errors
[Miscellaneous Android Development] rmbq:
is PERFLOCK defined in your config file?
[Miscellaneous Android Development] Hai96:
Is think not, in config it says : perflock is not set....

Can you give me a tip how to define it?

Tapatalked via Viper One S
[Miscellaneous Android Development] akhbh:
Problems?????

I am trying to build kernel and this is what i got:

/home/akhil/toolchains/bin/arm-linux-androideabi-gcc: /lib/i686/cmov/libc.so.6: version `GLIBC_2.11' not found (required by /home/akhil/toolchains/bin/arm-linux-androideabi-gcc)
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2

Any idea of how to fix it?
[Miscellaneous Android Development] rmbq:
make xconfig

search (ctrl+f) "perflock" check the check box and save

use this toolchain https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7
[Miscellaneous Android Development] ##W4TCH0UT##:
[MENTION=4487443]rmbq[/MENTION], i didnt understand the <absolute/path/to/destination/folder>, command, can you explain please. and where can we find the repack.sh file.i havent started building yet, but still wanted to ask these questions.
[Miscellaneous Android Development] rmbq:
<absolute/path/to/destination/folder> si not a command, it's a directory ex. /home/YoUrUsErNaMe/SoMeOtHeRfOlDeRhErE

repack.sh is in zImage switcher zip
[Miscellaneous Android Development] ##W4TCH0UT##:
got it.thanks.
[Miscellaneous Android Development] ##W4TCH0UT##:
i wanted to compile with gcc-linaro-4.9, but i dont know how to set its path, so i got this error:

w4tch0ut@w4tch0ut-HP-Pavilion-dv6000-RQ375EA-ABV:~/kernel/android_kernel_samsung_i9082$ make ARCH=arm CROSS_COMPILE=/home/w4tch0ut/toolchains/gcc-linaro-4.9-2014.05/bin/gcc-linaro- > compileLog
make: /home/w4tch0ut/toolchains/gcc-linaro-4.9-2014.05/bin/gcc-linaro-gcc: Command not found
Makefile:1414: warning: overriding commands for target `clean'
Makefile:1180: warning: ignoring old commands for target `clean'
arch/arm/mach-capri/custom_boards/Kconfig:19:warning: defaults for choice values not supported
arch/arm/mach-capri/custom_boards/Kconfig:25:warning: defaults for choice values not supported
arch/arm/mach-capri/custom_boards/Kconfig:31:warning: defaults for choice values not supported
arch/arm/mach-capri/custom_boards/Kconfig:37:warning: defaults for choice values not supported
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
w4tch0ut@w4tch0ut-HP-Pavilion-dv6000-RQ375EA-ABV:~/kernel/android_kernel_samsung_i9082$ ^C
w4tch0ut@w4tch0ut-HP-Pavilion-dv6000-RQ375EA-ABV:~/kernel/android_kernel_samsung_i9082$

please help. [MENTION=4487443]rmbq[/MENTION]
[Miscellaneous Android Development] rmbq:
make ARCH=arm CROSS_COMPILE=/home/w4tch0ut/toolchains/gcc-linaro-4.9-2014.05/bin/arm-cortex_a15-linux-gnueabihf-

please note arm-cortex_a15-linux-gnueabihf-, if you are using a8 toolchain it's arm-cortex_a8-linux-gnueabihf- same for a9

also you need to put a .config file in the root folder of the kernel
[Miscellaneous Android Development] ##W4TCH0UT##:
I already changed the cyanogenmod_i9082_defconfig to .config. Is anything else required.
[Miscellaneous Android Development] rmbq:
maybe yes if the defconfig isn't the full defconfig, usually with cm there's no problem otherwise "make ARCH=arm config" to configure
[Miscellaneous Android Development] ##W4TCH0UT##:
ok.got past that config error,but same error occurs, when i try to compile:

make: /home/w4tch0ut/toolchains/gcc-linaro-4.9-2014.05/bin/arm-cortex_a9-linux-gnueabihf-gcc: Command not found
Makefile:1414: warning: overriding commands for target `clean'
Makefile:1180: warning: ignoring old commands for target `clean'
arch/arm/mach-capri/custom_boards/Kconfig:19:warning: defaults for choice values not supported
arch/arm/mach-capri/custom_boards/Kconfig:25:warning: defaults for choice values not supported
arch/arm/mach-capri/custom_boards/Kconfig:31:warning: defaults for choice values not supported
arch/arm/mach-capri/custom_boards/Kconfig:37:warning: defaults for choice values not supported
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.

help.please.
[Miscellaneous Android Development] rmbq:
/home/w4tch0ut/toolchains/gcc-linaro-4.9-2014.05/bin/arm-cortex_a9-linux-gnueabihf-gcc: Command not found

your path is wrong.

are you using this toolchain? https://github.com/Christopher83/linaro_toolchains_2014
[Miscellaneous Android Development] ##W4TCH0UT##:
no.
[Miscellaneous Android Development] rmbq:
so wich one? btw just follow the folder from home to your toolchain