Guide-Linux-Nabu/guide/English/linuxswitch-en.md

1.4 KiB

Linux Running On A Xiaomi Pad 5

Running Linux on the Xiaomi Pad 5

Dualbooting using switch2linux

Prerequisites

Creating boot image

  1. Restore your boot image (can be skipped if you used lon-tool with the -Q flag)

  2. Download mklonimg.cmd for Windows or mklonimg.sh for Linux/macOS

  3. Install Python (for Windows select Add Python 3.x to PATH)

  4. Download linux-nabu zip package for your image version

  5. Extract vmlinuz-6.1.10-nabu and dtb-6.1.10-nabu from /boot/efi inside zip

  6. Open cmd (on Windows) or terminal (on Linux/macOS)

  7. Run mklonimg

Windows
.\mklonimg.cmd path\to\vmlinuz path\to\dtb
Linux/macOS
bash mklonimg.sh path/to/vmlinuz path/to/dtb
  1. Image will be created in current working directory with name linux.boot.img

Done!