yashsingh1/xdaforums huggingface dataset:
[Moto G Android Development] h2o64:
ERROR

I tried to install UT on my falcon ... This install succefully ... Except there :

./rootstock-touch-install utopic-preinstalled-touch-armhf.tar.gz system.img
transfering rootfs tarball ... [done]
preparing system-image on device ... mount: mounting /data/system.img on /cache/system/ failed: No such file or directory
[done]
unpacking rootfs tarball to system-image ... tar: [B]write error: No space left on device
zcat: write: Broken pipe
mkdir: can't create directory '/cache/system/android/': No space left on device
mkdir: can't create directory '/cache/system/android/': No space left on device
mkdir: can't create directory '/cache/system/userdata': No space left on device[/B]
[done]
adding android system image to installation ...

Recovery : surprisingly FINE ! :laugh:

Boot : Stuck on the bootloader ...

Does anybody know how to see the log (from the bootloader) ?

Thanks you
[Moto G Android Development] andogeek10:
I may be wrong, but it seems that it is trying to install the system image in the /cache directory instead of the /system directory...
[Moto G Android Development] h2o64:
It's finally fine ^^

I used http://cdimage.ubuntu.com/ubuntu-to...ending/utopic-preinstalled-touch-armhf.tar.gz and I format system/boot/recovery/userdata with sudo fastboot erase but it's still not booting !
[Moto G Android Development] K3VYNC:
You're doing a good job, hopefully we'll see Ubuntu 14.10 booting on our Moto G.

Keep it up! :)
[Moto G Android Development] corey unknown:
THANKS

From the pics the build looks great,only new to sdk, compiling etc..and look forward to building img tonight, first time since i had a hd2 :cool::good:
[Moto G Android Development] Itachitops:
I want to test

Anyone knows if the is working on Moto G Dual-SIM?
[Moto G Android Development] DustArma:
So far this isn't working on any of the Moto G models.
[Moto G Android Development] h2o64:
ADB of stock

Hi everybody !

I need you to give me the result of a command on the stock ROM or whatever (booting) ROM except Ubuntu Touch..

Boot in recovery, connect the device on your computer (wich have an ADB setup) and open a terminal on your computer :

adb devices [B]#To test ADB connection ^^ [COLOR="Red"]OPTIONNAL[/COLOR][/B]
adb shell
$[B] ls[/B]

And put me the results of the last command here.

I think I've include wrong Android.mk file and my root device is full of useless *.rc

Thanks you !
[Moto G Android Development] eagleofdeath13:
Here you are :

If you need anything else ;)

(i'm on stock latest KK)
[Moto G Android Development] h2o64:
Thank you VERY MUCH [MENTION=3332479]eagleofdeath13[/MENTION] !!!!

Thats mean the init's file are in place !!!

I think I found why that's won't boot... I test that in the afternoon !
[Moto G Android Development] eagleofdeath13:
Yeah!

When this will boot, the interesting work will come :D

(Or the fully working thing, but that's pretty impossible XD)
[Moto G Android Development] h2o64:
UPDATE

Yeah ! :D

UPDATE : HUGE TUTORIAL UPDATE ABOUT FLASHING AND UNBRICKING POSSIBLY
[Moto G Android Development] eagleofdeath13:
2 off topic things :

On Ubuntu you don't need to add devices info to let adb see it (useless here)

And to avoid bad flashing, you can use fastboot boot <your-img.img> to bypass the boot erasing/flashing/breaking while writing it. You need the computer to boot like that, but it's safer ;)
[Moto G Android Development] h2o64:
Thank you very much !

But I don't understand the fastboot

boot

option. It's to boot quicker on recovery.img ? Or it's flashing cleaner .img ?

:p
[Moto G Android Development] Manizuca:
As the name says, the command lets you boot a img. You can boot a recovery or a kernel img, so you can see if the kernel or recovery boots without flashing it
[Moto G Android Development] eagleofdeath13:
And, this way, not risking a brick ;)

Have you tried to boot your build? Any results? :D
[Moto G Android Development] h2o64:
Not booting but I have discovered I forget a lot of files (vendors file / Android.mk init in /device/Motorola/, etc etc...)
[Moto G Android Development] haky 86:
I got installation done over twrp and adb worked...but boot still doesn't startup and I think we should isolate android with lxc that i'm sure you did it, and I got adb work after add commit like this

https://github.com/hak86/android_ke...mmit/ba7a85838f66b3226866a4a88c42efcaf7f1432f

TARGET_KERNEL_UBUNTU := true

TARGET_KERNEL_UBUNTU_META := linux-image-generic

TARGET_KERNEL_UBUNTU_SERIES := vivid

These flags are needed to generate the linux-image-generic.deb kernel package, I hope this help you :)
[Moto G Android Development] lolsinnerlol:
hey dev great work here........but i am a little jealous of falcon owners as they have ubuntu and titan owners dont. [MENTION=4792450]h2o64[/MENTION] it possible for you to make it compatible with titan as well please:fingers-crossed::angel:
[Moto G Android Development] h2o64:
This rom doesn't boot yet. So there isn't much point in doing that.

