Initial commit

This commit is contained in:
timoxa0 2024-01-15 23:19:20 +05:00
parent 994a64cb77
commit ec02551ba7
18 changed files with 130 additions and 408 deletions

View file

@ -25,6 +25,7 @@
- [Статус Проекта](guide/status-selection.md)
- [Переустановка](guide/reinstalling-selection.md)
## Разработчики
-
-

View file

@ -1,8 +0,0 @@
<img align="right" src="https://raw.githubusercontent.com/erdilS/Port-Windows-11-Xiaomi-Pad-5/main/nabu.png" width="425" alt="Windows 11 Running On A Xiaomi Pad 5">
## Useful apps and instructions
### Select your language
- [English](Additional-materials/Additional-materials-EN.md)
- [Russian](Additional-materials/Additional-materials-RU.md)

View file

@ -1,37 +1,37 @@
<img align="right" src="../../assets/nabu.png" width="425" alt="Linux Running On A Xiaomi Pad 5">
# Running Windows on the Xiaomi Pad 5
# Running Linux on the Xiaomi Pad 5
## Dualbooting Android and Windows seamlessly
## Dualbooting Android and Linux seamlessly
### Prerequisites
- Brain
- Rooted Android and rooted Android boot backup
- Rooted Android
### Windows side of Dual Boot
- Install [STA](https://github.com/erdilS/Port-Windows-11-Xiaomi-Pad-5/releases/download/dualboot/StA_Installer_nabu.exe)
- Rename your Android boot file to boot.img
- Place your Android boot to C:\ (C:\boot.img)
- Open shortcut on your desktop to switch to Android
- [boot-loader.tar.xz](https://mega.nz/folder/CVMGEAiB#7oazR3wpkKdAH2eZChtRTg) (Ubuntu-V0.91 recommended)
### Android side of Dual Boot
- Install [switchtowin.apk](https://github.com/erdilS/Port-Windows-11-Xiaomi-Pad-5/releases/download/dualboot/switchtowindows.apk) to device.
- Create folder Windows in Android storage
1) Install [`linuxswitch.apk`](https://github.com/timoxa0/Switch2Linux-Nabu/releases/download/v1.0.2/linuxswitch.apk) to device.
2) Open installed app and grant root access
3) Tap "Dump android images"
4) Move `android.boot.img` and `andoid.dtbo.img` to PC from `/sdcard/linux/`
5) Rename linux boot to `linux.boot.img` and put it to `/sdcard/linux/`
6) Now you can tap "Switch to Linux" to boot linux
- Rename your UEFI file to boot.img
- Place your UEFI file to created folder (/Android storage/Windows/boot.img)
### Linux side of Dual boot
- Start app and give root privileges.
- Click "Switch to Windows" if you want to switch Windows.
1) Download [`s2a.zip`](https://github.com/timoxa0/Switch2Linux-Nabu/releases/download/v1.0.1/s2a.zip)
2) Unzip `s2a.zip` in linux
3) Put `android.boot.img` and `andoid.dtbo.img` into `s2a` folder
4) Install with command
```console
sudo ./install.sh
```
5) Now you can reboot to android with Switch2Android app
## Done!

View file

