AOSPA+ Building from sources
Pre reuirments :
A 64 bit PC
Some knowlegde About Git
A brain
This is unofficial. This thread is intended for devs & advanced users only.
For the first time you try to build AOSPA
Follow this guide up to "Initialize the CyanogenMod source repository" step (don't execute this step).
http://wiki.cyanogenmod.org/w/Build_for_smultron
Download & compile lz4 compression tool
Code:
sudo apt-get install subversion
cd ~/Downloads
svn checkout -r 91 http://lz4.googlecode.com/svn/trunk/ lz4
cd lz4 && make && cp lz4demo ~/bin/lz4demo
Initialize the AOSPA source repository
Enter the following to initialize the repository:
Code:
cd ~/android/system/
repo init -u git://github.com/ParanoidAndroid/manifest.git -b jb43-legacy
Get the required local manifest
Code:
mkdir -p ~/android/system/.repo/local_manifests
curl https://raw.github.com/LegacyXperia/local_manifests/cm-10.2/semc.xml > ~/android/system/.repo/local_manifests/semc.xml
Download the source code
Code:
repo sync
Download some commits from CyanogenMod gerrit which are not accepted yet
Code:
curl https://raw.github.com/LegacyXperia/local_manifests/cm-10.2/updates.sh > ~/android/system/updates.sh
chmod a+x updates.sh
./updates.sh
Get the prebuilts
Code:
cd ~/android/system/vendor/cm
./get-prebuilts
Setup the environment & prepare the device-specific code.
Code:
cd ~/android/system
. build/envsetup.sh
breakfast smultron
Build the ROM (takes long time)
Code:
brunch smultron
If the build finishes successfully, you will find the build here (change DATE into the date):
~/android/system/out/target/product/smultron/cm-10.2-DATE-UNOFFICIAL-smultron.zip
The next times you want to build, you only need to do the following:
Sync the repositories & make sure you are using the latest local_manifest.
Code:
cd ~/android/system/
curl https://raw.github.com/LegacyXperia/local_manifests/cm-10.2/semc.xml > ~/android/system/.repo/local_manifests/semc.xml
repo sync
Download some commits from CyanogenMod gerrit which are not accepted yet
Code:
curl https://raw.github.com/LegacyXperia/local_manifests/cm-10.2/updates.sh > ~/android/system/updates.sh
chmod a+x updates.sh
./updates.sh
Setup the environment
Code:
. build/envsetup.sh
Build the ROM
Code:
brunch smultron
If the build finishes successfully, you will find the build here (change DATE into the date):
~/android/system/out/target/product/smultron/PA-3.9-DATE-UNOFFICIAL-smultron.zip
Steps to build only the kernel:
Sync the repositories.
Code:
cd ~/android/system/
repo sync
Setup the environment
Code:
. build/envsetup.sh
Build the kernel
Code:
breakfast smultron
make -j4 bootimage
If the build finishes successfully, you will find the boot image here:
~/android/system/out/target/product/smultron/boot.img
Credits: Thanks to hnl_dk , mikeioannia for the initial CM9 & CM10 , 10.1 , 10.2 guides.
And you built successfully with that method? Because as far as I know it's impossible... You didn't define anything about the device in the vendor/pa folders so it can't even find your device while trying to ./rom-build.sh
Sent from my Nexus 4 running Android 4.2.2
As reported by mihahn this thread seems a blatant copy of another guide without any actual research. I've maintained AOSPA for several devices for some time and see at least 2 mistakes when quickly scanning through it.
Thread closed for now, if it's solved I'll reopen, otherwise it will be deleted.
Hi there! I am new here! So decided to start off with this!
Here's a list of the OpenSource ROMs, with the links to their github repos and the commands used for initializing their respective repos, to the working directories
For syncing the full repo,
After you initialize certain repo in the working folder, you have to give the following command :
Code:
repo sync -jX -c -f
Note : X = no. of threads. If you are not working on certain things in the background, you can add as many threads as the CPU supports.
ROMs with Github links. This will be useful for source builders, as they would find all the Github links are one place!
1. CyanogenMod
Link to Github sources :
Code:
[URL="https://github.com/CyanogenMod"]https://github.com/CyanogenMod[/URL]
Command for initializing the repo in the working folder :
Code:
repo init -u git://github.com/CyanogenMod/android.git -b <branch>
2. OmniROM
Link to github sources :
Code:
[URL="https://github.com/omnirom"]https://github.com/omnirom[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u https://github.com/omnirom/android.git -b android-4.4
3. Carbon ROM
Link to github sources :
Code:
[URL="https://github.com/CarbonDev"]https://github.com/CarbonDev[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u https://github.com/CarbonDev/android.git -b <branch>
4. PAC-man
Link to github sources :
Code:
[URL="https://github.com/PAC-man"]https://github.com/PAC-man[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u git://github.com/PAC-man/pacman.git -b <branch>
5. Paranoid Android
Link to github sources :
Code:
[URL="https://github.com/ParanoidAndroid"]https://github.com/ParanoidAndroid[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u [email protected]:ParanoidAndroid/manifest.git -b <branch>
6. Root Box
Link to github sources :
Code:
[URL="https://github.com/Root-Box"]https://github.com/Root-Box[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u https://github.com/Root-Box/platform_manifest.git -b <branch>
7. AOKP
Link to github sources :
Code:
[URL="https://github.com/AOKP"]https://github.com/AOKP[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u https://github.com/AOKP/platform_manifest.git -b <branch>
8. AOSP
Link to github sources :
Code:
[URL="https://github.com/android"]https://github.com/android[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u https://android.googlesource.com/platform/manifest.git -b <branch>
9. CyanMobile
Link to github sources :
Code:
[URL="https://github.com/CyanMobile"]https://github.com/CyanMobile[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u git://github.com/CyanMobile/android_cyanmobile.git -b <branch>
10. MiCode
Link to github sources :
Code:
[URL="https://github.com/MiCode"]https://github.com/MiCode[/URL]
Command for initializing the repo in the working folder:
Code:
I couldn't find the manifest git! Some one help me out! :P
11. AOSB
Link to github sources :
Code:
[URL="https://github.com/AOSB"]https://github.com/AOSB[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u https://github.com/AOSB/android.git <branch>
12. Liquid Smooth
Link to github sources :
Code:
[URL="https://github.com/LiquidSmooth"]https://github.com/LiquidSmooth[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u git://github.com/LiquidSmooth/android.git -b <branch>
13. Slim ROMs
Link to github sources :
Code:
[URL="https://github.com/SlimRoms"]https://github.com/SlimRoms[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u git://github.com/SlimRoms/platform_manifest.git -b <branch>
14. CyanFox
Link to github sources :
Code:
[URL="https://github.com/CyanFox"]https://github.com/CyanFox[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u git://github.com/CyanFox/android.git -b <branch>
15. Lewa OS
Link to github sources :
Code:
[URL="https://github.com/LeWaCode"]https://github.com/LeWaCode[/URL]
Command for initializing the repo in the working folder:
Code:
I couldn't find the manifest git! Some one help me out! :P
16. Mokee
Link to github sources :
Code:
[URL="https://github.com/MoKee"]https://github.com/MoKee[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u https://github.com/MoKee/android.git -b <branch>
17. ResurrectionRemix
Link to github sources :
Code:
[URL="https://github.com/resurrectionremix"]https://github.com/resurrectionremix[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u https://github.com/ResurrectionRemix/platform_manifest.git -b <branch>
I am new here, so I am sure, I might have missed out some ROM. Please care to inform that through posting the Github link in the thread! Thanks
I'm really sorry if I'm posting in the wrong thread, but I'm new to the dev forums so I didn't want to make a whole new thread for this simple question. I'm currrently syncing the CM-11.0 branch from the cyanogenmod github. And most packages are donwloaded correctly, but 4 are making problems. Here's the log of my terminal:
Code:
Fetching projects: 99% (433/437) fatal: Not a git repository: '/home/pavle/android/system/.repo/projects/packages/apps/QuickSearchBox.git'
fatal: Not a git repository: '/home/pavle/android/system/.repo/projects/external/safe-iop.git'
fatal: Not a git repository: '/home/pavle/android/system/.repo/projects/system/security.git'
fatal: Not a git repository: '/home/pavle/android/system/.repo/projects/external/chromium_org/third_party/leveldatabase/src.git'
error: Cannot fetch CyanogenMod/android_packages_apps_QuickSearchBox
warn: --force-broken, continuing to sync
error: Cannot fetch CyanogenMod/android_system_security
warn: --force-broken, continuing to sync
error: Cannot fetch platform/external/chromium_org/third_party/leveldatabase/src
warn: --force-broken, continuing to sync
error: Cannot fetch CyanogenMod/android_external_safe-iop
warn: --force-broken, continuing to sync
I ran the repo sync command with the -f flag as you can see, so it would download everything else execpt the ones it can't. I'm running ubuntu 13.10 x64. Also I should mention that I haven't added any device specific trees yet, only pure CM without kernel, device or vendor repos
Why the -c and -f arguments with repo sync? Doesn't it run fine without them?
Sent from my Nexus 4, want to know my current project? Check http://team-fun.eu
paxy97 said:
I'm really sorry if I'm posting in the wrong thread, but I'm new to the dev forums so I didn't want to make a whole new thread for this simple question. I'm currrently syncing the CM-11.0 branch from the cyanogenmod github. And most packages are donwloaded correctly, but 4 are making problems. Here's the log of my terminal:
Code:
Fetching projects: 99% (433/437) fatal: Not a git repository: '/home/pavle/android/system/.repo/projects/packages/apps/QuickSearchBox.git'
fatal: Not a git repository: '/home/pavle/android/system/.repo/projects/external/safe-iop.git'
fatal: Not a git repository: '/home/pavle/android/system/.repo/projects/system/security.git'
fatal: Not a git repository: '/home/pavle/android/system/.repo/projects/external/chromium_org/third_party/leveldatabase/src.git'
error: Cannot fetch CyanogenMod/android_packages_apps_QuickSearchBox
warn: --force-broken, continuing to sync
error: Cannot fetch CyanogenMod/android_system_security
warn: --force-broken, continuing to sync
error: Cannot fetch platform/external/chromium_org/third_party/leveldatabase/src
warn: --force-broken, continuing to sync
error: Cannot fetch CyanogenMod/android_external_safe-iop
warn: --force-broken, continuing to sync
I ran the repo sync command with the -f flag as you can see, so it would download everything else execpt the ones it can't. I'm running ubuntu 13.10 x64. Also I should mention that I haven't added any device specific trees yet, only pure CM without kernel, device or vendor repos
Click to expand...
Click to collapse
Try to sync again.. this time, don't use the -f arguments.
SMillerNL said:
Why the -c and -f arguments with repo sync? Doesn't it run fine without them?
Sent from my Nexus 4, want to know my current project? Check http://team-fun.eu
Click to expand...
Click to collapse
Ya, It will run without -c and -f arguments. But -f will force the sync. It is good for people who have a slow internet, as the download won't break in between(that doesn't matter much though, but it saves time, if suppose the dev is syncing overnight).
PixCM said:
Try to sync again.. this time, don't use the -f arguments.
Ya, It will run without -c and -f arguments. But -f will force the sync. It is good for people who have a slow internet, as the download won't break in between(that doesn't matter much though, but it saves time, if suppose the dev is syncing overnight).
Click to expand...
Click to collapse
So what will -c do then?
Sent from my Nexus 4, want to know my current project? Check http://team-fun.eu
SMillerNL said:
So what will -c do then?
Sent from my Nexus 4, want to know my current project? Check http://team-fun.eu
Click to expand...
Click to collapse
-c: command and arguments to execute. The command is evaluated through /bin/sh and any arguments after it are passed through as shell positional parameters.
PixCM said:
Hi there! I am new here! So decided to start off with this!
Here's a list of the OpenSource ROMs, with the links to their github repos and the commands used for initializing their respective repos, to the working directories
For syncing the full repo,
After you initialize certain repo in the working folder, you have to give the following command :
Code:
repo sync -jX -c -f
Note : X = no. of threads. If you are not working on certain things in the background, you can add as many threads as the CPU supports.
ROMs with Github links. This will be useful for source builders, as they would find all the Github links are one place!
1. CyanogenMod
Link to Github sources :
Code:
[URL="https://github.com/CyanogenMod"]https://github.com/CyanogenMod[/URL]
Command for initializing the repo in the working folder :
Code:
repo init -u git://github.com/CyanogenMod/android.git -b <branch>
2. OmniROM
Link to github sources :
Code:
[URL="https://github.com/omnirom"]https://github.com/omnirom[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u https://github.com/omnirom/android.git -b android-4.4
3. Carbon ROM
Link to github sources :
Code:
[URL="https://github.com/CarbonDev"]https://github.com/CarbonDev[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u https://github.com/CarbonDev/android.git -b <branch>
4. PAC-man
Link to github sources :
Code:
[URL="https://github.com/PAC-man"]https://github.com/PAC-man[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u git://github.com/PAC-man/pacman.git -b <branch>
5. Paranoid Android
Link to github sources :
Code:
[URL="https://github.com/ParanoidAndroid"]https://github.com/ParanoidAndroid[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u [email protected]:ParanoidAndroid/manifest.git -b <branch>
6. Root Box
Link to github sources :
Code:
[URL="https://github.com/Root-Box"]https://github.com/Root-Box[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u https://github.com/Root-Box/platform_manifest.git -b <branch>
7. AOKP
Link to github sources :
Code:
[URL="https://github.com/AOKP"]https://github.com/AOKP[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u https://github.com/AOKP/platform_manifest.git -b <branch>
8. AOSP
Link to github sources :
Code:
[URL="https://github.com/android"]https://github.com/android[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u https://android.googlesource.com/platform/manifest.git -b <branch>
9. CyanMobile
Link to github sources :
Code:
[URL="https://github.com/CyanMobile"]https://github.com/CyanMobile[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u git://github.com/CyanMobile/android_cyanmobile.git -b <branch>
10. MiCode
Link to github sources :
Code:
[URL="https://github.com/MiCode"]https://github.com/MiCode[/URL]
Command for initializing the repo in the working folder:
Code:
I couldn't find the manifest git! Some one help me out! :P
11. AOSB
Link to github sources :
Code:
[URL="https://github.com/AOSB"]https://github.com/AOSB[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u https://github.com/AOSB/android.git <branch>
12. Liquid Smooth
Link to github sources :
Code:
[URL="https://github.com/LiquidSmooth"]https://github.com/LiquidSmooth[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u git://github.com/LiquidSmooth/android.git -b <branch>
13. Slim ROMs
Link to github sources :
Code:
[URL="https://github.com/SlimRoms"]https://github.com/SlimRoms[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u git://github.com/SlimRoms/platform_manifest.git -b <branch>
14. CyanFox
Link to github sources :
Code:
[URL="https://github.com/CyanFox"]https://github.com/CyanFox[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u git://github.com/CyanFox/android.git -b <branch>
15. Lewa OS
Link to github sources :
Code:
[URL="https://github.com/LeWaCode"]https://github.com/LeWaCode[/URL]
Command for initializing the repo in the working folder:
Code:
I couldn't find the manifest git! Some one help me out! :P
16. Mokee
Link to github sources :
Code:
[URL="https://github.com/MoKee"]https://github.com/MoKee[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u https://github.com/MoKee/android.git -b <branch>
17. ResurrectionRemix
Link to github sources :
Code:
[URL="https://github.com/resurrectionremix"]https://github.com/resurrectionremix[/URL]
Command for initializing the repo in the working folder:
Code:
repo init -u https://github.com/ResurrectionRemix/platform_manifest.git -b <branch>
I am new here, so I am sure, I might have missed out some ROM. Please care to inform that through posting the Github link in the thread! Thanks
Click to expand...
Click to collapse
The ParanoidAndroid repo is actually
https://github.com/AOSPA for Nexus devices
or
https://github.com/AOSPA-legacy for non-Nexus
I'm getting excited repo sync error... When I do "repo sync" command ...
And when I do a "./build-pac.sh p3100" command..
It gets stuck at lunching device thing... It's unable to download dependencies from cyanogenmod...
I had edited the room_service.xml a while back.. The error started after that... But now I deleted the room service file but the error still fails... Any solutions...?
Thanks for including CyanFox....... ....
Sent from my GT-I9100 using Tapatalk
zeetherocker said:
I'm getting excited repo sync error... When I do "repo sync" command ...
And when I do a "./build-pac.sh p3100" command..
It gets stuck at lunching device thing... It's unable to download dependencies from cyanogenmod...
I had edited the room_service.xml a while back.. The error started after that... But now I deleted the room service file but the error still fails... Any solutions...?
Click to expand...
Click to collapse
Hmm, The lunch process doesn't use the room service. It uses the dependencies of the ROM and syncs, whats there in the dependencies file!
Check dependencies for errors, or manually put the files in place. The vendor in /vendor/manufacturer/device, the device tree in /device/manufacturer/device and kernel in /kernel/manufacturer/device (check in the boardconfig.mk, for exact location of kernel source).
I suppose that its a exiting repo error and not a exciting repo sync error . for that, use the flag "-f" , for example. repo sync -f
Check if this works :highfive:
PixCM said:
Hmm, The lunch process doesn't use the room service. It uses the dependencies of the ROM and syncs, whats there in the dependencies file!
Check dependencies for errors, or manually put the files in place. The vendor in /vendor/manufacturer/device, the device tree in /device/manufacturer/device and kernel in /kernel/manufacturer/device (check in the boardconfig.mk, for exact location of kernel source).
I suppose that its a exiting repo error and not a exciting repo sync error . for that, use the flag "-f" , for example. repo sync -f
Check if this works :highfive:
Click to expand...
Click to collapse
I'm sure it's excited repo sync error... I'll post a Screenshot later... For now I've deleted a few folders... I'll try syncing repos again in the morning... And I'll do whatever u said and report back if I get errors..
Replicant OS
Nice list, I did not know there where so many, here is another one at http://www.replicant.us/
@PixCM Nice thread
maybe add VanirAOSP
https://github.com/VanirAOSP/platform_manifest
add Hellkat
https://github.com/Hellybean/android
add BeanStalk
https://github.com/scotthartbti/android
Cheers
MiCode builds funny.
sync command:
repo init -u git://github.com/MiCode/patchrom.git -b jellybean42
---------- Post added at 05:49 PM ---------- Previous post was at 05:47 PM ----------
and Dirty Unicorn
https://github.com/DirtyUnicorns-KitKat
sync:
repo init -u https://github.com/DirtyUnicorns-KitKat/manifest.git -b du44
Here you go, this should about cover it
https://github.com/LowEndGeek/General_Android_Documents/blob/master/CustomRoms.md
more...
broodROM
https://github.com/broodROM/platform_manifest
AOSP-S4 4.4.2 KitKat
https://github.com/AOSP-S4-KK/platform_manifest
ValidusAOSP
https://github.com/ValidusAOSP/platform_manifest
MWisBest
https://github.com/MWisBest/android_manifest
AnimeROM
https://github.com/AnimeROM/android
TheSchismROM
https://github.com/TheSchismROM/platform_manifest
Mahdi-Rom
https://github.com/Mahdi-Rom/platform_manifest
and one more guys
https://github.com/PureKat/android
Www.github.com/SOKP/platform_manifest
Sent from my GT-I9500 using XDA Premium 4 mobile app
another one=AICP rom
Android Ice Cold Project
https://github.com/AICP/platform_manifest
repo init -u https://github.com/AICP/platform_manifest.git -b kitkat
if someone got some new rom link to add... please do!
one more
will test it soon... today if iam lucky...
https://github.com/CyanHacker/android
repo init -u git://github.com/CyanHacker/android.git -b kitkat
Hi there, I'm extremely new to building a ROM or even to git and other stuff and am now trying to learn to build ROM. I have downloaded the cm12 sources for now, and trying to learn how it works, but seems to have stuck at a location.
I have been following the cm build page instructions for now from this page, and have done following stuff until now:
Make folders:
Code:
mkdir -p ~/bin
$ mkdir -p ~/android/system
Installed the repo command and entered the following to download the "repo" binary and make it executable (runnable):
Code:
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
Put the ~/bin directory in your path of execution
Initialize the CyanogenMod source repository and initialized the repository:
Code:
$ cd ~/android/system/
$ repo init -u https://github.com/CyanogenMod/android.git -b ics
Downloaded the source code
Code:
$ repo sync -j4 -f -c
[*]Get prebuilt apps
Code:
$ cd ~/android/system/vendor/cm
Now when I get to the get prebuilt apps, and I run cd ~/android/system/vendor/cm, I get the
Code:
cd ~/android/system/vendor/cm bash: No such file or directory
I tried opening the location manually, but I find no "vendor" folder under the "android/system" folder. However, there is a "vendor" folder under "android" and that "vendor" consists of folders like "cm", "cyngn" and "sony", where "sony" is related to My phone.
Under system I have folders like "core", "extras", "keymaster", "media", "netd", "qcom", "security" and "vold".
Before You say that I might have not done repo sync properly, it did complete properly. I have attached the image of completion of first time the repo sync was complete. Then a log of second time when the repo sync was done to get the device specific related stuff. I used the -f since the download of source had been interrupted due to the error "error: Exited sync due to fetch errors".
Also, don't know if it matters, but I have built a ROM before on the same system, but it was by following the instructions as posted to do. The sources were all coded to suit My phone, and all I was doing was "repo sync" and building the ROM via source with commands build/envsetup.sh
and breakfast nozomi and used to get a working build.
So please help Me out where I went wrong as I do want to learn to how to build a ROM.
Edit:
I had also tried searching for "get-prebuilts", "envsetup.sh" too, but couldn't find them either, and yes, I was always in the root directory of the source code (~/android/system).
Same issue here. Ironically I can build AICP (which is Cyanogenmod based). I can build any AOSP Rom without compiling problems also. This is a Cyanogenmod thing. It's also frustrating that even if you do manage to compile it, you probably won't be able to flash it. That happened to me with 5.0
Just for kicks, what is your OS? I'm running Linux Peppermint. I wonder if that could be the issue, since Ubuntu is recommended?
Check your java & sdk version
Hi everyone!
I'm trying to build LineageOS 15.1 for my Samsung Galaxy S5 - klte. Everything is good until I start compiling and then the build fails with an error "ninja failed with: exit status 1".
I've gone through the output from the build, but I can't find anything that sticks out. I also have tried Googling the problem, but I can't find anything that matches my problem. Here are my build steps:
## Create the directories
mkdir -p ~/bin
mkdir -p ~/android/lineage
## Install the repo
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
## Put the ~/bin directory in my path
nano ~/.profile
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
source ~/.profile
## Initialize the source repository
cd ~/android/lineage
repo init -u https://github.com/LineageOS/android.git -b lineage-15.1
## Download the source code
repo sync -f --force-sync -j8 -c
source build/envsetup.sh
breakfast klte
cd ~/android/lineage/device/samsung/klte
./extract-files.sh
cd ~/android/lineage
export USE_CCACHE=1
./prebuilts/sdk/tools/jack-admin kill-server
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx15g"
./prebuilts/sdk/tools/jack-admin start-server
## Prepare the device-specific code
source build/envsetup.sh
breakfast klte
## Start the build
croot
brunch klte
Here is a link for the output from the build:
http://www.ohsmeg.com/bill/projects/android/lineageos/ninja_error.html
My build machine is an i7-950 with 16gb of memory, running Ubuntu 16.04 headless.
Any suggestions?
Thanks!
zog
After building Chromium OS kernel 4.14.96 & my inability to figure out how to properly deploy it as an update to an existing Chromium OS installation like Arnoldthebat v72 (with Chrome OS Kernel 4.14.83)
efforts here -
https://forum.xda-developers.com/showpost.php?p=78830818&postcount=3
I will post here my efforts at building the full Chromium OS with the latest available Kernel - I will try & start with same version as arnoldthebat i.e. v72 which has now reached stable...
There will be a lot of editing here, as it's a learning curve to me...
First is to clone the Google Chrome OS repo -
I was given this link to learn how to do this -
https://chromium.googlesource.com/chromiumos/docs/+/master/developer_guide.md
As for building Kernel for ATB v72 - I will be keeping a log of instructions here...
I do the work from within a Ubuntu xenial 16.04.xx box as suggested by the documentation,
Preparation instructions:
Create a folder where the code will be stored (they suggest chromeos) I used code
from an ext4 partition/disk with plenty of space (mine 150 GB+)
$ mkdir code
input instructions to get to clone the repo later to reach here:
$ sudo apt-get install repo
$ sudo apt-get install git-core gitk git-gui curl lvm2 thin-provisioning-tools \
python-pkg-resources python-virtualenv python-oauth2client
Install depot_tools
$ git config --global user.name "John Doe"
$ git config --global user.email "[email protected]"
$ git config --global core.autocrlf false
$ git config --global core.filemode false
$ # and for fun!
$ git config --global color.ui true
Tweak your sudoers configuration
cd /tmp
cat > ./sudo_editor <<EOF
#!/bin/sh
echo Defaults \!tty_tickets > \$1 # Entering your password in one shell affects all shells
echo Defaults timestamp_timeout=180 >> \$1 # Time between re-requesting your password, in minutes
EOF
chmod +x ./sudo_editor
sudo EDITOR=./sudo_editor visudo -f /etc/sudoers.d/relax_requirements
Configure git
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
Verify that your default file permissions (umask) setting is correct
put the following line into your ~/.bashrc
umask 022
preparation for enough disk space
in folder code/
sudo dd if=/dev/zero of=swapfile bs=1024 count=$((1024*3000))
mkswap swapfile
sudo swapon swapfile
git config --global http.sslVerify false
git config --global http.postBuffer 1048576000
initialise the repo
$ repo init
$ repo init -u https://chromium.googlesource.com/chromiumos/manifest.git --repo-url https://chromium.googlesource.com/external/repo.git [-g minilayout]
get the source code
$ repo sync -j4
getting/syncing the source code took a long time as it kept failing...
I am now in this position with the source code in code/
I will fill in gaps of instructions I missed later...
Create a chroot
make sure depot_tools/ is inside the folder code/: code/depot_tools
temporary put depot_tools in the path
export PATH=$PATH:depot_tools
$ cros_sdk
... this will take some time...
NOTICE: Mounted .../code/chroot.img on chroot
NOTICE: Downloading SDK tarball..
All done
INFO cros_sdk:make_chroot: Elapsed time (make_chroot.sh): 74m37s
cros_sdk:make_chroot: All set up. To enter the chroot, run:
$ cros_sdk --enter
CAUTION: Do *NOT* rm -rf the chroot directory; if there are stale bind
mounts you may end up deleting your source tree too. To unmount and
delete the chroot cleanly, use:
$ cros_sdk --delete
(cr) ((c62d307...)) [email protected] ~/trunk/src/scripts $
now comes the real stuff...
Notes -
some extra commands might be needed to get this working:
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install linux-generic
$ sudo apt-get install fakeroot build-essential crash kexec-tools makedumpfile kernel-wedge
$ sudo apt-get install git-core libncurses5 libncurses5-dev libelf-dev asciidoc binutils-dev
...
Hello, My guide should fill in the blanks for you (Specifically the Over The Air Upgrades) - https://kmyers.me/blog/chromeos/a-g...s-distribution-with-ota-updates-and-crostini/
could someone please tell me if there is a rpm file so chromium os could be installed on top of ubuntu using alien cause terminal too difficult for noobs to understand but rpm and alien super easy
ghostdogg49504 said:
could someone please tell me if there is a rpm file so chromium os could be installed on top of ubuntu using alien cause terminal too difficult for noobs to understand but rpm and alien super easy
Click to expand...
Click to collapse
No, ChromiumOS is a operating system that either replaces your default operating system or that you dual boot into. It is not simply a application that you can install. If you want to run it without installing it, you could in theory build it yourself and convert the image to a virtual machine image and run it in Qemu or VirtualBox.
KMyers said:
No, ChromiumOS is a operating system that either replaces your default operating system or that you dual boot into. It is not simply a application that you can install. If you want to run it without installing it, you could in theory build it yourself and convert the image to a virtual machine image and run it in Qemu or VirtualBox.
Click to expand...
Click to collapse
fydeos has a installer in fydeos store with dualboot option but its in chinese