64 lines
1.4 KiB
Markdown
64 lines
1.4 KiB
Markdown
<img align="right" src="../../assets/nabu.png" width="425" alt="Linux Running On A Xiaomi Pad 5">
|
|
|
|
|
|
# Running Linux on the Xiaomi Pad 5
|
|
|
|
## [←](prepare-en.md) Installing Linux
|
|
|
|
### Prerequisites
|
|
- Brain
|
|
|
|
- Rooted Android
|
|
|
|
- [Rootfs image](https://timoxa0.su/share/nabu/images) (ubuntu.img или arch.img)
|
|
|
|
- [Kernel image](https://timoxa0.su/share/nabu/images/linux-6.1.10-nabu.boot.img)
|
|
|
|
- [UEFI installer](https://timoxa0.su/share/nabu/uefi-installer-nabu.zip)
|
|
|
|
### Installation
|
|
|
|
#### Reboot to fastboot to install installing linux
|
|
|
|
#### Flash linux image via fastboot
|
|
```cmd
|
|
fastboot flash linux <rootfs.img>
|
|
```
|
|
> Replace <rootfs.img> with path to ubuntu.img or arch.img
|
|
|
|
#### Reboot to bootloader
|
|
```sh
|
|
fastboot reboot bootloader
|
|
```
|
|
|
|
#### Erase dtbo
|
|
```sh
|
|
fastboot erase dtbo
|
|
```
|
|
|
|
#### Temporary boot linux from PC
|
|
```sh
|
|
fastboot boot <linux-boot.img>
|
|
```
|
|
> Replace <linux-boot.img> with path to kernel image
|
|
|
|
#### Complete initial setup and reboot the tablet into bootloader
|
|
|
|
#### Restore dtbo backup
|
|
```sh
|
|
fastboot flash dtbo <dtbo.img>
|
|
```
|
|
> Replace <dtbo.img> with path to dtbo backup
|
|
|
|
#### Reboot tablet into android
|
|
```sh
|
|
fastboot reboot
|
|
```
|
|
|
|
### Set up dualboot
|
|
|
|
#### Flash UEFI installer via Magisk or recovery
|
|
> After rebooting, a menu will appear in which you can navigate using the volume and power buttons
|
|
|
|
### Готово!
|