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.
3 Reviews
  • Rajiv says:

    Thanks for the comment!

    Reply
  • QiuLi says:

    Can someone confirm if banking apps are working?

    Reply
  • Sud0Rooter says:

    Network signal strength seems improved

    Reply

Leave a Reply Cancel reply

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