yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] Darkshado:
[MENTION=4451050]USCanthony[/MENTION] I've spent a bit of time over on Freenode talking with a few TWRP/Omni devs, I think everyone over there is aware that we're dealing with two different devices, and their feedback is that it should be relatively easy to cater to both falcon and peregrine from common trees once our device is brought up.

[MENTION=4804571]eteles[/MENTION] I am very much interested in solving this as well, but I'm navigating uncharted waters so don't expect it to be quick or easy.

Supporting a large number of devices is difficult, more so if you don't have all the devs on your team with ready access to one exemplar. Given the volunteer/community nature of FOSS projects like Omni, CM and TWRP, you need people with the technical skills, resources, time and devices to pull this off for every single device out there.
[Moto G 4G Android Development] eteles:
I have asked another developer with some experience with TWRP to take a look at the code if he can and has the time...

Let's see if he can help... One problem: he doesn't have the phone...
[Moto G 4G Android Development] eteles:
[MENTION=3966540]Darkshado[/MENTION]

Here's the answer from the developer I talked about (@SciBee)... Hope it helps getting the external SD to mount correctly without PC booting:

"Tried to put my answer directly to XDA but as I did not post >10 BlaBla posts in the BlaBla section I was not allowed to do so :mad:

However - I suggest to change a line in his twrp.fstab file from

/sdcard1 auto /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="microSD card";storage;wipeingui;removable

into

/sdcard1 vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="microSD card";storage;wipeingui;removable

maybe the auto detection of the filesystem fails when booting off the internal ROM.

It's a little strange that this works if booted via fastboot :confused:

There also is a USB-OTG entry. Did you try to run the backup to a USB Stick connected to OTG - if the phone supports OTG at all?

And, what people also miss some times - you have to select the storage in TWRP before you run the backup.

Regards"
[Moto G 4G Android Development] Darkshado:
I had initially put the SD card as auto, and while I haven't had the time to try it again as vfat, the Moto E's (condor) TWRP build has the external listed as vfat in its fstab.twrp.

The phone supports OTG, that's a known fact. (And I've got an adapter to test as needed.)

I know how to change storage in TWRP, the entries are visible, but listed as 0MB and selecting them does nothing useful.

If it isn't as trivial as changing the "auto" to "vfat" then I don't really know what to make of this, it would imply the issue is somewhere in the kernel or device tree blob code.
[Moto G 4G Android Development] eteles:
I´ve passed this info to him... I´ve confirmed USB OTG is working inside recovery too, but only when booting from PC, like the external SD...

Would you change auto to vfat and see what happens, please? It´s the only thing we can do right now?

thanks

EDIT: I've done some commands in the terminal and showed the logs to Scibee... He said the only thing there's being detected is the internal nand, so there's no way for TWRP to mount it like this... In the other hand, he has no idea why everything works when booting from PC using fastboot...

This is a real mystery...... We need some quite experienced developers here...
[Moto G 4G Android Development] NWKENT:
See your PM's..

sent by my

5.0_22.11.6 Lollipop (Rooted)

TWRP v2.8.0.1-titan

UPDATE-SuperSU-v2.16

XT1064 Moto G (2nd Gen.)

http://waynekent.com/page6.html

"Praise Jah" YOU people.!
[Moto G 4G Android Development] cuttero:
Hi there!

I've tested yesterday all the recoverys I found here. (first from fastboot with "fastboot boot xx.img)

The best results I got with the TWRP 2.8 (found on post 160). I think (hope), that it worked (I came from stock rom).

Now I flashed TWRP 2.8, my question: Is it normal, that TWRP boots sooooo long?! I think, it needs about 3-4 minutes to come from bootscreen to the workscreen..?!

And.. Is there maybe a better working recovery out there for (in my case) XT1039 (now on CM12)?

Thanks for your answers..
[Moto G 4G Android Development] ChriKn:
Is there anything new about the newest TWRP releases ? Such a shame the 4G version is so different from Falcon :(
[Moto G 4G Android Development] stephtban:
You can have a look to Somcom3x's Experimental Corner http://xdaforums.com/moto-g/4g-development/collection-somcom3xs-experimental-corner-t2996266

TWRP 2.8.3.0 works flawlessly.
[Moto G 4G Android Development] ChriKn:
Thank you so much ! Going to try it ASAP !

Merci ;)
[Moto G 4G Android Development] spiritflare:
can't recognize external SD

Hi

I flash this version of TWRP on my Moto G LTE (XT1040) - but it doesn't see the SD card. I try to Mount it from TWRP, and it shows MicroSD in the list, but clicking it does nothing.

Of course the SD shows fine when i boot into Windows and plug the phone in.

Any other version of TWRP i can use on the XT1040 which will recognize the external SD?

Thanjks
[Moto G 4G Android Development] Ardito:
Try v2.8.3.0 from this thread. :good:
[Moto G 4G Android Development] spiritflare:
can't see external SD card

Thanks this worked and I can see the SD card!
[Moto G 4G Android Development] vivekdn2504:
Getting error

Mismatch partition error

What can i do now?
[Moto G 4G Android Development] jmcollis:
Ignore it. Test if it works. If it's working it's fine.
[Moto G 4G Android Development] cptechnik:
Every recovery I flashed... Partition mismatch...!

I ignored also, and all worked fine!

send with tapatalk...
[Moto G 4G Android Development] Leon212012:
Its not work... (just keep reboot to phone when I go to recovery) but no one ever try "fastboot flash Recovery [name].img" it will flash successful but the phone not working... also "fastboot remove recovery" will fix that problem the hilarious thing here is R and r they will not be the same in commends but why? That's out my knowledge I will leave it T__T

--------------------

Already solving the problem. ignoring the message mistake using commend

"fastboot flash recovery " then

go to bootloader mode

press volume down to selected Recovery

then wait 2-4s

then press volume up to selected

that weird to me -..-
[Moto G 4G Android Development] anonxlg:
i'm having problem creating backup of my phone:

createTarFork() process ended with ERROR=255

http://mobile.tumblrvip.com/2015/07/23/internal-storage-failure-twrp-error-255/

I don't remember why i chose TWRP as my recovery since i see we're never got an update, but same goes with the CWM as well.

i see that CM has a official recovery https://download.cyanogenmod.org/?device=peregrine

I'm wondering if anyone know what's up and if i need to flash another recovery, will i run into any problems (dont want to wipe my phone obviously)

i went on the TWRP website and it seems there's an official page for our phone, code name, thea.

is this right? I should be using this?
[Moto G 4G Android Development] lfuentes:
I´m using TWRP 2.8.7.0, your version is not the last one, it was updated log time ago. Find it!
[Moto G 4G Android Development] anonxlg:
yeah my mistake, i was on 2.8.7.0 already

not sure what i can do at this point, i guess i'll reflash and see if i can backup

i really should just make my own thread oh well

anyways, i messed things up somehow:

i downloaded the twrp app from the play store and tried to install from there and it failed, not sure if it located the correct partition, i just used the default

tried to reboot into recovery, failed

i booted into recovery

>fastboot flash recovery twrp-2.8.7.0-thea.img

seems like it worked, mismatched partition, but should be okay

try to boot into recovery, 'boot up failed'

then i tried to delete the recovery

>fastboot erase recovery

then reinstalled it again, nothing

>fastboot boot twrp-2.8.7.0-thea.img

it's temporary, but it worked, i tried to backup again, and it still gives me the same error
[Moto G 4G Android Development] cvamoose:
There's your problem. Thea is the second gen moto g LTE, you want the peregrine one.

Edit: Get it from here http://xdaforums.com/showthread.php?p=58021481
[Moto G 4G Android Development] anonxlg:
well that did the trick, i dont understand how i was able to boot the other recoveries from the command line though, i assumed it wouldnt work if it didnt match the model

