OnePlusOSS / android_kernel_5.10_oneplus_mt6895

Other
17 stars 11 forks source link

[oplus-5.10] Missing & Broken Kernel Code in Oneplus Ace/Race ColorOS 12.1 Source #1

Open techyminati opened 2 years ago

techyminati commented 2 years ago

Hi the following kernel drivers are missing in kernel code

splitted logs:- https://katb.in/osamuzogobo https://katb.in/nogitipikey https://katb.in/isiwepugobu

techyminati commented 2 years ago

Hello Oneplus, this if a followup regarding your mail, in which you asked me to rebuild kernel image

I've tried same and here are the logs

drivers/input/Kconfig:215: can't open file "drivers/input/uff_fp_drivers/Kconfig"
make[2]: *** [../scripts/kconfig/Makefile:88: mgk_64_k510_defconfig] Error 1
make[1]: *** [/drone/src/k/Makefile:617: mgk_64_k510_defconfig] Error 2
make[1]: Leaving directory '/drone/src/k/out'
make: *** [Makefile:185: __sub-make] Error 2
make[1]: Entering directory '/drone/src/k/out'
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[1]: *** [/drone/src/k/Makefile:714: .config] Error 1
make[1]: Leaving directory '/drone/src/k/out'
make: *** [Makefile:185: __sub-make] Error 2
../net/oplus_score/oplus_score.c:1435:8: error: implicit declaration of function 'nf_register_net_hooks' [-Werror,-Wimplicit-function-declaration]
        ret = nf_register_net_hooks(&init_net, oplus_score_netfilter_ops, ARRAY_SIZE(oplus_score_netfilter_ops));
              ^
  AR      drivers/tty/serial/built-in.a
  CC      net/oplus_modules/oplus_stats_calc/oplus_stats_calc.o
  CC      drivers/char/hw_random/core.o
  CC      drivers/tty/vt/vc_screen.o
  AR      fs/devpts/built-in.a
../net/oplus_score/oplus_score.c:1453:2: error: implicit declaration of function 'nf_unregister_net_hooks' [-Werror,-Wimplicit-function-declaration]
        nf_unregister_net_hooks(&init_net, oplus_score_netfilter_ops, ARRAY_SIZE(oplus_score_netfilter_ops));
        ^
  AR      fs/oplus_perf_fs/built-in.a
  AR      drivers/tty/ipwireless/built-in.a
  CC      drivers/tty/tty_io.o
2 errors generated.
  AR      fs/exportfs/built-in.a
make[3]: *** [../scripts/Makefile.build:277: net/oplus_score/oplus_score.o] Error 1
techyminati commented 2 years ago

https://github.com/OnePlusOSS/android_kernel_5.10_oneplus_mt6895/tree/oneplus/mt6895_s_12.1_oneplus_ace_race/arch/arm64/configs

Regards

techyminati commented 2 years ago

Got it, exists here https://github.com/OnePlusOSS/android_kernel_5.10_oneplus_mt6895/blob/oneplus/mt6895_s_12.1_oneplus_ace_race/kernel/configs/oplus6895.config

Thx I'll compile and let you know

13THWARRIOR commented 2 years ago

Still getting errors from mt6895 12.1 kernel source :

using config : mgk_64_k510_defconfig and oplus6895.config using clang : 12.0.9 based on r416183c2

command to compile kernel :

make O=out ARCH=arm64 LLVM=1 LLVM_IAS=1 mgk_64_k510_defconfig oplus6895.config make O=out ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- CROSS_COMPILE_COMPAT=arm-linux-gnueabi- LLVM=1 LLVM_IAS=1 ABI_OUT_TAG="mtk" KMI_SYMBOL_LIST=android/abi_gki_aarch64_mtk GKI_MODULES_LIST=android/abi_gki_aarch64_oplus ABI_DEFINITION=android/abi_gki_aarch64.xml SKIP_CP_KERNEL_HDR=1

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.  
13THWARRIOR commented 2 years ago