@ -1,159 +1,32 @@
<img align="right" src="../../assets/nabu.png" width="425" alt="Linux Running On A Xiaomi Pad 5">
# Running Windows on the Xiaomi Pad 5
> [!WARNING]
> PLEASE DON'T USE ANY VIDEO GUIDE ON YOUTUBE OR ANY OTHER PLATFORM! THOSE VIDEOS ARE OUT OF DATED!
# Running Linux on the Xiaomi Pad 5
## Installation
## Installing Windows
## Installing Linux
### Prerequisites
- Brain
- [Windows on ARM image](https://uupdump.net/)
- [UEFI image](https://raw.githubusercontent.com/erdilS/Port-Windows-11-Xiaomi-Pad-5/main/images/xiaomi-nabu_secureboot-v2.img)
- [Drivers](https://github.com/map220v/MiPad5-Drivers/releases/latest)
- [rootfs.img.xz](https://mega.nz/folder/CVMGEAiB#7oazR3wpkKdAH2eZChtRTg) (Ubuntu-V0.91 recommended)
### Boot recovery back to start installing Windows
### Installation
#### Extract `rootfs.img` from `rootfs.img.xz`
#### Reboot to fastboot to start installing linux
#### Flash linux image via fastboot
```cmd
fastboot boot <recovery.img>
fastboot flash linux <rootfs.img>
```
> Replace <rootfs.img> with path to rootfs.img
#### Reboot to android to setup dualboot
```sh
fastboot reboot
```
#### Execute the msc script
> If it asks you to run it once again, do so
```cmd
adb shell msc
```
### Assign letters to disks
#### Start the Windows disk manager
> Once the Xiaomi Pad 5 is detected as a disk
```cmd
diskpart
```
#### Assign `X` to Windows volume
#### Select the Windows volume of the tablet
> Use `list volume` to find it, it's the one named "WINNABU"
```diskpart
select volume <number>
```
#### Assign the letter X
```diskpart
assign letter=x
```
### Assign `Y` to ESP volume
#### Select the esp volume of the tablet
> Use `list volume` to find it, it's the one named "ESPNABU"
```diskpart
select volume <number>
```
#### Assign the letter Y
```diskpart
assign letter=y
```
#### Exit diskpart
```diskpart
exit
```
### Install
> Replace `<path/to/install.wim>` with the actual install.wim path,
> `install.wim` is located in sources folder inside your ISO
> You can get it either by mounting or extracting it
```cmd
dism /apply-image /ImageFile:<path/to/install.wim> /index:1 /ApplyDir:X:\
```
### Install Drivers
> You can download Drivers [here](https://github.com/map220v/MiPad5-Drivers/releases/latest)
> When it ask you "Enter Drive letter..." type X:
```cmd
Open folder with Drivers and run OfflineUpdater.cmd
```
### Create Windows bootloader files for the EFI
```cmd
bcdboot X:\Windows /s Y: /f UEFI
```
## Boot into Windows
### Make a backup of your existing boot image
```cmd
adb shell "dd if=/dev/block/platform/soc/1d84000.ufshc/by-name/boot$(getprop ro.boot.slot_suffix) of=/tmp/boot.img"
```
### Pull backup to computer
```cmd
adb pull /tmp/boot.img
```
### Reboot to bootloader
```cmd
adb reboot bootloader
```
### Download and flash UEFI image
> Download [UEFI image](https://raw.githubusercontent.com/erdilS/Port-Windows-11-Xiaomi-Pad-5/main/images/xiaomi-nabu_secureboot-v2.img)
```cmd
fastboot flash boot <path to image>
```
> [!NOTE]
> On the first Windows boot, it will not see any Wi-Fi networks, just restart it by holding down the power button, and after reboot when you try connect to yuor network and you see "ice-cream" click "try again" 7 times
### Boot back into Android
> Use your backup boot image and flash from fastboot
```cmd
fastboot flash boot boot.img
```
### Remove phantom drive letters (if they are not removed automatically)
> Run theese commands as admin to remove letter
```cmd
mountvol x: /d
mountvol y: /d
```
## Finished!
> You can join our [Telegram chat](https://t.me/nabuwoa) to receive latest news about project
### [Last step: Setup Dualboot](dualboot-en.md)

View file

@ -11,7 +11,9 @@
### Prerequisites
- Brain
- [Recovery Image](https://github.com/erdilS/Port-Windows-11-Xiaomi-Pad-5/releases/download/1.0/recovery.img)
- [Vbmeta image]()
- [Recovery Image]()
- [ADB & Fastboot](https://developer.android.com/studio/releases/platform-tools)
@ -32,7 +34,7 @@
> Do not run all commands at once, execute them in order!
#### Flash vbmeta_disabled.img via fastboot
```cmd
```sh
fastboot flash vbmeta_ab <путь/к/vbmeta_disabled.img>
```

View file

@ -1,33 +1,15 @@
<img align="right" src="../../assets/nabu.png" width="425" alt="Linux Running On A Xiaomi Pad 5">
# Running Windows on the Xiaomi Pad 5
# Running Linux on the Xiaomi Pad 5
## Reinstallation
### Reinstalling Windows if something goes wrong
### Reinstalling Linux if something goes wrong
- If you don't like your windows version or you've bricked your windows install, or anything else, you would probably just reinstall Windows. Thankfully this process is very easy.
- If you don't like your linux version or you've bricked your linux install, or anything else, you would probably just reinstall Linux. Thankfully this process is very easy.
- If you haven't restored your partition table, you can use this guide with your existing partitions.
### Prerequisites
- Existing Windows and boot partitions (*If not met, [go back and just pretend this guide never existed](/guide/English/1-partition-en.md)*)
- [Recovery Image](../../../../releases/tag/1.0)
- [ADB & Fastboot](https://developer.android.com/studio/releases/platform-tools)
### Boot recovery to format the Windows and boot partitions
```cmd
fastboot boot <recovery.img>
```
### Format the partitions
> If it asks you to run it once again, do so
```cmd
adb shell format
```
## [Next step: Reinstalling Windows](/guide/English/install-en.md#Execute-the-msc-script)
#### Follow installation guide and reflash linux image again
## [Next step: Reinstalling Linux](/guide/English/install-en.md)

View file

@ -13,7 +13,7 @@ If you want to relock your bootloader you'll need your partition table to be sto
### Prerequisites
- [ADB & Fastboot](https://developer.android.com/studio/releases/platform-tools)
- [gpt_both0.bin](../../../../releases/tag/1.0)
- [gpt_both0.bin]()
### Restore GPT
> Replace ```<gpt_both0.bin>``` with the path to the gpt_both0.bin file.

View file

@ -8,25 +8,25 @@ Stable. Some components don't work.
#### Features
- [X] Suspend / Sleep Mode
- [X] Audio
- [X] Battery status
- [X] Bluetooth
- [X] Brightness
- [x] Charging
- [X] Display
- [X] GPU
- [X] Touchscreen
- [X] UFS
- [X] USB
- [X] Wi-Fi
- [x] Suspend / Sleep Mode
- [x] Audio
- [x] Battery status
- [x] Bluetooth
- [x] Brightness
- [x] Slow charging
- [ ] Fast charging
- [x] Display
- [x] GPU
- [x] Touchscreen
- [x] UFS
- [x] USB
- [x] Wi-Fi
- [x] Xiaomi Keyboard support
- [ ] Xiaomi Pen support
- [ ] Xiaomi Pen charging support
- [ ] Microphone
- [ ] Miracast
- [ ] Location
- [ ] Flashlight
- [ ] Xiaomi Pen charging support
- [X] Xiaomi Keyboard support
- [ ] Camera
#### Sensors

View file

@ -3,33 +3,36 @@
# Windows на Xiaomi Pad 5
## Двойная загрузка Android и Windows
## Двойная загрузка Android и Linux
### Требования
- Android с root-правами и пропатченное Magisk'ом ядро Android
- Мозги
### Со стороны Windows
- Android с root-правами
- Установите [STA](https://github.com/erdilS/Port-Windows-11-Xiaomi-Pad-5/releases/download/dualboot/StA_Installer_nabu.exe)
- [boot-loader.tar.xz](https://mega.nz/folder/CVMGEAiB#7oazR3wpkKdAH2eZChtRTg) (рекомендуется Ubuntu-V0.91)
- Переименуйте файл ядра Android в boot.img
### Android side of Dual Boot
- Переместите его в C:\ (C:\boot.img)
1) Установите [`linuxswitch.apk`](https://github.com/timoxa0/Switch2Linux-Nabu/releases/download/v1.0.2/linuxswitch.apk) на устройство.
2) Откройте программу и выдайте root-права
3) Нажмите "Dump android images"
4) Сохраните `android.boot.img` и `andoid.dtbo.img` на комьбтер из `/sdcard/linux/`
5) Распакуйте `boot-loader.tar.xz`
6) Достаньте из распакованного aрхива `boot_xiaomi-nabu_sda33.img` и, назвав его `linux.boot.img`, положите в `/sdcard/linux/`
7) Перезагрузитесь в linux, нажав "Switch to Linux"
- Запустите ярлык на рабочем столе чтобы перезагрузиться в Андроид
### Со стороны Android
### Linux side of Dual boot
- Установите на планшете приложение [switchtowindows](https://github.com/erdilS/Port-Windows-11-Xiaomi-Pad-5/releases/download/dualboot/switchtowindows.apk)
- Создайте папку Windows в паияти Андроида
- Переименуйте UEFI файл в boot.img
- Переместите его в созданную папку (/Память Андроид/Windows/boot.img)
- Запустите приложение и предоставьте ему root-доступ
- Нажмите "Switch to Windows" если вы хотите сменить систему на Windows
1) Скачайте [`s2a.zip`](https://github.com/timoxa0/Switch2Linux-Nabu/releases/download/v1.0.1/s2a.zip)
2) Распакуйте `s2a.zip` в Linux
3) Положите android.boot.img и andoid.dtbo.img в папку s2a
4) Запустите терминал в папке с install.sh и выполните команду
```console
sudo ./install.sh
```
5) Перезагрузитесь в android, запустив "Switch2Android" и меню приложений
## Готово!

View file

@ -2,143 +2,31 @@
# Windows на Xiaomi Pad 5
> [!WARNING]
> ПОЖАЛУЙСТА, НЕ ИСПОЛЬЗУЙТЕ ВИДЕОГИД НА YOUTUBE ИЛИ ЛЮБОЙ ДРУГОЙ ПЛАТФОРМЕ! ЭТИ ВИДЕО УСТАРЕЛИ!
## Установка
## Установка Linux
### Требования
- [ARM образ Windows](https://uupdump.net/)
- Мозги
- [Образ UEFI](https://raw.githubusercontent.com/erdilS/Port-Windows-11-Xiaomi-Pad-5/main/images/xiaomi-nabu_secureboot-v2.img)
- [Драйверы](https://github.com/map220v/MiPad5-Drivers/releases/latest)
- [rootfs.img.xz](https://mega.nz/folder/CVMGEAiB#7oazR3wpkKdAH2eZChtRTg) (рекомендуется Ubuntu-V0.91)
### Перезапустите рекавери чтобы начать установку Windows
### Установка
#### Извлеките `rootfs.img` из `rootfs.img.xz`
#### Перезапустите планшет в fastboot для прошивки
#### Прошейте образ linux через fastboot
```cmd
fastboot boot <recovery.img>
fastboot flash linux <rootfs.img>
```
> Замените <rootfs.img> на путь к rootfs.img
#### Перезапуститесь в android для настройки дуалбута
```sh
fastboot reboot
```
#### Выполните скрипт msc
> Если скрипт попросит запустить его ещё раз, то так и сделайте
```cmd
adb shell msc
```
### Привязка букв к разделам
#### Запустите Менеджер дисков Windows
> Как только планшет определился как диск
```cmd
diskpart
```
#### Привязка буквы `X` к разделу Windows
#### Выберите Windows раздел планшета
> Используйте команду `list volume` чтобы найти разделы "WINNABU" и "ESPNABU"
```diskpart
select volume <number>
```
#### Привяжите букву X
```diskpart
assign letter=x
```
### Привязка буквы `Y` к разделу ESP
#### Выберите ESP раздел планшета
> Используйте команду `list volume` чтобы найти его, обычно это последний раздел
```diskpart
select volume <number>
```
#### Привяжите букву Y
```diskpart
assign letter=y
```
#### Закройте diskpart
```diskpart
exit
```
### Установка Windows
> Замените `<path/to/install.wim>` действительным путём к файлу `install.wim`, который расположен в папке `sources` внутри вашего ISO. Вы можете получить его, смонтировав образ или разархивировав его
```cmd
dism /apply-image /ImageFile:<path/to/install.wim> /index:1 /ApplyDir:X:\
```
### Установка драйверов
> Вы можете скачать драйвера [тут](https://github.com/map220v/MiPad5-Drivers/releases/latest)
> Когда он попросит вас "Enter Drive letter...", введите X:
```cmd
Откройте папку с драйверами и заустите OfflineUpdater.cmd
```
### Создайте файлы загрузчика Windows для EFI
```cmd
bcdboot X:\Windows /s Y: /f UEFI
```
## Запуск Windows
### Создайте резервную копию текущего ядра Android
```cmd
adb shell "dd if=/dev/block/platform/soc/1d84000.ufshc/by-name/boot$(getprop ro.boot.slot_suffix) of=/tmp/boot.img"
```
### Скопируйте РК на компьютер
```cmd
adb pull /tmp/boot.img
```
### Перезапустите планшет в fastboot
```cmd
adb reboot bootloader
```
### Скачайте и прошейте образ UEFI
> Скачайте [образ UEFI](https://raw.githubusercontent.com/erdilS/Port-Windows-11-Xiaomi-Pad-5/main/images/xiaomi-nabu_secureboot-v2.img)
```cmd
fastboot flash boot <путь к образу UEFI>
```
> [!NOTE]
> При первой загрузке Windows он не увидит никаких сетей Wi-Fi, просто перезагрузите его, удерживая нажатой кнопку питания, а после перезагрузки, когда вы попытаетесь подключиться к своей сети и увидите "мороженое", нажмите "повторить попытку" 7 раз
### Загрузка в Android
> Прошейте скопированное ранее ядро в fastboot
```cmd
fastboot flash boot boot.img
```
### Удаление фантомных букв (если не исчезли сами)
> Выполните эти команды от админа, чтобы удалить фантомные буквы
```cmd
mountvol x: /d
mountvol y: /d
```
## Готово!
> Вы можете присоедениться к нашему [чату в Telegram](https://t.me/nabuwoa) что-бы получать последние новости проекта
### [Последний шаг: Настройка двойной загрузки](dualboot-ru.md)
### [Последний шаг: Установка дуалбута](dualboot-ru.md)

View file

@ -8,8 +8,11 @@
### Подготовка устройства
### Требования:
- Мозги
- [Образ рекавери](https://github.com/erdilS/Port-Windows-11-Xiaomi-Pad-5/releases/download/1.0/recovery.img)
- [Образ vbmeta]()
- [Образ рекавери]()
- [ADB и Fastboot](https://developer.android.com/studio/releases/platform-tools)
@ -34,7 +37,7 @@
> Следуйте инструкции с осторожностью! В случае ошибки велика вероятность нарушить работоспособность устройства!
#### Прошейте vbmeta_disabled.img
```cmd
```sh
fastboot flash vbmeta_ab <путь/к/vbmeta_disabled.img>
```

View file

@ -1,36 +1,13 @@
<img align="right" src="../../assets/nabu.png" width="425" alt="Linux Running On A Xiaomi Pad 5">
# Windows на Xiaomi Pad 5
# Linux на Xiaomi Pad 5
## Переустановка
### Переустановка Windows если что-то пошло не так
### Переустановка Linux если что-то пошло не так
- Если текущая версия Windows не подходит или была испорчена, вероятно, Вам поможет переустановка Windows, благо это довольно простой процесс.
- Если текущая версия Linux не подходит или была испорчена, вероятно, Вам поможет переустановка Linux, благо это довольно простой процесс.
- Если Вы не восстанавливали таблицу разделов, то используйте этот гайд с текущей таблицей разделов.
### Требования
- Существующие разделы для Windows и загрузки (*если их нет, [используйте данную инструкцию](/guide/Russian/partition-ru.md)*)
- [Образ рекавери](../../../../releases/tag/1.0)
- [ADB и Fastboot](https://developer.android.com/studio/releases/platform-tools)
### Запустите рекавери для форматирования разделов
```cmd
fastboot boot <recovery.img>
```
### Форматирование разделов
> Если скрипт попросит запустить его ещё раз, то так и сделайте
```cmd
adb shell format
```
### [Следующий шаг: Установка Windows](/guide/Russian/install-ru.md#Выполните-скрипт-msc)
#### Следуя инструкции по установка, выполните установку заново
### [Следующий шаг: Установка Linux](/guide/Russian/install-ru.md)

View file

@ -8,25 +8,26 @@
#### Особенности
- [X] Режим ожидания
- [X] Аудио
- [X] Статус батареи
- [X] Bluetooth
- [X] Яркость
- [X] Зарядка
- [ ] Быстрая зарядка
- [X] Дисплей
- [X] Режим ожидания
- [X] Видеочип
- [X] Сенсорный экран
- [X] Файловая система
- [X] Память
- [X] USB
- [X] Wi-Fi
- [X] Чехол-клавиатура Xiaomi
- [ ] Cтилус Xiaomi
- [ ] Зарядка стилуса Xiaomi
- [ ] Микрофон
- [ ] Местоположение
- [ ] Фонарик
- [ ] Зарядка стилуса Xiaomi
- [X] Чехол-клавиатура Xiaomi
- [ ] Камера
- [ ] Микрофон
#### Сенсоры

View file

@ -1,8 +1,8 @@
<img align="right" src="https://raw.githubusercontent.com/erdilS/Port-Windows-11-Xiaomi-Pad-5/main/nabu.png" width="425" alt="Windows 11 Running On A Xiaomi Pad 5">
<img align="right" src="../assets/nabu.png" width="425" alt="Linux Running On A Xiaomi Pad 5">
# Running Windows on the Xiaomi Pad 5
# Running Linux on the Xiaomi Pad 5
## Dualbooting Android and Windows seamlessly
## Dualbooting Android and Linux seamlessly
### Select your language

View file

@ -1,10 +1,10 @@
<img align="right" src="https://raw.githubusercontent.com/erdilS/Port-Windows-11-Xiaomi-Pad-5/main/nabu.png" width="425" alt="Windows 11 Running On A Xiaomi Pad 5">
<img align="right" src="../assets/nabu.png" width="425" alt="Linux Running On A Xiaomi Pad 5">
# Running Windows on the Xiaomi Pad 5
# Running Linux on the Xiaomi Pad 5
## Installation
### Select your language
- [English](English/partition-en.md)
- [Russian](Russian/partition-ru.md)
- [English](English/prepare-en.md)
- [Russian](Russian/prepare-ru.md)

View file

@ -1,6 +1,6 @@
<img align="right" src="https://raw.githubusercontent.com/erdilS/Port-Windows-11-Xiaomi-Pad-5/main/nabu.png" width="425" alt="Windows 11 Running On A Xiaomi Pad 5">
<img align="right" src="../assets/nabu.png" width="425" alt="Linux Running On A Xiaomi Pad 5">
# Running Windows on the Xiaomi Pad 5
# Running Linux on the Xiaomi Pad 5
## Reinstallation

View file

@ -1,6 +1,6 @@
<img align="right" src="../assets/nabu.png" width="425" alt="Linux Running On A Xiaomi Pad 5">
# Running Windows on the Xiaomi Pad 5
# Running Linux on the Xiaomi Pad 5
## Project Status

View file

@ -1,6 +1,6 @@
<img align="right" src="https://raw.githubusercontent.com/erdilS/Port-Windows-11-Xiaomi-Pad-5/main/nabu.png" width="425" alt="Windows 11 Running On A Xiaomi Pad 5">
<img align="right" src="../assets/nabu.png" width="425" alt="Linux Running On A Xiaomi Pad 5">
# Running Windows on the Xiaomi Pad 5
# Running Linux on the Xiaomi Pad 5
## Uninstallation