Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Ubuntu Touch - Utopic][PORT][27-12-2014] Ubuntu Touch for falcon

OP h2o64

Announcement from h2o64: Port of Ubuntu Touch 14.10 on Motorola Moto G
18th July 2014, 06:46 PM   |  #1  
h2o64's Avatar
OP Senior Member
Flag Paris
Thanks Meter: 896
 
847 posts
Join Date:Joined: Aug 2012
Donate to Me
More

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 CAN BRICK YOUR DEVICE FOREVER !!! I AM NOT RESPONSIBLE

Thsi thread is discontinnued for now. Please don't close it, because other may can follow my way and achieve to make it working. Personnally, I just don't enjoy working on Ubuntu Touch anymore. The porting community is too much incomplete in my mind. Nobody port it ..

Download the .img

HERE
It may work on every variant : retail (XT1031, XT1032, XT1033 and XT1034) and Google Play Edition (XT1032).

Developers section

Want to build it ? check this out !
I've rebase everything for the vivid update
TODO :
Code:
- rework /buid : DONE
- device tree : DONE
- kernel defconfig : DONE
- device_perm on system/core : DONE
- patch hardware/qcom : DONE
- system/core MSM compatibily
- frameworks
How to install ?
1. Download images
Please download the four files linked above.

2. Flashing
You need to use Ubuntu 14.04 AND to have an unlocked device
It's basicly a fastboot flashing.. So it's easly possible on Windows but I don't know how to do.. Sorry
That's only flashable on Ubuntu/Linux because the rootstock software (flashing tool) doesn't exist on Windows OS
Install adb and fastbbot
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.

2. A Setting ADB

Enable USB debugging
It's in Settings > Developer options.
NOTE : Developer options is hidden by default. To make it available, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options.

Setup your system
If you're developing on Windows, you need to install a USB driver for adb. For an installation guide and links to OEM drivers, see the OEM USB Drivers document.
If you're developing on Ubuntu Linux, you need to add a udev rules file that contains a USB configuration for each type of device you want to use for development.
To set up device detection on Ubuntu Linux:
Log in as root and create this file: /etc/udev/rules.d/51-android.rules.
Code:
 $ sudo (or gksudo for graphic desktop) gedit (or nano)
And put this
Code:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0502", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0b05", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="413c", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0489", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04c5", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04c5", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="091e", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="201E", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="109b", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="8087", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="24e3", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2116", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0482", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="17ef", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1004", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0e8d", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0409", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2080", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0955", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2257", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="10a9", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1d4d", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0471", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04da", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="05c6", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1f53", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04dd", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="054c", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2340", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0930", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="19d2", MODE="0666"


