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

59 lines
1.5 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">
# Running Linux on the Xiaomi Pad 5
2024-01-15 18:35:43 +00:00
## Preparing your device [→](install-en.md)
2024-01-15 17:08:16 +00:00
### Prerequisites
- Brain
2024-05-06 15:42:54 +00:00
- [Vbmeta image](https://timoxa0.su/share/nabu/manual/vbmeta_disabled.img)
2024-01-15 18:19:20 +00:00
2024-05-06 15:42:54 +00:00
- [Recovery Image](https://timoxa0.su/share/nabu/manual/orangefox.img)
2024-01-15 17:08:16 +00:00
- [ADB & Fastboot](https://developer.android.com/studio/releases/platform-tools)
### Notes:
> [!Warning]\
> All your data will be erased! Backup now if needed.
>
> These commands have been tested.
>
> Ignore `udevadm` warnings
>
2024-01-15 18:56:34 +00:00
> Do not run the same command twice
2024-01-15 17:08:16 +00:00
>
> Do not run all commands at once, execute them in order!
2024-03-02 09:14:34 +00:00
#### Reboot tablet to bootloader
2024-01-15 17:08:16 +00:00
#### Flash vbmeta_disabled.img via fastboot
2024-02-21 16:19:50 +00:00
```
2024-02-19 13:15:07 +00:00
fastboot flash vbmeta_ab <vbmeta_disabled.img>
2024-01-15 17:08:16 +00:00
```
2024-02-19 13:15:07 +00:00
> Replace <vbmeta_disabled.img> with path to vbmeta_disabled.img
2024-01-15 17:08:16 +00:00
#### Boot Orange Fox recovery through PC
2024-02-21 16:19:50 +00:00
```
2024-01-15 17:08:16 +00:00
fastboot boot <recovery.img>
```
2024-02-19 13:15:07 +00:00
> Replace <recovery.img> with path to recovery.img
2024-01-15 17:08:16 +00:00
2024-02-21 16:19:50 +00:00
#### Repartition yout device
2024-02-19 13:53:33 +00:00
```
2024-02-21 16:19:50 +00:00
adb shell partition [TARGET LINUX SIZE IN GB]
2024-02-19 13:53:33 +00:00
```
2024-02-19 13:15:07 +00:00
#### Create dtbo backup
```
adb shell backupdtbo
adb pull /tmp/dtbo.img
2024-02-19 13:15:07 +00:00
```
> Backup will be saved to current directory
2024-01-15 17:08:16 +00:00
#### Check if Android still starts
2024-02-19 13:21:04 +00:00
Just restart the tablet, and see if Android still works. If isn't boot or looping or animation, wipe data in recovery.
2024-01-15 17:08:16 +00:00
### [Next step: Installing Linux](/guide/English/install-en.md)