anyways, i tried doing a backup and i still get the same error message

createTarFork() process ended with ERROR=255
[Moto G 4G Android Development] cvamoose:
It only worked because the two phones hardware is so similar.

Are you coding to encrypt the backup with a password? Because that seems to cause this error for me, but of I backup without a password it works fine.
[Moto G 4G Android Development] _that:
No other message before that?
[Moto G 4G Android Development] anonxlg:
There is, i will check try it again and get the error.

I narrowed it down to the error being from doing a backup from the data partition

and no encryption option checked
[Moto G 4G Android Development] anonxlg:
i've come to the conclusion that this phone + recovery + rom + microsd card does not like each other

before root and custom rom, the microsd card did not have any problems

after, the rom and recovery likes to randomly eject the microsd card (from 'heavily' read/writing, and by heavy, i mean just using it in general)
[Moto G 4G Android Development] _jis_:
I never have any problem with newer TWRP version 2.8.7.0 and my Samsung Micro SDHC EVO 32GB Class 10 UHS-I card. See my signature.
[Moto G 4G Android Development] rhyang:
I've moved all the apps I can to the SD card. When I try to mount USB OTG, the apps which were moved suddenly become unavailable. I wonder if there is a connection with the twrp mystery. Just thinking out loud :)

BTW when I tried flashing the twrp image I got a partition size mismatch error. Just wondering if this can safely be ignored.
[Moto G 4G Android Development] Darkshado:
Here are two different dmesg logs: one done using fastboot boot, the other fastboot flash. I haven't had time to compare them and availability will be limited for the next few days, putting them here in case they have interesting clues.

boot: http://pastebin.com/auhiusgN

flash: http://pastebin.com/5amPqYX6
[Moto G 4G Android Development] eteles:
Yes, it's normal... Just ignore it. It's just telling you the recovery has a different size than expected.

---------- Post added at 12:48 PM ---------- Previous post was at 12:46 PM ----------

@Darkshado, Just got another idea from SciBee:

[quote name="SciBee" timestamp="1405092048"]

New idea. Which prebuilt kernel did he use? If he used the kernel of the standard ROM he might want to try the kernel of the stock recovery. Maybe they are different.[/quote]
[Moto G 4G Android Development] rhyang:
Awesome, thanks ! It is great to see TWRP on this phone.

I guess the thing that tripped me up about the stock bootloader is that it seems to reboot system (skipping recovery) if the USB cable is still plugged in, even if one selects recovery. Or did I miss something. Anyway, fun :)
[Moto G 4G Android Development] eteles:
You have to select option with vol+ key and not power button...
[Moto G 4G Android Development] Triggeh:
I can only boot into TWRP if i flash it in the bootloader, selecting recovery just takes me to the stock recovery. Maybe i missed something, my previous devices didn't have boot loaders.
[Moto G 4G Android Development] vpnair:
If you use fastboot boot command you are not flashing but temporarily booting from that recovery file on your computer. Hence stock recovery on device is not altered and why rebooting into recovery on your phone takes you to stock recovery. Every device has bootloader, it only becomes an issue for us if it's locked.
[Moto G 4G Android Development] Triggeh:
Ahh that makes sense. thanks.
[Moto G 4G Android Development] rawtek:
Wondering if this would suffice for now until this build is solid.

http://xdaforums.com/moto-g/general/newb-friendly-guide-to-rooting-moto-g-t2793895

Anyways keep up the good work so far, I would definetly donate to keep development going.
[Moto G 4G Android Development] Triggeh:
I can confirm that works as I used it for root before this was available, don't really see any reason to use it over this though.
[Moto G 4G Android Development] rawtek:
Does the SDCard work in the Above mentioned build ?

