LGgFour / kernel_lge_msm8992

LG-G4 Nougat kernel from F500k sources
Other
0 stars 1 forks source link

add android_kernel_docker #1

Open asterlx opened 8 months ago

asterlx commented 8 months ago

Hello Team could you please try to add https://github.com/lateautumn233/android_kernel_docker?

other repos related https://gist.github.com/FreddieOliveira/efe850df7ff3951cb62d74bd770dce27 https://qiuqiu233.xyz/Android-yuan-sheng-yun-xing-Lxcmd https://github.com/grilix/kernel-docker-support

Thanks a lot!!

asterlx commented 4 days ago

Any help here ? :)

steadfasterX commented 4 days ago

huh thx for the heads up but:

steadfasterX commented 4 days ago

I am pretty sure that if this happens:

https://gist.github.com/FreddieOliveira/efe850df7ff3951cb62d74bd770dce27#kernelmakefile

(referring to the screenshot there)

it will no become an "official" part of that kernel. so I could build a kernel version just with that but will not include it in my OS builds. not sure if that message will be shown or not but just to let you know

asterlx commented 4 days ago

Hi @steadfasterX For any or your roms for any version Yes, no issues not need to be official need to work on LG G4 h811

thanks a lot for your time

steadfasterX commented 4 days ago

Hi @steadfasterX For any or your roms for any version Yes, no issues not need to be official need to work on LG G4 h811

thanks a lot for your time

ok so if that does not matter I can give it a go for my eOS pie build. are you ok with just getting the boot.img to see if it works?

asterlx commented 4 days ago

yes, no issues for me, will be great :) i can test any thing on my 811 :)

steadfasterX commented 4 days ago

ok I just did 2 "quick" tests:

one with the pie kernel and the other with a11 one and both are not compiling without source code modifications.

some examples on the a11 kernel:

In file included from ../../../../../../../../../home/androidsource/do-not-touch/axp/Build/LineageOS-18.1/kernel/lge/msm8992/security/commoncap.c:25:0:                                                                                                                                   
../../../../../../../../../home/androidsource/do-not-touch/axp/Build/LineageOS-18.1/kernel/lge/msm8992/include/linux/hugetlb.h:397:19: error: redefinition of 'hugepage_migration_support'                                                                                                
 static inline int hugepage_migration_support(struct hstate *h)                                                                                                                                                                                                                           
                   ^                                                                                                                                                                                                                                                                      
../../../../../../../../../home/androidsource/do-not-touch/axp/Build/LineageOS-18.1/kernel/lge/msm8992/include/linux/hugetlb.h:373:19: note: previous definition of 'hugepage_migration_support' was here                                                                                 
 static inline int hugepage_migration_support(struct hstate *h)                                                                                                                                                                                                                           
                   ^                                                                                                                                                                                                                                                                      
../../../../../../../../../home/androidsource/do-not-touch/axp/Build/LineageOS-18.1/kernel/lge/msm8992/include/linux/hugetlb.h: In function 'huge_pte_lockptr':                                                                                                                           
../../../../../../../../../home/androidsource/do-not-touch/axp/Build/LineageOS-18.1/kernel/lge/msm8992/include/linux/hugetlb.h:406:3: error: implicit declaration of function 'pmd_lockptr' [-Werror=implicit-function-declaration]                                                       
   return pmd_lockptr(mm, (pmd_t *) pte);                                                                                                                                                                                                                                                 
   ^                                                                                                                                                                                                                                                                                      
../../../../../../../../../home/androidsource/do-not-touch/axp/Build/LineageOS-18.1/kernel/lge/msm8992/include/linux/hugetlb.h:406:3: warning: return makes pointer from integer without a cast                                                                                           
../../../../../../../../../home/androidsource/do-not-touch/axp/Build/LineageOS-18.1/kernel/lge/msm8992/security/commoncap.c: In function 'cap_capable':                                                                                                                                   
../../../../../../../../../home/androidsource/do-not-touch/axp/Build/LineageOS-18.1/kernel/lge/msm8992/security/commoncap.c:86:28: error: incompatible type for argument 1 of 'in_egroup_p'                                                                                               
  if (cap == CAP_NET_RAW && in_egroup_p(AID_NET_RAW))                                                                                                                                                                                                                                     
                            ^                                                                                                                                                                                                                                                             
In file included from ../../../../../../../../../home/androidsource/do-not-touch/axp/Build/LineageOS-18.1/kernel/lge/msm8992/include/linux/sched.h:51:0,                                                                                                                                  
                 from ../../../../../../../../../home/androidsource/do-not-touch/axp/Build/LineageOS-18.1/kernel/lge/msm8992/include/linux/audit.h:26,                                                                                                                                    
                 from ../../../../../../../../../home/androidsource/do-not-touch/axp/Build/LineageOS-18.1/kernel/lge/msm8992/security/commoncap.c:11:                                                                                                                                     
../../../../../../../../../home/androidsource/do-not-touch/axp/Build/LineageOS-18.1/kernel/lge/msm8992/include/linux/cred.h:78:12: note: expected 'kgid_t' but argument is of type 'int'                                                                                                  
 extern int in_egroup_p(kgid_t);                                                                                                                                                                                                                                                          
            ^                                                                                                                                                                                                                                                                             
../../../../../../../../../home/androidsource/do-not-touch/axp/Build/LineageOS-18.1/kernel/lge/msm8992/security/commoncap.c:88:30: error: incompatible type for argument 1 of 'in_egroup_p'                                                                                               
  if (cap == CAP_NET_ADMIN && in_egroup_p(AID_NET_ADMIN))                                                                                                                                                                                                                                 
                              ^                                                                                                                                                                                                                                                           
In file included from ../../../../../../../../../home/androidsource/do-not-touch/axp/Build/LineageOS-18.1/kernel/lge/msm8992/include/linux/sched.h:51:0,
                 from ../../../../../../../../../home/androidsource/do-not-touch/axp/Build/LineageOS-18.1/kernel/lge/msm8992/include/linux/audit.h:26,
                 from ../../../../../../../../../home/androidsource/do-not-touch/axp/Build/LineageOS-18.1/kernel/lge/msm8992/security/commoncap.c:11:
../../../../../../../../../home/androidsource/do-not-touch/axp/Build/LineageOS-18.1/kernel/lge/msm8992/include/linux/cred.h:78:12: note: expected 'kgid_t' but argument is of type 'int'

the main problem is that this can result in a lot of work and I am not able to handle that atm. maybe @aoleary can look into that if he wants to.

the basic changes I made were:

  1. mkdir kernel/lge/msm8992/virt/docker/
  2. added source "virt/docker/Kconfig" to kernel/lge/msm8992/Kconfig
  3. created kernel/lge/msm8992/virt/docker/Kconfig and added this
  4. added CONFIG_DOCKER=y to kernel/lge/msm8992/arch/arm64/configs/lineage_h811_defconfig
  5. modified kernel/lge/msm8992/net/netfilter/xt_qtaguid.c as described here

edit: here the related kernel changes as commits: https://github.com/LGgFour/kernel_lge_msm8992/tree/android-9_docker

asterlx commented 4 days ago

yes. tried to do the same... in local.. but was impossible to compile.. but the guys in the main post.. show ti as really easy :(

steadfasterX commented 4 days ago

yes. tried to do the same... in local.. but was impossible to compile.. but the guys in the main post.. show ti as really easy :(

yea kernel 4.X etc is a different story but we are on 3.10 unfortunately.