Got it, exists here https://github.com/OnePlusOSS/android_kernel_5.10_oneplus_mt6895/blob/oneplus/mt6895_s_12.1_oneplus_ace_race/kernel/configs/oplus6895.config

Thx I'll compile and let you know

any update on this matter ... were you successful ??

13THWARRIOR commented 2 years ago

Still getting errors from mt6895 12.1 kernel source :

using config : mgk_64_k510_defconfig and oplus6895.config using clang : 12.0.9 based on r416183c2

command to compile kernel :

make O=out ARCH=arm64 LLVM=1 LLVM_IAS=1 mgk_64_k510_defconfig oplus6895.config make O=out ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- CROSS_COMPILE_COMPAT=arm-linux-gnueabi- LLVM=1 LLVM_IAS=1 ABI_OUT_TAG="mtk" KMI_SYMBOL_LIST=android/abi_gki_aarch64_mtk GKI_MODULES_LIST=android/abi_gki_aarch64_oplus ABI_DEFINITION=android/abi_gki_aarch64.xml SKIP_CP_KERNEL_HDR=1

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.

after a lot of fight .. finally it compiled.

13THWARRIOR commented 2 years ago

found a few issues with touchscreen code. if using CONFIG_OPLUS_MTK_DRM_GKI_NOTIFY then all the CONFIG_FB code should be coming after the first config else all the code will give compilation errors.

CloudMeiyu commented 1 year ago

Still getting errors from mt6895 12.1 kernel source :

using config : mgk_64_k510_defconfig and oplus6895.config using clang : 12.0.9 based on r416183c2

command to compile kernel :

make O=out ARCH=arm64 LLVM=1 LLVM_IAS=1 mgk_64_k510_defconfig oplus6895.config make O=out ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- CROSS_COMPILE_COMPAT=arm-linux-gnueabi- LLVM=1 LLVM_IAS=1 ABI_OUT_TAG="mtk" KMI_SYMBOL_LIST=android/abi_gki_aarch64_mtk GKI_MODULES_LIST=android/abi_gki_aarch64_oplus ABI_DEFINITION=android/abi_gki_aarch64.xml SKIP_CP_KERNEL_HDR=1

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.

Hi brother, I have the same problem as you. How did you solve it, thank you very much

CloudMeiyu commented 1 year ago

I tried to find the relevant code to comment it out, but I found more and more errors. It was really frustrating

13THWARRIOR commented 1 year ago

@CloudMeiyu can you check your config ... the issue is because of config ... you need to include android gki config, android recommend configs, mtk and oplus configs .... then it will compile fine.

CloudMeiyu commented 1 year ago

@CloudMeiyu can you check your config ... the issue is because of config ... you need to include android gki config, android recommend configs, mtk and oplus configs .... then it will compile fine.

Thank you very much for taking the time to reply the message. I used mgk_64_k510_defconfig and oplus6895.config..... Do you need to make any other Settings? The documentation doesn't say anything else...

CloudMeiyu commented 1 year ago

@CloudMeiyu can you check your config ... the issue is because of config ... you need to include android gki config, android recommend configs, mtk and oplus configs .... then it will compile fine.

make O=out ARCH=arm64 mgk_64_k510_defconfig oplus6895.config What else do we need ? It's too hard brother. wailing

13THWARRIOR commented 1 year ago

@CloudMeiyu yes please use merge tool in script folder in kernel to merge all these config :

  1. gki_defconfig
  2. android-base.config
  3. android-recommended.config
  4. mgk_64_k510_defconfig
  5. oplus6895.config

you can remove redundant configs and use the merged config to build with googles gki build system.

yes the documentation are scarce for gki.

CloudMeiyu commented 1 year ago

@CloudMeiyu yes please use merge tool in script folder in kernel to merge all these config :

1. gki_defconfig

2. android-base.config

3. android-recommended.config

4. mgk_64_k510_defconfig

5. oplus6895.config

you can remove redundant configs and use the merged config to build with googles gki build system.

yes the documentation are scarce for gki.

Brother Could you tell me how to use merge tool in script folder in kernel to merge all these config ..? I checked the data and found that it was using "./scripts/kconfig/merge_config.sh" merge all these config I don't know if it's right.

