oneplusoss / android_kernel_5.10_oneplus_mt6895 Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Hi the following kernel drivers are missing in kernel code
vendor/oplus/kernel/touchpanel/oplus_touchscreen_v2/
does not exist https://github.com/OnePlusOSS/android_vendor_mediatek_kernel_modules_mt6895/tree/oneplus/mt6895_s_12.1_oneplus_ace_race/vendor/oplus/kernel & these are symlinked here https://github.com/OnePlusOSS/android_kernel_5.10_oneplus_mt6895/blob/oneplus/mt6895_s_12.1_oneplus_ace_race/drivers/input/touchscreen/oplus_touchscreen_v2
Also the uff_fp_drivers are missing vendor/oplus/secure/biometrics/fingerprints/bsp/uff/driver
does not exist
Also the whole kernel is broken , it does not compile at all, I'm using Clang 11 in my build, here are logs.
https://gist.github.com/techyminati/c8cd8c65c16eaf1cc84f8479984e8935
splitted logs:-
https://katb.in/osamuzogobo
https://katb.in/nogitipikey
https://katb.in/isiwepugobu
which .config file to use? or any way to generate .config file?
Still getting errors from mt6895 12.1 kernel source :
using config : mgk_64_k510_defconfig and oplus6895.config
CROSS_COMPILE = aarch64-linux-gnu-
command to compile kernel :
make O=out -j4 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- mgk_64_k510_defconfig oplus6895.config
make O=out -j4 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
getting error :
GEN Makefile
CALL ../scripts/checksyscalls.sh
CALL ../scripts/atomic/check-atomics.sh
CHK include/generated/compile.h
CC arch/arm64/kernel/secureguard/rootguard/oplus_root_hook.o
../arch/arm64/kernel/secureguard/rootguard/oplus_root_hook.c:103:11: error: no member named 'android_kabi_reserved4' in 'struct task_struct'
current->android_kabi_reserved4 = regs->syscallno;
../arch/arm64/kernel/secureguard/rootguard/oplus_root_hook.c:104:11: error: no member named 'android_kabi_reserved5' in 'struct task_struct'
current->android_kabi_reserved5 = current_uid().val;
~~~~~~~ ^
../arch/arm64/kernel/secureguard/rootguard/oplus_root_hook.c:105:11: error: no member named 'android_kabi_reserved6' in 'struct task_struct'
current->android_kabi_reserved6 = current_euid().val;
~~~~~~~ ^
../arch/arm64/kernel/secureguard/rootguard/oplus_root_hook.c:106:11: error: no member named 'android_kabi_reserved7' in 'struct task_struct'
current->android_kabi_reserved7 = current_gid().val;
~~~~~~~ ^
../arch/arm64/kernel/secureguard/rootguard/oplus_root_hook.c:107:11: error: no member named 'android_kabi_reserved8' in 'struct task_struct'
current->android_kabi_reserved8 = current_egid().val;
~~~~~~~ ^
../arch/arm64/kernel/secureguard/rootguard/oplus_root_hook.c:114:23: error: no member named 'android_kabi_reserved4' in 'struct task_struct'
uid_t scno =current->android_kabi_reserved4;
~~~~~~~ ^
../arch/arm64/kernel/secureguard/rootguard/oplus_root_hook.c:121:21: error: no member named 'android_kabi_reserved5' in 'struct task_struct'
if ((0 != current->android_kabi_reserved5 ) && (is_unlocked() == 0)){
~~~~~~~ ^
../arch/arm64/kernel/secureguard/rootguard/oplus_root_hook.c:122:17: error: no member named 'android_kabi_reserved5' in 'struct task_struct'
if ((current->android_kabi_reserved5 != current_uid().val) || (current->android_kabi_reserved6 != current_euid().val) ||
~~~~~~~ ^
../arch/arm64/kernel/secureguard/rootguard/oplus_root_hook.c:122:75: error: no member named 'android_kabi_reserved6' in 'struct task_struct'
if ((current->android_kabi_reserved5 != current_uid().val) || (current->android_kabi_reserved6 != current_euid().val) ||
~~~~~~~ ^
../arch/arm64/kernel/secureguard/rootguard/oplus_root_hook.c:123:31: error: no member named 'android_kabi_reserved7' in 'struct task_struct'
(current->android_kabi_reserved7 != current_gid().val) || (current->android_kabi_reserved8 != current_egid().val) || (get_fs() > KERNEL_ADDR_LIMIT)){
~~~~~~~ ^
../arch/arm64/kernel/secureguard/rootguard/oplus_root_hook.c:123:89: error: no member named 'android_kabi_reserved8' in 'struct task_struct'
(current->android_kabi_reserved7 != current_gid().val) || (current->android_kabi_reserved8 != current_egid().val) || (get_fs() > KERNEL_ADDR_LIMIT)){
~~~~~~~ ^
../arch/arm64/kernel/secureguard/rootguard/oplus_root_hook.c:137:37: error: no member named 'android_kabi_reserved5' in 'struct task_struct'
oplus_root_check_succ(current->android_kabi_reserved5, current->android_kabi_reserved6, current->android_kabi_reserved8, current->android_kabi_reserved4);
~~~~~~~ ^
../arch/arm64/kernel/secureguard/rootguard/oplus_root_hook.c:137:70: error: no member named 'android_kabi_reserved6' in 'struct task_struct'
oplus_root_check_succ(current->android_kabi_reserved5, current->android_kabi_reserved6, current->android_kabi_reserved8, current->android_kabi_reserved4);
~~~~~~~ ^
../arch/arm64/kernel/secureguard/rootguard/oplus_root_hook.c:137:103: error: no member named 'android_kabi_reserved8' in 'struct task_struct'
oplus_root_check_succ(current->android_kabi_reserved5, current->android_kabi_reserved6, current->android_kabi_reserved8, current->android_kabi_reserved4);
~~~~~~~ ^
../arch/arm64/kernel/secureguard/rootguard/oplus_root_hook.c:137:136: error: no member named 'android_kabi_reserved4' in 'struct task_struct'
oplus_root_check_succ(current->android_kabi_reserved5, current->android_kabi_reserved6, current->android_kabi_reserved8, current->android_kabi_reserved4);
~~~~~~~ ^
15 errors generated.
make[5]: *** [../scripts/Makefile.build:277: arch/arm64/kernel/secureguard/rootguard/oplus_root_hook.o] Error 1
make[4]: *** [../scripts/Makefile.build:526: arch/arm64/kernel/secureguard/rootguard] Error 2
make[3]: *** [../scripts/Makefile.build:526: arch/arm64/kernel/secureguard] Error 2
make[2]: *** [../scripts/Makefile.build:526: arch/arm64/kernel] Error 2
please ask oneplus kernel team to just to test only the kernel compilation not the entire source.
Please tell me how to successfully compile the kernel. Is there a problem with the compiler used?
Thanks.
compile success, but only generate Image file, Image.gz file and dts directory, why?
I tried using command
make O=out ARCH=arm64 LLVM=1 LLVM_IAS=1 mgk_64_k510_defconfig oplus6895.config
I notice:
(base) ➜ kernel git:(oneplus/mt6895_s_12.1_oneplus_ace_race) ✗ ls -l|grep oplus_perf_sched
lrwxrwxrwx 1 arch arch 55 Jan 9 19:51 oplus_perf_sched -> ../../vendor/oplus/kernel/oplus_performance_5.10/sched/
Am I missing oplus_performance_5.10 directory? Where can I fetch it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.