Might use it just to root for now, but I will definitely want a Native build for the 4G, Thanks
[Moto G 4G Android Development] NWKENT:
Nope..doesn't..none that I know of..unless boot from PC..

This one is a working version, but no SDCard function, or backup/restore..but most all else works fine to gain Root..I do believe this is the most functioning version at this time..someone please correct me if I'm wrong.!

PLEASE contribute to the Dev.

Here >> OP >>

http://xdaforums.com/showthread.php?p=53959174

Sent from my 4.4.3_21.23.4

(Unlocked) XT1045 Moto G 4G LTE

http://waynekent.com/page6.html
[Moto G 4G Android Development] Somcom3X:
If anyone cares to try? http://d-h.st/SC6

This is a CWM ^ for peregrine

I built this recently, too bad I don't have the device with me.

ShabbyPenguin gots a twrp built -> http://androidforums.com/moto-g-4g-...le-rooted-have-cyanogenmod-3.html#post6643375
[Moto G 4G Android Development] NWKENT:
I could \ may be incorrect..but I think I have his latest TWRP version and its no further along than this one here (thread) is..please correct me if I'm wrong.!

SURE wish the Dev's would unite / team up with this (peregrine) TWRP and work the bugs out..

:)

Sent from my:

4.4.4_21.11.21 (Unlocked)

XT1080M Droid Maxx #2

http://waynekent.com/page6.html
[Moto G 4G Android Development] MissyVixen:
I have tried this and, at least for me it boots to a black screen and has to be force shut down by holding the power and vol down buttons.

partition size is also a mismatch but i suppose that is going to happen no matter what unless one was to fill the recovery with junk code to make it the same size.
[Moto G 4G Android Development] Somcom3X:
Partition size will be easy once my phone arrives. Most of us are waiting for the kernel source to release.

And yes. Shabby is further down the line ;)
[Moto G 4G Android Development] Darius_AWS:
We don't have the sources yet ?

Envoyé de mon XT1039 en utilisant Tapatalk
[Moto G 4G Android Development] shabbypenguin:
For TWRP no, i havent put out anything new, i said i wanted to get the bugs figured out with cwm first and then i would do twrp but since no one cares to test it seems rather pointless overall.

why does everyone keep saying when kernel source is released? its been out since before the phone came out
[Moto G 4G Android Development] NWKENT:
Thank you Sir, for your reply..PLEASE count me in for testing..PM me anytime also..I'm NO Dev. nore do I understand code..but..all my devices are eager to test..all unlocked or Dev Editions..I have the XT1045 and would be eager to test any time..I do flash alot of "stock" stuff..not into the custom ROM's as in the past..ask..and I will help, any way I can..I'm personally interested in TWRP only..

Sent from my:

4.4.4_21.11.21 (Unlocked)

XT1080M Droid Maxx #2

http://waynekent.com/page6.html
[Moto G 4G Android Development] shabbypenguin:
ive already lost interest in this, there will be no more builds from me. i dont have the phone, i never will. i was merely trying to port recovery because i had a few people on androidforums.com ask me to. ive already spent far too much time and effort merging this falcon and the common folders so that when recovery was done aosp roms could come out fairly quickly. i stopped updating my github because there wasnt any progress on recovery. i had only 1 tester on AF for the past week so it was painfully slow going for a new device that i assumed people were wanting recovery for.
[Moto G 4G Android Development] NWKENT:
Well Sir..I personally, certainly appreciate your efforts to this point..and do understand your position with this..please except my thanks..and I'm very sorry you weren't receiving the support you needed..

And yes..we have crossed paths before with this matter in "android forums" I do believe.. but..If you are done with this..I certainly respect your choice..lol

Sent from my:

4.4.4_21.11.21 (Unlocked)

XT1080M Droid Maxx #2

http://waynekent.com/page6.html
[Moto G 4G Android Development] Somcom3X:
https://github.com/MotorolaMobilityLLC/kernel-msm/issues/1#issuecomment-48856878

