Ubuntu touch gsi linux

Установка Ubuntu Touch¶

Установить Ubuntu Touch очень просто, у нас ушло много работы на то, чтобы сделать процесс установки удобным для всех пользователей. Программа UBports Installer — это прекрасный графический инструмент для установки Ubuntu Touch на поддерживаемое устройство напрямую из операционных систем Linux, Mac или Windows. Опытные пользователи могут установить систему вручную, подробные инструкции есть на странице устройств.

Если Вы устанавливаете Ubuntu Touch на устройство с ОС Android, то обязательно потеряете данные, которые в данный момент находятся на устройстве. Обязательно создайте резервную копию всех данных на внешнем источнике (карта памяти, настольный компьютер, ноутбук и т.д.).

Перейдите на страницу загрузки и скачайте подходящую версию инсталятора. Доступны следующие пакеты:

ОС Windows: ubports-installer- .exe

ОС macOS: ubports-installer- .dmg

Запустите программу установки и следуйте инструкциям на экране, которые помогут вам пройти процесс установки. Вот и все! Наслаждайтесь изучением Ubuntu Touch!

If you’re an experienced android developer and want to help us bring Ubuntu Touch to more devices, visit the porting section .

Please do not start the installer with sudo . It is meant to be run as a normal user, not as root. Using the installer with sudo will mess up permissions in the installer’s cached files and lead to problems down the road. If the installer does not recognize your device, check the troubleshooting information below.

Траблшутинг¶

Если Вам нужна помощь, можно обратиться к официальным каналам UBports в Telegram или в matrix, а также задать вопрос на форуме `_ или на сайте `askubuntu `_. Если Вы считаете, что программа-установщик UBports работает некорректно, то можете `создать тикет на баг-трекере _, чтобы мы узнали о проблеме.

Соединение потеряно во время установки¶

Попробуйте использовать другой кабель USB и другой порт USB на компьютере. Дешевые и старые кабели могут допускать обрывы связи во время процесса установки.

Программа-файервол Windows Defender блокирует работу программы-установщика¶

Мы сообщили Microsoft об этой ошибке, но они, похоже, думают, что`проблем нет `__. Чтобы запустить программу-установщик, нажмите клавишу «Подробнее», затем выберите «Все равно запустить».

Устройство не распознано¶

Виртуальная машина¶

Если программа-установщик запускается на виртуальной машине, убедитесь, что виртуальной машине разрешен доступ к USB-порту.

Драйвера ADB для Windows¶

Установите универсальный adb-драйвер и перезагрузите компьютер.

Fairphone 2 Vendor-ID (идентификатор телефона, определяемый производителем)¶

В терминале выполните команду echo 0x2ae5 >>

/.android/adb_usb.ini и перезапустите программу-установщик. Это никак не повлияет на snap-пакет.

Отсутствуют udev-rules¶

If the device is not detected on Linux and you are not using the snap package, then you might be missing some udev-rules.

Посмотрите, существует ли файл /etc/udev/rules.d/51-android.rules и содержит ли он приведенные ниже правила. Если нет, добавьте их в файл и запустите команду sudo service udev restart или sudo udevadm control —reload-rules && udevadm trigger .

Прочие вопросы¶

Если советы по устранению неполадок не помогают, можно попробовать запустить установку вручную. Инструкции есть на странице с описанием устройств _.

Установка на устройства со старыми версиями Android¶

Хотя процесс установки довольно простой, некоторые устаревшие модели Bq и Meizu требуют специальных действий. Эта часть руководства не относится к другим устройствам.

Читайте также:  Как удалить iso файл с компьютера windows 10

Информации об устройствах относительно немного. Многие производители мобильной электроники не хотят, чтобы пользователи устанавливали альтернативную операционную систему, и ситуацию никак не изменить. Приведенные ниже инструкции предназначены только для опытных пользователей. Хотя мы понимаем, что многие люди хотят использовать нашу ОС, перепрошивка устройства с помощью OEM-инструментов не должна осуществляться без определённых навыков и четкого понимания процесса.

Мобильные устройства Meizu в основном проектировались для ОС Flyme (операционная система с открытым исходным кодом, основанная на Android Open Source Project от Google). Если смартфон MX4 иногда успешно перепрошивается, то смартфон Pro5 построен на семействе микропроцессоров Exynos и имеет свои проблемы.

