• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[WIP][Ubuntu Touch - Vivid][07-06-2015] Ubuntu Touch for falcon

Search This thread

h2o64

Senior Member
Aug 13, 2012
2,318
6,746
Paris
ubuntu_the_human_touch.jpg

Hi everybody,
I recently work on a port for Ubuntu Touch on android. And I achieve to build something

Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards, thermonuclear war, 
* or you getting fired because the alarm app failed. Please do some research 
* if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
WARNING : This ROM is a "Work In Progress" : this ROM is experimental, flash it only if you know what you are doing

Downloads

UPDATE : Working (building) on a new build.... With a bunch of new stuff...
SPOIL : A piece of spoil if you wanna know what I'm up to ... https://github.com/ubuntu-touchCAF/...mmit/7647e187ac2994c81e59f3ba7ea0a96859f3483e

So what's up ?
Hre is a new build. But it's not the build I annnonced. Let me explain you.

Why this isn't the right build ?

I'm currently working on a rebased Ubuntu Touch (rebased on CAF wasn't has good as I thought). The "non-AOSP"/"Important" patches are made and applied. Sources are up-to-date. BUT there still is an issue : to do this a clean way, I need to update Ubuntu Touch from android-4.4.2_r1 to android-4.4.4_r2 and this take a very very very long time indeed (downloading files, merging the updates, ...). So I decided to do other stuff while the sources are downloading.

So.... What did you throw here ?

As I said many times, there aren't any developpers working on porting Ubuntu Touch there. But I found one a while ago wich his working on the OnePlus One and get it """working""" (thread here). And now that I have a bit of time, I decided to adapt his sources to Moto G. @mariogrip actually made everything work except RIL, Camera and bluetooth : it's not a daily driver at all.
But I didn't choose to follow his way earlier for a good reason : he didn't made such a clean job. Sources are dirty, commits are wrongly looking, device tree is wierd, he uses way too much AOSP, ... But I entirely respect him because he did the work I couldn't achieve to do.
So I leave you with this build down bellow.

Downloads - Non-tested but may be interessting for enthusiasts

boot.img - 9.3 Mo
recovery.img - 8.4 Mo
system.img - 126.3 Mo
UbuntuTouch-falcon-installer.zip - 4 Ko

How to install this on your device ?
Flash on you device,
1. Download boot.img, recovery.img, system.img, UbuntuTouch-falcon-installer.zip and wily-preinstalled-touch-armhf.tar.gz
2. Reboot the device into fastboot mode
3. Flash boot.img using fastboot
Code:
fastboot flash boot boot.img
4. Boot the device back to recovery (I recommend twrp, but anything should work!)
5. Wait until adb has started (use "adb devices" to check if it has started)
6. Extract UbuntuTouch-falcon-installer.zip, remember to have the configs folder in the same folder as the script.
7. Flash ubuntu root system and system.img using rootstock installer
Code:
./MotoG-rootstock-installer wily-preinstalled-touch-armhf.tar.gz system.img
8. After that it may boot ubuntu.

Source : http://wiki.ubports.com/index.php/OnePlus_One

I think I'll get my official build until next Sunday. You can check out my sources if you want. I do my best.

Developpers Informations

The sources is now here : CAF Ubuntu Touch
You can build by yourself thanks to this tutorial

Flash
Do not forget to do a NANDROID backup before flashing anything.
You need to use Ubuntu AND a Motorola Moto G (2013) Unlocked
That's only flashable on Ubuntu/Linux because the rootstock software (flashing tool) doesn't exist on Windows OS
A - Install adb and fastboot

Code:
sudo apt-get install android-tools-adb android-tools-fastboot android-tools-fsutils bzr
Create a directory (here mydirectory) and put every img files in it.
Connect your device de the PC using an USB cable.

B - Download the requiered files
Downloads the images and download the preinstalled files from Ubuntu like this :
Code:
wget http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/current/wily-preinstalled-touch-armhf.tar.gz

C - Install the actual ROM
Now reboot in recovery mode (By volume - to "recovery" and then volume + to confirm)
Go into Wipe and format DATA & SYSTEM and cahce/dalvik cache..
Next use Advanced Wipe and format every choice indidualy.
Now (in the terminal)
Code:
$ ./project-rootstock-ng/rootstock-touch-install wily-preinstalled-touch-armhf.tar.gz system.img
The ROM is installed


Thanks you

Remember that's a community project ;)
Thanks guyw ;) :highfive:

ubuntu-touch-smartphones.jpeg

XDA:DevDB Information
[WIP] Ubuntu Touch Port on Falcon, ROM for the Moto G

Contributors
h2o64, h2o64
ROM OS Version: 4.4.x KitKat
ROM Kernel: Linux 3.4.x
Based On: AOSP & CyanogenMod

Version Information
Status: Testing

Created 2014-07-18
Last Updated 2015-06-07
 
Last edited:
Y

