Z2 cm / kernel compilation - help needed - Xperia Z2 Q&A, Help & Troubleshooting

Hello,
I need the cifs.ko module. As I could not find it and had to read some threads of other users, waiting for help, I decided to compile the module myself.
I followed this instruction: wiki.cyanogenmod.org/w/Build_for_sirius
Unfortunately the command 'breakfast sirius' results in an error - the same with 'lunch'
I hope for your help, as I don't know what to do.
Kind regards,
Tom

Have you added the correct/required repos in your local manifests file? ☺
Sent from my Xperia Z2 using Tapatalk

Mr.R™ said:
Have you added the correct/required repos in your local manifests file? ☺
Sent from my Xperia Z2 using Tapatalk
Click to expand...
Click to collapse
I added the one repo mentioned in the instruction...
-----------------------------
$ cd ~/android/system/
$ repo init -u ...github.com/CyanogenMod/android.git -b cm-11.0
$ repo sync
----------------------------
Is there another repo?
I thought that the command includes the whole cm-11 source.

It does but you need a few more for the kernel n such, I'm not at home so can't provide them but will Monday if you need me too
Sent from my Xperia Z2 using Tapatalk

Mr.R™ said:
It does but you need a few more for the kernel n such, I'm not at home so can't provide them but will Monday if you need me too
Sent from my Xperia Z2 using Tapatalk
Click to expand...
Click to collapse
I read that every build has the manifest - so I extracted it from the last nightly and copied it to .repo/local_manifest/sirius-manifest.xml.
Isn't doing the job... see attachment.
repo also cannot see the .xml file and is telling me that there is a duplicate path - now with the default.xml also?
Any hint why this is happening is appreciated!
If you could give me a working manifest that would be great! :angel:

Related

[Devs only] X10 Froyo AOSP / CM6 Sources / cm6 build tutorial Released !