Btw, I'm looking into multirom to maybe fix initframs
[Moto G Android Development] lolsinnerlol:
Looking forward to it.....??

Sent from my Moto G 2014
[Moto G Android Development] parkerlreed:
Is there any update on being able to run Ubuntu touch? I've tried the flashing instructions a few different times but it never actually boots.
[Moto G Android Development] h2o64:
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)
[Moto G Android Development] h2o64:
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
[Moto G Android Development] h2o64:
Add links

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. [MENTION=6316988]mariogrip[/MENTION] 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

I think I'll get my official build until next Sunday. You can check out my sources if you want. I do my best.
[Moto G Android Development] methuselah:
You make me feel uncomfortable sometime LOL

Thanx for keeping us informed with the progress
[Moto G Android Development] Brawn_Sg:
official build that will be booting ?
[Moto G Android Development] h2o64:
Maybe.

Progress update : I got the diff log between the 2 android versions :)
[Moto G Android Development] virajmalia:
Does the unofficial build you recently released work?
[Moto G Android Development] Brawn_Sg:
[MENTION=4792450]h2o64[/MENTION]

i didnt had hopes wid u that u may get this os booting

but now i can say u have increased my hopes for this project all because of u

nice work mate

now i really see that utouch will come very soon to our falcon

btw i just tested ur latest recovery

it was working

btw did someone tested ur latest system.img and boot.img ?

did they boot ?
[Moto G Android Development] h2o64:
I'll test my latest "dirty" build in a few hours (because I'm free for a long time).

I'm building the proper version (I'm currently updating CWM Ubuntu Recovery to the latest CWM KitKat available)
[Moto G Android Development] Brawn_Sg:
one thing can i ask

eta?

:P

will wait for ur response

wish ur dirty build boots

btw if ubuntu boots then cant we approach for sailfish os ?
[Moto G Android Development] h2o64:
I'm updating functions, fixing build, merging 4.4.4, ...

Does SailFish OS has sources available somewhere ?

UPDATE : New build built. Should I test it before uploading ? (If yes, you'll might wait until tomorrow)
[Moto G Android Development] gigitux:
I hope in your work

http://releases.sailfishos.org/sfe/SailfishOS-HardwareAdaptationDevelopmentKit-1.0.3.0.pdf

Sailfish OS is more cool than Ubuntu Touch ;)
[Moto G Android Development] Rocketval:
Yes, Sailfich could be great on our device :fingers-crossed:
[Moto G Android Development] virajmalia:
Keep uploading and test side by side. If it works, let it upload. If it doesnt work cancel the upload. :D
[Moto G Android Development] LuK1337:
I adjusted your sources for TItan but here it's stuck at bootloader logo without ADB (I built with full_titan-eng).
[Moto G Android Development] h2o64:
I made modifications just 10 minutes ago ...

I need to re-implement my flag to modify the ubuntu-root directory (initrd) because I may need to recover the old-flipped method
[Moto G Android Development] LuK1337:
Cool, will build after you push them :3
[Moto G Android Development] h2o64:
Here they are :

build/ https://github.com/ubuntu-touchCAF/android_build/commit/b0b0748f472c18a0dead6f925df344d6acc50764

device/motorola/msm8226-common/ : https://github.com/ubuntu-touchCAF/...mmit/dc82348195b9405a5d73d1187e568dfdb19d41d5

Remenber to re-sync everything propertly. And here is my local_manifest

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