Now execute:
Code:
$ sudo chmod a+r /etc/udev/rules.d/51-android.rules
$ sudo chmod 644   /etc/udev/rules.d/51-android.rules (This command is optionnal, except if the rootstock flashing won't work
$ sudo chown root. /etc/udev/rules.d/51-android.rules  (This command is optionnal, except if the rootstock flashing won't work
$ sudo service udev restart
$ sudo killall adb
And test if
Code:
$ adb devices
return something.


In a terminal (before doing this, make sure you made a NANDROID backup, and copy them on your computer BECAUSE THAT FORMAT YOUR INTERNAL SDCARD / OR USE OTG PERIPHERAL ^^):
Code:
cd /pathtomydirectory/
bzr branch  lp:project-rootstock-ng
adb reboot bootloader
(WAIT 2/3 minutes - Waiting for the bootloader menu)
sudo fastboot erase recovery
sudo fastboot erase boot
sudo fastboot flash boot boot.img
Here you have many posibilities. You can use whatever recovery you want (because Ubuntu's recovery must be installed only for upgrading things)

Recoveries :

-> TWRP 2.6.3.3
Code:
wget http://loki.rombitch.com/Devs/Dhacker29/MotoG/TWRP-2.6.3.3-falcon.img
sudo fastboot flash recovery TWRP-2.6.3.3-falcon.img
or

-> CWM 6.0.4.7
Code:
wget http://download2.clockworkmod.com/recoveries/recovery-clockwork-6.0.4.7-falcon.img
sudo fastboot flash recovery recovery-clockwork-6.0.4.7-falcon.img
or

-> TWRP 2.7.1.1-EXP
Code:
wget http://fs1.d-h.st/download/00131/xOP/TWRP_2.7.1.1-XPE.img
sudo fastboot flash recovery TWRP_2.7.1.1-XPE.img
or

--> Ubuntu Touch recovery (may help if it has bugs)
Code:
sudo fastboot flash recovery recovery.img


The next command take a while :
Code:
wget http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/current/vivid-preinstalled-touch-armhf.tar.gz
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 vivid-preinstalled-touch-armhf.tar.gz system.img
3. Here we are ! Device flashed !

DEBUGGING

I made changes on the kernel to be more easy debugable.
How to do ?
The interessting file is /proc/kmsg
So boot in Ubuntu Touch (bootloop is normal).
And now go into recovery mode.
Using adb do
Code:
adb shell "cat /proc/last_kmsg" >> log_2014XXXX_yourusername-ROMNAME
And send me them in the answering process.
(PS : send me one with your actual booting ROM ex=ROM=Paranoid please )

Thanks you

Quote:
Originally Posted by eagleofdeath13

Provide logs
While bootloop push vol down key until recovery start
Then : adb shell cat /proc/kmsg > kmsg
adb shell dmesg > dmesg


For this to work you need to have flashed the Ubuntu recovery


Quote:
Originally Posted by eagleofdeath13

Use twrp
Make backup
"Adb pull /sdcard/TWRP/"
Do your wipes (except internal memory)
Do all flashs :
-boot
-recovery
Go to recovery
./rootstock<you know what>
You're done.

To return to Android :
Boot to bootloader
Flash twrp
(If needed (shouldn't))Adb pull BACKUPS /sdcard/TWRP/
Then do all wipes then restore

Remember that's a community project
Thanks guyw


XDA:DevDB Information
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 2014-12-27
The Following 44 Users Say Thank You to h2o64 For This Useful Post: [ View ]
18th July 2014, 07:11 PM   |  #2  
fermasia's Avatar
Senior Member
Flag Buenos Aires
Thanks Meter: 761
 
694 posts
Join Date:Joined: Mar 2013
More
Can you provide a bit more info about the project? Where are these img taken from? Have you compiled them yourself?
18th July 2014, 07:20 PM   |  #3  
h2o64's Avatar
OP Senior Member
Flag Paris
Thanks Meter: 896
 
847 posts
Join Date:Joined: Aug 2012
Donate to Me
More
Quote:
Originally Posted by fermasia

Can you provide a bit more info about the project? Where are these img taken from? Have you compiled them yourself?

I've compiled everything in this thread. The img came from my outpout directory
yeshwanthvshenoy
18th July 2014, 07:51 PM   |  #4  
Guest
Thanks Meter: 0
 
n/a posts
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.
18th July 2014, 07:55 PM   |  #5  
h2o64's Avatar
OP Senior Member
Flag Paris
Thanks Meter: 896
 
847 posts
Join Date:Joined: Aug 2012
Donate to Me
More
Quote:
Originally Posted by yeshwanthvshenoy

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.

Thanks you !
18th July 2014, 08:12 PM   |  #6  
Semseddin's Avatar
Senior Member
Flag Istanbul
Thanks Meter: 368
 
1,339 posts
Join Date:Joined: Feb 2010
More
Appricate the work done here. Hope to get a stable release to try on my G. Thanks.
The Following User Says Thank You to Semseddin For This Useful Post: [ View ]
18th July 2014, 09:17 PM   |  #7  
K3VYNC's Avatar
Senior Member
Flag So Joo de Meriti
Thanks Meter: 171
 
701 posts
Join Date:Joined: Oct 2013
Does it work on dual SIM devices?

Sent from my Moto G using XDA Free mobile app
18th July 2014, 09:22 PM   |  #8  
h2o64's Avatar
OP Senior Member
Flag Paris
Thanks Meter: 896
 
847 posts
Join Date:Joined: Aug 2012
Donate to Me
More
Quote:
Originally Posted by K3VYNC

Does it work on dual SIM devices?

Sent from my Moto G using XDA Free mobile app

This is build with cm11 source in majority... So why not... But be careful!

Sent from my Moto G using XDA Free mobile app
The Following 2 Users Say Thank You to h2o64 For This Useful Post: [ View ]
18th July 2014, 09:34 PM   |  #9  
poran123's Avatar
Senior Member
Flag Shillong
Thanks Meter: 87
 
801 posts
Join Date:Joined: Aug 2012
More
so excited about this Project... hope it will boot

EDIT: I want to test but i'm not able to download, mega.co.nz is not working for me anymore
Last edited by poran123; 18th July 2014 at 09:37 PM.
18th July 2014, 09:59 PM   |  #10  
K3VYNC's Avatar
Senior Member
Flag So Joo de Meriti
Thanks Meter: 171
 
701 posts
Join Date:Joined: Oct 2013
Quote:
Originally Posted by h2o64

This is build with cm11 source in majority... So why not... But be careful!

Sent from my Moto G using XDA Free mobile app

Don't we need to flash "fastboot flash system system.img"? It's not in the OP

EDIT
Last edited by K3VYNC; 18th July 2014 at 10:03 PM.

The Following User Says Thank You to K3VYNC For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes