yashsingh1/xdaforums huggingface dataset:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] ksako:
I built by using github as of today and wifi does not work. (I tried update without executing wipe/factory reset).

From the github commits of LegacyXperia/android_device_semc_mogami-common, I think it is because the following

symlink command only executed if /data/etc/wifi/wl1271-nvs.bin does not exists.

<pre>

/system/bin/ln -s /data/etc/wifi/wl1271-nvs.bin /system/etc/firmware/ti-connectivity/wl1271-nvs.bin

</pre>

After link by using terminal commnad, wifi works very well.

It is not a serious problem, but it is helpful if you can fix in consideration with update without wipe data at some day.

Anyway, thank you for your great work.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kv1dr:
target thumb C++: audio.primary.msm7x30 <= hardware/qcom/audio-caf/msm7x30/AudioHardware.cpp
hardware/qcom/audio-caf/msm7x30/AudioHardware.cpp:40:31: fatal error: linux/spi_aic3254.h: No such file or directory
compilation terminated.
make: *** [/home/kv1dr/android/system/out/target/product/mango/obj/SHARED_LIBRARIES/audio.primary.msm7x30_intermediates/AudioHardware.o] Error 1

I can't build CM10.1 for mango due to spi_aic3254.h library missing.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ivyl:
Just don't merge everything from https://raw.github.com/M66B/cm-xtended/master/merge_requests.sh

FM merge request is broken. repo sync your code and then apply by hand other requests.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] :
PA Help OFFTOPIC

can anybody please help in updating PA

Sources ::- : github.com/ParanoidAndroid-Xperia // https://github.com/PA-semc/android

as sources are updated 3 months ago can anybody help ..
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mikeioannina:
First post is updated with new links of update script & local manifest
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mas-aa:
Nice tutorial

Nice tutorial. I am still beginner and this post really help me. Will try to build this CM for my XMP myself
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] gompa:
camera

when compiling with this guide i get a error on the camera/gallery, when i remove the camera and gallery from the manifest it builds fine but the camera doesn't work (as expected) how to compile this source with working cam ?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] shenlong85:
Try to use this command

Make clean

Then rebuild using the new commands in the first post.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] gompa:
iam sorry for the late replay, but that didnt help.

i will try syncing and compiling again when its not this hot
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] :
anyone knows how to invert cm10.1 or add features from source like including HALO in cm (only in personal builds) ..
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] :
ok .. so anyone here to help please ...

for building 4.3 i m using branch cm-10.2 and using same guide is it correct ..?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] r00lz:
Thanks! Successfully compiled mango :good:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Langes:
Basically yes, but here is the 10.2 guide: http://xdaforums.com/showthread.php?t=2397249
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] enli:
I have been compiling for Urushi. This morning i do "repo sync" and git asks me for the password. Looking further into the matter, it seems that https://github.com/LegacyXperia/android_packages_apps_Camera is 404.

[MENTION=3839575]mikeioannina[/MENTION] how to fix this?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] TheDarkDefender:
The local manifests have been updated lately, delete the old semc.xml and pull and paste the new one. Should work fine then.

Sent from my Nexus 4
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] jawor1099:
How can i build aokp jb-mr1 for haida?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kv1dr:
1. This is forum for Xperia Mini, Mini Pro, Active, Ray and Live with Walkman

2. This is CyanogenMod thread and not aokp.

I suggest you ask in this forum: http://xdaforums.com/forumdisplay.php?f=1276
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mihahn:
Sorry, already solved :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] themike10452:
Excuse me guys this is my first time building a ROM/Kernel.

I went through the steps fine so far but I have a simple question:

- I want to build only the kernel, which of the steps above do I have to follow exactly? Do I have to sync the entire repo too??

Thanks in advance.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mikeioannina:
In my opinion the easiest way for begginers is to sync the entire repo
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] themike10452:
I have restrictions on my download bandwidth so I can't do more than 2GB a day :/ And as I already read in previous post I will have to sync up to 24GB of data, so I think I'm pulling this off :/ Thanks anyway.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] deveron3:
In syncing the repo (using repo sync -f -j10) I encountered a curious error which keeps recurring:

Syncing work tree: 27% (90/332) error: revision refs/tags/android-4.2.2_r1.2 in LegacyXperia/android_external_iw not found

My internet connection is fine, and everything else is successfully synced. It just seems to be this part which aborts the sync process.

Does anyone have insight into my problema?

Thanks! :D

Edit: bump...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] shenlong85:
Try using -j4 or -j2

The multi threading process has some race condition issue. Try downloading it.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] deveron3:
What do you mean by "race condition issue"? :confused:

I haven't had an issue syncing other projects at levels as high as -j16...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] shenlong85:
This is because you are running threads in parallel. http://en.wikipedia.org/wiki/Race_condition

I think some threads timeout and hence the problem. Maybe some compilation of drivers are slower. So, do try to use a lower number and see if it helps.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] knizmi:
Race condition

He is not compiling anything, just downloading (syncing) it, so the idea of a race condition is a little akward...

I've had all kinds of problems (mostly sha1 errors) when trying to sync the repo in virtualbox, even with -j1, but encountered 0 problems on a real system. So anyone who has problems with repo sync and uses virtualized environment should try doing it on a real system. Either install linux next to your windows partition (just make sure the linux partition is large enough) or if you are an OSX user, you can easily sync it in OSX (just did that, no problems).
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] shenlong85:
Oh yeah, u reminded me of one more thing. If you are syncing on windows, or virtual machines on windows, the file system do not support case sensitive by default and the repo of android uses both caps and low caps file names in the same folder and this may cause it to fail.

My advise is to get a 80gb ext3 partition for ur repo. Let us know which methods works.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] knizmi:
You can sync on a case insensitive filesystem, but you cannot build it there. Btw, HFS+ filesystems on Macs are case insensitive by default as well.

When you use a virtual machine it creates a file which is used as a virtual HDD and you can format that virtual HDD with any FS you want. As a result you can sync and build android in a virtual machine on any OS (even windows) without a problem.

At the end I installed linux on a real 100 GB partition on my secondary HDD, copied /android/system from my OSX partition so that i didn't have to download it all again and built it there (CM10.1). I did it mainly to test the new wifi changes, but I do not see any difference. It worked for me before and it still works :)

BTW the android folder is 11,2 GB large after syncing and compilation of mango, so a 50 GB filesystem should be large enough.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] knizmi:
Linaro kernel

If anybody was interested, I've uploaded a 20130925 mango kernel built with latest 4.7 linaro toolchain in my previous post. Not sure if it is any faster than a stock kernel, but it shouldn't be any slower :) So far I can just say that it boots and everything I've used so far seems to work ;)

The image had to be 7zipped as there is 8MB size limit on imgs on XDA. Just unpack it first and flash.

Hope that Mike doesn't mind if I upload a linaro kernel from time to time. If so, just say so...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] panchokoster:
I am getting this error :-/

fatal: No annotated tags can describe '161f26dcfb2f9ff69e3ba5457d8074157f1ced33'.
However, there were unannotated tags: try --tags.
fatal: No annotated tags can describe '161f26dcfb2f9ff69e3ba5457d8074157f1ced33'.
However, there were unannotated tags: try --tags.
fatal: No annotated tags can describe '161f26dcfb2f9ff69e3ba5457d8074157f1ced33'.
However, there were unannotated tags: try --tags.
fatal: No annotated tags can describe '161f26dcfb2f9ff69e3ba5457d8074157f1ced33'.
However, there were unannotated tags: try --tags.

I have followed the instructions correctly, what could the cause be?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Langes:
I get these same errors, but the build carries on to the end regardless.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] panchokoster:
mmm I am also having this errors, strange. a few builds ago it was working just fine