<!-- Falcon Trees -->
<project name="ubuntu-touchCAF/android_device_motorola_falcon" path="device/motorola/falcon" remote="github" revision="ubuntu-touch" />
<project name="ubuntu-touchCAF/android_device_motorola_msm8226-common" path="device/motorola/msm8226-common" remote="github" revision="ubuntu-touch" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-11.0" />
<project name="ubuntu-touchCAF/android_kernel_motorola_msm8226" path="kernel/motorola/msm8226" remote="github" revision="ubuntu-touch_KK" />
<project name="ubuntu-touchCAF/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="ubuntu-touch_OLD" />

</manifest>
[Moto G Android Development] LuK1337:
K, I'm using my forked repos: https://bitbucket.org/utouch-titan

EDIT: still stuck on logo without ADB.
[Moto G Android Development] h2o64:
Take logs and see.

How did you flash the thing ?

EDIT : I have changes ideas in my mind. I'll apply them as soon as I can
[Moto G Android Development] LuK1337:
>Take logs and see.

>>How? There's no ADB

>How did you flash the thing?

>>I flashed it using script from one of your latest posts.
[Moto G Android Development] h2o64:
By going into the recovery and getting the last_ksmg

PS : Test what's writen at the bottom of the page https://developer.ubuntu.com/en/start/ubuntu-for-devices/porting-new-device/

Fine (it contains a adb fix try)
[Moto G Android Development] LuK1337:
>By going into the recovery and getting the last_ksmg

>>There's no /proc/last_kmsg

>PS : Test what's writen at the bottom of the page https://developer.ubuntu.com/en/start/ubuntu-for-devices/porting-new-device/

>>I tried but it doesn't work (to do that I mounted /data/system.img, pushed adbd and fixed perms).
[Moto G Android Development] h2o64:
hmmm ... I'll see what I can come up with
[Moto G Android Development] Brawn_Sg:
[MENTION=4792450]h2o64[/MENTION]

whats d upload status
[Moto G Android Development] h2o64:
It's uploaded but un-tested https://mega.co.nz/#F!51c3HTrL!tsDjvoRICS6dm6sXNaIvmw
[Moto G Android Development] h2o64:
I personnally can get a log using the recovery (TWRP) : http://pastebin.com/0hUcre6j

ADB Error :

[ 6.294884,2] init: Failed to spawn adbd main process: unable to execute: No such file or directory

hmmm

EDIT :

Last log : http://pastebin.com/aqYQF7Fd
[Moto G Android Development] h2o64:
Update !

I am extremly near to boot : http://pastebin.com/EMaJCDnn
[Moto G Android Development] virajmalia:
The log does not have any warnings or errors.

Does that mean the ROM boots?
[Moto G Android Development] s32ialx:
Will this if it boots only work on falcon only or will xt1040 peregrine also work? or will it be able to be migrated to peregrine?
[Moto G Android Development] sub77:
this looks really fine. whats about line 781:

crash partition in use!

could you figure out which one?

do you have converted data part. to ext4

and have you tried to use a minimal fstab?

please hold on and get the **** booting.
[Moto G Android Development] h2o64:
I fixed the crash since then by force reset the console.

However the rom still not boot.

I got in touch with some Ubuntu devs.

PS : I'm in exam period for a week still

Envoyé de mon Moto G en utilisant Tapatalk
[Moto G Android Development] wskelly:
[MENTION=4792450]h2o64[/MENTION], can you explain the difference between the "kitkat" bootloader and the "lollipop" bootloader? What is the difference in boot process for both?

I am running CM12.1 (LP) with the KK bootloader (0x4113) against the asserts in the CM12.1 install script which require a newer bootloader.

Since you guys are trying to boot Ubuntu and are having issues with one bootloader versus the other, I am wondering if you guys know what the difference between the KK bootloader and the LP bootloader are from a purely technical standpoint.

The bootloader should not care about KK or LP or Ubuntu or Firefox OS, so I want to understand what is going on...?
[Moto G Android Development] h2o64:
The bootloader isn't a problem for us. We use the Kitkat kernel on Ubuntu Touch.

Lollipop bootloader provide optimization for the Quickdraw MDSS module and the MMC card management

Envoyé de mon Moto G en utilisant Tapatalk
[Moto G Android Development] wskelly:
Thanks [MENTION=4792450]h2o64[/MENTION], this is the best answer I've gotten so far after months of beating this topic in the CM12.1 main thread. Since the bootloader is a black box to all of us, can you tell me how it is providing that optimization? Is it doing some hardware init that the kernel can't do? I notice a screen refresh rate or sync issue running LP with the 4113 BL (KK), where there is a noticeable "flicker" during the first boot, but this goes away after the first screen power cycle.

