zhengfan2016
New member
- VC
- 6
I am using lineage os 17.1, which uses the 5.8.0 linux kernel, but the kernel I compiled with the surface driver does not boot.
I know there must have been people who tried it and thought it would be easy but it was hard. You just have to ask HMTheBoy154 to build the kernel because he knows better.I am using lineage os 17.1, which uses the 5.8.0 linux kernel, but the kernel I compiled with the surface driver does not boot.
You cannot use linux kernel config for android, you need to have an android config, grab existing config from booted android with zcat /proc/config.gz > /sdcard/.configI am using lineage os 17.1, which uses the 5.8.0 linux kernel, but the kernel I compiled with the surface driver does not boot.
The process of building a kernel for android x86 is essentially the same as compiling Linux kernel for a GNU/Linux distro, there are lots of tutorials for that. Except you will have to usewell. no one can make tutorial build androidx86 kernel. so yeah i need customize my own kernel but no one can made for tutorial's
make android-x86_64_defconfig
instead of make defconfig
.lenovo@DESKTOP-4UQ866K:~$ cd android-x86
lenovo@DESKTOP-4UQ866K:~/android-x86$ cd kernel
lenovo@DESKTOP-4UQ866K:~/android-x86/kernel$ cp ~/andrd-x86_64_defconfig ~/android-x86/kernel/arch/x86/configs/\
>
cp: cannot stat '/home/lenovo/andrd-x86_64_defconfig': No such file or directory
lenovo@DESKTOP-4UQ866K:~/android-x86/kernel$ cp ~/andrd-x86_64_defconfig ~/android-x86/kernel/arch/x86/configs/
cp: cannot stat '/home/lenovo/andrd-x86_64_defconfig': No such file or directory
lenovo@DESKTOP-4UQ866K:~/android-x86/kernel$ cp /home/lenovo/android-x86/kernel/arch/x86/configs android-x86_64_defconfig
cp: -r not specified; omitting directory '/home/lenovo/android-x86/kernel/arch/x86/configs'
lenovo@DESKTOP-4UQ866K:~/android-x86/kernel$ cp ~/android-x86_64_defconfig /home/lenovo/android-x86/kernel/arch/x86/conf
igs/
cp: cannot stat '/home/lenovo/android-x86_64_defconfig': No such file or directory
lenovo@DESKTOP-4UQ866K:~/android-x86/kernel$