;)
[Moto G 4G Android Development] shabbypenguin:
you forked my files then you know what other ones you had to add in order to get it to compile
[Moto G 4G Android Development] Somcom3X:
Touche. Touche. :)

I thought the falcon's kernel would let it boot seeing how it's used and somewhat works for the root + recovery method.

Thanks for all your help.
[Moto G 4G Android Development] shabbypenguin:
it does, in fact it works for all three, peregrine, falcon, condor :). regardless good to hear about them pushing official source, as i think the dtb files are whats preventing sdcard mounting in cwm now as well. i had no reason to check xda but finding out twrp has issues with it makes me wonder how long ago i would have had a fully functional cwm if i had known this info, oh well :P
[Moto G 4G Android Development] Somcom3X:
I understand that the peregrine and falcon are in the mix, but the condor? Man...

Hopefully the falcon and peregrine will be unified. With dhacker around, I wouldn't be surprised with the work he does.

There are no dtb files for it in the kernel :/
[Moto G 4G Android Development] shabbypenguin:
for tehm to be unified someone just needs to figure out this sdcard nonsense, the device tree i have already has em all seperated and unified. cybojenix is working on condor and i was working on peregrine when i contacted dhacker he told me what needed to happen for it to get merged in and then be working officially. its honestly a lot less work than i originally thought but this crap about dtb files is annoying. and the msm8226 kernel builds the dtb files just fine, look in your out directory.
[Moto G 4G Android Development] Somcom3X:
I never saw an msm8226-pergrine.dtb file, and when I think about it, I don't think there should've of been.
[Moto G 4G Android Development] Darkshado:
The dts and dtsi files for peregrine are actually under msm8926-peregrine, it's the only place where I've seen the SoC be listed "correctly" and not as the falcon's MSM8226.
[Moto G 4G Android Development] eteles:
Oh man... I'm so sorry I'm late... I've just seen this... I have XT1040 and if you ever change your mind, you can count on me for testing... (I'm not a developer...)

Please contact me if I can help with anything...

EDIT: here´s the stock kernel - https://mega.co.nz/#!TA4WnTSZ!ga3hHoTyM2Ms7D4xyGSmBK010HABAUYKQQpX5MPazKw
[Moto G 4G Android Development] eteles:
People, take a look at the last post from Shabbypenguin on this topic: http://xdaforums.com/showthread.php?t=2768146&page=15

See if there´s something there you like... ;)
[Moto G 4G Android Development] rawtek:
!!!!!!! ready for testing count me in as a Guinea pig
[Moto G 4G Android Development] eteles:
[MENTION=3966540]Darkshado[/MENTION]

It seems Motorola has just released a new source with fixed dtb... Will you take a look and make a new build of your TWRP recovery, please?

ShabbyPenguim has released his fully working CWM here: http://xdaforums.com/moto-g/4g-development/recovery-unofficial-cwm-6-0-5-0-t2818161

EDIT: ShabbyPenguim is already working on new TWRP build with fixed dtb...

Thanks!
[Moto G 4G Android Development] shabbypenguin:
snip
[Moto G 4G Android Development] Darkshado:
[MENTION=4804571]eteles[/MENTION] [MENTION=2614663]shabbypenguin[/MENTION]

Built with the new kernel source and this time it seems "everything" works.
[Moto G 4G Android Development] Triggeh:
Nice!

Edit: No problems here backed up to SD restored all settings work etc
[Moto G 4G Android Development] MissyVixen:
I second this, I have an XT1045 and would test builds as needed or as schedule permits on my end : im not the most savy and might not be able to identify problems but i can at least just test for functionality

#####################

Currently testing the most recent build of the TWRP in this thread, and everything for me seems to be in working order., backing up to SD works even when initiated in device. Permisions fix now does not instantly abort, TWRP settings seem to stick after reboot ( like brightness, vibe duration etc, 12/24 hour time)
[Moto G 4G Android Development] J0kker:
Fastboot flashed last twrp on my XT1039 and everything works perfectly, even twrp settings (like vib duration or timezone) are kept.

