Kernel source for Lenovo Tab K10 (TB-X6C6X variant), which contains additions and modifications, as I try to convert the device into a lightweight and secure server
Some of these changes may possibly break the ability to boot Android, even with a stock config, as this scenario is outside the scope of this project and unsupported
If you want the original open source package for this device (which includes the original kernel source), it's available under the original directory
A special building pipeline is used called AKB (see akb_lib/README.MD for more details)
AKB makes building pretty straightforward, as the toolchain will be automatically downloaded for you
You only need to make sure you have the appropriate dependencies for building a Linux kernel (and obviously, the android platform tools)
Run akb_kernel.sh and you will get all available options
./akb_kernel.sh tc # optional
./akb_kernel.sh config
./akb_kernel.sh build # this will use all available threadsI haven't tested building a stock kernel after all the changes I have done, however you should be able to do something like this (configuring the build just with the device's stock config, P98928AA1_defconfig)
Note
The built in config command uses the same defconfig with additional ones added on top
You will need to replace the kernel and dtb in a stock boot image yourself, as currently there aren't any scripts just for that
- built kernel path: "kernel_build/arch/arm64/boot/Image"
- built dtb path: "kernel_build/arch/arm64/boot/dts/mediatek/mt6765.dtb"
./akb_kernel.sh tc # optional
./akb_kernel.sh run "P98928AA1_defconfig"
./akb_kernel.sh build