hardware/ti/wlan/mac80211/ti-utils/Android.mk:67: hardware/ti/wlan/mac80211/ti-utils/wlconf/hw/Android.mk: No such file or directory
build/core/Makefile:44: warning: overriding commands for target «/home/francisco/android/CM10.1/system/out/target/product/smultron/system/lib/libril.so»
build/core/base_rules.mk:502: warning: ignoring old commands for target «/home/francisco/android/CM10.1/system/out/target/product/smultron/system/lib/libril.so»
build/core/Makefile:44: warning: overriding commands for target «/home/francisco/android/CM10.1/system/out/target/product/smultron/system/bin/wifical.sh»
build/core/base_rules.mk:502: warning: ignoring old commands for target «/home/francisco/android/CM10.1/system/out/target/product/smultron/system/bin/wifical.sh»
build/core/Makefile:44: warning: overriding commands for target «/home/francisco/android/CM10.1/system/out/target/product/smultron/system/etc/mkshrc»
build/core/base_rules.mk:502: warning: ignoring old commands for target«/home/francisco/android/CM10.1/system/out/target/product/smultron/system/etc/mkshrc»
No private recovery resources for TARGET_DEVICE smultron
make: *** No rule to make target «hardware/ti/wlan/mac80211/ti-utils/wlconf/hw/Android.mk». Stop.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mikeioannina:
Sources are broken currently. I'll fix that tomorrow.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] knizmi:
Missing ti-utils/wlconf/hw dir

You did nothing wrong, it is indeed ipossible to build CM for 2011 Xperias at the moment. The problem is a missing hardware/ti/wlan/mac80211/ti-utils/wlconf/hw directory.

Just wait for mike to fix it.

The entire error goes like this:

fatal: No annotated tags can describe '161f26dcfb2f9ff69e3ba5457d8074157f1ced33'.
However, there were unannotated tags: try --tags.
fatal: No annotated tags can describe '161f26dcfb2f9ff69e3ba5457d8074157f1ced33'.
However, there were unannotated tags: try --tags.
fatal: No annotated tags can describe '161f26dcfb2f9ff69e3ba5457d8074157f1ced33'.
However, there were unannotated tags: try --tags.
fatal: No annotated tags can describe '161f26dcfb2f9ff69e3ba5457d8074157f1ced33'.
However, there were unannotated tags: try --tags.
hardware/ti/wlan/mac80211/ti-utils/Android.mk:67: hardware/ti/wlan/mac80211/ti-utils/wlconf/hw/Android.mk: Adresář nebo soubor neexistuje
build/core/Makefile:44: warning: overriding commands for target `/home/milan/android/system/out/target/product/mango/system/lib/libril.so'
build/core/base_rules.mk:502: warning: ignoring old commands for target `/home/milan/android/system/out/target/product/mango/system/lib/libril.so'
build/core/Makefile:44: warning: overriding commands for target `/home/milan/android/system/out/target/product/mango/system/bin/wifical.sh'
build/core/base_rules.mk:502: warning: ignoring old commands for target `/home/milan/android/system/out/target/product/mango/system/bin/wifical.sh'
build/core/Makefile:44: warning: overriding commands for target `/home/milan/android/system/out/target/product/mango/system/etc/mkshrc'
build/core/base_rules.mk:502: warning: ignoring old commands for target `/home/milan/android/system/out/target/product/mango/system/etc/mkshrc'
No private recovery resources for TARGET_DEVICE mango
make: *** No rule to make target `hardware/ti/wlan/mac80211/ti-utils/wlconf/hw/Android.mk'. Stop.

EDIT: Mike was faster...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] lozohcum:
Hey guys, can you tell me how to fix "No private recovery resources for TARGET_DEVICE " erorr? I'm strugling with CM10.1 build.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] ksako:
I executed repo sync and applied the updates.sh today. I saw the following message and build was stopped.

make: *** No rule to make target `hardware/ti/wlan/mac80211/hw/firmware/wl127x-fw-4-mr.bin', needed by `/home/xxxx/android/system/out/target/product/anzu/obj/FIRMWARE/wl127x-fw-4-mr.bin_intermediates/wl127x-fw-4-mr.bin'. Stop.

Is there anyone who face this problem other than me?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] knizmi:
ksako> Yes, the sources are still broken. I´ve managed to build CM 10.1 yesterday evening, but wifi didn´t work. Just watch for changes at github/legacyxperia (sorry, I cant post links yet), especially for wifi fixes, and try it later.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] knizmi:
Missing wifi firmware

