[NEWS] Kernel Source of 5.1 Released ! - Android One (First-Generation) Cross-Device Genera

Okay, so let me get this straight.
I just checked Google Git of Android One ( https://android.googlesource.com/kernel/mediatek/ ) then I found something.
Google & Mediatek has pushed lollipop-5.1 branch ! Which means, kernel for 5.1 are ready to build
Here's the full branch just in case anyone need it :
https://android.googlesource.com/kernel/mediatek/+/android-mediatek-sprout-3.10-lollipop-mr1
and if you want to clone it and build a kernel for it, just type :
git clone https://android.googlesource.com/kernel/mediatek/ -b android-mediatek-sprout-3.10-lollipop-mr1
Cheers !

Just one question please?
F4uzan said:
Okay, so let me get this straight.
I just checked Google Git of Android One ( https://android.googlesource.com/kernel/mediatek/ ) then I found something.
Google & Mediatek has pushed lollipop-5.1 branch ! Which means, kernel for 5.1 are ready to build
Here's the full branch just in case anyone need it :
https://android.googlesource.com/kernel/mediatek/+/android-mediatek-sprout-3.10-lollipop-mr1
and if you want to clone it and build a kernel for it, just type :
git clone https://android.googlesource.com/kernel/mediatek/ -b android-mediatek-sprout-3.10-lollipop-mr1
Cheers !
Click to expand...
Click to collapse
Hey thanks for the news ( btw this news already been realeased by XDA itself and varun already grabbed it)
but there are three branch
one is named as kitkat
one is named for lollipop
so what does that third brach (android-3.18 )is for and you seems to be a well learned person( reconized contributer ) so there one question
Will google release device tree of android one devices as it does for nexus device? is there any scope for it in future (it may seem noobie to you but i really don't know)
thanks

hjmodi said:
Hey thanks for the news ( btw this news already been realeased by XDA itself and varun already grabbed it)
but there are three branch
one is named as kitkat
one is named for lollipop
so what does that third brach (android-3.18 )is for and you seems to be a well learned person( reconized contributer ) so there one question
Will google release device tree of android one devices as it does for nexus device? is there any scope for it in future (it may seem noobie to you but i really don't know)
thanks
Click to expand...
Click to collapse
Oh, it's already posted ? I'm really sorry xD (I rarely check the XDA portal, please forgive me if I repost this)
About the first question, the third branch doesn't seem to contain any tag (or I maybe too foolish to see if there's any tag), so I can assume that it's either a beta or kernel 3.18 that'll soon arrive for our device.
And for the device tree, it depends for Google and/or Mediatek. I really have no idea in this, tho.
Again, sorry if I repost this !

Related

Adding multi-window support to your Omni build

Since this has been asked a few times
Multi windows support is not in by default
You need to cherry-pick this to include it in your build
https://gerrit.omnirom.org/#/c/53/
thank you,
I added it into my p5110 build, i'll let you know if it works well.
edit:: working well
I won't lie, I plan to build Omni today as my first-ever Android build. It may go hilariously badly, it may go wonderfully. Is it in the command line that I cherry-pick that piece of code? The rest I think I can figure out myself. Thanks in advance.
dibblebill said:
Is it in the command line that I cherry-pick that piece of code?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=37053013&postcount=7
chasmodo said:
http://forum.xda-developers.com/showpost.php?p=37053013&postcount=7
Click to expand...
Click to collapse
You probably will want to do a "repo start" first, otherwise your commit will be clobbered on sync.
e.g. from the root of the source tree:
Code:
repo start work frameworks/base
for more on repo - http://source.android.com/source/using-repo.html
Thank you both. Very helpful. It's wonderful receiving help from the developers, especially since this will be my first build
Sent from my Nexus 10
dibblebill said:
Thank you both. Very helpful. It's wonderful receiving help from the developers, especially since this will be my first build
Sent from my Nexus 10
Click to expand...
Click to collapse
For everybody there was a "first time"
chasmodo said:
http://forum.xda-developers.com/showpost.php?p=37053013&postcount=7
Click to expand...
Click to collapse
When I execute this using the linked cherry pick, all I get is "fatal: Not a git repository (or any of the parent directories): .git
dibblebill said:
When I execute this using the linked cherry pick, all I get is "fatal: Not a git repository (or any of the parent directories): .git
Click to expand...
Click to collapse
you tried this mate?
Code:
git fetch [url]https://gerrit.omnirom.org/android_frameworks_base[/url] refs/changes/53/53/19 && git cherry-pick FETCH_HEAD
before that u must be inside ~/android/omni/frameworks/base if i im rigth, u get there by
Code:
cd ~/android/omni/frameworks/base
someone correct me if im wrong pls.
makkeonmies said:
you tried this mate?
Code:
git fetch [url]https://gerrit.omnirom.org/android_frameworks_base[/url] refs/changes/53/53/19 && git cherry-pick FETCH_HEAD
before that u must be inside ~/android/omni/frameworks/base if i im rigth, u get there by
Code:
cd ~/android/omni/frameworks/base
someone correct me if im wrong pls.
Click to expand...
Click to collapse
[codegit fetch https://gerrit.omnirom.org/android_frameworks_base refs/changes/53/53/19 && git cherry-pick FETCH_HEAD[/code]
Exactly as copied and pated from the cherrypick itself, yep.
I was, however, in ~/android/omni/.repo/projects/frameworks/base, though. Now I got it fixed and inserted. thanks!
on my way to being a ROM hacker/compiler, then later developer
EDIT: Will the sources for this rescync automatically when I repo sync, or will I have to also re-cherry pickk this every few days?
dibblebill said:
[codegit fetch https://gerrit.omnirom.org/android_frameworks_base refs/changes/53/53/19 && git cherry-pick FETCH_HEAD[/code]
Exactly as copied and pated from the cherrypick itself, yep.
I was, however, in ~/android/omni/.repo/projects/frameworks/base, though. Now I got it fixed and inserted. thanks!
on my way to being a ROM hacker/compiler, then later developer
EDIT: Will the sources for this rescync automatically when I repo sync, or will I have to also re-cherry pickk this every few days?
Click to expand...
Click to collapse
If you do a "repo start" before cherry-picking, repo will try to automatically rebase when syncing. It will not sync newer patchsets though.
thanks, very useful.
just to know, why isn't it yet merged ?
BENETNATH said:
thanks, very useful.
just to know, why isn't it yet merged ?
Click to expand...
Click to collapse
Because it still has a lot of bugs that need to be worked out?
Unfortunately, since Omni went public, we've had a ton of device support stuff to work with people on, so the more difficult items have temporarily stalled.
Entropy512 said:
Because it still has a lot of bugs that need to be worked out?
Unfortunately, since Omni went public, we've had a ton of device support stuff to work with people on, so the more difficult items have temporarily stalled.
Click to expand...
Click to collapse
sadly i would say.
BBQ was a great timing but people went crazy on omni, which is a good and a bad thing ^^
i've built omni for my device, with the commit, and it's nice, but currently, it's nearly strictly an AOSP, which is a bit frustrating
keep the hard work, courage to all the omni dev !
BENETNATH said:
sadly i would say.
BBQ was a great timing but people went crazy on omni, which is a good and a bad thing ^^
i've built omni for my device, with the commit, and it's nice, but currently, it's nearly strictly an AOSP, which is a bit frustrating
keep the hard work, courage to all the omni dev !
Click to expand...
Click to collapse
Yeah, I would've liked to have polished things a bit more - but the BABBQ was an opportunity we didn't want to miss.
yep,
anyway, great work. what you guys need now is to keep that alive, and to limit the time spent on bringing devices, better enhance the rom.
Rom builders will join the effort for all the rom stuff, especially as it's really easy (i've bring my device in a dozen of minutes, from a CM branch. needs polishing but works)
Does anyone have the last patch set for multiwindow the 4.3 branch? It seems like the past two weeks worth of patches were lost after the Gerrit server hard drive failure, and I just got my first build done yesterday so I'm not sure what I can cherry pick to test out multiwindow. The last comment remaining seems to imply that the last patch set was broken.
https://gerrit.omnirom.org/#/c/1510/
chasmodo said:
https://gerrit.omnirom.org/#/c/1510/
Click to expand...
Click to collapse
That's the 4.4 branch. Time to cherry-pick!
sgt. meow said:
That's the 4.4 branch. Time to cherry-pick!
Click to expand...
Click to collapse
Are you cherry picking back to 4.3 or doing a 4.4 build? Let us know how it goes! I just set up a build this weekend for my N8013 but Gerrit was down so I couldn't get multiwindow, and when it came back the Gerrit ticket was missing two weeks worth of patches as I mentioned so I was feeling like it would be risky to try to apply it.

[q] sokp.....sonic open kang project

can any developer port for lg 4x ??
it's nice rom
greece-for-ever said:
can any developer port for lg 4x ??
it's nice rom
Click to expand...
Click to collapse
dont have time for it....
and money for server(am before salary).. my laptop is too weak..
instructions:
1 read how to make build enviroment
2 read readme from their github https://github.com/SOKP/platform_manifest
3 clone or dwnld sources from official cm p880 device and kernel kk trees + themuppets vendor sources and place them properly
4 change boardconfig.mk p800.mk cm.mk and eventually cm.dependencies just like other ppl was making in other roms (commits named like : liquidify, slimify or namelessify omnify blahblah)
5 compile
6 test
7 maybe profit.
i am not a dev just "power user" so read read read and once again read and read again
edit : and read more because i could be mistaken
edit2: do not look at my github there are errors and i forgot to fix them
gerciolisz said:
dont have time for it....
and money for server(am before salary).. my laptop is too weak..
instructions:
1 read how to make build enviroment
2 read readme from their github https://github.com/SOKP/platform_manifest
3 clone or dwnld sources from official cm p880 device and kernel kk trees + themuppets vendor sources
4 change boardconfig.mk p800.mk cm.mk and eventually cm.dependencies just like other ppl was making in other roms (commits named like : liquidify, slimify or namelessify omnify blahblah)
5 compile
6 test
7 maybe profit.
i am not a dev just "power user" so read read read and once again read and read again
edit : and read more because i could be mistaken
edit2: do not look at my github there are errors and i forgot to fix them
Click to expand...
Click to collapse
haha thnks for advice but im basic pc user and no free time for read ...but thnks anyway .:good::good::good:
If i get more free time after 15 september i'll try to build it
I have superhard exam and wasnt on any lecture(?good word? i mean sth like lesson with more ppl) of Electroenergetics systems:/ BTW have work wife and 9month kid and second coming in march.
Stupid studies
Never go to high school.....
gerciolisz said:
If i get more free time after 15 september i'll try to build it
I have superhard exam and wasnt on any lecture(?good word? i mean sth like lesson with more ppl) of Electroenergetics systems:/ BTW have work wife and 9month kid and second coming in march.
Stupid studies
Never go to high school.....
Click to expand...
Click to collapse
that was great if you try.....i find hear http://roms.blog.163.com/ much roms and its work good . translate the page annd give a try
Does this ROM include the new Theme Engine ?
Sent from my Optimus 4X HD using XDA Premium 4 mobile app
I dont know but maybe is some info in some manifests on their github .. But i am at work so cant check it ATM..
I think yes .i can change themes

[GUIDES INDEX] Start Compiling ROM For Android One!

Hey Guys, Many People Ask About How To Start Compiling ROM And I Am Here With Some Pretty Neat Guides By Some Awesome Developers To Make Your Compiling Journey Way More Easy, If You Are A N00b Back Out(Just Kidding) It Is Still A Bit Complicated At First But You Get The Hang Of It! There Guides Are Not Just For Android But Also For Other Devices!
Requirements:-
A Linux PC (64bit)(Ubuntu Prefered)
Minimum 4 gigs of RAM (Recommended RAM is 8 Gigs And Above)
Make Sure You Have At-least Unlimited Data Plan And A High Speed Network (Coz You Have To Download Repos Over 15 Gigs)
Guides:-
The Best To Start Guide - [GUIDE][COMPLETE] Android ROM Development From Source To End Thanks to @jackeagle
Basics And XDA's - How to Build an Android ROM
The Reference Tally Guide I Would Recommend (Like It Too) - [GUIDE][Step-by-Step] Build ROM from source Thanks to @Haze028
ROM Specific Guides :-
Cyanogen-mod - [GUIDE] Compile CM from source, source basics & FAQ - Very detailed and noob friendly Thanks to @galaxyfreak
PAC Rom - [Guide]How to Compile PAC Rom Thanks To @iurnait
AOKP - [GUIDE] The Comprehensive AOKP Building Guide Thanks to @TheByteSmasher
Paranoid Android - [GUIDE][AOSPA:v3.+] How to Compile AOSPA from Source : + Support and Maintenance Thanks to @gokussjx
Android One Specific Device Tree, Kernel And Vendor Sources Links:- Thanks to @varun.chitre15
Device Tree - https://github.com/varunchitre15/android_device_google_sprout
Vendor - https://github.com/varunchitre15/android_vendor_google_sprout
Kernel Source - https://github.com/varunchitre15/android_kernel_mediatek_sprout
Code To Clone Repo :
git clone https://github.com/varunchitre15/android_device_google_sprout -b cm-11.0 device/google/sprout
git clone https://github.com/varunchitre15/android_kernel_mediatek_sprout -b cm-11.0 kernel/google/sprout
git clone https://github.com/varunchitre15/android_vendor_google_sprout -b cm-11.0 vendor/google/sprout
Click to expand...
Click to collapse
For Video Tutorials :-
Visit Post #2
IF REPO SYNC FAILS​[FIX] Repo Sync Failed Due To Fetch Errors!​
Detailed Video Tutorials On Building Custom ROMs:-
Part 1 :-
Part 2:-
Reserved
Need Help
Is it possible to compile ROMs with Windows 7 ?
SidLoveNuts said:
Is it possible to compile ROMs with Windows 7 ?
Click to expand...
Click to collapse
No,you will need a Linux 64bit machine to compile android from source
SidLoveNuts said:
Is it possible to compile ROMs with Windows 7 ?
Click to expand...
Click to collapse
You can dual boot ur PC such that u can select between Win and Linux
Dear OP, please post/request varun to post a detailed guide for compiling CM for noobs. It will be greatly helpful for budding developers. Thanks .
arunmcops said:
Dear OP, please post/request varun to post a detailed guide for compiling CM for noobs. It will be greatly helpful for budding developers. Thanks .
Click to expand...
Click to collapse
Visit Here For Detailed Guide
It is usefull and same for all Rom's
I already have CM11 branch, want to try CM12 branch . Question is - Can I reuse my existing CM11 sources ? How to do that ?
ash1425 said:
I already have CM11 branch, want to try CM12 branch . Question is - Can I reuse my existing CM11 sources ? How to do that ?
Click to expand...
Click to collapse
No,You need to sync the new branch in order to build CM12
DC07 said:
No,You need to sync the new branch in order to build CM12
Click to expand...
Click to collapse
I think its possible. JBQ responded with positive answer on google groups. Please have a look.
https://groups.google.com/forum/?hl=en#!topic/repo-discuss/yUslU8J76Rs
Code:
You can re-run repo init in your existing client. You can skip the -u parameter to use the same server, and just specify -b.
You can make a local copy of your client first, so that you can have both a kitkat and a lollipop client.
JBQ
ash1425 said:
I think its possible. JBQ responded with positive answer on google groups. Please have a look.
https://groups.google.com/forum/?hl=en#!topic/repo-discuss/yUslU8J76Rs
Code:
You can re-run repo init in your existing client. You can skip the -u parameter to use the same server, and just specify -b.
You can make a local copy of your client first, so that you can have both a kitkat and a lollipop client.
JBQ
Click to expand...
Click to collapse
That's what I said. -_- Check my reply properly.I said that you need the new branch in order to build CM12 and so did JBQ.
My question was "Can i reuse my existing CM11 sources". I might have framed it wrong. Anyways, i have started sync and i can confirm that my download size is minimized a lot.
ash1425 said:
My question was "Can i reuse my existing CM11 sources". I might have framed it wrong. Anyways, i have started sync and i can confirm that my download size is minimized a lot.
Click to expand...
Click to collapse
--reference={whereever the predownloaded rom source is}
Use This During Repo Init Before -u
Kunal.Kene.1797 said:
--reference={whereever the predownloaded rom source is}
Use This During Repo Init Before -u
Click to expand...
Click to collapse
You think that will work for 5.0?
##W4TCH0UT## said:
You think that will work for 5.0?
Click to expand...
Click to collapse
Yeah...using it it will use some pre-downloaded art compilers, etc! it won't make a big difference but it will!
Kunal.Kene.1797 said:
Yeah...using it it will use some pre-downloaded art compilers, etc! it won't make a big difference but it will!
Click to expand...
Click to collapse
You can't use cm11 sources to download cm12...lol. EVERY AND EACH repo is different in cm12.
##W4TCH0UT## said:
You can't use cm11 sources to download cm12...lol. EVERY AND EACH repo is different in cm12.
Click to expand...
Click to collapse
Thanks for this
I was trying to explain this itself from long.
##W4TCH0UT## said:
You can't use cm11 sources to download cm12...lol. EVERY AND EACH repo is different in cm12.
Click to expand...
Click to collapse
Okay!!!! thx!
ubuntu 14.10 compatible
I'm having problem dual boot so can run ububtu on virtual application by running IOS file??

[R&D] [910F] porting CM12

*EDIT* This thread is now based upon the work by @fattire and @slayher, who got it up on the 910T. For that phone see this thread: http://forum.xda-developers.com/not...nt/unoffcial-cm-12-0-t-mobile-note-4-t2964887
This thread is for dev's interested to help out porting CM12 to our device. I've researched for info regarding CM ports and good information is actually quit scarce. A dev might post something like 'hmm stuck at boot anim' and then the next day 'got it, booting now !' without explaining what he did to solve it. I want to change that, so this thread can serve as a guide for other first time porters too (this is also my first porting project), documenting every step as in much detail as possible.
For ROMS: http://forum.xda-developers.com/not...official-cm-12-0-910f-note-4-trltexx-t2987412
Please use this thread for R&D/development ONLY !!!
Ok, I'm really starting from scratch and never done any phone ROM porting. I've just made a new virtual disk running ubuntu and am currently downloading the CM12 repo. I figured, how to get even started here. I figured that the goals we need to attain in this order:
1) compile the kernel samsung supplied
2) make sure we can boot into kernel
3) get ADB up and running
4) get CM12 starting up, even the bootanim alone would be a nice goal to reach
5) Booting into homescreen
6) Fixing all stuff like modem, wifi etc etc etc
Anyway, I'm currently downloading CM12 sources as we speak ...
This is by the way a link I found very useful: http://www.androidenea.com/2009/08/init-process-and-initrc.html It describes the Android init process, cause I was wondering, how to even start all this ? How to get from kernel to CM booting: that's where init.rc should come into play of course
Good luck this is a long project. I build carbonrom for another phone where everything for cm was allready fixed. I would start with a phone that allready has support to learn how the process goes. You can brick your phone and it's a process of trail and error... But I hope you manage good luck!
KaptKeefmenneke said:
Good luck this is a long project. I build carbonrom for another phone where everything for cm was allready fixed. I would start with a phone that allready has support to learn how the process goes. You can brick your phone and it's a process of trail and error... But I hope you manage good luck!
Click to expand...
Click to collapse
I'm not sure I understand what you mean ? If the phone already has support, then what's there to port ? Or do you mean building CM itself ? That I've done quite a few times already, did quite a bit of work on the i9500, fixing RILD issue's, kernel issue's and other stuff.
soo...maybe m wrong (has been a while snce ive ported) but im goin to drop a few lines anyhow......
porting is very different from source building.....the only reason you would need to dl the cm sources would be to compile the rom using sources...and right now the note 4 has none we would need device,kernel,common,vendor sources for that....so... we cant source build right now only port....sp what we need to do is research which device officially or unofficially that has cm with same specs as the note4 things like screen size, board, things of that nature....and would highly recommend using the same carrier as well.....but once we have that info....dl that phones cm rom zip....dl one of our phones rom zips.....now for the fun....ill lay out a way i did it maybe is the same still ...
place both cm zip and note 4 zip on desktop..
create a new folder call it new
drag all files from the cm zip into the new
open the new and open the note 4 zip have them side by side
now your going to drag pretty much all folders/files from the note 4 system folder into the new sytsem folder one folder at a time excluding:
app,priv-app,etc,fonts,media,framework,xbin (im probably forgetting one or two but has been a long time)
now the fun begins....time to edit some xmls and trial and error on pretty much everything until it is working right
you are also going to want to change out the kernel and have to edit the updater-script in the meta-inf....
im positive im forgetting a few things but this is pretty much what i can remember......from off the top of my head...some of the guides ill link in a bit will go into greater detail and explain things more in depth
a few links ive had bookmarked that will help ya
http://forum.xda-developers.com/showthread.php?t=1908008
http://forum.xda-developers.com/showthread.php?t=732957
http://forum.xda-developers.com/showthread.php?t=1957219
http://forum.xda-developers.com/showthread.php?t=1272270
http://forum.xda-developers.com/showthread.php?t=2113479
http://forum.xda-developers.com/showthread.php?t=1801690
http://forum.xda-developers.com/showthread.php?t=2251719
http://forum.xda-developers.com/showthread.php?t=1941239
http://forum.xda-developers.com/showthread.php?t=1805408
http://forum.xda-developers.com/showthread.php?t=2058850
all of these links in one way or another have helped me during my porting phase hope they do the same for you ...like ive said before im more of a source builder so thats what imgoing to be trying to do is getting a working tree... but if you need help just hit me up ill do what i can
Shouldn't this thread be in general?
jdidtht said:
Shouldn't this thread be in general?
Click to expand...
Click to collapse
yes it really should being as there is no development only discussion...but thats the moderators job not mine
spleef said:
yes it really should being as there is no development only discussion...but thats the moderators job not mine
Click to expand...
Click to collapse
Threads regarding R&D belong in development, so I guess it really belongs here. Even more so cause if it's moved to general, tons of n00bs will join in and destroy the thread. please keep this developers only.
Anyway thanks to see you join in Spleef, much appreciated !! Still setting up my environment myself ...
spleef said:
soo...maybe m wrong (has been a while snce ive ported) but im goin to drop a few lines anyhow......
porting is very different from source building.....the only reason you would need to dl the cm sources would be to compile the rom using sources...and right now the note 4 has none we would need device,kernel,common,vendor sources for that....so... we cant source build right now only port....sp what we need to do is research which device officially or unofficially that has cm with same specs as the note4 things like screen size, board, things of that nature....and would highly recommend using the same carrier as well.....but once we have that info....dl that phones cm rom zip....dl one of our phones rom zips.....now for the fun....ill lay out a way i did it maybe is the same still ...
place both cm zip and note 4 zip on desktop..
create a new folder call it new
drag all files from the cm zip into the new
open the new and open the note 4 zip have them side by side
now your going to drag pretty much all folders/files from the note 4 system folder into the new sytsem folder one folder at a time excluding:
app,priv-app,etc,fonts,media,framework,xbin (im probably forgetting one or two but has been a long time)
now the fun begins....time to edit some xmls and trial and error on pretty much everything until it is working right
you are also going to want to change out the kernel and have to edit the updater-script in the meta-inf....
im positive im forgetting a few things but this is pretty much what i can remember......from off the top of my head...some of the guides ill link in a bit will go into greater detail and explain things more in depth
a few links ive had bookmarked that will help ya
http://forum.xda-developers.com/showthread.php?t=1908008
http://forum.xda-developers.com/showthread.php?t=732957
http://forum.xda-developers.com/showthread.php?t=1957219
http://forum.xda-developers.com/showthread.php?t=1272270
http://forum.xda-developers.com/showthread.php?t=2113479
http://forum.xda-developers.com/showthread.php?t=1801690
http://forum.xda-developers.com/showthread.php?t=2251719
http://forum.xda-developers.com/showthread.php?t=1941239
http://forum.xda-developers.com/showthread.php?t=1805408
http://forum.xda-developers.com/showthread.php?t=2058850
all of these links in one way or another have helped me during my porting phase hope they do the same for you ...like ive said before im more of a source builder so thats what imgoing to be trying to do is getting a working tree... but if you need help just hit me up ill do what i can
Click to expand...
Click to collapse
Great addition to the thread ! Hmm I haven't done any porting myself. I figured once we have a kernel up (compiling it should be easy), then what's stopping us from booting CM ? I mean of course RILD won't work if we don't have a JNI (or what's it called on ART, ANI ? ) interface to the modem. Of course we won't have NFC, internet, telephony, all that. But merely booting a graphical interface that should be doable with Nexus 6 source code, right ? I mean all we need is SoC sources so we have cpu & graphics working, right ? So That was what I had in mind myself but your approach actually is quite the same now I think of it
Thread is moved to general AGAIN. Hehe. Starting a development thread ON XDA and have it in the developer section seems harder than porting CM12 Anyway I guess it doesn't matter in which section it is, as long as n00bs and trolls stay out and we can focus on development only.
Anyway, downloading kernel sources as we speak ...
BTW, here is Nexus 6 source code: http://www.xda-developers.com/android/google-nexus-6-factory-images/
Going to down that right now too ...
Ok, building kernel as we speak. I just installed the arm-eabi-4.7 toolchain, like this:
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/
And then edited the makefile and issued the 3 commands all as specified in README_Kernel.txt from the Samsung Kernel. So far so good
And yes, as expected, build breaks:
drivers/scsi/ufs/ufs_test.c:25:19: fatal error: ../sd.h: No such file or directory
compilation terminated.
make[3]: *** [drivers/scsi/ufs/ufs_test.o] Error 1
make[2]: *** [drivers/scsi/ufs] Error 2
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2
Hehe, Samsung wouldn't be Samsung if they would supply a kernel that actually builds from the start Going to investigate ...
Actually that seems like an easy fix, just linked the file correctly
And a new break:
In file included from drivers/gud/MobiCoreDriver/logging.c:21:0:
drivers/gud/MobiCoreDriver/main.h:24:22: fatal error: platform.h: No such file or directory
I'd say it's looking for the file in platforms/MSM8960_SURF_STD, going to link it correctly ...
And building again ...
n file included from drivers/video/msm/mdss/mdss_mdp_trace.h:255:0,
from drivers/video/msm/mdss/mdss_mdp.c:61:
include/trace/define_trace.h:79:43: fatal error: ./mdss_mdp_trace.h: No such file or directory
Include should point to kernel includes, fixing it again
And building again ...
Code:
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
LZO arch/arm/boot/compressed/piggy.lzo
AS arch/arm/boot/compressed/piggy.lzo.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
Kernel ready Of course that was the easy part, hehe, but still, progress. Tomorrow going to start with the difficult part, getting CM up
I've ported before but only tw where it was mainly framework edits. Never worked with cm before but like the op I'm keen to learn. If i can help at all just let me know, I use linux mint myself rather than Ubuntu but they're very similar
So, just downloaded Nexus 6 sources. It seems that directory /device/moto/shamu contains the device hardware stuff we need ! Going to research some more today ...
*EDIT* also mind the propietary-blobs.txt in that directory. I'm still waiting for my Note 4 myself (hopefully friday), but this needs to be compared with the files on the device, cause if they exist, they will be blobs of course and we need them.

[Q] Wich files to edit when porting from TITAN to THEA

Hello XDA,
As all of you may know there is a 4G LTE version of the Moto G 2nd Generation, better known under the model number XT1072 and XT1079. Unfortunately almost all ROMs are created for the titan. While the titan ROMs boot just fine because of the almost exact HW, when installing those ROMS we don't get 4G and the speakers and earpeace, especially while calling, get unusable.
So instead of sitting on my butt and asking LUK to develop a 4G patch, can anyone guide me ? I know how to setup the SDK and know the theory about compiling from source but have never done it. Do we have to recompile something or can I just replace certain files with some other files from the (one and only) CM12.1 port for the THEA ?
This must be doable I think.
soulaiman said:
Hello XDA,
As all of you may know there is a 4G LTE version of the Moto G 2nd Generation, better known under the model number XT1072 and XT1079. Unfortunately almost all ROMs are created for the titan. While the titan ROMs boot just fine because of the almost exact HW, when installing those ROMS we don't get 4G and the speakers and earpeace, especially while calling, get unusable.
So instead of sitting on my butt and asking LUK to develop a 4G patch, can anyone guide me ? I know how to setup the SDK and know the theory about compiling from source but have never done it. Do we have to recompile something or can I just replace certain files with some other files from the (one and only) CM12.1 port for the THEA ?
This must be doable I think.
Click to expand...
Click to collapse
It's easy but I'm not going to help in dirty ports. Build roms from source instead, this is my recommendation.
If you want to learn how to build roms from source I can help you but you'll need to have Linux machine to do that.
LuK1337 said:
It's easy but I'm not going to help in dirty ports. Build roms from source instead, this is my recommendation.
If you want to learn how to build roms from source I can help you but you'll need to have Linux machine to do that.
Click to expand...
Click to collapse
Thanks for the reply Luk, I also think that building from source is the same. I have followed many, many guides but somehow the part where I have to point to the thea specific HW blobs fails. The extract-files.sh points to ./../../$VENDOR/msm8226-common/setup-makefiles.sh [email protected] wich I understand is the motorola folder in the WORKING_DIRECTORY. Somehow I can't find the right repo on github to point it at.
Sorry for the noobish Q... There is a first time for everything.
EDIT: I wanted to say that I think that porting from source is better, not the same.
soulaiman said:
Thanks for the reply Luk, I also think that building from source is the same. I have followed many, many guides but somehow the part where I have to point to the thea specific HW blobs fails. The extract-files.sh points to ./../../$VENDOR/msm8226-common/setup-makefiles.sh [email protected] wich I understand is the motorola folder in the WORKING_DIRECTORY. Somehow I can't find the right repo on github to point it at.
Sorry for the noobish Q... There is a first time for everything.
EDIT: I wanted to say that I think that porting from source is better, not the same.
Click to expand...
Click to collapse
You could use blobs from TheMuppets instead: https://github.com/TheMuppets/proprietary_vendor_motorola
LuK1337 said:
You could use blobs from TheMuppets instead: https://github.com/TheMuppets/proprietary_vendor_motorola
Click to expand...
Click to collapse
Thanks !!
I was really confused and got the CM12 branch instead the first time. Lol now I feel like a noob haha (wich I am when it comes to developing).
Will post here if I have any Questions/errors (that google can't help me with).
:good:
soulaiman said:
Thanks !!
I was really confused and got the CM12 branch instead the first time. Lol now I feel like a noob haha (wich I am when it comes to developing).
Will post here if I have any Questions/errors (that google can't help me with).
:good:
Click to expand...
Click to collapse
Also don't use git clone manually, make your local_manifests xml instead.
LuK1337 said:
Also don't use git clone manually, make your local_manifests xml instead.
Click to expand...
Click to collapse
Oh okay, I will look into that in a minute.
Now I got an issue that really got my head hurting... When I do the lunch command, my Moto G isn't in the list of devices... What Am I doing wrong ?
I have got a directory called thea in WORKING_DIRECTORY/device/moto/thea
I have got also an old thea directory (cm12.1) in WORKING_DIRECTORY/thea and WORKING_DIRECTORY/thea2
All the blobs from TheMuppits repo are in de device/moto/thea dir
All the poperiatary blobs are also in the XT907 dir...
I've done the
Code:
cd /device/moto/thea
init android-5.1.1_rx
repo sync
and let it finish without errors.
Once I get over this I will be good to go.
Oh, and thanks for sharing the knowledge !
soulaiman said:
Oh okay, I will look into that in a minute.
Now I got an issue that really got my head hurting... When I do the lunch command, my Moto G isn't in the list of devices... What Am I doing wrong ?
I have got a directory called thea in WORKING_DIRECTORY/device/moto/thea
I have got also an old thea directory (cm12.1) in WORKING_DIRECTORY/thea and WORKING_DIRECTORY/thea2
All the blobs from TheMuppits repo are in de device/moto/thea dir
All the poperiatary blobs are also in the XT907 dir...
I've done the
Code:
cd /device/moto/thea
init android-5.1.1_rx
repo sync
and let it finish without errors.
Once I get over this I will be good to go.
Oh, and thanks for sharing the knowledge !
Click to expand...
Click to collapse
Your directories are bit off, it should be looking like this.
CM/device/motorola/msm8226-common
CM/device/motorola/thea
CM/device/qcom/sepolicy
CM/device/qcom/common
CM/kernel/mototola/msm8226
CM/vendor/motorola
Don't forget about rest of CM source :3
LuK1337 said:
Your directories are bit off, it should be looking like this.
CM/device/motorola/msm8226-common
CM/device/motorola/thea
CM/device/qcom/sepolicy
CM/device/qcom/common
CM/kernel/mototola/msm8226
CM/vendor/motorola
Don't forget about rest of CM source :3
Click to expand...
Click to collapse
Oh okay got ya. Do I have to do some kind of refresh command when I touch the folders ?
soulaiman said:
Oh okay got ya. Do I have to do some kind of refresh command when I touch the folders ?
Click to expand...
Click to collapse
If you're building CM then all you have to do is to get vendor, do envsetup.sh and just brunch thea.
LuK1337 said:
If you're building CM then all you have to do is to get vendor, do envsetup.sh and just brunch thea.
Click to expand...
Click to collapse
I'm trying to build an AOSP build like yours to learn. I'm following this guide:
http://forum.xda-developers.com/chef-central/android/tutorial-compile-lollipop-ubuntu-t2929410
I guess it is similar in steps as what you described ?
Even with all the files in the correct directories when I exec the lunch command it doesn't list the moto G. See screenshot.
soulaiman said:
I'm trying to build an AOSP build like yours to learn. I'm following this guide:
http://forum.xda-developers.com/chef-central/android/tutorial-compile-lollipop-ubuntu-t2929410
I guess it is similar in steps as what you described ?
Even with all the files in the correct directories when I exec the lunch command it doesn't list the moto G. See screenshot.
Click to expand...
Click to collapse
You won't get clean AOSP to build, also u messed up directories as you put vendor in device.
If you have hangouts you can add me ( https://plus.google.com/108108436166506337243 ) so I could help you live.
LuK1337 said:
You won't get clean AOSP to build, also u messed up directories as you put vendor in device.
If you have hangouts you can add me ( https://plus.google.com/108108436166506337243 ) so I could help you live.
Click to expand...
Click to collapse
Thanks for all the help man, really appreciate it !
Yeah stupid fault of my part. Will try it.
About Hangouts: My hangouts app allways FC's on me so that will be for another day. I'll add you asap ! Thanks!
Also it is 1:45AM here so
soulaiman said:
Thanks for all the help man, really appreciate it !
Yeah stupid fault of my part. Will try it.
About Hangouts: My hangouts app allways FC's on me so that will be for another day. I'll add you asap ! Thanks!
Also it is 1:45AM here so [emoji14]
Click to expand...
Click to collapse
K, I'm in the same time zone fyi.

Categories

Resources