this is a devs only thread , i am working now on froyo aosp sources all dev can join and help ,
thes sources is almost donne but need some fixes and optimisations , you can pm me , y will responce all dev request message
or write heare , so ther is :
i taked as base the , Freex10 sources by Zdzihu
and AOSP 2.3.3 freexperia project sources structure by Jerpelea
link for release download is on 2nd post
** tutorial to make a build environement for cm6 ** check the 3rd post
any dev's willing to contribute can join on : https://github.com/Achotjan/FreeXperia
cheers
Achotjan
if you are not a developper and you like my work do not write " thanks" just put the thanks button but if you are dev you can put it to
you can also Donate : http://forum.xda-developers.com/dona....php?u=2482775
---- Releases -----
** UPDATE ** !
AOSP and CM6.2.0 Compleated sources check my github repo :
AOSP : https://github.com/Achotjan/FreeXperia/tree/master/Froyo_AOSP
CM6 : https://github.com/Achotjan/FreeXperia/tree/master/android-CM6
--- OLD ---
almost compleat and working sources AOSP / CM6.1.3 :
FreeXperia Project Achotjan_2.2.1_froyo_AOSP_sources_2nd_release : http://www.mediafire.com/?ct91eqj53em5195
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FreeXperia Project Achotjan_2.2.1_CM6.1.3_sources_release : http://www.mediafire.com/?9d365k4a95qeaix
1st release AOSP only :
FreeXperia Project Achotjan_2.2.1_froyo_AOSP_sources : http://www.mediafire.com/?hgibxu7z1ifzlzn big thanks to Jerpelea for the help !
thes source is almoste donne just need some correction
cheers
Achotjan
---- cm6 build environement tutorial ----
to start making the cm6 build environement you need
open the terminal and use this commend :
sudo-apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool
Click to expand...
Click to collapse
### Create the Directories ###
# You will need to set up some directories in your build environment.
# To create them:
# use the folowing commands without the :
mkdir -p ~/bin
Click to expand...
Click to collapse
# then :
mkdir -p ~/cm6
Click to expand...
Click to collapse
#after that Install the Repository , Enter this commend to download the "repo" binary:
curl http://android.git.kernel.org/repo > ~/bin/repo
Click to expand...
Click to collapse
# then:
chmod a+x ~/bin/repo
Click to expand...
Click to collapse
# after that use this command :
cd ~/cm6
Click to expand...
Click to collapse
# then :
[QUOTE repo init -u git://github.com/CyanogenMod/android.git -b froyo-stable[/QUOTE]
# after that just use this :
repo sync -j16
Click to expand...
Click to collapse
# if sync -j16 have this error : #### error: Cannot fetch CyanogenMod/android_device_harmony ####
just edit the .repo/manifest.xml and search and remove this line :
###########################################################################################################################
<project path="device/nvidia/harmony" name="CyanogenMod/android_device_harmony" remote="github" revision="froyo-stable" />
###########################################################################################################################
Click to expand...
Click to collapse
### ( if you not see the .repo directory in your build-environement , is cause "." files are hiden if you using ubuntu then you need to make the hiddedn files visible) ###
# then again :
sync -j16
Click to expand...
Click to collapse
### if sync -j16 have another error like this: #### error: Cannot fetch CyanogenMod/android_device_advent_vega ####
just edit the .repo/manifest.xml and search and remove also this line :
#####################################################################################################################
<project path="device/advent/vega" name="CyanogenMod/android_device_advent_vega" remote="github" revision="master" />
#####################################################################################################################
Click to expand...
Click to collapse
# then again :
sync -j16
Click to expand...
Click to collapse
### if sync -j16 have another error like this: ##error: revision master in CyanogenMod/android_device_motorola_morrison not found###
just edit the .repo/manifest.xml and search and remove also this line :
###################################################################################################################################
<project path="device/motorola/morrison" name="CyanogenMod/android_device_motorola_morrison" remote="github" revision="master" />
###################################################################################################################################
Click to expand...
Click to collapse
# then finaly :
sync -j16
Click to expand...
Click to collapse
# after the sync succesfully compleat copy device and vendor folder also build folder to the build environement and merge all .
and just after use this commend :
. build/envsetup.sh
Click to expand...
Click to collapse
# then this :
lunch full_x10-eng
Click to expand...
Click to collapse
you will got thath
##################################################################################################################################
Which would you like? [generic-eng] lunch full_x10-eng
build/core/product_config.mk:190: *** _nic.PRODUCTS.[[vendor/cyanogen/products/cyanogen_harmony.mk]]: "device/nvidia/harmony/device_harmony.mk" does not exist. Arrêt.
** Don't have a product spec for: 'lunch full_x10'
** Do you have the right repo manifest?
##################################################################################################################################
Click to expand...
Click to collapse
now just remove vendor/cyanogen folder
# and again :
lunch full_x10-eng
Click to expand...
Click to collapse
and finaly build it with this
make -j5
Click to expand...
Click to collapse
all this problem heare , have one reason cyanogenmod repo are defectues so nothink bad we build for x10 so motorol devices or any device files is not an issue to compile it
cheers
Achotjan
Devs needed to compleat the work
whole source reviewd , now we need to rewrite the device and vendor folder , now
devs needed to compleat the work who want to joint pleas pm me or write heare
waiting you to start , we have one objective rewrite the whole source after make it usable
to have a stable source and after that work on camera missing functionallity and more
sources are still not added in github , waiting to have somethink usable befor put it in
cheers
Achotjan
is acer liquid sources usable!cause all x10 sources can be found in no other place than Xda by Z
KInG GaME said:
is acer liquid sources usable!cause all x10 sources can be found in no other place than Xda by Z
Click to expand...
Click to collapse
no is not usable at all we have android sources and cm6 sources but now we need to add specified files for x10 , sources by Z is usable but not compleat but i dont want to compleat it i want to rewrite a new froyo sources for x10 and taking as base the sources from Z, i still waiting dev who can join , no one ?
cheers
Achotjan
--------------------------------------------------------------------------------------------------------------------------------------------------------------
2nd post updated test it and all devs can join is almost done just some part need to be rewriten or to be fixed
link : http://www.mediafire.com/?hgibxu7z1ifzlzn
--------------------------------------------------------------------------------------------------------------------------------------------------------------
cheers
Achotjan
What still needs fixing?
achotjan said:
--------------------------------------------------------------------------------------------------------------------------------------------------------------
2nd post updated test it and all devs can join is almost done just some part need to be rewriten or to be fixed
link : http://www.mediafire.com/?hgibxu7z1ifzlzn
--------------------------------------------------------------------------------------------------------------------------------------------------------------
cheers
Achotjan
Click to expand...
Click to collapse
Sent from my X10project using XDA App
Nice work achotjan!
rdannar said:
What still needs fixing?
Sent from my X10project using XDA App
Click to expand...
Click to collapse
i will always put compilation error and files name who need to be fixed see the 3em post you will se also 2 litle error like this but is verry progressed
will also upload the full android froyo 2.2 sources on mediafire and put the link on 1st post for who havent it
cheers
Achotjan
dude why arent u setting up a GITHUB repo?
or add it to FreeXperia repo?
DooMLoRD said:
dude why arent u setting up a GITHUB repo?
or add it to FreeXperia repo?
Click to expand...
Click to collapse
already asked J for it he accepted but y never used github and can say i am like a noob , dont know how put it in
if you can help pm me this will be nice
cheers
Achotjan
achotjan said:
already asked J for it he accepted but y never used github and can say i am like a noob , dont know how put it in
if you can help pm me this will be nice
cheers
Achotjan
Click to expand...
Click to collapse
sorry buddy i too dont know who to use it properly... but i hear its great for devs to share work with each other and keep track of changes...
---- sources added on github ! -----
---- sources added on github ! -----
https://github.com/Achotjan/FreeXperia
will put all the work on github we have a working sources now , thanks Jerpelea and Zdzihu for ther help
cheers
Achotjan
2nd release of working sources released check out the 2nd post for the link , github is not updated yet
cheers
Achotjan[/QUOTE]
for all the peapole wantink to build
cm6 build environement tutorial aded on the 3rd post
cheers
Achotjan
X10 CM6.1.3 sources added on 2nd post !
almost compleat need some fixes
cheers
Achotjan
achotjan said:
X10 CM6.1.3 sources added on 2nd post !
almost compleat need some fixes
cheers
Achotjan
Click to expand...
Click to collapse
GREAT WORK!!!
btw could u get that GB screen-off animation integrated?
DooMLoRD said:
GREAT WORK!!!
btw could u get that GB screen-off animation integrated?
Click to expand...
Click to collapse
already inclueded
cheers
Achotjan

[Q] how add git for build unofficial roms?

HI guys, I'm finding troubles understanding how and when I should clone gits for unofficial builds
example. I want to build an unofficial cm10 using this repo for fixes https://github.com/bruce2728
after I sync cm repo with jellybean branch, how should I add these gits? and which of them I have to add?
All you need is this, https://github.com/bruce2728/local_manifest
Then repo sync
Sent from my HTC PH39100 using Tapatalk 2
mg2195 said:
All you need is this, https://github.com/bruce2728/local_manifest
Then repo sync
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
ok, so the local manifest contain all the fixes! right?
I should proceed this way:
$ wget -O ~/android/system/.repo/local_manifest.xml https://raw.github.com/bruce2728/local_manifest/master/local_manifest.xml
to add the git, and than sync the official repo from cm git...
right? thanks
throcker said:
ok, so the local manifest contain all the fixes! right?
I should proceed this way:
$ wget -O ~/android/system/.repo/local_manifest.xml https://raw.github.com/bruce2728/local_manifest/master/local_manifest.xml
to add the git, and than sync the official repo from cm git...
right? thanks
Click to expand...
Click to collapse
Yep, a local manifest just adds extra trees to the sync...usually you make one and put your device and kernel trees and anything else your device requires...that way everytime you do a repo sync it will check do updates to the device and kernel trees...so its essentially git cloning, except its part of the repo sync
Sent from my HTC PH39100 using Tapatalk 2
mg2195 said:
Yep, a local manifest just adds extra trees to the sync...usually you make one and put your device and kernel trees and anything else your device requires...that way everytime you do a repo sync it will check do updates to the device and kernel trees...so its essentially git cloning, except its part of the repo sync
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
ok, I have to do it before the repo sync right? never after it?...
and is there a way to clone single gits? example, I want to clone just the vendor https://github.com/bruce2728/android_vendor_htc_pyramid.git...
what is the command?
throcker said:
ok, I have to do it before the repo sync right? never after it?...
and is there a way to clone single gits? example, I want to clone just the vendor https://github.com/bruce2728/android_vendor_htc_pyramid.git...
what is the command?
Click to expand...
Click to collapse
Go to that github, click on the git-read copy the link
Type
Code:
git clone copyedgitlinkhere locationhere
Soooo...
Open terminal
Cd working
Mkdir vendor
Cd vendor
Mkdir HTC
Git clone gitlinkhere pyramid
Cd ~/working
Replace working with your working folder
Sent from my HTC PH39100 using Tapatalk 2
mg2195 said:
Go to that github, click on the git-read copy the link
Type
Code:
git clone copyedgitlinkhere locationhere
Soooo...
Open terminal
Cd working
Mkdir vendor
Cd vendor
Mkdir HTC
Git clone gitlinkhere pyramid
Cd ~/working
Replace working with your working folder
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
YOU are the man, thank you very much, hope this works...

[Q] CM10.1 Repo Sync Error - "fatal: duplicate project"

Hi all,
I'm trying to compile CM10.1 from source, but when trying to do a new repo sync I get this error:
Code:
fatal: duplicate project CyanogenMod/android_device_samsung_maguro in /home/nickamina/android/cm10.1/.repo/manifest.xml
Can anybody suggest what the problem is here? Thanks
Final bump.
Nickamina said:
Hi all,
I'm trying to compile CM10.1 from source, but when trying to do a new repo sync I get this error:
Code:
fatal: duplicate project CyanogenMod/android_device_samsung_maguro in /home/nickamina/android/cm10.1/.repo/manifest.xml
Can anybody suggest what the problem is here? Thanks
Click to expand...
Click to collapse
The Project is duplicated 2 times in default.xml
mithun46 said:
The Project is duplicated 2 times in default.xml
Click to expand...
Click to collapse
Stumbled on this looking for a resolution for this same error with my Nexus 5 Kernel. Only problem is my default.xml does not have a duplicate entry. If I remove the entry altogether from the default.xml and repo sync the Kernel is missing. If I start a build though it will first go and download the missing kernel from github. My guess is somewhere in either device or vendor being the N5 is an officially supported device there is a call to add the package to repo as repo sync in my case will only brake after the source has been compiled.

Help me, how to create a patch file

For example:
https://github.com/munjeni/android_device_sony_lotus/blob/android-4.4_r1/patches/framework_av.patch
Who can tell me the steps?
Modify the framework/av
repo diff framework/av framework_av.patch ??????
cd framework/av
git diff > framework_av.patch ???????
thanks
May be @percy_g2 , @Abhinav2 @XperiaMT27 can help. :good:
cpkunki said:
May be @percy_g2 , @Abhinav2 @MT27 can help. :good:
Click to expand...
Click to collapse
Thank you
@munjeni @DevSwift1
xx214718247 said:
For example:
https://github.com/munjeni/android_device_sony_lotus/blob/android-4.4_r1/patches/framework_av.patch
Who can tell me the steps?
Modify the framework/av
repo diff framework/av framework_av.patch ??????
cd framework/av
git diff > framework_av.patch ???????
thanks
Click to expand...
Click to collapse
If you have repo sync then make your changes and enter repo diff. If you git clone then apply your changes, cd to the dir you want and git diff > name _you_want.patch . then you just have to apply the patch
Andrewasth said:
If you have repo sync then make your changes and enter repo diff. If you git clone then apply your changes, cd to the repository you want and git diff > name _you_want.patch . then you just have to apply it
Click to expand...
Click to collapse
Thank you
xx214718247 said:
Thank you
Click to expand...
Click to collapse
Will you work on kitkat with us? The device tree is on my github. github.com/Andrewas

[Guide][Noob-Friendly]Building Kernel For Lenovo A6000/+

Building A Kernel For A6k​
Hello Folks, Looks like A6000 Forums Are On Fire So Now I AM HErE TO POuR Oil In The FIRE
Lets Get Straight To The POint
This Guide Will Help you build a kernel for our little Precious One
Requirements:
Ubuntu[DOnt Ask How]
Required Libs like libncurses, and stuff [If you face any such error realted to libs, just google Once]
Good Internet
AT least 2GB RAM and a good processor
A bit of your time
Patience and brain
Steps:
1) Create A folder anywhere with any name you want and open it
2) Open terminal in that folder and Run This COmmand Which will install all required Libs
Code:
sudo apt-get install -y build-essential kernel-package libncurses5-dev bzip2
3)After It gets done now we need a toolchain so now type " mkdir kernel" and "cd kernel" without quotes
4) Now we will dload toolchain so first install GIT and GCC libs for ex
"sudo apt get-install git"
Now Run This to clone the toolchain
Code:
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8
5)After toolchain gets downloaded now we need kernel sources, to simplify it clone the sources from my GIT using this command in terminal
Code:
git clone https://github.com/varunhardgamer/kernel_lenovo_a6000.git
6)After Dloading kernel sources open the kernel sources folder which may have name Semar Kernel or something like that and open BuildingKernel.txt and understand the way you need to edit Build.sh
Its not hard you just need to type the address to your kernel folder which you made
7)Now type
Code:
make ARCH=arm
and press enter
8)Then RUn
Code:
make wt86518_defconfig
9)THen Run
Code:
make menuconfig
and a popup will appear showing you all the tweaks that can be included in the kernel, select accordingly and save it
10)After you Finish tweaking it, open build.sh and edit it acordingly and then run the script by " .build.sh " in the terminal and wait till you get the zimage which is the kernel
8)Now download semar kernel r5zip and push your zimage inside it and flash your first Kernel
COmment here if you face any Errrors
Kernel Source _ https://github.com/varunhardgamer/kernel_lenovo_a6000
Credits to-
Me
Mr.AW
@3lambda
Orata
@mshoaib7
@dev_harsh1998
and XDA Forums
Reserved
Link To the original Thread
https://forum.xda-developers.com/android/software/guide-easy-kernel-building-tutorial-t3581057
Thanks To @3lambda
[Really THanks Man]
Just In Case
DualBoot Coming Soon By The WAy
The MErc With A MouTh is Back
The source you have mentioned isnt the proper source for Kernel and is Limpy when it comes to New stuff support better you link them to this repo :- https://github.com/dev-harsh1998/android_kernel_lenovo_msm8916
and GCC-4.7 is old and has regression bugs Better use gcc-4.8
Regards,
dev_harsh1998
dev_harsh1998 said:
The source you have mentioned isnt the proper source for Kernel and is Limpy when it comes to New stuff support better you link them to this repo :- https://github.com/dev-harsh1998/android_kernel_lenovo_msm8916
and GCC-4.7 is old and has regression bugs Better use gcc-4.8
Regards,
dev_harsh1998
Click to expand...
Click to collapse
Ok but the build.sh that i have mentioned will have to be edited again
Oh man
OK wait
Some Modifications To the guide will be done by tomorrow
No worries you doing good work
dev_harsh1998 said:
No worries you doing good work
Click to expand...
Click to collapse
Thanks Limit DOne
WIll thanks Tomorrow
You need to edit build.sh
Change -j64 to -j4 or it'll mess up for everyone.
---------- Post added at 05:02 PM ---------- Previous post was at 05:02 PM ----------
dev_harsh1998 said:
The source you have mentioned isnt the proper source for Kernel and is Limpy when it comes to New stuff support better you link them to this repo :- https://github.com/dev-harsh1998/android_kernel_lenovo_msm8916
and GCC-4.7 is old and has regression bugs Better use gcc-4.8
Regards,
dev_harsh1998
Click to expand...
Click to collapse
+1
Use this kernel it's updated nd better.
Has.007 said:
You need to edit build.sh
Change -j64 to -j4 or it'll mess up for everyone.
---------- Post added at 05:02 PM ---------- Previous post was at 05:02 PM ----------
+1
Use this kernel it's updated nd better.
Click to expand...
Click to collapse
Oh Thanks for pointing that 64 out:good:
Thanks
The Hard Gamer said:
Oh Thanks for pointing that 64 out:good:
Thanks
Click to expand...
Click to collapse
Welcome. Keep up the good work. :good:
Lol, just rechecked your git.
The kernel will not compile. You need to define the toolchain.
Has.007 said:
Lol, just rechecked your git.
The kernel will not compile. You need to define the toolchain.
Click to expand...
Click to collapse
I myself used this method and compiled a kernel
And for toolchain
I already mentioned
export cross_compile in .sh
The Hard Gamer said:
I myself used this method and compiled a kernel
And for toolchain
I already mentioned
export cross_compile in .sh
Click to expand...
Click to collapse
bad command practise..
is it work for any version of Android? currently I'm using RR 5.8.2
hayatnas18 said:
is it work for any version of Android? currently I'm using RR 5.8.2
Click to expand...
Click to collapse
Wait till i update the guide again

Categories

Resources