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

64 lines
1.4 KiB
Markdown
Raw Normal View History

2024-01-15 17:08:16 +00:00
<img align="right" src="../../assets/nabu.png" width="425" alt="Linux Running On A Xiaomi Pad 5">
2024-01-15 18:19:20 +00:00
# Running Linux on the Xiaomi Pad 5
2024-01-15 17:08:16 +00:00
2024-02-19 13:22:24 +00:00
## [←](prepare-en.md) Installing Linux
2024-01-15 17:08:16 +00:00
### Prerequisites
- Brain
2024-02-19 13:15:07 +00:00
- Rooted Android
- [Rootfs image](https://timoxa0.su/share/nabu/images) (ubuntu.img или arch.img)
2024-01-15 17:08:16 +00:00
2024-02-19 13:15:07 +00:00
- [Kernel image](https://timoxa0.su/share/nabu/images/linux-6.1.10-nabu.boot.img)
2024-01-15 17:08:16 +00:00
2024-02-19 13:15:07 +00:00
- [UEFI installer](https://timoxa0.su/share/nabu/uefi-installer-nabu.zip)
2024-01-15 17:08:16 +00:00
2024-02-19 13:15:07 +00:00
### Installation
#### Reboot to fastboot to install installing linux
2024-01-15 17:08:16 +00:00
2024-01-15 18:19:20 +00:00
#### Flash linux image via fastboot
2024-01-15 17:08:16 +00:00
```cmd
2024-01-15 18:19:20 +00:00
fastboot flash linux <rootfs.img>
2024-01-15 17:08:16 +00:00
```
2024-02-19 13:15:07 +00:00
> Replace <rootfs.img> with path to ubuntu.img or arch.img
#### Reboot to bootloader
```sh
fastboot reboot bootloader
```
#### Erase dtbo
```sh
fastboot erase dtbo
```
2024-01-15 17:08:16 +00:00
2024-02-19 13:15:07 +00:00
#### 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>
```
2024-02-19 13:21:04 +00:00
> Replace <dtbo.img> with path to dtbo backup
2024-02-19 13:15:07 +00:00
#### Reboot tablet into android
2024-01-15 18:19:20 +00:00
```sh
fastboot reboot
2024-01-15 17:08:16 +00:00
```
2024-02-19 13:15:07 +00:00
### 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
### Готово!