A Docker compatible Android kernel for Xiaomi Redmi Note 5 Pro (whyred).
可透過Termux原生執行docker的紅米Note 5內核。
This kernel is based on RAD kernel for whyred, adds support for running docker on Android.
You need root access and a custom ROM before flashing this kernel.
This kernel is only tested on LineageOS 18.
- Download
boot.img
from Releases. - Flash it via TWRP or fastboot.
- After booting, run this command in Termux:
sudo mount -t tmpfs -o uid=0,gid=0,mode=0755 cgroup /sys/fs/cgroup
- Run docker daemon
sudo dockerd --iptables=false
- Clone this repo, export CROSS_COMPILE & CROSS_COMPILE_ARM32 path (here I use Eva GCC) and ARCH type.
- Kernel configs are alreay in
.config
. Launch menuconfig bymake menuconfig
. - After tweaking, start compiling by
make
. - Use Android Image Kitchen to repack generated dtb file to
boot.img
.
If you want to compile kernel for other devices, you may refer to FreddieOliveira's Tutorial.