yashsingh1/xdaforums huggingface dataset:
[Android Software Development] playitlouder:
Hi,

I could use some help :D

I am trying to get some newer firmware going on my Chuwi Hi8. Currently stuck on 4.4.4 Kernel 3.10.20.

No sources from Chuwi, though.

So I went hunting. This thing runs a Insyde BIOS, that is also used by other manufacturers. Acer for example.

So I searched around and found the One 7 B1-750. Runs the same generation of CPU. My Chuwi has a Z3736F, the Acer a Z3735G which is just clocked a little lower. So I want to try, if the Kernel also boots on my Chuwi.

I went to Acer and got the sources here: http://global-download.acer.com/GDF...7&Step3=B1-750&OS=ALL&LC=de&BC=ACER&SC=EMEA_8

Problem is: I don't need to crosscompile, because I need x86_64 and I am compiling on an 64 Bit system. Could anybody help me to set this up?

I am a little lost, because I have no Idea, which defconfig to choose. In the /kernel/arch/x86/configs directory are 15 defconfig files :P

Thanks!
[Android Software Development] neonkat:
only having same cpu will not work,both phones should have exactly same hardware like the camera drivers,display drivers and other stuffs.

keeping it simple,both devices must be clone of each other.

for now,you will have to modify the source and change accordingly with your device drivers and then continue compiling it.
[Android Software Development] playitlouder:
I know. But there is no identical device which has kernel sources. I have to hunt around for the missing drivers.

I am fine with that, I want to see how far this boots, when compiled. Thats why I want to build this kernel ;)
[Android Software Development] friozi:
Neonkat, thanks for asking....

MODEL: G900MD (everything from FD works on MD)

OS: MM 6.0.1 - rooted

Got the source from here its for FD because there is none for FD MM atm (SM-G900FD_CIS_MM_Opensource) http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=G900FD

This is the kernel only from the link above. = https://mega.nz/#!AF01nRzT!pTAdnzTRcHvlNUIz8XTmW__Wj8111sZ0ECXokgC43Jg

Need change this..
[Android Software Development] neonkat:
to make it fully permissive,check https://github.com/neonkat/tw_lp_kernel/commit/54f51de39d588ab6e7ef8453351fde2f9b549d9c.
[Android Software Development] friozi:
yeah i already edited those lines... i just cant compile it...
[Android Software Development] neonkat:
okay then look at the compressed zip folder you downloaded,you will find a txt file there,something named like kernel.txt,it includes the info. about the defconfig variant and selinux files which you need for your device.
[Android Software Development] srikanth_s:
Installed Ubuntu 14 in Virtual Box. Next ran following cmd in terminal.

sudo apt-get install -y build-essential kernel-package libncurses5-dev bzip2

Got following error o/p.

Reading package lists... Done

Building dependency tree

Reading state information... Done

E: Unable to locate package build-essential

E: Unable to locate package kernel-package

E: Unable to locate package libncurses5-dev

Please help on fixing this.
[Android Software Development] Eliminator79:
:rolleyes: Didn't see this before

Try to cancel this step :P and see what will happen

or wait till someone replys you :D because i really didn't know this before
[Android Software Development] savoca:
Absolutely, go for it. :good:
[Android Software Development] Eliminator79:
Thanks my dear friend. :victory: ;) :cowboy: :angel: :cool:

Sorry i'm limited to 8 thanks.
[Android Software Development] Nikhil:
remove -y and try

if that doesn't work try installing packages one by one like following

sudo apt-get install build-essential
[Android Software Development] dd98:
[MENTION=5373435]Eliminator79[/MENTION], I this guide is perfect for ROM developers like me to cross that bridge to kernel development, thanks!!