ВНИМАНИЕ! Все действия осуществляются Вами на свой страх и риск!

Отключите все ненужные и неиспользуемые устройства от персонального компьютера. Зарядите свое мобильное устройство от сети (не от ПК) как минимум до 40 процентов.

Скачайте Ubuntu Touch ROM для вашего мобильного устройства и распакуйте zip-архив:

Источник

Ubuntu touch gsi linux

Внимание! Инструкция неполная и будет постепенно пополняться стараниями пользователей (надеюсь) .

Мануал предназначен для сборки под ос Ubuntu(подойдет и любой другой дистрибутив Debian)

1. Установка необходимого ПО и загрузка исходников

sudo add-apt-repository ppa:phablet-team/tools && sudo apt update
sudo apt install phablet-tools

sudo apt install git gnupg flex bison gperf build-essential \
zip bzr curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386 schedtool \
g++-4.8-multilib

Если устройство поддерживается google’ом, в device/[vendor]/[device]/BoardConfig.mk нужно добавить 3 строчки:

cd [папка с исходниками]
export USE_CCACHE=1
source build/envsetup.sh

девайс загрузится в рекавери

Дальше могут вылезать всякие мелкие ошибки, например, как было у меня, разделы userdata и system не монтировались в режиме recovery сами, чтобы я ни делал с рамдиском и fstab, в итоге, приходилось монтировать их вручную

Сообщение отредактировал Pashkanin — 26.10.16, 00:13

Сообщение отредактировал klich007 — 02.10.16, 10:26

ну я пока устраиваю пляски с бубном с live-usb 😀
попробую портануть на 4good

Сообщение отредактировал WhiteWolfKF — 02.10.16, 08:12

А он почему не подходит? Поверх debian’а ubuntu поставить или в chroot загнать и тоже нормально будет

Сообщение отредактировал utkabobr — 07.10.16, 18:14

толи я чего-то не понимаю, толи Ubuntu Touch изначально работает через жопу. Она не прошивается на раздел system, создается system.img, который кидается в /data и монтируется в /cache/system. Перед прошивкой лучше всего форматировать разделы cache и data.
Выходит, раздел system вообще не нужен — его можно удалить и увеличить раздел data.
Попробую чуток подредактировать рамдиск, удалить /system и залить system.img на раздел data. Как-то бредово все это выглядит, надо попробовать запустить эту адскую машину на vm

Сообщение отредактировал Pashkanin — 21.10.16, 19:28

а какие плюсы у ubuntu touch по сравнению с CM13 :blush:
и ещё при загрузке исходников ubuntu touch такая ошибка
to set your account’s default identity.
Omit —global to set the identity only in this repository.

fatal: unable to auto-detect email address (got ‘[email protected](none)’)

ERROR:phablet-dev-bootstrap:Error while trying to sync repository

Сообщение отредактировал pavelmine — 23.10.16, 12:41

pavelmine,
Тем что это полноценный линукс

Сообщение отредактировал sylar156 — 23.10.16, 16:39

sylar156, а что с ошибкой делать может ошибка из-за того что смартфон используется как wifi модуль так как я потерял wifi модуль

Читайте также:  Front picture by windows

Сообщение отредактировал pavelmine — 24.10.16, 08:30

Естественно, нужно вставить свои имя пользователя и мыло

c apparmor кто-нибудь разбирался? В офф инструкции целая куча писанины про это, а, по сути, нужно просто копировать security/apparmor в свое ядро из ядра той же версии из исходников UT

Сообщение отредактировал Pashkanin — 25.10.16, 12:40

Источник

Introduction to porting¶

This first section will introduce you to the specifics of porting Ubuntu Touch to an Android device. Note that it is written with the general public in mind, not primarily the experienced porting developer. In subsequent sections we have made an effort to differentiate by keeping the main text more concise in order to meet the needs of the more experienced reader, while providing links to supplementary reading for the less experienced.

The guide as a whole is written as a sequence of steps describing how an ideal port might proceed. However, porting is unpredictable and messy. Every device is different and in reality you will likely iterate and revisit some steps, skip over other steps and uncover new and undocumented challenges.

What is Ubuntu Touch?¶

Ubuntu Touch is an open source operating system for mobile devices. It can be ported to devices that originally shipped with Android OS. Alas, the majority of these devices are dependent to some degree on proprietary software.

