How to Dual Boot Arch Linux & Android on Xiaomi Pad 6

Have you ever wondered what it would be like to run Arch Linux on your Xiaomi Pad 6? Whether youโ€™re a power user, developer, or just curious about squeezing every ounce of performance from your hardware, this guide is for you. This step-by-step tutorial walks you through installing a minimal, bare-bones Arch Linux setup on your Xiaomi Pad 6. Itโ€™s not for the faint of heartโ€”youโ€™ll be wiping your device, using fastboot commands, and setting up your system manually. But the reward? A fully functional Linux tablet, ready to be customized your way.

โš ๏ธ WARNING: This is an experimental installation. You will lose all your data. Proceed at your own risk!


Screenshots & Photos:


โš ๏ธ Read Before You Begin

  • This guide installs Arch Linux on your Xiaomi Pad 6 using a bare-bones image.
  • Youโ€™ll need to manually set up many things after installation.
  • Only flash userdata and boot partitions. Do NOT touch othersโ€”you may brick your tablet!
  • This is a singleboot guide. If you want dualboot, ask in the community chat or forums.

๐Ÿ“ฆ Requirements

  • Xiaomi Pad 6
  • A computer with ADB and Fastboot installed
  • A USB-C hub (or USB-C to USB-A adapter)
  • USB keyboard
  • A second device (like your phone) with USB tethering support
  • Basic Linux terminal knowledge
  • Backup your data! The following process will wipe your userdata completely.

๐Ÿงฐ Flashing Arch Linux (Singleboot Mode)

1. Download Required Files

  • Download the following files:
    • boot_arch_domin746826.img
    • arch_rootfs_fastboot_v02.img
    • [arch-v0.2.7z] (Link to file location)

2. Flash Boot and Userdata

Use these Fastboot commands from your PC:

fastboot flash boot_a boot_arch_domin746826.img
fastboot flash boot_b boot_arch_domin746826.img
fastboot erase dtbo_a
fastboot erase dtbo_b
fastboot flash userdata arch_rootfs_fastboot_v02.img

๐Ÿš€ First Boot Setup

1. Connect Devices

  • Plug in your USB-C hub
  • Connect a USB keyboard
  • Connect your phone via USB and enable USB Tethering

2. Login Credentials

  • Username: root
  • Password: root

๐Ÿ”ง Post-Install Configuration

1. Initialize Pacman Keys

pacman-key --init
pacman-key --populate archlinuxarm

2. Resize Filesystem

Check which partition is labeled arch_rootfs:

blkid | grep arch_rootfs

Typically itโ€™s /dev/sda34, but to be safe, use:

resize2fs /dev/disk/by-label/arch_rootfs

3. Set Up Network

Check your network status:

ip a
ping archlinux.org

Then install and enable NetworkManager:

pacman -Syu
pacman -S networkmanager
systemctl enable NetworkManager.service

๐ŸŒ Connect to Wi-Fi

Reboot your device:

reboot

Log back in and connect to Wi-Fi using:

nmcli device wifi connect <SSID> password <your-password>

๐ŸŽจ Optional: Improve Console Font

Install Terminus font:

pacman -S terminus-font

Edit /etc/vconsole.conf and add:

FONT=ter-232n

๐Ÿ“ฑ Bluetooth Setup (Optional Fix)

Install the BlueZ stack and create a custom systemd service:

Create file: /etc/systemd/system/bt-mac.service

[Unit]
Description=Bluetooth MAC fix
After=bluetooth.service
Requires=bluetooth.service

[Service]
Type=oneshot
ExecStart=/bin/sh -c "/usr/bin/echo 'yes' | /usr/bin/btmgmt --index 0 public-addr 00:1a:7d:da:71:13"
RemainAfterExit=yes
TimeoutStartSec=10

[Install]
WantedBy=multi-user.target

Then run:

systemctl daemon-reload
systemctl enable bt-mac.service
reboot

๐Ÿ’ก TODO: Port bootmac from postmarketOS for a cleaner fix.


โœ… What Works (Tested)

  • โœ… Battery status
  • โœ… Sleep mode
  • โœ… Bluetooth
  • โœ… Brightness controls
  • โœ… Charging
  • โœ… Display and GPU
  • โœ… Touchscreen
  • โœ… UFS storage
  • โœ… USB
  • โœ… Wi-Fi
  • โœ… Xiaomi Pen
  • โœ… Xiaomi Keyboard

โŒ What Doesnโ€™t Work (Yet)

  • โŒ Camera
  • โŒ Audio

These limitations are similar to what youโ€™d find on postmarketOS.


๐Ÿงช Untested Features

Might work, but need testing:

  • โš ๏ธ Sensors
  • โš ๏ธ Fast charging
  • โš ๏ธ Pen charging

If you test any of these, please share results with the community! ๐Ÿ˜Š


๐Ÿ”‘ Default Users

  • root / root
  • alarm / alarm

โค๏ธ Final Notes

๐Ÿค Support & Credit:

Additional thanks to the helpful people at the telegram group โ€œXiaomi Pad 6 Mainline Linuxโ€: t.me/pipa_mainline

Ask in the community chat for dualboot setup and troubleshooting.


Enjoy Arch Linux on Your Xiaomi Pad 6!

Youโ€™re now running a lean, mean, Arch-powered machine on your tablet. Have fun experimenting, and welcome to the bleeding edge! ๐Ÿงโค๏ธ

Share This Article
Moderator
Follow:
Ujjwal Raj, moderator of TweakVerse site, passionate about Python automation, web scraping, and data extraction. Dedicated to building efficient solutions for seamless digital experiences.
1 Review
  • Rajiv says:

    Thanks for the comment!

    Reply

Leave a Review

Your email address will not be published. Required fields are marked *