I tried it again yesterday evening. I've downloaded the missing firmware blobs from https://github.com/TI-OpenLink/firmwares, placed it in the corresponding directory, recompiled the sources and now I have a wifi that can be turned on and can scan nearby networks.

It cannot, however, connect to WPA protected networks, which means that either the firmware is not correct (unlikely) or that there is a problem with WPA supplicant (more probable). WPA supplicant has seen a lot of changes in mike's repo recently, so you can either try to replace it with another one or wait for mike to fix it, as always :)

For now I am reverting to my own build from the 25th, which is probably exactly the same as the official nightly build from mike, except mine is with linaro kernel.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] lzyllp:
Got the same problem here
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] knizmi:
Funny thing is that wifi tethering works with recent builds, you just can´t connect to any network. Just copy the firmware I linked in my last post to hardware/ti/wlan/mac80211/hw/firmware/ and you will be able to go through with the compilation.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] knizmi:
Up and running

Compilation works fine and so does wifi, thank you Mike :highfive:

Testing today's build right now. If anybody was interested, here's a Linaro kernel for Mango.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] saqibkhan:
Detailed Building a Kernel CM 10.1 for Zeus or any Sony 2011 Device.

"NOOB ALERT" First time Building.. FIRST time Using UBUNTU EVER !

Please please correct me as answer with the step number.. else i get confused.. and this will make sure.. no noob ever suffers like me again. a complete guide.

Step 1. I go here http://wiki.cyanogenmod.org/w/Build_for_zeus and as mentioned .. i would complete steps until "Initialize the CyanogenMod source repository" step (don't execute this step). until=not include this step.

Step 1a Went to https://developer.android.com/sdk/index.html to install the Android SDK. Downloaded the SDK not ADT,and through the SDK manager.. Installed all the appropriate files as mentioned on that website. Everything is inside Downloads/ANdroid-sdk-Linux folder

Step 1b Started Installing Build packages. 2 Sets of Build Packages mentioned on http://wiki.cyanogenmod.org/w/Build_for_zeus and after completing both it also mentioned other needed packages on http://source.android.com/source/initializing.html

on this page Installed the "Required packages for Ubuntu 12.04" though i have 13.10.. now it meations on this page.. that i need 4 more things. Python , GNU , Java , Git . So on to installing all of these now.

Python from python.org . Went to http://askubuntu.com/questions/244544/how-to-install-python-3-3 and installed using one of the method (though it mentions it is already in Ubuntu)

GNU from gnu.org.. used this command to install all Gnu packages "sudo apt-cache search gcc"

Java hmm.. ust check.. i already have OpenJDK installed.

Git .. from http://git-scm.com/download/linux .. its simple

ok then.. all that Installed. Back to http://wiki.cyanogenmod.org/w/Build_for_zeus

Step 1c Created both the Directories

Step 1d put the directory in path of execution (pasted in terminal.. nothing happened.. skipped to a new line waiting to enter command)

Also did the extra 2 steps to permanently make it in path of execution.. ok Work completed on http://wiki.cyanogenmod.org/w/Build_for_zeus .. Now back to Mike's Guide.. i mean this Thread.

Now i will update you of all the error i get.. if any

for ./updates.sh i get error .. ./updates.sh: line 22: /home/saqib/android/system/build/tools/repopick.py: No such file or directory

then on the next. cd ~/android/system/vendor/cm. bash: cd: /home/saqib/android/system/vendor/cm: No such file or directory

then next ... /get-prebuilts bash: ./get-prebuilts: No such file or directory

then next .. . build/envsetup.sh bash: build/envsetup.sh: No such file or directory

PLease help me fix all these errors.. i have tried sooo many times but cant ..

Also let me know.. do i need to build a ROM first.. what if i dont.. i want to build only the Kernel.. after doing all this.. i go to Breakfast Zeus right.. no need for Brunch Zeus.. ??

and also.. if i make changes to the files.. Drivers.. to make touchscreen work for the kernel.. or if i want to Mix Sources and compile.. what should i do ??
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] knizmi:
[MENTION=4862673]saqibkhan[/MENTION]

"sudo apt-cache search gcc" is definitely not a way how to install GCC. You shouldn't need it though, as android uses its own toolchains.