To be specific, device vendors tend to keep the code that speaks directly to the device hardware (the low level device drivers) proprietary. These components are commonly called the vendor ‘blobs’ (Binary Large OBjects). The vendor blobs need to be incorporated into an Ubuntu Touch port. Note that these components are specific not only to each device, but also to each Android version. It is therefore necessary to secure the correct version of these components when building a port.

This is why Ubuntu Touch cannot be built completely from source code for most commercial devices. Instead, porting the system to these devices involves integrating the previously mentioned vendor blobs into the rest of the system, which can be built from source.

The next component of Ubuntu Touch is a pre-compiled root filesystem which needs to be installed on the device. This component does not communicate directly with the device hardware. Instead, this communication is mediated by a Hardware Abstraction Layer (HAL) which needs to be built for each specific device, because each device has its specific hardware architecture. This component is called Halium and is available in different versions (5.1 which is largely obsolete, 7.1, 9 and 10 as of writing) corresponding to different Android versions.

The Halium project enables Linux systems to run on Android hardware. It is a joint effort by multiple mobile operating systems, notably Plasma mobile, Lune OS and UBports.

UBports porting builds on top of Halium porting. Consequently, you will be using both the Halium porting guide and the UBports porting guide. At times it may also be helpful to test with one of the other operating systems to debug a problem from different angles.

Halium is an indispensible part of an Ubuntu Touch port and is available in the form of open source software. Developing a new version of Halium is a very considerable task which is why only a few versions of Halium are available. Each port of Ubuntu Touch has to be based on one of the available Halium versions and vendor blobs from the corresponding Android version. See the first two columns of the table below for details.

Читайте также:  Самый красивый интерфейс linux

Thus an Ubuntu Touch port is composed of the these components:

The Ubuntu Touch (UT) root filesystem (rootfs)

Halium (contained in the boot and system images)

The vendor blobs

You, the porter, need to build Halium (in part or in whole, depending on porting method ) and install this together with the Ubuntu Touch rootfs in order to create a functioning Ubuntu Touch port.

Android and Halium versions¶

Halium is built using source code for a modified version of the Android operating system called LineageOS (see the LineagesOS website and wiki). The required source code is available online and needs to be downloaded and configured to build the correct Halium version for each individual device port. The table below shows which versions are required for the different Halium versions.

Источник

[GSI][arm64][A/AB] Ubuntu Touch (ubports)

erfanoabdi

Recognized Developer

What is Ubuntu Touch?
Ubuntu Touch is the touch-friendly mobile version of Ubuntu.
This operating system is developed and maintained by UBports: An international community of passionate volunteers.
This means Ubuntu Touch is 100% community driven and independent.

What is Halium?
Halium is the collaborative project to unify the Hardware Abstraction Layer for projects which run GNU/Linux on mobile devices with pre-installed Android.

How it is a GSI?
First of all, I should mention ubports GSI definition is different from android, but both are generic.
ubports root file system was always generic and works for most cases, but devs were porting halium system image to add device-specific (HALs and configs) support to ubports Android container.
But after project treble which introduced in android 8, all device-specific parts of android system image moved to vendor partition and we can use «Generic system images» over one vendor partition.
In halium version 9, we use this adventure and have a totally generic system image + root file system.

Requirements:
The only Requirement of booting this GSI is having Halium patched kernel.
Keep in mind having android 9 firmware installed on the device as GSI base is mandatory (GSI can be used on android 8.0 and 8.1 vendors but experimental and not supported yet)

How to install?
For installation guide and kernel patchings details check ubports wiki page: Click Here

Whats suppose to work?

  • Bluetooth
  • Camera
  • Cellular Radio
  • Mobile Data
  • GPS
  • Graphics
  • Sensors
  • Sound
  • In-call Audio
  • Touch
  • Wifi
  • Vibration
  • Fingerprint
  • Anbox
  • Media Playback

Known bugs?
Bugs are very device specific and mostly should blame device kernel.
oh and of course VoLTE

Supports:

  • Halium telegram group
  • UBports telegram group
  • UBports Porting telegram group
  • ErfanGSIs telegram group

Report Bugs:
Explain your bug in proper support telegram groups (from above)
Please don’t ask about spoon-feeding or helping on building kernel or device specific builds.
Please don’t ask about picking/reverting commits or any basic git commands.
bug reports without logs will be ignored
logs we need are: android logcat, kernel log, syslog
kernel log:

Источник

Оцените статью