docs/install.md

Installing Linux

On this page

From a stock Lenovo Legion Tab Gen 5 (TB323FU) to mainline Linux on the microSD card, with Android kept on the tablet as the way back. This page is the whole path in order; the steps on your PC are on the page for its system.

The path#

WhatWhere it happensGuide
1Back up the whole tablet (an EDL dump), root Android without unlocking (LTBox, KernelSU)Android + a PC toolRooting
2Install: firmware copied from Android, the way back set up, the release kernel packed into your own boot image, the card partitioned, a root filesystem built on the PC and written to the card, Linux written to boot_aone script on the PC, talking to rooted Androidthe page for your PC, below
3First start, then switch between the systemsthe tabletAfter installing
4Keep it up to date: kernel releases, the helper; remove Linux again if you wantLinux, Open Device HelperAfter installing

Android firmware: stay on ZUI 18.0.12.104. The kernel has only been tested on that firmware. On 18.0.12.187 it hangs during boot (#9), and a firmware update cannot be undone. Keep the OTA apps disabled (Rooting).

If something goes wrong on the way: Recovery. The tablet always keeps Android's boot image in boot_b: holding volume up + volume down for 10 s in Linux puts it back and starts Android.

Your PC#

Step 2 is one script, tools/install/install.sh. It needs a Linux system on the PC that can run arm64 programs (to build the tablet's root filesystem) and adb to reach the tablet.

PCHow the script runsStatus (labels)
Windows 10/11in Ubuntu under WSL2, with the Windows adb.exefollowed end to end on a tablet (2026-10-04) → Installing from Windows
Linuxdirectly, with the system's adb; on NixOS in an Ubuntu containerfollowed end to end once from NixOS through the container, up to the first start (2026-10-04); a plain Debian/Ubuntu PC not tried → Installing from Linux
macOSin an arm64 Linux virtual machine (Lima), using the Mac's adb server; no USB passthroughfollowed end to end once, up to the first start (2026-10-04) → Installing from macOS

The result is the same on every PC: Ubuntu 26.04 with GNOME (unless you pick another system) on a partition baldur-root-sd of the microSD card, the release kernel in boot_a, Android's boot image in boot_b, and Open Device Helper installed. Allow 1–2 hours, most of it an unattended build.

Which system#

The tablet is not tied to one distribution: the kernel and the boot chain are the same for all, and each system lives in its own partition. Distributions lists what has been tried, how each one is built and what its builder takes care of.

SystemHow
Start hereUbuntu 26.04 with GNOMEthe guided script, as above — followed end to end
Arch Linux ARM with GNOMEthe same script with DISTRO=arch — followed end to end once; no rotation sensor
NixOS with GNOMEthe same script with DISTRO=nixos — followed end to end once; its configuration is editable on the tablet (how)
SteamOS (community port)the same script with DISTRO=steamos — experimental: Gaming Mode works on kernel t39 or later, Switch to Desktop does not yet
Fedora (with FEX for x86 games)built on the tablet itself, from a first Linux root: Distributions → Installing each one
Armada (experimental, DISTRO=armada), anything else (postmarketOS, Debian, your own)Armada boots into Gaming Mode; the others are not tried yet; what a root needs and how to plug your own builder into the script: Distributions → Your own distribution

Several systems can share the card; you pick one with Open Device Helper → Systems or tb323fu-ctl boot.

Beyond the script#

Installing by hand lists every step as commands, with what each one changes and how far it was tested. If you know your way around Linux, it is the recommended way: every step is visible and yours to change. Use it for a distribution the script does not build (Fedora, or your own: distros.md), a kernel you build yourself (custom-kernel.md), several systems side by side on the card, or a root on the internal storage (which costs Android its data).

View this page's Markdown on GitHub