MicroSD card class10 32GB is working, and enter from power menu with gravitybox works too.

I ordered a uhs-1 64GB microSD card, i'll try it as soon as possible, but i don't have much hope ^^

I tried to enter twrp by pressing vol+ or vol- at moto G logo, but didn't manage.

I'm new to this phone, maybe i miss something ?

[Edit: Nevermind, after thinking a bit more about it i figured out what seems logical, vol-+power to enter download mode then go to recovery.]
[Moto G 4G Android Development] vpnair:
A class 10 working, great! So it's either hardware variance or UHS-1 that prevents recovery detecting microSD. 64GB may work if formatted to FAT32 ad not ExFAT (since Moto G 4G doesn't support larger than 32gb microSD). But I haven't seen any success with UHS-1 cards on any recovery thus far. Let us know if it works.
[Moto G 4G Android Development] NWKENT:
My XT1045:

Known good in OS, my (FAT32) 64GB is not recognized in the internal slot in the new release v2.7.1.0 peregrine..but in normal OS..the card is flawless..switch to 32GB, same MFG..backup and restore is known good..BUT..in OTG-USB, my same 64GB is recognized and a known good backup is compiled..

Something about the internal slot, v2.7.1.0 doesn't recognize my (known good) in OS, 64GB to do a backup and restore via internal slot..

NOT complaining..just mentioning.. The Dev. may look into this if time ever allows..

:)

Sent from my:

4.4.4_21.11.21 (Unlocked)

XT1080M Droid Maxx #2

http://waynekent.com/page6.html
[Moto G 4G Android Development] Triggeh:
What 64gb SD card are you using that works? I'm running out of space and need to replace my 32gb
[Moto G 4G Android Development] NWKENT:
I have two of these, work flawlessly even with MP4 video, in the internal slot and OTG-USB / Charge port of my XT1045..and I have three of the same MFG. except 32GB

Sent from my:

4.4.4_21.11.21 (Unlocked)

XT1080M Droid Maxx #2

http://waynekent.com/page6.html
[Moto G 4G Android Development] Triggeh:
Thanks

You should know even if your UHS-1 card works it won't use UHS-1 speeds so not really any point in getting one (No this won't be changed in an update)
[Moto G 4G Android Development] J0kker:
I know that, but it was a nice offer, 28€ for a 64GB card.

If i encounter some problems, i'll stick with my actual 32GB card and use this one for my camera :)
[Moto G 4G Android Development] Brian D:
So then, is TWPR 2.7.1.0 stable now? Are all functions working? Or, should we still wait a little longer for the version to stabilize?
[Moto G 4G Android Development] NWKENT:
All functions are operational and dependable with the TWRP v2.7.1.0 peregrine..

:) WooHoo..

Please make a contribution to the Dev. Please reward the effort in working us up a good, usable, dependable, TWRP recovery..

Sent from my:

4.4.4_21.11.21 (Unlocked)

XT1080M Droid Maxx #2

http://waynekent.com/page6.html
[Moto G 4G Android Development] montresor60:
:confused:
[Moto G 4G Android Development] NWKENT:
Change to a smaller GB card..I had the same issue..

OTG-USB/Charge port will work with 64GB with backup and restore..but internal slot doesn't recognize a 64GB..use a smaller one..or backup/restore to OTG-USB.. it will work with 64GB..

I spoke to the Dev about this..the Dev said that, maybe when time allows will look into this..

:)

Eventhow booted to OS the 64GB works perfectly..in TWRP v2.7.1.0 peregrine..the 64GB in internal slot isn't recognized..

Sent from my:

4.4.4_21.11.21 (Unlocked)

XT1080M Droid Maxx #2

http://waynekent.com/page6.html