So the background is that I'm using the 4113 BL and booting and running Cm12.1 for months on my Falcon 1st gen with no issues. There are asserts in the install script that reject this BL which I have to circumvent on each flash, and I believe these lines to be a major reason for so many "bricked Moto G" threads, as users will seek to update the BL and then flash the wrong one, or try to later downgrade the BL, etc. Yet the devs refuse to remove them, maybe for good reason, but no good technical reason has been given.

Sorry to hijack the thread here, I am now obsessed with this bootloader topic.

I'm also watching with great interest your progress on Ubuntu for the Moto G!
[Moto G Android Development] h2o64:
Optimization aren't really the term. The interesting part (at least what's interest us) is that it has a bunch of variables given in order to be read by our kernel. So for example, the lollipop kernel brought the Quickdraw MDSS Driver. This directly communicate with the bootloader to get a fast communication between the hardware and the software.

What happened when you use the KK bootloader with LP kernel?

The dts values set for the LP bootloader doesn't correspond to the actual bootloader. Refresh and various other rates aren't rightly set. That's why you have this strange screen flickering issue

Envoyé de mon Moto G en utilisant Tapatalk
[Moto G Android Development] wskelly:
When I use the KK bootloader and LP kernel... Nothing bad happens except the flicker/screen issue on the first boot, which goes away. I have been using the latest 12.1 nightlies (LP kernel) with the KK bootloader for a long time, no noticeable issue.

So you say with the KK bootloader, the LP kernel probably cannot enable the Quickdraw MDSS function? Is there a way I could check this, a value in /proc or so?

And regarding the dts values... This is what I suspected, a change in the bootloader that was compensated in the kernel... So this flicker could be easily fixed on the kernel side. The kernel could just look for the bootloader version (which is passed as a kernel argument) and alter the dts settings for the bootloader used...

What I'm wondering is if there is any other difference between the KK bootloader and the LP bootloader... Sounds like this MDSS thing, but like I said, I am using KK bootloader and LP kernel without issues... It would be interesting for me to check somehow if MDSS Quickdraw is functional?

Thank you, finally some answers!! ☺
[Moto G Android Development] reeeju:
Can u made it for titan? Xt1068
[Moto G Android Development] Barrel-rider:
Forgive me theses questions have been asked already, 63 pages is a lot to peruse through and the search didn't give me any straight answers. Does this support Multiboot, and can TWRP backup and restore this rom? Also, it is possible to revert back to android right? I don't see a reason why it wouldn't be able to go back, so long as you can use a recovery to wipe the system or restore an android backup. But I figure it'd be best to ask before trying for myself.
[Moto G Android Development] h2o64:
The rom doesn't boot.

Multirom won't be possible

TWRP backup and restore should be doable
[Moto G Android Development] Xacky:
The download link to download boot.img Mega says it's nog longer avaible. Will you look at it?
[Moto G Android Development] h2o64:
The latest latest build aren't uploaded. Those ones are just very outdated. I'll upload a new build tomorrow maybe.
[Moto G Android Development] gabreek:
not booting ? i'll love if this rom really came out
[Moto G Android Development] nuange:
Hi ! congratulations for your hard work! I wanted to know if your port run the OTA 4? and could you update your first post which seems outdated? because I'd like to know if it can be working for a daily use :) thank you!
[Moto G Android Development] luan176:
Good morning, this ROM is still missing RIL support? Or the new builds are OK?

Enviado de meu XT1033 usando Tapatalk
[Moto G Android Development] h2o64:
It's actually missing boot too
[Moto G Android Development] luan176:
Keep the good work! [emoji2]

Enviado de meu XT1033 usando Tapatalk
[Moto G Android Development] T4t4nk4881988:
why this port is so difficult?
[Moto G Android Development] h2o64:
Because it's aosp. Nexus AOSP.
[Moto G Android Development] sub77:
have a look at the oneplus one port, its msm8974 but its very similar to our 8226 soc.
[Moto G Android Development] h2o64:
I know I know I talked to the dev already.

