Подготовка¶
Не на всех устройствах можно запустить Ubuntu Touch. Прежде чем начать работы по установке ОС, изучите свое целевое устройство.
Чтобы определить технические характеристики вашего устройства, найдите его на сайте GSM Arena или на сайте Device Specification.
We encourage the following specifications:
- Kernel
Ubuntu Touch currently requires a device with a Linux kernel version greater than or equal to 3.15. According to the systemd v255 README, older device kernels are not compatible with systemd v255 or newer. You may learn your device’s kernel version by finding «Kernel Version» in the About page of your Android settings. The kernel version can also be found in the
Makefileat the top level of any Linux kernel source tree.- RAM
At least 1GB is required for Operating System to work. 3GB or higher is recommended for a better end-user experience.
- Хранилище данных
At least 16GB of storage is required. Devices with less storage will likely not have enough space for a full Ubuntu Touch installation.
Найдите соответствующие руководства и другую информацию¶
If your desired target device complies to the above, the next thing to do is locate the available guides and other documentation. This step will help you later on when you run into issues developing your port. For now, the main thing to look for is how to unlock your bootloader. (See below).
Head over to the LineageOS Wiki. Look up your device and read and bookmark the guides that are listed there. Try a web search for additional information, specifying both its retail name and the code name you found on the LineageOS site. Be careful to check that the information you gather applies to your specific device, keeping in mind that many devices are sold in a number of different variants with different hardware specifications.
Другой богатый источник информации - XDA Developers Forum.
Разблокировка загрузчика¶
Производители обычно продают мобильные устройства с заблокированным загрузчиком. Это своего рода защита для предотвращения модификации операционной системы и системного программного обеспечения. Если вы разблокируете загрузчик, то сможете вносить такие изменения, но в этом состоянии гарантия на устройство может быть аннулирована. Выбор за вами, но этот шаг является обязательным, если вы хотите установить Ubuntu Touch на устройство.
Устройства различаются, и нет общего способа разблокировки загрузчика, подходящего для всех устройств. Поэтому придется изучить вышеупомянутые источники и поискать инструкций, как разблокировать загрузчик конкретного устройства.
Установка TWRP recovery¶
Вам необходимо установить собственный образ custom recovery на устройство, чтобы на нём стали возможны процедуры форматирования и записи файлов изображений. Перейдите в раздел`Team Win Recovery Project <https://twrp.me/Devices/>` _ и найдите файл образа для вашего устройства. Следуйте инструкциям по установке, представленным на сайте.
Примечание
Some devices do not have a TWRP image available. While it is technically possible to port a device without a recovery, it makes the process a lot more complicated, especially when debugging early in the porting process.
Рекомендации по работе для ПК/рабочей станции¶
The remainder of this guide presumes you are using a build PC running Linux. Although high performance always is nice, stability and sufficient RAM and harddisk space are the main concerns here. You do not need the latest and the best hardware, nor do you need the latest distribution release. In fact, it is not uncommon to run into issues when choosing the very newest release, as some of the software needed may not yet have been built for it. For example, using a Ubuntu LTS release, or a LTS release of another distribution, is often a good choice.
После выполнения описанных выше шагов можно настроить рабочее окружение и начать процесс портирования (смотрите следующий раздел).