Assembly instructions [Ubuntu Touch] from source | translation of the official manual with additions
And whether it is necessary at all? Ubuntu Touch ...
...
Yes [ 241 ] ** [93,05%]
not [ 18 ] ** [6,95%]
Total votes: 259
 



Rep: (6)
Attention! Instruction is incomplete and will be gradually supplemented by the efforts of Member(Hopefully).

The manual is designed to build on the OS Ubuntu (or any other suitable Debian distribution)

System requirements for smartphones and tablets

options for installing Linux alongside with Windows
0. Disable the "fast start" to Win 8-10
1. Boot from the Gparted live or Linux live usb and run gparted
Next are several options:
- Reduce the partition with Windows on a 60GB, create an extended partition, and in it the logical ext4 Tagged with "/"
install linux
- Reduce the partition with Windows on 8+ (amount of RAM, but not necessarily) GB, to create an extended partition, and in it the logical (and swap equal count of RAM, if identified), the ext4 Tagged with "/".
Installation ntfs select any section with a sufficient amount of free space (about 60GB) and mount both / home
P.S. I have / no / home with a bunch of software for the development of desktop applications on desktop / android arm, x86, etc. It takes 6.8GB

Owners of smartphones on MTK processors
It would be better to first collect aosp 4.4 with kernel 3.4.67. If you will be working and have enough nerve to continue, you can begin to assemble UT
Android 4.4.x (KitKat) / 5.x.x (Lollipop) / 6.x.x (Marshmallow) kernel build for MTK processors
Assistance in the development and porting of Android OS on MTK devices.


1. Installing the required software and the download source
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


configuration git
git config --global user.name [username]
git config --global user.email [soaps]

Download source:
available official branches Ubuntu Touch
phablet-4.2.2_r1
phablet-4.3.1_r1
phablet-4.4.1_r1
phablet-4.4.2_r1
phablet-4.4_r1
phablet-5.1.1_r36
phablet-6.0.0_r1
phablet-6.x

phablet-dev-bootstrap phablet # load branch phablet-4.4.2_r1
# Phablet - the name of the folder in which to load the source code, you can choose any name
# What kind of branch will be downloaded, can be found in the file / usr / bin / phablet-dev-bootstrap,
# Opening it a plain text editor

or
mkdir phablet && cd phablet
repo init -u https://code-review.phablet.ubuntu.com/p/aosp/platform/manifest.git -b phablet-4.4.2_r1

regardless of the ways to download source code, if the download is interrupted, you need to go to the source directory and run
repo sync -j [count flows]

Possible errors when downloading source
When initializing the repository:
error: RPC failed; HTTP 503 curl 22 The requested URL returned error: 503 Service Unavailable
fatal: The remote end hung up unexpectedly
fatal: can not obtain manifest https://code-review.phablet.ubuntu.com/p/aosp/platform/manifest.git

Any errors 5xx - server.
The topic of discussion mistakes recommended to fight in [email protected] asked to restart the server code-review.phablet.ubuntu.com
discussion of bugs
It may turn out to solve increasing buffer:
git config --global http.postBuffer 524288000
# If you do not help, you can try 1048576000



2. The core of (incomplete instructions)

2.1 Preparation of the nucleus
- download the kernel sources and throw in [source folder ubuntu touch] / kernel
- downloadrepositoryand decompress in [Folder with source ubuntu touch] with replacement
- edit defconfig:
cd kernel
chmod + x check-config
./check-config arch / [processor architecture] / configs / [* _ defconfig devaysa] -w
make [* _defconfig] && make menuconfig # select "enable loadable kernel module support", exit and save
# If you do not choose to fly error during assembly ubuntu touch
cp .config arch / [Architecture] / configs / [imya_defconfig] # is used for the core assembly
make mrproper


2.2 Assembling the nucleus
The easiest way, to build a kernel with the system, but if you want to separate
Kernel assembly manualfromsergeyotro


3. shell
3.1 Device Tree
Wood device the same as for the AOSP
How to make an Android device treefromgrikukan

If the device is supported by Google, in the device / [vendor] / [device] /BoardConfig.mk need to add 3 lines:
TARGET_KERNEL_UBUNTU: = true
TARGET_KERNEL_UBUNTU_META: = linux-image- [code name]
TARGET_KERNEL_UBUNTU_SERIES: = vivid

when assembling the finished boot kernel

3.2 Assembly
cd [folder source]
export USE_CCACHE = 1
source build / envsetup.sh

lunch aosp_ [device_name] -userdebug
or
lunch
[number]

make -jX


After compiling, in out / target / product / [device_name] folder are ready for flashing boot.img and recovery.img


4. Firmware
It is advisable to format partitions userdata, system, cache.
If you are logged in droidboot is only possible from the system, or recovery, better to do it by making sure that the collected works recovery.
fastboot erase system
fastboot erase userdata
fastboot erase cache

I do not know whether to create droidboot file system or just demolishing the old one, but it would be better to boot into recovery and perform
make_ext4fs / dev / block / platform / [Platform] / [by-name or by-label] / [name] [section size]


cd out / target / product / [name devaysa]
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot boot recovery.img

the device will boot in rekaveri


Then can come out any small mistakes, such as I, sections userdata and system are not mounted in the recovery mode itself, so I was doing a ramdisk and fstab file, as a result, had to mount them manually
croot && bzr branch lp: project-rootstock-ng
cd project-rootstock-ng /
wget -c "http://ftp.heanet.ie/mirrors/ubuntu-cdimage/ubuntu-touch/vivid/daily-preinstalled/current/vivid-preinstalled-touch-[архитектура: armhf or i386] .tar.gz"
./rootstock-touch-install vivid-preinstalled-touch- [architecture: armhf or i386] .tar.gz out / target / product / [name devaysa] /system.img

