Running Linux on the Xiaomi Pad 5 ← Dualbooting using switch2linux Prerequisites Brain Rooted android Already installed Linux mklonimg.cmd (Windows) mklonimg.sh (Linux/macOS) Python 3 linux-nabu zip package Creating boot image Restore your boot image (can be skipped if you used lon-tool with the -Q flag) Download mklonimg.cmd for Windows or mklonimg.sh for Linux/macOS Install Python (for Windows select Add Python 3.x to PATH) Download linux-nabu zip package for your image version Extract vmlinuz-6.1.10-nabu and dtb-6.1.10-nabu from /boot/efi inside zip Open cmd (on Windows) or terminal (on Linux/macOS) Run mklonimg Windows .\mklonimg.cmd path\to\vmlinuz path\to\dtb Linux/macOS bash mklonimg.sh path/to/vmlinuz path/to/dtb Image will be created in current working directory with name linux.boot.img Follow switch2linux install guide -> link Done!