Compare commits

..

No commits in common. "main" and "v2.1" have entirely different histories.
main ... v2.1

13 changed files with 84 additions and 276 deletions

View file

@ -1,15 +1,11 @@
<img align="right" src="./assets/nabu.png" width="425" alt="Linux Running On A Xiaomi Pad 5">
# Запуск Linux на Xiaomi Pad 5
## Язык
Русский | [English](README.md)
## Lon-tool мертв! Используйте arch linux из чата или postmarket os.
## ⚠️ Предупреждение
Мы не несем ответственности за сломанные устройства, отсутствующие разделы, плохих работников на линии производства Xiaomi, мёртвые карты памяти, мёртвые чипы управления питанием, мёртвую ОЗУ, мёртвые контроллеры экрана, мёртвые процессоры, мёртвых кошек и собак и ядерные войны.
Установка Linux - опасный процесс, делайте это на свой страх и риск и осторожно следуйте инструкции.
@ -19,25 +15,19 @@
## Начнём
- [~~Установка~~](guide/Russian/prepare-ru.md)
- [Установка](guide/Russian/prepare-ru.md)
- [Удаление](guide/Russian/uninstall-ru.md)
## Разное
- [Канал с обновлениями](https://s.tx0.su/lonup)
- [Чат проекта (Англ)](https://s.tx0.su/lonchat)
- [Чат проекта (Рус)](https://s.tx0.su/lonchatru)
- [Статус Проекта](guide/Russian/status-ru.md)
- [Переустановка](guide/Russian/reinstall-ru.md)
- [Дуалбут с использованием switch2linux](guide/English/linuxswitch-en.md)
- [Доступные дистрибутивы](guide/Russian/distros-ru.md)
- [Доступные дистрибутивы](https://timoxa0.su/?dir=share/nabu/images/latest/latest)
## Благодарности

View file

@ -1,45 +1,35 @@
<img align="right" src="./assets/nabu.png" width="425" alt="Linux Running On A Xiaomi Pad 5">
# Running Linux on the Xiaomi Pad 5
## Language
[Русский](README-RU.md) | English
## Lon-tool it deprecated! Consider using arch linux from the chat or postmarket os.
## ⚠️ Warning
We're not responsible for bricked devices, missing recovery partitions, dead xiaomi factoryline workers cowboys, dead microSD cards, dead pmics, dead ram, dead display ics, dead cpus, any xiaomi shenanigans, dead cats or dogs, nuclear wars or you getting fired because you forgot to boot back in to android for the alarm.
This project is in an early stage, all the files here have been contributed by other users, here you will find a guide with the working files we managed to get. This is a delicate process, do it under your own risk and follow all the steps carefully.
**IF YOU AREN'T COMFORTABLE MODDING YOUR TABLET OR ITS PARTITION TABLE OR YOU ARE PARANOID OF BRICKING YOUR DEVICE CLICK AWAY NOW!!! YOU HAVE BEEN WARNED, YOU ARE ON YOUR OWN IF YOU BRICK YOUR DEVICE!!! AGAIN! YOU HAVE BEEN WARNED!!!**
## Get Started
- [~~Installation~~](guide/English/prepare-en.md)
- [Uninstallation](guide/English/uninstall-en.md)
## Miscellaneous
- [Updates channel](https://s.tx0.su/lonup)
- [Project Chat](https://s.tx0.su/lonchat)
- [Project Ru Chat](https://s.tx0.su/lonchatru)
- [Project Status](guide/English/status-en.md)
- [Reinstallation](guide/English/reinstall-en.md)
- [Dualboot using switch2linux](guide/English/linuxswitch-en.md)
- [Available distros](https://timoxa0.su/?dir=share/nabu/images/latest/latest)
## Credits
- [@maverickjb](https://github.com/maverickjb) - linux 6.1 nabu port ([src](https://github.com/maverickjb/linux-6.1.10))
- [@map220v](https://github.com/map220v/) - audio fix
- [@edk2-porting](https://github.com/edk2-porting) - edk2 UEFI port
<img align="right" src="./assets/nabu.png" width="425" alt="Linux Running On A Xiaomi Pad 5">
# Running Linux on the Xiaomi Pad 5
## Language
[Русский](README-RU.md) | English
## ⚠️ Warning
We're not responsible for bricked devices, missing recovery partitions, dead xiaomi factoryline workers cowboys, dead microSD cards, dead pmics, dead ram, dead display ics, dead cpus, any xiaomi shenanigans, dead cats or dogs, nuclear wars or you getting fired because you forgot to boot back in to android for the alarm.
This project is in an early stage, all the files here have been contributed by other users, here you will find a guide with the working files we managed to get. This is a delicate process, do it under your own risk and follow all the steps carefully.
**IF YOU AREN'T COMFORTABLE MODDING YOUR TABLET OR ITS PARTITION TABLE OR YOU ARE PARANOID OF BRICKING YOUR DEVICE CLICK AWAY NOW!!! YOU HAVE BEEN WARNED, YOU ARE ON YOUR OWN IF YOU BRICK YOUR DEVICE!!! AGAIN! YOU HAVE BEEN WARNED!!!**
## Get Started
- [Installation](guide/English/prepare-en.md)
- [Uninstallation](guide/English/uninstall-en.md)
## Miscellaneous
- [Project Status](guide/English/status-en.md)
- [Reinstallation](guide/English/reinstall-en.md)
- [Available distros](guide/English/distros-en.md)
## Credits
- [@maverickjb](https://github.com/maverickjb) - linux 6.1 nabu port ([src](https://github.com/maverickjb/linux-6.1.10))
- [@map220v](https://github.com/map220v/) - audio fix
- [@edk2-porting](https://github.com/edk2-porting) - edk2 UEFI port

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1,014 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 4.8 MiB

View file

@ -7,25 +7,21 @@
### Prerequisites
- Brain
- [Rootfs image](https://timoxa0.su/?dir=share/nabu/images/v3)
- [Rootfs image](https://timoxa0.su/?dir=share/nabu/images/v2)
### Notes:
> [!Warning]\
> All your data will be erased! Backup now if needed.
> [!Note]\
> If you want to use switch2linux to dualboot add -Q flag to lon-tool command\
> After installation follow this [guide](./linuxswitch-en.md)
### Installation
1. #### Download image
1. #### Download and extract rootfs image
2. #### Reboot device to bootloader
3. #### Flash image to device using deployer
```
lon-tool deploy /path/to/image.lni
lon-deployer /path/to/rootfs.img
```
Deployer will ask you for username, password and linux partition size

View file

@ -1,50 +0,0 @@
<img align="right" src="../../assets/nabu.png" width="425" alt="Linux Running On A Xiaomi Pad 5">
# Running Linux on the Xiaomi Pad 5
## [](./install-en.md) Dualbooting using switch2linux
### Prerequisites
- Brain
- Rooted android
- Already installed Linux
- [mklonimg.cmd (Windows)](https://git.timoxa0.su/timoxa0/mklonimg/raw/branch/main/mklonimg.cmd)
- [mklonimg.sh (Linux/macOS)](https://git.timoxa0.su/timoxa0/mklonimg/raw/branch/main/mklonimg.sh)
- [Python 3](https://www.python.org/downloads/)
- [linux-nabu zip package](https://timoxa0.su/?dir=share/nabu/packages/v3)
### Creating boot image
1. #### Restore your boot image (can be skipped if you used lon-tool with the -Q flag)
2. #### Download mklonimg.cmd for Windows or mklonimg.sh for Linux/macOS
3. #### Install Python (for Windows select Add Python 3.x to PATH)
4. #### Download linux-nabu zip package for your image version
5. #### Extract vmlinuz-6.1.10-nabu and dtb-6.1.10-nabu from /boot/efi inside zip
6. #### Open cmd (on Windows) or terminal (on Linux/macOS)
7. #### Run mklonimg
##### Windows
```
.\mklonimg.cmd path\to\vmlinuz path\to\dtb
```
##### Linux/macOS
```
bash mklonimg.sh path/to/vmlinuz path/to/dtb
```
8. #### Image will be created in current working directory with name linux.boot.img
9. #### Follow switch2linux install guide -> [link](https://git.timoxa0.su/timoxa0/Switch2Linux-Nabu/src/branch/main/README.md)
### Done!

View file

@ -8,18 +8,14 @@
### Prerequisites
- Brain
#### Get lon-tool
##### Windows 10-11:
- Install lon-tool and platform tools using this command
#### Get LoN Deployer
##### Windows:
- Install deployer and platform tools using this command
```
powershell.exe -C "irm https://s.tx0.su/ltw | iex"
powershell.exe -C "irm https://s.tx0.su/lnd | iex"
```
##### Linux:
- Install android platform tools with your package manager
- Install lon-tool using this command
```
curl -Ls s.tx0.su/ltl | bash
```
- Install android platform tools with your packet manager
- Download binary from [here](https://github.com/timoxa0/LoN-Deployer/releases/)
### [Next step: Installing Linux](./install-en.md)

View file

@ -15,9 +15,8 @@ Stable. Some components don't work.
- [x] Brightness
- [x] Slow charging
- [x] Fast charging (Fixed in latest kernel)
- [x] Display (100Hz)
- [x] Display
- [x] GPU
- [ ] HW video decoding/encodeing
- [x] Touchscreen
- [x] UFS
- [x] USB

View file

@ -10,8 +10,19 @@ If you want to uninstall linux this is used instead of deleting partitions manua
If you want to relock your bootloader you'll need your partition table to be stock.
### Uninstall with lon-tool
### Prerequisites
- [ADB & Fastboot](https://developer.android.com/studio/releases/platform-tools)
- [gpt_both0.bin](https://timoxa0.su/share/nabu/manual/gpt_both0.bin)
### Restore GPT
> Replace ```<gpt_both0.bin>``` with the path to the gpt_both0.bin file.
```cmd
lon-tool uninstall
fastboot flash partition:0 <gpt_both0.bin>
```
### Erase userdata to avoid bootloop and restore FS size
```cmd
fastboot -w
```

View file

@ -7,25 +7,21 @@
### Требования
- Мозги
- [Образ Rootfs](https://timoxa0.su/?dir=share/nabu/images/v3)
- [Образ Rootfs](https://timoxa0.su/?dir=share/nabu/images/v2)
### Примечание:
> [!Warning]\
> Все пользовательские файлы будут стерты! Создайте резервную копию, если это необходимо.
> [!Note]\
> Если вы хотите использовать switch2linux для дуалбута добавьте флаг -Q к команде lon-tool\
> После устаноки следуйте [гайду](./linuxswitch-ru.md)
### Установка
1. #### Скачайте rootfs
1. #### Скачайте и распакуйте образ rootfs
2. #### Перезагрузите планшет в bootloader
3. #### Прошейте образ используя установщик
```
lon-tool deploy /путь/к/image.lni
lon-deployer /путь/к/rootfs.img
```
Установщик спросит у вас имя пользователя, пароль и размер раздела для Linux

View file

@ -1,50 +0,0 @@
<img align="right" src="../../assets/nabu.png" width="425" alt="Linux Running On A Xiaomi Pad 5">
# Запуск Linux на Xiaomi Pad 5
## [](./install-ru.md) Дуалбут с использованием switch2linux
### Требования
- Мозги
- Рутированный android
- Уже установленный Дinux
- [mklonimg.cmd (Windows)](https://git.timoxa0.su/timoxa0/mklonimg/raw/branch/main/mklonimg.cmd)
- [mklonimg.sh (Linux/macOS)](https://git.timoxa0.su/timoxa0/mklonimg/raw/branch/main/mklonimg.sh)
- [Python 3](https://www.python.org/downloads/)
- [Zip пакет linux-nabu](https://timoxa0.su/?dir=share/nabu/packages/v3)
### Создание boot образа
1. #### Востановите ваш boot (можете пропустить если запускали lon-tool с флагом -Q)
2. #### Скачайте mklonimg.cmd для Windows или mklonimg.sh для Linux/macOS
3. #### Установите Python 3 (на Windows отметьте Add Python 3.x to PATH или Добовить Python 3.x в PATH)
4. #### Скачайте zip пакет linux-nabu нужной версии
5. #### Распакуйте vmlinuz-6.1.10-nabu и dtb-6.1.10-nabu из /boot/efi внутри zip архива
6. #### Откройте cmd на Windows или терминал на Linux/macOS
7. #### Запустите mklonimg
##### Windows
```
.\mklonimg.cmd путь\к\vmlinuz путь\к\dtb
```
##### Linux/macOS
```
bash mklonimg.sh путь/к/vmlinuz путь/к/dtb
```
8. #### Образ будет создан в текущей папке с именем linux.boot.img
9. #### Следуйте гайду по установке switch2linux -> [ссылка](https://git.timoxa0.su/timoxa0/Switch2Linux-Nabu/src/branch/main/README-RU.md)
### Готово!

View file

@ -8,18 +8,14 @@
### Требования:
- Мозги
#### Установите lon-tool
##### Windows 10-11:
- Выполните эту команду для установки lon-tool, adb и fastboot
#### Установите LoN Deployer
##### Windows:
- Выполните эту команду для установки LoN Deployer, adb и fastboot
```
powershell.exe -C "irm https://s.tx0.su/ltw | iex"
powershell.exe -C "irm https://s.tx0.su/lnd | iex"
```
##### Linux:
- Установите adb и fastboot через пакетный менеджер вашего дистрибутива
- Выполните эту команду для установки lon-tool
```
curl -Ls s.tx0.su/ltl | bash
```
- Загрузите исполняемый файл [отсюда](https://github.com/timoxa0/LoN-Deployer/releases/)
### [Следующий шаг: установка Linux](./install-ru.md)

View file

@ -6,10 +6,21 @@
Если вы хотите удалить Linux, используйте данный упрощенный метод вместо ручного удаления разделов чтобы исключить риск ошибки.
Если вы хотите заблокировать загрузчик обратно, убедитесь что таблица разделов находится в заводском состоянии.)
Если вы хотите заблокировать загрузчик обратно, убедитесь что таблица разделов находится в заводском состоянии.
### Удаление через lon-tool
### Требования
- [ADB и Fastboot](https://developer.android.com/studio/releases/platform-tools)
- [gpt_both0.bin](https://timoxa0.su/share/nabu/manual/gpt_both0.bin)
### Восстановление GPT
> Замените ```<gpt_both0.bin>``` путём к файлу `gpt_both0.bin`.
```cmd
lon-tool uninstall
fastboot flash partition:0 <gpt_both0.bin>
```
### Очистите раздел `userdata` чтобы избежать цикличной перезагрузки и восстановить размер файловой системы
```cmd
fastboot -w
```