Thanks you soo much sir for help us kernel things......i halped alot from you,will write a kernel for my devices, i will take ur help if i'm mistaken some steps?
Helped alot sir
Helped alot sir
What is the difference of this two
arm-eabi-4.8
And
arm-linux-androideabi-4.9
Because icant fjnd arm-eabi-4.9
Thanks
How can I under-volt my kernel . ? Where I can find that script in kernel source? Thanks. .in adv
error loading plugin: /dev-a7000/j7dev/techOS/Kernel/uberTC64/bin/../libexec/gcc/aarch64-linux-android/4.9.4/liblto_plugin.so: file too short
collect2: error: ld returned 1 exit status
/dev-a7000/j7dev/techOS/Kernel/arch/arm64/kernel/vdso/Makefile:27: recipe for target 'arch/arm64/kernel/vdso/vdso.so.dbg' failed
make[2]: *** [arch/arm64/kernel/vdso/vdso.so.dbg] Error 1
scripts/Makefile.build:455: recipe for target 'arch/arm64/kernel/vdso' failed
make[1]: *** [arch/arm64/kernel/vdso] Error 2
Makefile:841: recipe for target 'arch/arm64/kernel' failed
make: *** [arch/arm64/kernel] Error 2
make: *** Waiting for unfinished jobs....
Error 1
scripts/Makefile.build:455: recipe for target 'arch/arm64/kernel/vdso' failed
i was expecting using my device config it will compile flawlessly out of the box but it always stop at the "drivers" part lol
need a little help
trying to compile nexus 6 for android 8.0 using https://github.com/AICP/kernel_moto_shamu/tree/o8.0
i used the google toolchain as stated because up streaming needs patchs, and id like to upstream but im not that good. i get this after i run make:
/home/logan/android_kernel_moto_shamu/scripts/gcc-version.sh: line 25: /home/logan/arm-eabi-4.8gcc: No such file or directory
/home/logan/android_kernel_moto_shamu/scripts/gcc-version.sh: line 26: /home/logan/arm-eabi-4.8gcc: No such file or directory
i did exactly like ZawZaw did
--------------------------------------------------------------------------------------
export CROSS_COMPILE=${HOME}/arm-eabi-4.8/bin/arm-eabi-
export ARCH=arm && export SUBARCH=arm
make clean && make mrproper
---------------------------------------------------------------------------------------
everything seems to be in the right location and named the correct stuff
https://ibb.co/nvLKsR
my goal is to enable over clocking by modifying the frequency configs, if this cannot be done please let me know.... i haven't found any 8.0 kernels for shamu yet.... please enlighten me
thank you that allowed make to work, the only documentation on adding frequency at a kernel level iv found is from 2014 for an acer and this kernel doesn't have the cpu frequency configs that i was looking for, could you tell me what im looking for? iv been poking around in the arch/arm but no luck
i was looking at this https://www.youtube.com/watch?v=lBYRLc5GKAI
but what you sent is way better, do you think i would be able to pull that whole file out of a kernel like elementalx? i used that kernel for some time and voltages where perfect.
https://github.com/flar2/shamu/blob/ElementalX-5.00/arch/arm/boot/dts/qcom/apq8084.dtsi
comparing this one to the one from your link i know elementalx allows for a 3.0 ghz overclock but it may be applying it in ramdisk.... do you think if i add a frequency in the current and frequency list for each cpu that it would use it?
git fetch https://github.com/flar2/shamu ElementalX-5.00
git cherry-pick eb8d56044571a4e597e7665aef1edcc4e2c1bd95
git fetch <repo_url> <branch_name>
git cherry-pick <commit_hash>
net/netfilter/xt_TCPMSS.c: In function 'tcpmss_mt':
net/netfilter/xt_TCPMSS.c:64:26: error: dereferencing pointer to incomplete type
return (mssval >= info->mss_min &&
^
net/netfilter/xt_TCPMSS.c:65:19: error: dereferencing pointer to incomplete type
mssval <= info->mss_max) ^ info->invert;
^
net/netfilter/xt_TCPMSS.c:65:36: error: dereferencing pointer to incomplete type
mssval <= info->mss_max) ^ info->invert;
^
net/netfilter/xt_TCPMSS.c:73:13: error: dereferencing pointer to incomplete type
return info->invert;
^
net/netfilter/xt_TCPMSS.c: At top level:
net/netfilter/xt_TCPMSS.c:85:23: error: invalid application of 'sizeof' to incomplete type 'struct xt_tcpmss_match_info'
.matchsize = sizeof(struct xt_tcpmss_match_info),
^
net/netfilter/xt_TCPMSS.c:93:23: error: invalid application of 'sizeof' to incomplete type 'struct xt_tcpmss_match_info'
.matchsize = sizeof(struct xt_tcpmss_match_info),
^
scripts/Makefile.build:257: recipe for target 'net/netfilter/xt_TCPMSS.o' failed
sorry I haven't tried, I'm also newbie. I will try first and may tell you if successHow can I compile a 5.x kernel using the 3.18 source? My device doesn’t have newer source.
git clone -b <branch_to_checkout> <url> <desired_folder_name>
OR
tar -xvf <filename>
git clone -b android-msm-angler-3.10-nougat-mr2 https://android.googlesource.com/kernel/msm/ angler
git clone <url>
export CROSS_COMPILE=$(pwd)/bin/<toolchain_prefix>-
export CROSS_COMPILE=$(pwd)/bin/aarch64-linux-android-
export ARCH=<arch> && export SUBARCH=<arch>
export ARCH=arm64 && export SUBARCH=arm64
make clean
make mrproper
make <defconfig_name>
make -j$(nproc --all)
mkdir -p out
make O=out clean
make O=out mrproper
make O=out <defconfig_name>
make O=out -j$(nproc --all)
unpackimg.sh <image_name>.img
repackimg.sh
wget https://github.com/nathanchance/AnyKernel2/commit/addb6ea860aab14f0ef684f6956d17418f95f29a.diff
patch -p1 < addb6ea860aab14f0ef684f6956d17418f95f29a.diff
rm addb6ea860aab14f0ef684f6956d17418f95f29a.diff
zip -r9 kernel.zip * -x README.md kernel.zip
diff --git a/Makefile b/Makefile
index 1aaa760f255f..bfccd5594630 100644
--- a/Makefile
+++ b/Makefile
@@ -326,7 +326,7 @@ include $(srctree)/scripts/Kbuild.include
AS = $(CROSS_COMPILE)as
LD = $(CROSS_COMPILE)ld
-REAL_CC = $(CROSS_COMPILE)gcc
+CC = $(CROSS_COMPILE)gcc
CPP = $(CC) -E
AR = $(CROSS_COMPILE)ar
NM = $(CROSS_COMPILE)nm
@@ -340,10 +340,6 @@ DEPMOD = /sbin/depmod
PERL = perl
CHECK = sparse
-# Use the wrapper for the compiler. This wrapper scans for new
-# warnings and causes the build to stop upon encountering them.
-CC = $(srctree)/scripts/gcc-wrapper.py $(REAL_CC)
-
CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
-Wbitwise -Wno-return-void $(CF)
CFLAGS_MODULE =
export CROSS_COMPILE_ARM32=$(pwd)/bin/<toolchain_prefix>
export CROSS_COMPILE_ARM32=$(pwd)/bin/arm-linux-androideabi-
Introduction
I am happy to answer anything that I touched on in this guide. I may point you to another thread if it's better suited but I don't mind off topic (within reason) within the thread. I also want this to be a collaborative effort; other developers, if you have something to add, correct, or improve upon, please let me know!
I am particular in how people ask for help. I do NOT respond to posts asking for a hand out ("How do I fix this?", "Please fix this!", etc.). I only respond to posts with clear logs and steps that you have tried. Basically, show me that you have read this guide and have a specific issue. I am not here to hold your hand through this, this is a developers' forum.
@nathanchance thx for great work
But how to build kernel with gcc 9.2.0
could you please add manual for that