But bacon is AOSP friendly ^^ (omnirom)
[Moto G Android Development] haky 86:
after found the port of pawitp of galaxy s, i check the package to see which file make the rom boot, so i found this file libubuntu_application_api.so, well after google it, seems create a sort of "bridge" between android system.img and ubuntu touch tar.gz archive, so in my opinion take it from my tree should be "generic" for all devices and make sure to put in system/lib, i try that but compilation didn't done due to issues on system host..i hope that step help you :)
[Moto G Android Development] h2o64:
I made a lot of progress today (lxc and multisim). Check out my sources
[Moto G Android Development] eagleofdeath13:
LXC being a big brick of UT, that means really good for a running ROM, no?
[Moto G Android Development] Eurofighter_ty:
You get the RIL or camera working ?
[Moto G Android Development] eagleofdeath13:
Before seeing that, i think it's better to have a booting ROM ;)
[Moto G Android Development] Eurofighter_ty:
ok, I didn't know that is not booting.
[Moto G Android Development] cesarguaro:
I hope we have a booting and functionally rom soon :) thank for the hard work
[Moto G Android Development] J0SH1X:
Once i flashed this to my old device i stuck at motorola splash screen but after a few minutes i could hear my phone making tik sounds and tried a screenshot it made the screenshot sound so there is a system running isnt it
[Moto G Android Development] h2o64:
Yes. After all, I think bootlogo is just a graphical glitch

Envoyé de mon Moto G en utilisant Tapatalk
[Moto G Android Development] layman806:
Did you get it to boot correctly now?
[Moto G Android Development] nuange:
Hey would u base it on the OTA6 when you will bring the phone to boot? And I like your hard work continue like this!

Envoyé depuis mon moto G en utilisation l'app XDA Free mobile app
[Moto G Android Development] Quentinga:
And what's about Plasma Mobile =P

, I read it's a ubuntu touch based os ?
[Moto G Android Development] eagleofdeath13:
First, a booting Ubuntu Touch would be nice, don't you think?
[Moto G Android Development] h2o64:
KDE needs Ubuntu anyway ^^
[Moto G Android Development] eagleofdeath13:
So, the priority is : having Ubuntu Touch :)
[Moto G Android Development] eagleofdeath13:
A good news, my Moto G is back home, so, if you want to send the files, i'll try it ;)
[Moto G Android Development] douglasbrito1:
ubuntu work titan motog dtv xt1069 ?
[Moto G Android Development] eagleofdeath13:
Any news? If you have a build i can flash, i'll do the tests ;)
[Moto G Android Development] espaciox99:
Link boot.img down... I can install this ROM with multirom? Sorry my english

Enviado desde mi Moto G mediante Tapatalk
[Moto G Android Development] h2o64:
Here are some goodies : http://91.121.110.67/h2o64/Ubuntu_Touch/falcon/

UPDATE: Also I just saw that Ubuntu Touch is now 5.1.1 based
[Moto G Android Development] SH1M4BD3:
How to flash that newer, fastboot method?? Any spesiffuc changelog
[Moto G Android Development] h2o64:
Explainations in OP. It will wipe your whole device. (Don't flash recovery)

I maybe the changes along the past 5 months I don't really remenber of each.
[Moto G Android Development] ale467:
Can I flash it with MultiROM or not?
[Moto G Android Development] eagleofdeath13:
Fastboot flashing is the only "supported" one (the developer will only accept logs done this way.)

---------- Post added at 12:34 AM ---------- Previous post was at 12:34 AM ----------

Link is down, normal?
[Moto G Android Development] sub77:
i will try to make a mrom installer.
[Moto G Android Development] espaciox99:
Pls :c

Enviado desde mi Moto G mediante Tapatalk
[Moto G Android Development] h2o64:
I updated the server... You can access it through the paradox thread
[Moto G Android Development] STR4NG3R-GUY:
how can install it? :c i cant understand , say i need flash wipe all partitions , and download the adb and fastboot drivers for ubuntu ...

wget http://cdimage.ubuntu.com/ubuntu-to.../current/wily-preinstalled-touch-armhf.tar.gz

but this link of script isnt available , how can install all of the rest partitions (system.img) and the ramdisk if i dont have that script or this isnt necesary?

good day guys , if some one can teach me i really hope with it
[Moto G Android Development] eagleofdeath13:
Still 404. Which Paradox Thread?
[Moto G Android Development] reversegear:
Here is the Link
[Moto G Android Development] eagleofdeath13:
Oh, thanks! :D Will try to flash this and come back with logs :D