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

63 lines
1.3 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
2024-02-24 19:04:55 +00:00
- [Rootfs image](./distros-en.md)
2024-01-15 17:08:16 +00:00
2024-02-24 19:04:55 +00:00
- [Kernel image](https://timoxa0.su/share/nabu/images/linux-6.1.10-nabu-gc033672c6f54.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
2024-02-21 16:18:39 +00:00
#### Reboot to fastboot to install Linux
2024-01-15 17:08:16 +00:00
2024-02-21 16:18:39 +00:00
#### Flash Linux image via fastboot
```
2024-01-15 18:19:20 +00:00
fastboot flash linux <rootfs.img>
2024-01-15 17:08:16 +00:00
```
2024-02-24 19:04:55 +00:00
> Replace <rootfs.img> with path to rootfs image
2024-02-19 13:15:07 +00:00
#### Reboot to bootloader
2024-02-21 16:18:39 +00:00
```
2024-02-19 13:15:07 +00:00
fastboot reboot bootloader
```
#### Erase dtbo
2024-02-21 16:18:39 +00:00
```
2024-02-19 13:15:07 +00:00
fastboot erase dtbo
```
2024-01-15 17:08:16 +00:00
2024-02-21 16:18:39 +00:00
#### Temporary boot Linux from PC
```
2024-02-19 13:15:07 +00:00
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
2024-02-21 16:18:39 +00:00
```
2024-02-19 13:15:07 +00:00
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
### Готово!