One more question, i type in: ARCH=arm CROSS_COMPILE=~/arm-eabi-4.4.3/bin/arm-eabi- make m7, and I get an error: make: *** No rule to make target `m7'. Stop. I am using Linux Mint if that matters. Any help appreciated
[Android Software Development] viking666:
Did you do a "sudo apt-get update" before you tried the "apt-get install" command?
[Android Software Development] srikanth_s:
Caused due to http proxy issue. Followed the below link to set the proxy.

http://www.cse.iitb.ac.in/~aamod/ubuntu/install.html
[Android Software Development] Eliminator79:
Thanks bro :angel: :good:

Maybe cause you are on linux mint :D (I just think i'm not sure)
[Android Software Development] Vagelis1608:
Awesome tutorial :)

LG 's source code distribution page: https://www.lg.com/global/support/opensource/opensourceList

You should add it to OP

Suggestion: You should cover init.d as well.

Sent from my D620R [Stock 4.4.2]
[Android Software Development] dd98:
Ill install it as soon as I find my Usb stick, maybe its Linux Mint's execution of scripts and commands that affect it
[Android Software Development] ketut.kumajaya:
But in my opinion, when compiling the kernel, specify an alternate place for the output files always better. The kernel source will always be clean from kernel building output files, a good start for a revision control software, e.g. git. Integrating kernel building process to Android build system also much easier.

Reference: https://github.com/kumajaya/android_kernel_samsung_universal5422/blob/master/README#L134-151

https://github.com/kumajaya/android_kernel_samsung_universal5422/blob/master/README.md
[Android Software Development] captaindeep:
Bro i want to update kernel for 4.4.4 roms. it supports only 4.3 and lower versions . what should i do please help me :(
[Android Software Development] mpgrimes:
Any packages for x86 versions of Android? I'd love to see a lower and higher cpu clock for my tablet if it would work
[Android Software Development] XeoNoX:
very well written and descriptive tutorial post. Kudos Mate :good::good:
[Android Software Development] Android-Android:
Help

I have that error:

I don't know. I have these files:
[Android Software Development] Eliminator79:
Create a copy of arm-eabi4.4.3 to the root of your home folder ;) :highfive:
[Android Software Development] ax562:
Anyone know how I could compile JBX kernel for my device Verizon Wireless Droid Bionic (Targa) XT875? This is the git repo for it https://github.com/RAZR-K-Devs/android_kernel_motorola_omap4-common/tree/JBX_4.4. I git clone " blahblah" the git already so source is local. This is what I'm trying to output http://xdaforums.com/showthread.php?t=2618143 . I compile rom source like cm and slim pretty much weekly so I have my linux setup ready and have experience but have never compiled source. My device is locked also to throw another wrench into the equation. If anyone knows where to find info/link/can help/point me in the right direction I would greatly appreciate it! Thank you!
[Android Software Development] colonel_lp:
Great guide, thanks,

I followed your guide for adding governors, and cross referenced with a few others to make sure I had done it right.

My problem is that the governors dont show up as an option when I try to change it from default in any app.

I have scrutinised the code and compared to others in github... all same...

Im building with omni sources, and the kernel builds and boots fine with no errors, well, none relating to governors..

Tried putting them in the defconfig file.. no luck..???

any ideas?
[Android Software Development] Eliminator79:
[MENTION=2328357]colonel_lp[/MENTION] Check other tutorials as i maybe forgot any part :D

Sorry i can't help for now because these three months I'm studying :crying:

Good Luck !
[Android Software Development] playitlouder:
Do you have any clue, why the Acer Kernel doesn't have this info?

All the Files in the Kernel directory are just the standard GNU Kernel Readme's and other info.

Nothing Acer specific.

When I just cd into the directory and run make, it outputs this:

tschuuuls@ubuntu:~/android_dev/linux-vespa2/kernel$ make
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/external_drivers/drivers/input/misc/bosch/Kconfig:11:error: recursive dependency detected!
drivers/external_drivers/drivers/input/misc/bosch/Kconfig:11:	symbol SENSORS_BMA2X2_ENABLE_INT1 depends on SENSORS_BMA2X2_ENABLE_INT2
drivers/external_drivers/drivers/input/misc/bosch/Kconfig:19:	symbol SENSORS_BMA2X2_ENABLE_INT2 depends on SENSORS_BMA2X2_ENABLE_INT1
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
/home/tschuuuls/android_dev/linux-vespa2/kernel/scripts/kconfig/Makefile:39: recipe for target 'silentoldconfig' failed
make[2]: *** [silentoldconfig] Error 1
/home/tschuuuls/android_dev/linux-vespa2/kernel/Makefile:504: recipe for target 'silentoldconfig' failed
make[1]: *** [silentoldconfig] Error 2
make[1]: Nothing to be done for 'all'.
make[1]: Nothing to be done for 'relocs'.
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/kernel.release'. Stop.
[Android Software Development] neonkat:
you will have to define defconfig.check the codename/model of the phone(whose source you have)and search in the defconfig folder(arch/arm/configs).and do a

make xyz_defconfig

or else just do a(incase you get nothing)

make defconfig

and see how it goes.
[Android Software Development] playitlouder:
I am trying to compile for X86_64, that folder has a lot of defconfigs:

i386_bsw_defconfig
i386_byt_defconfig
i386_cht_defconfig
i386_crc_defconfig
i386_ctp_defconfig
i386_defconfig
i386_moor_defconfig
i386_morg_defconfig
i386_mrfl_defconfig
x86_64_bsw_defconfig
x86_64_byt_defconfig
x86_64_cht_defconfig
x86_64_defconfig
x86_64_moor_defconfig
x86_64_mrfl_defconfig

The device is a Acer One 7 B1-750. No idea what the device name may be (I do not own it, I want to use the Kernel source for another tablet).

The closest thing I could imagine it beeing BYT for BayTrail :eek:

EDIT: DUH! The codename is obviously vespa2. Doesnt help me, as there is no config file for that.
[Android Software Development] neonkat:
try doing a

make defconfig
[Android Software Development] playitlouder:
tschuuuls@ubuntu:~/android_dev/linux-vespa2/kernel$ make defconfig
*** Default configuration is based on 'x86_64_defconfig'
drivers/external_drivers/drivers/input/misc/bosch/Kconfig:11:error: recursive dependency detected!
drivers/external_drivers/drivers/input/misc/bosch/Kconfig:11:	symbol SENSORS_BMA2X2_ENABLE_INT1 depends on SENSORS_BMA2X2_ENABLE_INT2
drivers/external_drivers/drivers/input/misc/bosch/Kconfig:19:	symbol SENSORS_BMA2X2_ENABLE_INT2 depends on SENSORS_BMA2X2_ENABLE_INT1
#
# configuration written to .config
#

Seems to do something.

These BOSCH sensors are the accelerometer. Can I ignore those for now?
[Android Software Development] neonkat:
well that's what i said,it have drivers which you don't have and might cause issue(in case if that boots,buy some luck).

anyways,you may compile it.
[Android Software Development] playitlouder:
Well the directory for the driver is there and there are two c files. I think that's the driver. It somehow doesn't like lines 11 and 19. These basically want me to select an Interrupt for the Semsor. Either INT1 or INT2, they lock each other out, so both can't be chosen at the same time. I think this is not configured, and not selecting an interrupt is also an invalid option, that's why it complains.

Running make doesn't get me far either. This kernel is too old to be compiled with GCC 5.

tschuuuls@ubuntu:~/android_dev/linux-vespa2/kernel$ make
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/external_drivers/drivers/input/misc/bosch/Kconfig:11:error: recursive dependency detected!
drivers/external_drivers/drivers/input/misc/bosch/Kconfig:11:	symbol SENSORS_BMA2X2_ENABLE_INT1 depends on SENSORS_BMA2X2_ENABLE_INT2
drivers/external_drivers/drivers/input/misc/bosch/Kconfig:19:	symbol SENSORS_BMA2X2_ENABLE_INT2 depends on SENSORS_BMA2X2_ENABLE_INT1
make[1]: Nothing to be done for 'all'.
make[1]: Nothing to be done for 'relocs'.
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC kernel/bounds.s
In file included from include/linux/compiler.h:54:0,
from include/uapi/linux/stddef.h:1,
from include/linux/stddef.h:4,
from /home/tschuuuls/android_dev/linux-vespa2/kernel/include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/page-flags.h:8,
from kernel/bounds.c:9:
include/linux/compiler-gcc.h:103:30: fatal error: linux/compiler-gcc5.h: No such file or directory
compilation terminated.
/home/tschuuuls/android_dev/linux-vespa2/kernel/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 1
Makefile:836: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2

I have to either patch it to support GCC5, or install an older GCC version.

Do I have to select the target architecture, if I want x86_64 and my VM is x86_64? Or does it get that automatically?
[Android Software Development] Hacker432:
Hi [MENTION=5991747]neonkat[/MENTION]

I would like to update my kernel sublevel.

I saw other's github with commits like "merge in Linux..."

Can you explain me how to do it or point me to a good guide?

Thanks in advance ^^

Inviato dal mio Y550-L01 utilizzando Tapatalk
[Android Software Development] neonkat:
there are multiple ways to do that.

*you can download patch from kernel.org and apply them.

*you can add the 3.x branch as remote(locally),choose and fetch your respective branch and then merge in your device branch.

i will recommend second one because that's easier than first.

you can get the 3.x branch from http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git or https://github.com/codeaurora-unoffical/linux-msm.

do remember you will get loads of merge errors and some build errors too.

---------- Post added at 04:08 PM ---------- Previous post was at 04:02 PM ----------

better compile with gcc 4.9/4.8.with gcc 5+,you need to modify your source(a lot,sometimes).

currently you are missing compiler-gcc5.h which is usually not present in old sources.
[Android Software Development] xDARKMATT3Rx:
mdss_mdp.h: No such file or directory

Hi everyone and [MENTION=5991747]neonkat[/MENTION],

I am having a bit of an issue with an error stopping me from compiling stock source that seems to be for a missing file, however I checked and the file it says is missing is actually there. I have looked all over and can't seem to find a solution to this. Do you have any idea what I can do to fix this?

CC drivers/video/msm/mdss/mdss_dsi.o

In file included from drivers/video/msm/mdss/mdss_debug.h:19:0,

from drivers/video/msm/mdss/mdss_dsi.c:30:

drivers/video/msm/mdss/mdss_mdp_trace.h:25:51: fatal error: ../../drivers/video/msm/mdss/mdss_mdp.h: No such file or directory

#include "../../drivers/video/msm/mdss/mdss_mdp.h"

^

compilation terminated.

make[4]: *** [drivers/video/msm/mdss/mdss_dsi.o] Error 1

make[3]: *** [drivers/video/msm/mdss] Error 2

make[2]: *** [drivers/video/msm] Error 2

make[1]: *** [drivers/video] Error 2

make[1]: *** Waiting for unfinished jobs....
[Android Software Development] neonkat:
have a look at this.
[Android Software Development] xDARKMATT3Rx:
Hi [MENTION=5991747]neonkat[/MENTION],

Thank you so much for your help here. I actually tried this fix before, but it did not work. I tried it again just in case I had missed something, however I am still getting the same error as before:

In file included from drivers/video/msm/mdss/mdss_debug.h:19:0,

from drivers/video/msm/mdss/mdss_dsi.c:30:

drivers/video/msm/mdss/mdss_mdp_trace.h:25:51: fatal error: ../../drivers/video/msm/mdss/mdss_mdp.h: No such file or directory

#include "../../drivers/video/msm/mdss/mdss_mdp.h"

^

compilation terminated.

make[4]: *** [drivers/video/msm/mdss/mdss_dsi.o] Error 1

make[3]: *** [drivers/video/msm/mdss] Error 2

make[2]: *** [drivers/video/msm] Error 2

make[1]: *** [drivers/video] Error 2

make[1]: *** Waiting for unfinished jobs....

Do you know any other things I can try here? This is stock Samsung source so I haven't made any changes yet other than fixing some of the common qualcomm compiling errors I ran into before this one.
[Android Software Development] friozi:
Guys, need help

any ideas?

i really want to pay if someone compile this for me.
[Android Software Development] neonkat:
change to

#include "mach/msm_rtb.h"
[Android Software Development] friozi:
Finally some PROGRESS =DDD

had to put full path

but got this error noow >_<

im getting crazy !!

arm-linux-androideabi-4.9

arm-linux-androideabi-4.8
[Android Software Development] friozi:
Ok.. i installed from zero ubuntu and toolchain and now i getting this error:
[Android Software Development] friozi:
ok i solved the last problem installing ubuntu 12.

but now after 20 minutos compilling i got this error:
[Android Software Development] nimish77:
Can someone give me the governor file(I am using t805 mm source for making n900 kernel) or explain me what exactly do i do here(in the pic)
[Android Software Development] neonkat:
menuconfig cannot add new governers,you will have to do that manually.

incase you want yankdemand,check https://github.com/neonkat/android_...mmit/b8abd0c9ff8940169f279d1bacdf314b54f5edd0.just follow that(i hope you know how git works).

you can search my git for other stuffs too.;)
[Android Software Development] friozi:
hey mate any ideas of my problem? :(
[Android Software Development] neonkat:
i can't say about those error as they seem standalone kernel error.

i would recommend you to look at any custom kernel's github for your device.they must have fixed the errors,you can take some help from there.
[Android Software Development] friozi:
i see.. damn..

do you know any custom kernel for G900MD/FD Android 6.0.1? cant find any.

im just doing this to remove the SELinux.
[Android Software Development] Prototype189:
Hey there

I have this error Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at kernel/timeconst.pl line 373. it starts to compile but it stop there :P

Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at kernel/timeconst.pl line 373.

/home/elias/android/14.3.B.0.362/kernel/kernel/Makefile:129: recipe for target 'kernel/timeconst.h' failed

make[1]: *** [kernel/timeconst.h] Error 255

Makefile:950: recipe for target 'kernel' failed

make: *** [kernel] Error 2

make: *** Waiting for unfinished jobs....
[Android Software Development] Prototype189:
i fixed it !!!!!!!!!
[Android Software Development] xDARKMATT3Rx:
Thank you!

Hi [MENTION=5991747]neonkat[/MENTION],

Just wanted to say thank you for your help! I was able to figure out my issue and compile successfully!

In drivers/video/msm/mdss/mdss_mdp_trace.h I needed to add "./../drivers/video/msm/mdss" to the end of the TRACE_INCLUDE_PATH on line 20:

Old #define TRACE_INCLUDE_PATH .

New #define TRACE_INCLUDE_PATH ../../drivers/video/msm/mdss

Thank you for your help!!
[Android Software Development] Arkonite:
Is the Linaro Toolchain from this thread up-to-date?
[Android Software Development] neonkat:
https://bitbucket.org/DespairFactor/

you can get latest linaro builds from despairfactor here.
[Android Software Development] Arkonite:
Are these builds compatible with any android OS or there are specified ones?
[Android Software Development] freaky2xd:
nabody who knows how I can add usb fastcharge?

---------- Post added at 10:43 AM ---------- Previous post was at 10:42 AM ----------

how can I port features from other kernels? of course i will ask the guys who built them and give them credit
[Android Software Development] neonkat:
yeah,android version doesn't matter.what matters is the cpu type,like arm(32 bit)or arm64(64 bit).

do check what you device is and use the specific tc.

---------- Post added at 04:44 PM ---------- Previous post was at 04:41 PM ----------

check their github for using that feature in you kernel.

for fast charge:-https://github.com/neonkat/android_...mmit/dca29be2abea2b3779fdeb8fd9b4f733649fb32f.just follow what is given in that commit.
[Android Software Development] Arkonite:
Last Question. I have 2 sources for the same device that is Android 4.2.2 and 4.4.2

Should I make the kernel based on Jellybean or should I update the device and make a Kitkat one.
[Android Software Development] xDARKMATT3Rx:
"Schedule workload on awake CPUs"

Hi [MENTION=5991747]neonkat[/MENTION],

Quick question. Can you point me in the right direction to a commit that shows how to add the option to "schedule workload on awake cpus"?

Thank you in advance for your time and help!
[Android Software Development] neonkat:
you meant workqueue?in case yes,you can cherry pick some of commits from https://github.com/neonkat/android_...mmit/422bc0f76e7333d05ecd87a158439cdf41dfa0ad to https://github.com/neonkat/android_...mmit/d797edb18da7c9f36d312509531a844ff739f9f9.

i have other workqueue commits too(too lazy to post commit id's :v),do check my git.;)
[Android Software Development] xDARKMATT3Rx:
Exactly what I was looking for, thank you! So, if I cherry-pick just these two commits will it add what I need, or should I look for your other workqueue commits too? If so, I know you have a ton of commits, so is there any easy way to find the ones I would need other than going page by page through github?

*EDIT*

Never mind my question about the two commits, I found the page of commits and am cherry-picking starting at the first commit you posted to the 2nd commit you posted, however is there a way to find the other workqueue commits easily without going page by page?
[Android Software Development] neonkat:
i would prefer to cherry-pick all the commits in between those(including both of them).

nothing as such,you need to search to yourself.these things need lots of patience and time.
[Android Software Development] xDARKMATT3Rx:
hey [MENTION=5991747]neonkat[/MENTION], thanks for your help! I will definitely check out your github more thoroughly and patiently. So I cherry-picked the work queue commits successfully, and I believe this added the feature I was looking for, but it did not give me the option I was looking for in my kernel tuning app. I am using kernel aduitor mod, and I am looking for an option on the cpu tab that allows you to toggle the scheduling of work queues on awake cpus.

Also I am looking for another commit that adds the toggle for the simple gpu algorithm to the gpu tab in kernel aduitor if you have any insight on this one too.

Thank you again for your time and help!
[Android Software Development] neonkat:
for me on non mod ka,it comes under cpu section,right below the cpu governer part.

do check if you enabled wq in your defconfig or not.https://github.com/neonkat/android_...mmit/afbbccb634092fefa99419c6f87640d97fb329c2(the first one)

the toggle for sgpu algo. comes automatically

under gpu section after you add it in kernel.
[Android Software Development] xDARKMATT3Rx:
I enabled the wq in defconfig, as well as sgpu (I had already added the changes just didnt enable in defconfig), but these options are still not showing up for me, even in the regular kernel aduitor app. Here is a link to my source code, you will see the wq stuff and the sgpu on the 19th, and then I enabled them in defconfig today, am I missing anything?: https://github.com/xDARKMATT3Rx/xDARKMATT3Rx_G900T_Kernel_GPG2/commits/master
[Android Software Development] neonkat:
you forgot some stuffs in sgpu algo.,do check this and add missing stuff in "drivers/devfreq/Kconfig" and retry compiling.

for workqueue,can't say,those will enable it but for the switch,i think you may need another set of commits.you can cherry-pick this one too.