Hi Guys,
This is for US version with ATT
I am starting an attempt to build from AOSP source and I will post as much as possible the complete process for people who wish to do the same. I have never compiled for ATRIX before, and I am sure I will need a lot of help from the community.
I have started my process by first Installing a fresh copy of linux mint 12,
I will give the list of packages install and the directory setup, I will keep my folder in the home directory so the commands I use are portable and probably help make a script in the end , for compile from scratch to the *.img files ready for installation via fast boot.
I am open to suggestions and criticism
Reserved for the main TUT
Lets start by installing all tools that may be needed to build the source including apps
Install an good IDE which also supports android-sdk
Code:
sudo apt-get install eclipse-cdt
1) Install SDK
Install the SDK with api for 2.3.3 and 4.0 if you wish to update to ice cream sandwich, which I plan to soon try after first sucessful compile for 2.3.3
follow instructions here
http://developer.android.com/sdk/eclipse-adt.html#installing
2)Initialize Build Environment
Code:
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-dev tofrodos python-markdown \
libxml2-utils libsdl-dev libesd0-dev libwxgtk2.6-dev
3)Install CodeSoucery compiler for arm-linux-eabi
Download the IA32-GNU/Linux installer from here
go to the download folder in command prompt and set executable permissions for it
Code:
chmod +x arm-2011.03-41-arm-none-linux-gnueabi.bin
Install it with all default options
4) Get Kernel Source for ATRIX from
here
Unzip code in a folder in home directory , a folder named kernel-tegra is created
5) Get config file from an ATT atrix with stock kernel
Connet phone switch on debugging from settings
Assuming android sdk installed under home folder.
Code:
cd ~/android-sdk-linux/platform-tools/
./adb pull /proc/config.gz
mv config.gz ~/kernel-tegra/
cd ~/kernel-tegra/
gunzip config.gz
cp -a config .config
6) Lets Compile the Kernel
Start with setting the compiler flags
Code:
cd ~/kernel-tegra
export ARCH=arm
export CROSS_COMPILE=arm-none-linux-gnueabi-
make oldconfig
make zImage
make modules
and we have a compiled kernel, now we need to packit and upload it to the phone! Working on it now
Is this the right forum mate..?
whats an atria? herp a derp
So where do I start this, do I go to main android developement thread in the forum?
Sorry atrix, auto correction sucks
Sent from my MB860 using xda premium
I'm 15 with only.visual basic programming ... if I can help please shoot me a pm
Sent from my MB860 using xda premium
lol..take a look at the cm wiki if you need help compiling. There's plenty of guides and tutorials out there
I tried reading those guides but they are highly customized about CM7 code and rely on scripts. M y aim here is to start with google source apply motorola patches update to a working repo on google code and update to ICS. To be generic so anyone can use it for any platform as a guide and know what files are to be modified, I am going to mention in detail about all files modified, all drivers that were added and if possible explain changes in each file , reason and what needs to be changed. If I could find that documentation it would be great but I couldn't!
Also cm7 doesn't have a official repo for ATRIX.
I'm interested for this tutorial. So be kind to continue please. Its nice to gain more knowledge and if it is step by step its even better !
Thank you !
This certainly looks interesting, I think might get linux running in a virtual machine and try it myself. Ice cream sandwich would be a very good thing to get working from this, but to build it from source, you need the source for tegra from nvidia for sure, and maybe code from motorola, I am right?
Even if that's not possible, a guide for building a android aosp rom for the atrix sounds awesome, keep posting.
Ya you do need source from motorola for the kernel, but any device running ICS on tegra2 should help with the kernel, and I don't think the kernel version has changed in ICS it is still 2.6.xx, cause I haven't read anywhere about the change. Also if kernel is the same the drivers are almost the same, so I am guessing main framework and UI changes are a big part, which happen to be quite independent of hardware!
aditya_g8 said:
Ya you do need source from motorola for the kernel, but any device running ICS on tegra2 should help with the kernel, and I don't think the kernel version has changed in ICS it is still 2.6.xx, cause I haven't read anywhere about the change. Also if kernel is the same the drivers are almost the same, so I am guessing main framework and UI changes are a big part, which happen to be quite independent of hardware!
Click to expand...
Click to collapse
I read somewhere that they were going to start using 3.x kernel, but the sdk says its running 2.6.29, and the kernel might not be updated for some time since its not part of the main linux kernel repository anymore.
Is Spotify really necessary???
WTF is this? I hope you prove me wrong but you have noob written all over you. First you misspell Atrix then you misspell Olympus. You write a guide on how to install Spotify. You don't even specify what you're trying to compile. Kernel? AOSP? CM7?
yeahmann said:
WTF is this? I hope you prove me wrong but you have noob written all over you. First you misspell Atrix then you misspell Olympus. You write a guide on how to install Spotify. You don't even specify what you're trying to compile. Kernel? AOSP? CM7?
Click to expand...
Click to collapse
Hey I am new to this, but I am trying to work thing out. I am hardware guy with very less programming experience. I want to write a guide from a noob perspective, which is which is why I started. More than a guide this is a log of things I am doing to get my AOSP and kernel compiled. I wish to then start with ICS, I know it is a long shot but worth a try!
When I am done with it completely say 2.3.3 I will clean up my posts and make sure no errors exists
Guys let the dude try at least ...everyone is a n00b at sometime or the other ...he is trying to learn so motivate him ...
lol..install spotify..sdk..eclipse ide..
lol
Neither 3 of those have anything to do with building..you obviously haven't read the cm wiki yet. theres nothing about scripts there...It gives you the commands to run to get all the tools necessary, & Instructions on how to build.
Jussayin..the way you're going, is headed in the wrong direction even for a noob
jasonyump said:
Jussayin..the way you're going, is headed in the wrong direction even for a noob
Click to expand...
Click to collapse
I agree with that , guess some dev needs to point him to the right direction ...
---------- Post added at 07:19 PM ---------- Previous post was at 07:17 PM ----------
Dont know if this will help, but a long time ago, i compiled a kernel for my spica and here are the steps ...
http://forum.samdroid.net/f28/setup-kernel-build-environment-using-virtualbox-windows-7-64-bit-4007/
---------- Post added at 07:37 PM ---------- Previous post was at 07:19 PM ----------
here is another link which might help
http://forum.xda-developers.com/showthread.php?t=1188298
munchy_cool said:
I agree with that , guess some dev needs to point him to the right direction ...
---------- Post added at 07:19 PM ---------- Previous post was at 07:17 PM ----------
Dont know if this will help, but a long time ago, i compiled a kernel for my spica and here are the steps ...
http://forum.samdroid.net/f28/setup-kernel-build-environment-using-virtualbox-windows-7-64-bit-4007/
---------- Post added at 07:37 PM ---------- Previous post was at 07:19 PM ----------
here is another link which might help
http://forum.xda-developers.com/showthread.php?t=1188298
Click to expand...
Click to collapse
Thanks guys, I will read through them links and will learn. I am open to learning and sorry for the script part , I read a forum where CM7 compile was done with a automated script file which said official and I thought that was it.
Hi guys I have compiled the kernel and have a zImage, I wish to pack and upload it and test it before I can confirm it is working. Thanks for the help again guys! And I got rid of spotify I see people are much more critical than I thought! I was hoping for a little more help as a friendly forum!
Thanks a lot munchy_cool
aditya_g8 said:
Hi guys I have compiled the kernel and have a zImage, I wish to pack and upload it and test it before I can confirm it is working. Thanks for the help again guys! And I got rid of spotify I see people are much more critical than I thought! I was hoping for a little more help as a friendly forum!
Thanks a lot munchy_cool
Click to expand...
Click to collapse
I wasn't trying to be critical, I was just wondering why you had it on there.
Related
The devs in the Dream forum have posted open-source camera drivers for Eclair. I'm working on merging the Eclair updates with our current source, but it will take me some time to get up to speed. I'm reading that you have to compile a build from scratch to get the drivers working, which is another hurdle. Has anyone else taken a look at the source yet?
Here's the G1 libs source:
http://gitorious.org/eclair-camera-drivers
Here's our camera sources:
http://androidhtc.git.sourceforge.net/git/gitweb.cgi?p=androidhtc/camera.git;a=summary
http://github.com/dzo/VogueCamera
& Here's our kernel source (not sure we need it):
http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=shortlog;h=refs/heads/htc-vogue
EDIT: Which code are we running right now? Sourceforge or dzo, and from what date?
Hmm. So the camera lib isn't working with Eclair?
Well, if you can post the source from the Dream forum and the current source for cupcake/donut, I'd be happy to take a look and see if I can figure anything out.
Here's the G1 libs source:
http://gitorious.org/eclair-camera-drivers
Here's our camera source:
http://androidhtc.git.sourceforge.net/git/gitweb.cgi?p=androidhtc/camera.git;a=summary
& Here's our kernel source (not sure we need it):
http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=shortlog;h=refs/heads/htc-vogue
http://gitorious.org/eclair-camera-...mmit/be437d1eb67f106101ae22e8f7829d19e831142e
This commit is a diff from a Donut to an Eclair driver in one convenient place, and it looks like Jesse already did a little of the CAMERA_MESSAGE flags etc. in the 12-13 commit for Vogue.
Shouldn't be too complex.
This is a build from Dream forum with working sync and camera, you may want to take a look at it...
http://forum.xda-developers.com/showthread.php?t=589344
sshark said:
This is a build from Dream forum with working sync and camera, you may want to take a look at it...
http://forum.xda-developers.com/showthread.php?t=589344
Click to expand...
Click to collapse
nah they have different camera drivers. it wouldnt work
Besides the sources I linked, what is the minimum amount of files I need in order to compile the camera lib for our devices? Should I start downloading now so I can leave it overnight??
polyrhythmic said:
Besides the sources I linked, what is the minimum amount of files I need in order to compile the camera lib for our devices? Should I start downloading now so I can leave it overnight??
Click to expand...
Click to collapse
this is from source.android.com/download
Ubuntu Linux (32-bit x86)
To set up your Linux development environment, make sure you have the following:
* Required Packages:
o Git 1.5.4 or newer and the GNU Privacy Guard.
o JDK 5.0, update 12 or higher. Java 6 is not supported, because of incompatibilities with @Override.
o flex, bison, gperf, libsdl-dev, libesd0-dev, libwxgtk2.6-dev (optional), build-essential, zip, curl.
$ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
* You might also want Valgrind, a tool that will help you find memory leaks, stack corruption, array bounds overflows, etc.
$ sudo apt-get install valgrind
* Intrepid (8.10) users may need a newer version of libreadline:
$ sudo apt-get install lib32readline5-dev
Ubuntu Linux (64-bit x86)
This has not been as well tested. Please send success or failure reports to [email protected].
The Android build requires a 32-bit build environment as well as some other tools:
* Required Packages:
o Git, JDK, flex, and the other packages as listed above in the i386 instructions:
o JDK 5.0, update 12 or higher. Java 6 is not supported, because of incompatibilities with @Override.
o Pieces from the 32-bit cross-building environment
o X11 development
$ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl sun-java5-jdk zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev
* Set the system to use the right version of java by default:
$ sudo update-java-alternatives -s java-1.5.0-sun
* X11: Ubuntu doesn't have packages for the X11 libraries, but that can be worked around with the following command:
$ sudo ln -s /usr/lib32/libX11.so.6 /usr/lib32/libX11.so
Click to expand...
Click to collapse
i havent personally compiled android from source yet but this should get you started
EDIT: there are also instructions on pulling the tree also at source.android.com/download
EDIT2: keep in mind the source is ~2 GB so if you have a slower connection like i do i would download it overnight
Ok, I've got my programs installed and am ready to pull source. Now, should I pull the master branch (Eclair + updates), or the main Eclair branch? I'm having trouble matching the Android git branches with the version numbers... I assume I want to pull 2.0.1, but maybe pulling master is better? I can't tell what version the master branch is.
The master isn't any point release version - it's the head, which means it's whatever code happens to be the latest.
However, because Google like to keep upcoming Android releases a somewhat-secret, they don't necessarily push their latest code to the publicly-facing master, which makes things even more complicated in terms of trying to relate master to a point release.
I'd just stick with the Eclair branch for the moment.
Thanks bri3d, I'm pulling the Eclair branch now...
bri3d said:
However, because Google like to keep upcoming Android releases a somewhat-secret, they don't necessarily push their latest code to the publicly-facing master, which makes things even more complicated in terms of trying to relate master to a point release.
Click to expand...
Click to collapse
Which sucks. Any idea when we can expect 2.1 to be made available? I can't seem to find anything online regarding it.
no idea hopefully soon though as we now have the sdk. im pulling the eclair branch also as i type this, gonna play with it i guess lol
Ok, dzo's repo and the androidhtc sourceforge repo seem to have splintered. dzo's last two commits in his repo haven't been applied to the code used at the sourceforge repo. However, the sourceforge camera has since been updated with the initial code for Eclair, while dzo's has not.
dzo's code looks more complete, with the ability to choose resolutions in addition to the jpeg updates.
Which code are we running right now? Sourceforge or dzo, and from what date?
I'm thinking I should take dzo's and add in the Eclair updates... thought I'd ask the guys who wrote it first
use the donut repo at github as a reference. vilord did some initial work porting it to eclair but some more work needs to be done. what he had done will compile but isnt working.
Hey Poly, you might want to check this out. Looks like it may be an entirely updated MSM7k hardware library via JBQ from Google designed for Eclair on our devices. Haven't played with it, but I will in a few..
Shidell said:
Hey Poly, you might want to check this out. Looks like it may be an entirely updated MSM7k hardware library via JBQ from Google designed for Eclair on our devices. Haven't played with it, but I will in a few..
Click to expand...
Click to collapse
that link is to cyanogens github, he develops (and is probably the only real developer on xda) for the dream. His hardware gits may contain some gems that could be ported over for us, but they will not directly work without modification. A great place to look for ideas though glad you posted the link
mssmison said:
that link is to cyanogens github, he develops (and is probably the only real developer on xda) for the dream. His hardware gits may contain some gems that could be ported over for us, but they will not directly work without modification. A great place to look for ideas though glad you posted the link
Click to expand...
Click to collapse
Interesting, thanks for the heads up.
Many of Cyanogens updates require a newer kernel with more features... unfortunately I'm swamped, one of the servers I maintain went down this week and we're taking the opportunity to upgrade, I haven't made further progress on this driver yet.
Damn hate necro posting, but any news of working camera on eclair guys?
I will teach you build ROM.
Lets get some ROCK!!!
Operating System
First step is having a fully functional linux distro. You can choose what you prefer, I'm using ubuntu and I write commands for it. You can use OSX too, as I know, but I've completely no idea how, I never had a Mac.
Well, talking about linux, you need a 64bit distribution, so if you have an old 32 bit processor youn cannot go ahead.
To check which version do you have, type in a shell
uname -a
If the results include "x86_64" you're ok.
Required Packages
You need to install some little packages, to be able to proceed, you can do this with your favorite package manager:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev:i386 g++-multilib mingw32 openjdk-6-jdk pngcrush schedtool tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386
Some systems need some trick to install all this package, is your care to check this process completed correctly and fix eventually problems.
Install "repo"
Repo is the program that handles synchronization between our pc and the repository, in this case Cyanogen's one. To install do:
mkdir -p ~/bin
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
So we have downloaded and added executables flag to it. Now we need a folder to store locally the sources, you can put it everywhere, but to be coherent with other guides, I do:
mkdir -p ~/CM10/
Repository initialization
Well, now it's time to initialize our source folder to correctly sync with repository:
cd CM10
repo init -u git://github.com/CyanogenMod/android.git -b jellybean
Nota: Maybe the repo command is not recognized. In this case you can restart the shell or te machine.
Download
Now is download time! Write this command and get a fresh beer, you have to download several GB of data, please wait.
repo sync -j16
The "-j16" switch may be modified as you want, is the number of concurrent thread downloading from repo. 16 is my value, for a 100Mbit connection, maybe you can decrease a little to match your line speed. Someone uses 8 threads for an 8Mbit ADSL line.
Download precompiled files.
There are some others files needed, like the toolchain, including GCC, to compile code.
~/CM10/vendor/cm/get-prebuilts
Another small wait time and we're ready!
Add sources code for GT540
Copy sources from https://github.com/mmxtrem/device_lge_swift to ~/CM10/device/lge/swift
Or extract this archive http://depositfiles.com/files/1chflk58r to ~/CM10/device/lge/swift
Build
Great, we're ready to build!
The build process takes some hours, so be patient. My notebook, takes more than 10 hours!
cd CM10
source build/envsetup.sh && brunch swift
Install
When is ready, we can find the result here:
~/CM10/system/out/target/product/swift/cm-10-XXXXX-JellyBeanSwift-XXXX.zip
This is the package to be flashed in recovery mode.
There are Gapps included.
Update
If you want to update your build, you have to do only this:
cd CM10
repo sync
and build again!
P.S. Dont forget write Credit my name, when will be publish your ROM. Good Luck!
[Guide] How to use Github
http://forum.xda-developers.com/showthread.php?t=1877040
Wow I always wanted to try this out! Thanks for the surprise tutorial!
Wow wow wow.. forget my post in the other thread. This thing miro, this thing here is possible your best contribution to this community.. I'm getting my old gt540 back from my brother and trying these right tomorrow..
I actually thought about asking you for such a tutorial but scratched it as I didn't believe you would do it. But thank you again and again.. I was so wrong
I've just one question, we do the build, ok and we try it, ok, but if we find any bug, where we solve it?! and where we put the corrects librarys for our phone?!
Sorry i'm just very noob
Miroslav is best men on a whole world
Thank you so much for this tutorial
Btw is gt540 msm 7x27 ? if yes could someone try to build this kernel for our phone https://github.com/Californication/lge-kernel-msm7x27-ics-3.0.8
-bfar97- said:
I've just one question, we do the build, ok and we try it, ok, but if we find any bug, where we solve it?! and where we put the corrects librarys for our phone?!
Sorry i'm just very noob
Click to expand...
Click to collapse
+1
Sent from my LG-P990 using Tapatalk 2
smileydr0id said:
Miroslav is best men on a whole world
Thank you so much for this tutorial
Btw is gt540 msm 7x27 ? if yes could someone try to build this kernel for our phone https://github.com/Californication/lge-kernel-msm7x27-ics-3.0.8
Click to expand...
Click to collapse
Yes, gt540 is msm7x27
smileydr0id said:
Miroslav is best men on a whole world
Thank you so much for this tutorial
Btw is gt540 msm 7x27 ? if yes could someone try to build this kernel for our phone https://github.com/Californication/lge-kernel-msm7x27-ics-3.0.8
Click to expand...
Click to collapse
https://github.com/Californication its my repo!
lge-kernel-msm7x27-ics-3.0.8 - not working. I did try port it from LG L5. Kernel not starting, kernel not finish.
lge-kernel-msm7x27 - kernel from SDSL and AOSP, I ported it from https://github.com/CyanogenMod/lge-kernel-msm7x27 for LG 7227 devices (P500/510/C660/and other), but it dont have latest fixes.
Please dont write stupid massages like "smiles" or +1 or other, make it clean! Devs only, if you want build ROM real, if no go spaming into other thread!
XiproX said:
Yes, gt540 is msm7x27
Click to expand...
Click to collapse
https://github.com/Californication its my repo!
lge-kernel-msm7x27-ics-3.0.8 - not working. I did try port it from LG L5. Kernel not starting, kernel not finish.
lge-kernel-msm7x27 - kernel from SDSL and AOSP, I ported it from https://github.com/CyanogenMod/lge-kernel-msm7x27 for LG 7227 devices (P500/510/C660/and other), but it dont have latest fixes.
Click to expand...
Click to collapse
damn
-bfar97- said:
I've just one question, we do the build, ok and we try it, ok, but if we find any bug, where we solve it?! and where we put the corrects librarys for our phone?!
Sorry i'm just very noob
Click to expand...
Click to collapse
^ This, make a guide for this, or is just all "lets google it"?
thanks for that tut miroslav !!
i would be happy if you can make example of bug fixing/driver porting (something simple as example).
Oh, nice post Miro
But one thing, why don't you post how to make device files. It would be of more use as people will try to make their own sources and a good chance that they could make their own device in collaboration. :good:
i've ear i can do a build in a 32bits processor too! but you know xD do what was said up please!!
Could someone try to build this because I can't cause I have 32bit system in my PC.
We need JB for daily use!
Why are you using -mfloat-abi=softfp
why not -mfloat-abi=hard ?
aaa801 said:
Why are you using -mfloat-abi=softfp
why not -mfloat-abi=hard ?
Click to expand...
Click to collapse
forgot about this line, not using for ROM. it need only for android-ndk for kernel building.
Niquel97 said:
We need JB for daily use!
Click to expand...
Click to collapse
Just do it! (c. Nike)
P.S. Dreams-dreams-dreams.... :laugh:
miroslav_mm said:
forgot about this line, not using for ROM. it need only for android-ndk for kernel building.
Click to expand...
Click to collapse
So should work fine if set to hard yes?
i'm getting this error when compiling:
Install system fs image: out/target/product/swift/system.img
out/target/product/swift/system.img+ maxsize=262225920 blocksize=135168 total=277360512 reserve=2703360
error: out/target/product/swift/system.img+ too large (277360512 > [264929280 - 2703360])
al3000 said:
i'm getting this error when compiling:
Install system fs image: out/target/product/swift/system.img
out/target/product/swift/system.img+ maxsize=262225920 blocksize=135168 total=277360512 reserve=2703360
error: out/target/product/swift/system.img+ too large (277360512 > [264929280 - 2703360])
Click to expand...
Click to collapse
Yes, me too, the build comes so big that it fails the size checks on the default partition layout.
To avoid that change the contents in device/lge/swift/BoardConfig.mk, I've used these values:
Code:
# PARTITIONS
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x00500000
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x00900000
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x0010B07600
BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x007478A00
BOARD_FLASH_BLOCK_SIZE := 131072
I believe you can still zip up the right files in out/target/product/swift/ to have a signable update zip, the command "make otapackage" which I found somewhere didn't seem to work.
Hello,
I don't want to ask how to build ROM.
I am new to building and compiling. I followed tutorial here on xda.
I installed everything crucial, then I do "repo init" ( repo init -u https://github.com/P880-dev/android.git -b cm-11.0) and then "repo sync". Source has downloaded. Then I do "source \envsetup.sh", "lunch", chose 11 as cm_p880-userdebug and at last "make -j6 otapackage". Now I have a question: I am compiling it for like 6 hours and in "home\username\android\out\project\p880" is around 12 GB of data, is that good?
Sent from my LG-P880 using Tapatalk
yep that is good.. every next time would be faster..
how long ? depends on processor and ram
@gerciolisz
Oh, forgot my specs:
Asus laptop
Core i5 3120m
6 GB ram
in virtualbox:
3 cores
2,5 gb
60 gb disk
And run make -j6
whoah it can be a long day to you i have ubuntu in dualboot with windows i5 and 12gb ram and it took about 4 hours
I am more concerned about that I have only 6 gb of disk available. But I think it is on the end of process. It is worth if waiting
Compiling done First compiling successed Tomorrow time for testing.
Just 2.3 GB of storage left
Do I need to manually now run ccache=1 (or sth like that - to not compile everytime everything) or is good if it is already in file somewhere in repos configuration?
You have to initialize ccache before compilation, that way it can cache the code when you first compile it. Check here.
LGaljo said:
Compiling done First compiling successed Tomorrow time for testing.
Just 2.3 GB of storage left
Do I need to manually now run ccache=1 (or sth like that - to not compile everytime everything) or is good if it is already in file somewhere in repos configuration?
Click to expand...
Click to collapse
Just like Adam said.. But anyway it needs more space to cache..
Sent from my LG-P880 using xda app-developers app
I will expand disk. I added first two lines in bashrc. But I didn't run prebuilts/misc/linux-x86/ccache/ccache -M 50G. It is good if I do it now?
Sent from my LG-P880 using Tapatalk
LGaljo said:
I will expand disk. I added first two lines in bashrc. But I didn't run prebuilts/misc/linux-x86/ccache/ccache -M 50G. It is good if I do it now?
Sent from my LG-P880 using Tapatalk
Click to expand...
Click to collapse
You can, but won't have effect now as you already compiled.
gerciolisz said:
whoah it can be a long day to you i have ubuntu in dualboot with windows i5 and 12gb ram and it took about 4 hours
Click to expand...
Click to collapse
Today I built my new build from scratch in 2 hours and half. I made dualboot and run make -j12 otapackage. Mean while I was able to surf the web :laugh:.
Hi!
Perhaps this thread actually can be some kind of a tutorial on how to build CM11 for P880, if you succeded?
I have followed this thread:
http://forum.xda-developers.com/showthread.php?t=2515305
Except i did some mistakes, so i simply did a fresh Ubuntu reinstall on a SSD-disk so it hopefully also will build faster..
I have some questions though:
- Don't we need to insert the code into the local_manifest.xml?
- Also, i see you don't compile it using "brunch p880" command.. Is there a reason for this?
LGaljo said:
Today I built my new build from scratch in 2 hours and half. I made dualboot and run make -j12 otapackage. Mean while I was able to surf the web :laugh:.
Click to expand...
Click to collapse
make -j12 with 3 core inside virtualbox? seems pointless 3-4 would be sufficient. also try schedtool and see if it's faster. (install schedtool, then use schedtool -B -e make -j4 otaimage)
gingerboy92 said:
make -j12 with 3 core inside virtualbox? seems pointless 3-4 would be sufficient. also try schedtool and see if it's faster. (install schedtool, then use schedtool -B -e make -j4 otaimage)
Click to expand...
Click to collapse
You didn't read well, I made dualboot with windows. I don't know how is it possible to run -j12 and no lag. (I was also able to surf the web). can be installed with apt-get? does otaimage produce .img file?
faabak said:
Hi!
Perhaps this thread actually can be some kind of a tutorial on how to build CM11 for P880, if you succeded?
I have followed this thread:
http://forum.xda-developers.com/showthread.php?t=2515305
Except i did some mistakes, so i simply did a fresh Ubuntu reinstall on a SSD-disk so it hopefully also will build faster..
I have some questions though:
- Don't we need to insert the code into the local_manifest.xml?
- Also, i see you don't compile it using "brunch p880" command.. Is there a reason for this?
Click to expand...
Click to collapse
just follow the instructions from the thread until creating the working directory, for initializing repo, use the one from laufersteppenwolf's thread (http://forum.xda-developers.com/showthread.php?t=2551006).
repo init -u https://github.com/P880-dev/android.git -b cm-11.0the next steps are the same.
repo sync
cd vendor/cm/
. get-prebuilts
and other steps. i'm lazy to retype everything if you are really willing to build android from source, you should be able to figure out what i'm saying
---------- Post added at 11:33 PM ---------- Previous post was at 11:23 PM ----------
LGaljo said:
You didn't read well, I made dualboot with windows. I don't know how is it possible to run -j12 and no lag. (I was also able to surf the web). can be installed with apt-get? does otaimage produce .img file?
Click to expand...
Click to collapse
there's no point of using numbers higher than the amount your cpu cores. -j5 or -j6 is fine for quad core cpu, any higher, it doesn't effect anything, just pointless. sudo apt-get install schedtool should work, but again, i have no idea how much difference it will make. otaimage will produce a zip file. you can also use make bacon. make bacon will produce a zip with the proper naming, and more, i guess, idk.
gingerboy92 said:
just follow the instructions from the thread until creating the working directory, for initializing repo, use the one from laufersteppenwolf's thread (http://forum.xda-developers.com/showthread.php?t=2551006).
repo init -u https://github.com/P880-dev/android.git -b cm-11.0the next steps are the same.
repo sync
cd vendor/cm/
. get-prebuilts
and other steps. i'm lazy to retype everything if you are really willing to build android from source, you should be able to figure out what i'm saying
---------- Post added at 11:33 PM ---------- Previous post was at 11:23 PM ----------
there's no point of using numbers higher than the amount your cpu cores. -j5 or -j6 is fine for quad core cpu, any higher, it doesn't effect anything, just pointless. sudo apt-get install schedtool should work, but again, i have no idea how much difference it will make. otaimage will produce a zip file. you can also use make bacon. make bacon will produce a zip with the proper naming, and more, i guess, idk.
Click to expand...
Click to collapse
I'm actually doing the sync now, with the https://github.com/P880-dev/android.git so i'm guessing i'm onto the right path!
Thanks!!
faabak said:
I'm actually doing the sync now, with the https://github.com/P880-dev/android.git so i'm guessing i'm onto the right path!
Thanks!!
Click to expand...
Click to collapse
you are welcome.
hope it will compile.
and boots
don't worry if it bootloops, we all had it at least once.
gingerboy92 said:
you are welcome.
hope it will compile.
and boots
don't worry if it bootloops, we all had it at least once.
Click to expand...
Click to collapse
It compiled!
But.. Of course it bootloops, as i expected! Maybe i should just try to compile it again? What did you do?
faabak said:
It compiled!
But.. Of course it bootloops, as i expected! Maybe i should just try to compile it again? What did you do?
Click to expand...
Click to collapse
it have been a while since i compiled from 4.4 source. i think i read from cm11 development thread someone mentioned that the some patches causes bootloop. perhaps your problem is the same as his. take a look at the thread
gingerboy92 said:
it have been a while since i compiled from 4.4 source. i think i read from cm11 development thread someone mentioned that the some patches causes bootloop. perhaps your problem is the same as his. take a look at the thread
Click to expand...
Click to collapse
Yeah, i also noticed! But it does'nt seems like everyone has that problem.. I run "brunch" again now, it only used like 15 minutes or so.. Will try to install it!
Hi
I am experiencing this problem while I went for final step (
Code:
mka bacon -j8
).
It did not create any zip in .../out/target/product/DeviceName/
Here is the log->
http://pastebin.com/CcNXpbSR
I believe the cause of problem could be->
Code:
make: *** No rule to make target `/home/jaskaran/android/UbuntuPort/out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp', needed by `/home/jaskaran/android/UbuntuPort/out/target/common/obj/APPS/DeviceSettings_intermediates/src/R.stamp'. Stop.
(As told by a forum member).
I basically didn't see any errors in outputs except "fatal: Invalid git file format: ...repo/repo/.git/clone.bundle" but thats network problem. Right? And btw the sync went fine after that. Even when I ran repo sync again (without deleting repo folder), it successfully fetched everything from existing files. There was no error then.
I also did run make clean command before building it, but still.....
EDIT:
I came over this problem by editing the i9300.mk and removing "DeviceSettings \"->
Code:
# Product specific Packages
PRODUCT_PACKAGES += \
DeviceSettings \
libsecril-client \
libsecril-client-sap \
SamsungServiceMode \
tinyplay
(so is it ok? Or will I loose settings app?)
Anyhow, I came over this error and there is a new one now->
Code:
Export includes file: frameworks/av/services/camera/libcameraservice/Android.mk -- /home/jaskaran/android/UbuntuPort/out/target/product/i9300/obj/SHARED_LIBRARIES/libcameraservice_intermediates/export_includes
make: *** No rule to make target `/home/jaskaran/android/UbuntuPort/out/target/product/i9300/obj/SHARED_LIBRARIES/libTVOut_intermediates/export_includes', needed by `/home/jaskaran/android/UbuntuPort/out/target/product/i9300/obj/EXECUTABLES/mediaserver_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Thanks.
Please help.
Can u guys help me porting it on my s3
Sent from my GT-I9300 using xda app-developers app
Do this. make -j 8 otapackage. I've built as I tell. I'll post it here my night's otapackage successfully built if you want.
It's for trusty tahr.
Sent from my GT-I9300 using Tapatalk
---------- Post added at 12:48 PM ---------- Previous post was at 12:34 PM ----------
astronfestmon said:
Do this. make -j 8 otapackage. I've built as I tell. I'll post it here my night's otapackage successfully built if you want.
It's for trusty tahr.
Sent from my GT-I9300 using Tapatalk
Click to expand...
Click to collapse
link:
http://www.mediafire.com/download/b3274qlh47y1cw9/cm_i9300-ota-eng.pedro.zip
my build worked with raring.
trying to boot trusty.
i've forgot to make new changes doing it now.
---------- Post added at 04:27 PM ---------- Previous post was at 04:01 PM ----------
it gave me green light but no screen.
tomorrow check it out
How to port it and any bugs bro??
Sent from my GT-I9300 using xda app-developers app
make as the following i9300 wiki ubuntu guide.
then make -j8 otapackage inside your ubuntu touch folder
i'll explain more tomorrow
Do this.
Install phablet tools with sudo apt-get install -y phablet-tools
Then phablet-dev-bootstrap -c ubuntu/
To sync the repo source code.
cd ubuntu
source build/envsetup.sh
lunch cm_i9300-userdebug
mka -j3 otapackage
See you
Sent from my GT-I9300 using Tapatalk
Trying my new kernel with googymax v1.
Ubuntu trusty connected as googymax1 1st rom is giving me black screen but adb devices showing it as device.
Doing adb shell you can connect it into it.
help
Hello,
Can someone fix the phone /SMS problem or know how to do it ? Because I'll love have ubuntu touch on my gs3 but I can't devellop ubuntu by myself because I don't know how to do this .... Please ; thanks for considération and sorry forme m'y bad english .
Is it easy to use Ubuntu on S3?
Could not start the installation. Booted to recovery, wiped everything, trying to flash Build No5 in recovery and STATUS 7 error comes. The installation stops already at the beginning. Any suggestions ?
Thanks in advance.
buddy66 said:
Could not start the installation. Booted to recovery, wiped everything, trying to flash Build No5 in recovery and STATUS 7 error comes. The installation stops already at the beginning. Any suggestions ?
Thanks in advance.
Click to expand...
Click to collapse
Status 7 means your Clockworkmod Recovery is outdated. I suggest updating it using ROM manager from the Play store. The same problem will occur if you try to install Android Kitkat versions as long as you don't update CWM.
Is this build working. Thanks for the info.
astronfestmon said:
my build worked with raring.
trying to boot trusty.
i've forgot to make new changes doing it now.
---------- Post added at 04:27 PM ---------- Previous post was at 04:01 PM ----------
it gave me green light but no screen.
tomorrow check it out
Click to expand...
Click to collapse
You're build wouldn't boot .
So, the current builds are that CALLS/SMS don't work? And random freezes. That's all?
Trusty tahr s3 i9300 intl
supreethms said:
So, the current builds are that CALLS/SMS don't work? And random freezes. That's all?
Click to expand...
Click to collapse
Here it goes howto I've done the changes.
mkdir ~/ubuntu
cd ubuntu/
on terminal too:
repo init -u https://code-review.phablet.ubuntu.com/p/aosp/platform/manifest.git -b phablet-4.4.2_r1
repo sync -j8
after sync the repo files
Download the following files:
bootable recovery 4.4.2 r1 : https://android.googlesource.com/platform/bootable/recovery/+/android-4.4.2_r1
into folder bootable
copy my device samsung i9300 also smdk4412-common into device samsung folder
source build/envsetup.sh
lunch aosp_i9300-userdebug
make
PS: I'll upload my device i9300 changes right next and I'll my repo downoad link
I don't have a PC to build. Can you make a cwm zip to flash?
Sure I can.
Thank you :thumbup::thumbup:
astronfestmon said:
Here it goes howto I've done the changes.
mkdir ~/ubuntu
cd ubuntu/
on terminal too:
repo init -u https://code-review.phablet.ubuntu.com/p/aosp/platform/manifest.git -b phablet-4.4.2_r1
repo sync -j8
after sync the repo files
Download the following files:
bootable recovery 4.4.2 r1 : https://android.googlesource.com/platform/bootable/recovery/+/android-4.4.2_r1
into folder bootable
copy my device samsung i9300 also smdk4412-common into device samsung folder
source build/envsetup.sh
lunch aosp_i9300-userdebug
make
PS: I'll upload my device i9300 changes right next and I'll my repo downoad link
Click to expand...
Click to collapse
Hi, sir. Well. I am not an expert with this.
I am still learning.
But, till today all i have learnt on phones is to boot to recovery and flash ROMs.
I just want to frankly say this.
But, i appreciate your work very much. Have been following your posts on this thread from the beginning.
All i wanted to know was that if ONLY calls/sms and random reboots are the flaws with the current builds.
Thank you.
Hey,
first off, I'm not sure if this thread really belongs here, but I also thought its not something General and not a usual Q&A topic.
I see my self as a developer now, one really at the beginning, but I thought I can get the best help here.
So the most important step is already done, I know what I want to make. A better ElementalX (yes, hard do believe I know).
What i want to do? Add CPU OC Support (outside of the installer), GPU OC Support, GPU Voltage Control Support (for the KControl App) and more CPU and I/O Governors.
Also, if it works easy, I would try to add a short Boost of 2.8 GHz (or 2.6/2.7) like in faux123's Kernel, maybe for 2-5 Seconds, as it otherwise crashes (my nexus 5 at least).
So, are you interested? Yes? Cause so am I. I'm reading about how to make my own Kernel since a lot of time, but got back to it yesterday and today i installed Ubuntu 15.04 and updated it with anything needed.
GCC 4.9.2 was installed already, I followed this tutorials:
oh and before, i run Ubuntu 15.04 (Dual Boot) as I feel like in the totally wrong place with Linux and Ubuntu is easier for Windows people like me.
Code:
[URL="http://forum.xda-developers.com/android/software/ultimate-guide-compile-android-kernel-t2871276"]http://forum.xda-developers.com/android/software/ultimate-guide-compile-android-kernel-t2871276[/URL]
the above link didnt gave me links to Google Devices Source Code so I searched for myself :
[URL="https://source.android.com/source/building-kernels.html"]https://source.android.com/source/building-kernels.html[/URL]
[URL="http://jhshi.me/2014/06/30/build-kernel-in-tree-with-aosp-for-nexus-5-hammerhead/"]http://jhshi.me/2014/06/30/build-kernel-in-tree-with-aosp-for-nexus-5-hammerhead/[/URL]
So, can someone give me a quick guide on how to get the source code of LMY48B Kernel?
I already did this:
Code:
sudo apt-get install openjdk-8-jre
sudo apt-get install openjdk-8-jdk
sudo apt-get install -y build-essential kernel-package libncurses5-dev bzip2
git clone https://android.googlesource.com/kernel/msm.git kernel
but i cant find that "Kernel" folder anywhere on my Ubuntu partition...
So what are my next steps? I could also try asking flar2 directly but I am not sure if he would give his source code to a noob like me
I would keep the Kernel private until I am confident with Updating it.
Is someone interested in working with me? would be more like me telling what I would like and him giving me the code oh well, maybe that's a bad idea :silly:
I am also open for Eclipse, as I already have that installed on Windows, sadly I'm unable to find the "Choose SDK location". Not in settings, not under help, not under any other tab. So I googled that problem and I just found out that other users seem also not able to find it. And I stopped using that thing. Maybe someone here knows how to do that, than I would start learning about how to do it in there again.
Help is very very appreciated.
https://dcrin3.com/unscrambled/?p=756
https://android.googlesource.com/kernel/msm/+/android-5.1.1_r0.6
xXDanielHDXx said:
I could also try asking flar2 directly but I am not sure if he would give his source code to a noob like me
I would keep the Kernel private until I am confident with Updating it.
Click to expand...
Click to collapse
All @flar2 work is already public. His N5 branch has been forked 26 times. Check his Github. As long as you give him credit if you ever release it as your own fork away.
garynych said:
https://dcrin3.com/unscrambled/?p=756
https://android.googlesource.com/kernel/msm/+/android-5.1.1_r0.6
Click to expand...
Click to collapse
thanks for the reply
the first page is really nice. Simple, yet anything I need is shown.
I already know the second one though. I tried to download the url with ubuntu but it said that that url doesnt include any git data.
Is there a correct url for that, or how to download it at all? That Question and maybe 1-2 more and I should have my Kernel ready