yeshwanthvshenoy

Guest
highly appreciated work. will try to build from monday. and yes u may need to link github to thread as u may violate GPL terms if thread doesnt have one.
 

K3VYNC

Senior Member
Oct 19, 2013
750
180
São João de Meriti
[email protected]:/home/k3vync/Downloads/Moto G/Archive-314b# ./project-rootstock-ng/rootstock-touch-install $ROOTFS system.img
please make sure the device is attched via USB in recovery mode
error: device not found

What should I do? it doesn't boot into recovery (Don't worry, I didn't brick my device, just flashed stock firmware now) @h2o64
 
Last edited:

h2o64

Senior Member
Aug 13, 2012
2,318
6,746
Paris
[email protected]:/home/k3vync/Downloads/Moto G/Archive-314b# ./project-rootstock-ng/rootstock-touch-install $ROOTFS system.img
please make sure the device is attched via USB in recovery mode
error: device not found

What should I do? it doesn't boot into recovery (Don't worry, I didn't brick my device, just flashed stock firmware now) @h2o64

I'll modify a little bit the tutorial.


EDIT : UPDATED

Sent from my Moto G using XDA Free mobile app
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 74
    ubuntu_the_human_touch.jpg

    Hi everybody,
    I recently work on a port for Ubuntu Touch on android. And I achieve to build something

    Code:
    #include <std_disclaimer.h>
    /*
    * Your warranty is now void.
    *
    * I am not responsible for bricked devices, dead SD cards, thermonuclear war, 
    * or you getting fired because the alarm app failed. Please do some research 
    * if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.
    */
    WARNING : This ROM is a "Work In Progress" : this ROM is experimental, flash it only if you know what you are doing

    Downloads

    UPDATE : Working (building) on a new build.... With a bunch of new stuff...
    SPOIL : A piece of spoil if you wanna know what I'm up to ... https://github.com/ubuntu-touchCAF/...mmit/7647e187ac2994c81e59f3ba7ea0a96859f3483e

    So what's up ?
    Hre is a new build. But it's not the build I annnonced. Let me explain you.

    Why this isn't the right build ?

    I'm currently working on a rebased Ubuntu Touch (rebased on CAF wasn't has good as I thought). The "non-AOSP"/"Important" patches are made and applied. Sources are up-to-date. BUT there still is an issue : to do this a clean way, I need to update Ubuntu Touch from android-4.4.2_r1 to android-4.4.4_r2 and this take a very very very long time indeed (downloading files, merging the updates, ...). So I decided to do other stuff while the sources are downloading.

    So.... What did you throw here ?

    As I said many times, there aren't any developpers working on porting Ubuntu Touch there. But I found one a while ago wich his working on the OnePlus One and get it """working""" (thread here). And now that I have a bit of time, I decided to adapt his sources to Moto G. @mariogrip actually made everything work except RIL, Camera and bluetooth : it's not a daily driver at all.
    But I didn't choose to follow his way earlier for a good reason : he didn't made such a clean job. Sources are dirty, commits are wrongly looking, device tree is wierd, he uses way too much AOSP, ... But I entirely respect him because he did the work I couldn't achieve to do.
    So I leave you with this build down bellow.

    Downloads - Non-tested but may be interessting for enthusiasts

    boot.img - 9.3 Mo
    recovery.img - 8.4 Mo
    system.img - 126.3 Mo
    UbuntuTouch-falcon-installer.zip - 4 Ko

    How to install this on your device ?
    Flash on you device,
    1. Download boot.img, recovery.img, system.img, UbuntuTouch-falcon-installer.zip and wily-preinstalled-touch-armhf.tar.gz
    2. Reboot the device into fastboot mode
    3. Flash boot.img using fastboot
    Code:
    fastboot flash boot boot.img
    4. Boot the device back to recovery (I recommend twrp, but anything should work!)
    5. Wait until adb has started (use "adb devices" to check if it has started)
    6. Extract UbuntuTouch-falcon-installer.zip, remember to have the configs folder in the same folder as the script.
    7. Flash ubuntu root system and system.img using rootstock installer
    Code:
    ./MotoG-rootstock-installer wily-preinstalled-touch-armhf.tar.gz system.img
    8. After that it may boot ubuntu.

    Source : http://wiki.ubports.com/index.php/OnePlus_One

    I think I'll get my official build until next Sunday. You can check out my sources if you want. I do my best.

    Developpers Informations

    The sources is now here : CAF Ubuntu Touch
    You can build by yourself thanks to this tutorial

    Flash
    Do not forget to do a NANDROID backup before flashing anything.
    You need to use Ubuntu AND a Motorola Moto G (2013) Unlocked
    That's only flashable on Ubuntu/Linux because the rootstock software (flashing tool) doesn't exist on Windows OS
    A - Install adb and fastboot

    Code:
    sudo apt-get install android-tools-adb android-tools-fastboot android-tools-fsutils bzr
    Create a directory (here mydirectory) and put every img files in it.
    Connect your device de the PC using an USB cable.

    B - Download the requiered files
    Downloads the images and download the preinstalled files from Ubuntu like this :
    Code:
    wget http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/current/wily-preinstalled-touch-armhf.tar.gz

    C - Install the actual ROM
    Now reboot in recovery mode (By volume - to "recovery" and then volume + to confirm)
    Go into Wipe and format DATA & SYSTEM and cahce/dalvik cache..
    Next use Advanced Wipe and format every choice indidualy.
    Now (in the terminal)
    Code:
    $ ./project-rootstock-ng/rootstock-touch-install wily-preinstalled-touch-armhf.tar.gz system.img
    The ROM is installed


    Thanks you

    Remember that's a community project ;)
    Thanks guyw ;) :highfive:

    ubuntu-touch-smartphones.jpeg

    XDA:DevDB Information
    [WIP] Ubuntu Touch Port on Falcon, ROM for the Moto G

    Contributors
    h2o64, h2o64
    ROM OS Version: 4.4.x KitKat
    ROM Kernel: Linux 3.4.x
    Based On: AOSP & CyanogenMod

    Version Information
    Status: Testing

    Created 2014-07-18
    Last Updated 2015-06-07
    18
    Add links

    UPDATE : Working (building) on a new build.... With a bunch of new stuff...
    SPOIL : A piece of spoil if you wanna know what I'm up to ... https://github.com/ubuntu-touchCAF/...mmit/7647e187ac2994c81e59f3ba7ea0a96859f3483e

    So what's up ?
    Hre is a new build. But it's not the build I annnonced. Let me explain you.

    Why this isn't the right build ?

    I'm currently working on a rebased Ubuntu Touch (rebased on CAF wasn't has good as I thought). The "non-AOSP"/"Important" patches are made and applied. Sources are up-to-date. BUT there still is an issue : to do this a clean way, I need to update Ubuntu Touch from android-4.4.2_r1 to android-4.4.4_r2 and this take a very very very long time indeed (downloading files, merging the updates, ...). So I decided to do other stuff while the sources are downloading.

    So.... What did you throw here ?

    As I said many times, there aren't any developpers working on porting Ubuntu Touch there. But I found one a while ago wich his working on the OnePlus One and get it """working""" (thread here). And now that I have a bit of time, I decided to adapt his sources to Moto G. @mariogrip actually made everything work except RIL, Camera and bluetooth : it's not a daily driver at all.
    But I didn't choose to follow his way earlier for a good reason : he didn't made such a clean job. Sources are dirty, commits are wrongly looking, device tree is wierd, he uses way too much AOSP, ... But I entirely respect him because he did the work I couldn't achieve to do.
    So I leave you with this build down bellow.

    Downloads - Non-tested but may be interessting for enthusiasts

    boot.img - 9.3 Mo
    recovery.img - 8.4 Mo
    system.img - 126.3 Mo
    UbuntuTouch-falcon-installer.zip - 4 Ko

    How to install this on your device ?
    Flash on you device,
    1. Download boot.img, recovery.img, system.img, UbuntuTouch-falcon-installer.zip and wily-preinstalled-touch-armhf.tar.gz
    2. Reboot the device into fastboot mode
    3. Flash boot.img using fastboot
    Code:
    fastboot flash boot boot.img
    4. Boot the device back to recovery (I recommend twrp, but anything should work!)
    5. Wait until adb has started (use "adb devices" to check if it has started)
    6. Extract UbuntuTouch-falcon-installer.zip, remember to have the configs folder in the same folder as the script.
    7. Flash ubuntu root system and system.img using rootstock installer
    Code:
    ./MotoG-rootstock-installer wily-preinstalled-touch-armhf.tar.gz system.img
    8. After that it may boot ubuntu.

    Source : http://wiki.ubports.com/index.php/OnePlus_One

    I think I'll get my official build until next Sunday. You can check out my sources if you want. I do my best.
    11
    Update !

    I am extremly near to boot : http://pastebin.com/EMaJCDnn
    8
    Tests and Results

    So !
    I finally tested the last build (the one wich is actually online + some apparmor 3 patches on kernel)
    And it didn't worked !
    I think we will have to hack the initrd script because he definitly causes problems.
    With f2fs userdata : http://pastebin.com/zgGhETJc
    With ext4 userdata : http://pastebin.com/8ihh4z4M

    I'll work on it. In background, as always.
    8
    I didn't work on it since a long time. I have to
    - support the new bootloader
    - adapt to the new initframs method (using an external repo)

    UPDATE : Working (building) on a new build.... With a bunch of new stuff...
    SPOIL : A piece of spoil if you wanna know what I'm up to ... https://github.com/ubuntu-touchCAF/...mmit/7647e187ac2994c81e59f3ba7ea0a96859f3483e