command to compile kernel :

./scripts/kconfig/merge_config.sh -m arch/arm64/configs/gki_defconfig kernel/configs/android-base.config kernel/configs/android-recommended.config arch/arm64/configs/mgk_64_k510_defconfig kernel/configs/oplus6895.config

mv -f .config .merged.config (Looking through the data, I don't know why he did it.) make O=out -j4 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- KCONFIG_ALLCONFIG=.merged.config alldefconfig (Looking through the data, I don't know why he did it.)

make O=out -j4 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-

getting error :

In file included from ./../include/linux/compiler_types.h:74, from : ../arch/arm64/include/asm/jump_label.h: In function ‘mutex_unlock_slowpath.isra.0’: ../include/linux/compiler-gcc.h:102:38: warning: asm operand 0 probably doesn’t match constraints 102 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) | ^~~ ../arch/arm64/include/asm/jump_label.h:38:2: note: in expansion of macro ‘asm_volatile_goto’ 38 | asm_volatile_goto( | ^~~~~ ../include/linux/compiler-gcc.h:102:38: warning: asm operand 0 probably doesn’t match constraints 102 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) | ^~~ ../arch/arm64/include/asm/jump_label.h:38:2: note: in expansion of macro ‘asm_volatile_goto’ 38 | asm_volatile_goto( | ^~~~~ ../include/linux/compiler-gcc.h:102:38: warning: asm operand 0 probably doesn’t match constraints 102 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) | ^~~ ../arch/arm64/include/asm/jump_label.h:38:2: note: in expansion of macro ‘asm_volatile_goto’ 38 | asm_volatile_goto( | ^~~~~ ../include/linux/compiler-gcc.h:102:38: warning: asm operand 0 probably doesn’t match constraints 102 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) | ^~~ ../arch/arm64/include/asm/jump_label.h:38:2: note: in expansion of macro ‘asm_volatile_goto’ 38 | asm_volatile_goto( | ^~~~~ ../include/linux/compiler-gcc.h:102:38: warning: asm operand 0 probably doesn’t match constraints 102 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) | ^~~ ../arch/arm64/include/asm/jump_label.h:21:2: note: in expansion of macro ‘asm_volatile_goto’ 21 | asm_volatile_goto( | ^~~~~ ../include/linux/compiler-gcc.h:102:38: error: impossible constraint in ‘asm’ 102 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) | ^~~ ../arch/arm64/include/asm/jump_label.h:38:2: note: in expansion of macro ‘asm_volatile_goto’ 38 | asm_volatile_goto( | ^~~~~ ../include/linux/compiler-gcc.h:102:38: error: impossible constraint in ‘asm’ 102 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) | ^~~ ../arch/arm64/include/asm/jump_label.h:38:2: note: in expansion of macro ‘asm_volatile_goto’ 38 | asm_volatile_goto( | ^~~~~ ../include/linux/compiler-gcc.h:102:38: error: impossible constraint in ‘asm’ 102 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) | ^~~ ../arch/arm64/include/asm/jump_label.h:38:2: note: in expansion of macro ‘asm_volatile_goto’ 38 | asm_volatile_goto( | ^~~~~ ../include/linux/compiler-gcc.h:102:38: error: impossible constraint in ‘asm’ 102 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) | ^~~ ../arch/arm64/include/asm/jump_label.h:38:2: note: in expansion of macro ‘asm_volatile_goto’ 38 | asm_volatile_goto( | ^~~~~ ../include/linux/compiler-gcc.h:102:38: error: impossible constraint in ‘asm’ 102 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) | ^~~ ../arch/arm64/include/asm/jump_label.h:21:2: note: in expansion of macro ‘asm_volatile_goto’ 21 | asm_volatile_goto( | ^~~~~ ../arch/arm64/include/asm/jump_label.h: In function ‘system_uses_lse_atomics’: ../include/linux/compiler-gcc.h:102:38: warning: asm operand 0 probably doesn’t match constraints 102 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) | ^~~ ../arch/arm64/include/asm/jump_label.h:38:2: note: in expansion of macro ‘asm_volatile_goto’ 38 | asm_volatile_goto( | ^~~~~ ../include/linux/compiler-gcc.h:102:38: warning: asm operand 0 probably doesn’t match constraints 102 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) | ^~~ ../arch/arm64/include/asm/jump_label.h:38:2: note: in expansion of macro ‘asm_volatile_goto’ 38 | asm_volatile_goto( | ^~~~~ ../include/linux/compiler-gcc.h:102:38: error: impossible constraint in ‘asm’ 102 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) | ^~~ ../arch/arm64/include/asm/jump_label.h:38:2: note: in expansion of macro ‘asm_volatile_goto’ 38 | asm_volatile_goto( | ^~~~~ ../include/linux/compiler-gcc.h:102:38: error: impossible constraint in ‘asm’ 102 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) | ^~~ ../arch/arm64/include/asm/jump_label.h:38:2: note: in expansion of macro ‘asm_volatile_goto’ 38 | asm_volatile_goto( | ^~~~~ ../arch/arm64/include/asm/jump_label.h: In function ‘arch_local_irq_disable’: ../include/linux/compiler-gcc.h:102:38: warning: asm operand 0 probably doesn’t match constraints 102 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) | ^~~ ../arch/arm64/include/asm/jump_label.h:21:2: note: in expansion of macro ‘asm_volatile_goto’ 21 | asm_volatile_goto( | ^~~~~ ../arch/arm64/include/asm/jump_label.h: In function ‘preempt_notifier_register’: ../include/linux/compiler-gcc.h:102:38: warning: asm operand 0 probably doesn’t match constraints 102 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) | ^~~ ../arch/arm64/include/asm/jump_label.h:21:2: note: in expansion of macro ‘asm_volatile_goto’ 21 | asm_volatile_goto( | ^~~~~ ../arch/arm64/include/asm/jump_label.h: In function ‘schedule_bug’: ../include/linux/compiler-gcc.h:102:38: warning: asm operand 0 probably doesn’t match constraints 102 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) | ^~~ ../arch/arm64/include/asm/jump_label.h:21:2: note: in expansion of macro ‘asm_volatile_goto’ 21 | asm_volatile_goto( | ^~~~~

Oh, my God, my mind is about to explode.....................Damn it. Wrong report..............

13THWARRIOR commented 1 year ago

@CloudMeiyu well from kernel 5.10 onwards google started using llvm/clang (please go through google documentation) so not more cross compiling using gcc and regarding the merge tool please find the help documentation using a notepad or using -h or --help. Yes the path and script is the same. The reason we are merging multiple config as to specify which is vendor config and which is common and which is gki and android specific. Brings more clarity which config is for what.

CloudMeiyu commented 1 year ago

@CloudMeiyu well from kernel 5.10 onwards google started using llvm/clang (please go through google documentation) so not more cross compiling using gcc and regarding the merge tool please find the help documentation using a notepad or using -h or --help. Yes the path and script is the same. The reason we are merging multiple config as to specify which is vendor config and which is common and which is gki and android specific. Brings more clarity which config is for what.

Brother, thank you very much. I have avoided the error reported before through your description and compiled normally for a period of time. However, there is a stack error reported later that I cannot solve. Have you ever encountered this problem? I wonder if it has anything to do with the machine being 64-bit, when the normal build environment should be 32-bit

Error:

../drivers/misc/mediatek/imgsensor/src-v4l2/frame-sync/frame_sync_console.c:284:16: error: stack frame size of 8256 bytes in function 'fsync_console_store' [-Werror,-Wframe-larger-than=] static ssize_t fsync_console_store( ^ 1 error generated. ../scripts/Makefile.build:277: recipe for target 'drivers/misc/mediatek/imgsensor/src-v4l2/frame-sync/frame_sync_console.o' failed

13THWARRIOR commented 1 year ago

@CloudMeiyu bro only 64 bit is only supported not 32 bit for building anything. Please DM for support if needed.