machine reboots itself (possibly 2 times)
If the device reboots rekaveri, most likely, not enough room in/ dataor / recovery (to get thrown off the downloaded file, it is better to change the path in the / storage / sdcard0).


the log file
make -j [n] | tee log.txt # log with no errors
make -j [n] 2>& 1 | tee log.txt # log all errors



The official manual (in English)

Post has been editedPashkanin - 26.10.16, 00:13
Reason for editing: left complement just point to the core



Rep: (0)
I'm interested in is this: is it possible to port out of Windows or even be live-usb?
I have now only netbook with debianom of linuksyatskih: D



Rep: (6)
* WhiteWolfKF,
from under the visible does not work, but with live usb will be dancing with a tambourine.
Just something you need 60GB space. You can cut a piece of Windows and put linux



Rep: (6)
somehow quiet here ... Maybe because someone is interested ...
10-15 minutes for alteration of wood cm 12.1 2 hours and fuss with BAZHENOV core zte (errors drivers, headers, etc.).
Does not start, of course, but still
Attached Image
Attached Image


Post has been editedklich007 - 02.10.16, 10:26
Reason for editing: Spoiler



Rep: (0)
Well, I do arrange dances with a tambourine with a live-usb: D
portanut try to 4good

Post has been editedWhiteWolfKF - 02.10.16, 08:12



Rep: (271)
WhiteWolfKF @ 02.10.2016, 08:11*
Well, I do arrange dances with a tambourine with a live-usb

And dancing with a tambourine on a live-usb why? You can do with a stick in the second to put ubuntu and standards will
And further:
WhiteWolfKF @ 30.09.2016, 07:31*
with debianom of linuksyatskih netbook

And for some reason he does not fit? On top of Debian or ubuntu put in a chroot to drive and also will be okay

Post has been editedutkabobr - 07.10.16, 18:14



Rep: (0)
It is perhaps appropriate. Put Ubuntu on a laptop - it is to me even download the source code has not given without dances with a tambourine. Time to fight there on the weekends



Rep: (6)
Toli something I do not understand toli Ubuntu Touch initially runs through the ass. It is not sewn to the section system, created system.img, who throws in the / data and is mounted in the / cache / system. Before flashing the best format partitions cache and data.
It turns out that section system does not need - it is possible to remove and increase the profile data.
I'll try to edit a bit ramdisk,delete / systemand pour system.img to the section data. Somehow delusional, it looks,you should try to run this infernal machine on vm

Post has been editedPashkanin - 21.10.16, 19:28



Rep: (0)
and what the pros have ubuntu touch compared to CM13: blush:
and even boot source ubuntu touch such an error
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 'pavelmine @ pvelmine (none).')

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

Post has been editedpavelmine - 23.10.16, 12:41



Rep: (998)
* pavelmine,
The fact that it is a full-fledged Linux

Post has been editedsylar156 - 23.10.16, 16:39



Rep: (0)
* sylar156 And what to do with the error is an error due to the fact that the smartphone is used as a wifi module since I lost wifi module

Post has been editedpavelmine - 24.10.16, 08:30



Rep: (6)
* pavelmine,
compared to an android, no java-machine and a completeUbuntuoperating system.
git config --global user.name "John Doe"
git config --global user.email [email protected]

Naturally, you want to insert your username and soap


c apparmor anyone understood? In off a whole bunch of scribbling instructions about it, and, in fact, you just need to copy the security / apparmor in your kernel from the kernel with the same version of the source UT

Post has been editedPashkanin - 25.10.16, 12:40



Rep: (109)
Someone could make OSes Working under the instruction?



Rep: (0)
* Pashkanin Where to insert the name and email: blush:



Rep: (6)
* pavelmine,
o.O
git config --global user.name $ USER
git config --global user.email $USER'@'$HOSTNAME'.com '

# In your case, it is better to do it this way:
touch /home/$USER/.gitconfig
echo '[user]'>/home/$USER/.gitconfig
echo 'name =' $ USER>/home/$USER/.gitconfig
echo 'email =' $USER'@'$HOSTNAME'.com '>/home/$USER/.gitconfig

anywhere: drag:
I recommend to studyhttp://forum.ubuntu.ru/index.php?board=67.0

Post has been editedPashkanin - 25.10.16, 19:37



Rep: (0)
Maybe a silly question, in this do not understand. There are slow bodies - fly iq440, whether it makes sense to try. manufacturer posted the source code a ...



Rep: (6)
* kurenchuk,
Android 4.4.x (KitKat) / 5.x.x (Lollipop) / 6.x.x (Marshmallow) kernel build for MTK processors
first try to collect the AOSP 4.4, MTK - filth that still, then examine your drivers
https: //android.google...orm/hardware/mediatek/
https: //code-review.ph...form/hardware/mediatek
and finally,
https: //android.google...tek/+/android-4.4.4_r5

Post has been editedPashkanin - 26.10.16, 00:19



Rep: (998)
gathered ubuntu on nothing happens on the screen, the adb running, I can even apt to call through it in the dock write need to write your udev file, to the wood picked up by from the android, the rest of the off the docks I did, apparmor was also ported to the nucleus in the output will try to cut further, although probably will be easier kupitt ubuntofon

Post has been editedsylar156 - 27.10.16, 08:17



Rep: (323)
I understand, arm64 support not added and are not going?



Rep: (998)
* a_swed,
It has long been added, read attentively docks

Post has been editedsylar156 - 05.12.16, 12:20


Full version    

Help     rules

Time is now: 25/11/19 11:24