If you ran "sudo apt-get install bison build-essential curl flex git-core gnupg gperf libesd0-dev libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop openjdk-6-jdk openjdk-6-jre pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev g++-multilib gcc-multilib lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev" as mentioned in http://wiki.cyanogenmod.org/w/Build_for_smultron, you should be fine.

You install this, create the dir where you want the CM source to be and now just follow Mike's first post. Isntall LZOP, init the repo, copy manifest, sync repo, get some sleep, check if it is downloaded, go to work, check if it is donwloaded :), download, chmod and run updates.sh, get prebuilts, setup the build environment, and go!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] saqibkhan:
thats all installed.. the build packages i mean.. and i have been following Mike's thread only.. but i get the errors mentioned above.. my sync repo doesnt take long. becasue i hav already downloaded the full thing.. it took like 12 hours maybe.. it tries to sync.. but its the latest thing.. as i donloaded yesterday only.. how to correct the error ??
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] knizmi:
[MENTION=4862673]saqibkhan[/MENTION]

If you run repo sync, what are the last few lines you see? Did it finish syncing? And most of all - did it create all the files?

If you run ls ~/android/system/ do you see the files and dirs repo was supposed to create? You should see a bunch of them, like on the picture I am including.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] saqibkhan:
i have all that.. but not in androd/system.. but in root .. how to copy paste all to android/system.. all the folders show locked Icon in them.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] knizmi:
OMG, did you really run repo sync as a root in a root directory? You had to, or you wouldn't have ended up with those files in your root and with a "locked Icon in them".

If so, login as root again, move the .repo folder (which is hidden) to ~/android/system, change the owner of .repo to your user, login as user, reinit repo, repo sync and hope the permissions in .repo are not completely messed up.

Oh, and delete all the remaining android stuff from your root directory.

And if you have no idea what I am talking about, then either google it or reinstall Ubuntu and start over again. Seriously, if you have no idea about what those commands in the guide mean, you need to follow the guide to the last letter.

PS: I would understand if someone tried syncing repo in the root directory. I too sometimes forget to change directory, but it wouldn't have worked unless you did it as ROOT. Why would you ever do that?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Langes:
Some small piece of advice: never run sudo su

Never put sudo in front of a command unless specifically instructed to do so

This command (sudo su) will make all following commands in that terminal run as root. You only use root to install packages (applications) needed for building. All android related tasks are done as a normal user.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mikeioannina:
No offence but looking at your posts, I don't think you will achieve what you want.

You don't seem to have any knowledge on linux and you have an unsupported device (zeus) that will probably not build because the kernel support for it is outdated.

good luck
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] saqibkhan:
Error compiling Zeus Kernel

i think ur right..but i still want to compile or learn to compile.. or do something.. i want to keep on trying.

btw i absolutely did as per your guide.. but it gives me error when i try to build for zeus.. i am very sure i did everything right this time.. if someone can help me here..

i have 5 Errors.. please checkout the screenshots below.

Error 1 from repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1

Error 2 from repo sync (at the end gives some errors)

Error 3 from ./updates.sh

Error 4 from cd ~/android/system/vendor/cm

Error 5 from breakfast zeus (ofcourse this should not work as i have errors above)

Error 6 .. i cant find the touchscreen drivers in my source that is downloaded.. the cy8ctma300_touch.c file.. is the download complete ??
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Langes:
Error 1: looks like you missed a slash, I see git:/github and should be git://github

The correct full init command:

repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1

This should sort out the other errors till no4 ...

If you still get these errors, delete the ~/android/system folder and try again from after installing build essentials, your source folder could be corrupted by all the previous mistakes
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] saqibkhan:
tried again.. first 2 steps corrected.. it was not because of Slash.. it was because i tried without Root.

for repo sync.. still same error lines in the end.

for androd/system/vendor etccc .. still says no folder

breakfast zeus.. still same..

Question if i delete android/system, wud i have to download the 10gb or so of source again from the beginning.. i have already downloaded it twice.. first by mistake in root folder.. but this time correctly in android/system .. and somethings didnt work without root.. dats y i to sudo -s ..