Related
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Introducing my Source Tools for Setting up your build environment, installing java, and Repo Syncing almost any Open Source Project.(CM10, AOKP, CM9,LiquidJellybean,AoCP,CNA) and more to come!
These are scripts I wrote for myself to make my building quicker and easier.
How to?
Extract tools to yhour home directory(I run a full Ubuntu 12.04 system, so I havent tested on VM, or 10.04 or 11.10)
Then Open a Terminal(Run as Root)
Type: chmod +x Repo_Sync.sh
Then type . Repo_Sync.sh
Thats it. Just Choose your Option and enjoy.
I would advise if a first time linux user, starting with option 1 and 2 then choose your poison!!
Hope you guys enjoy
Mine
Sent from my Inspire 4G using xda premium
Gahhhhh! I so want to help out, but I am bearly relearning my Visual Basic...
Sent from my SGH-I927 using xda app-developers app
Wait, if I sync CM10 is that the equivalent of repo sync?
EDIT:
In the readme you might want to add the chmod. I think that was what was causing the problem with me
Thanks D!! Keep it up!
Sent from my SAMSUNG-SGH-I717 using Tapatalk 2
Aquethys said:
Wait, if I sync CM10 is that the equivalent of repo sync?
EDIT:
In the readme you might want to add the chmod. I think that was what was causing the problem with me
Click to expand...
Click to collapse
No. Your problem was is you did not have bin/repo installed. According to the error log you gave me
Sent from my Inspire 4G using xda premium
I got the following two issues with your script (Ubuntu 12.10 x64):
At Option 1 the Scrippt stopped at this line:
Code:
tail -f ./oab-java.sh.log
#
..maybe remove the -f switch?
I resolved the problem by canceling the script and executed the last command on my own.
After executing Option 2 there was a problem with the script in ~/bin/
Either it's because
Code:
export PATH
is missing, Or the new Path should bei ~/bin/ insted of ~/bin/repo
(Not sure which action resolved this problem)
but great work so far! Syncing now at 4-5MB/s ...
dman3285 said:
No. Your problem was is you did not have bin/repo installed. According to the error log you gave me
Sent from my Inspire 4G using xda premium
Click to expand...
Click to collapse
I followed your steps listed. first by choosing 1 then 2. when I try to sync a flavor, I get a message repo not found!
I'm running Ubuntu 12.10 32bit
Enter option: 4
##############################################
# #
# Building CM9 #
# Follw us on twitter @CollectiveDevs #
# #
##############################################
Making directory
Initializing Repo
tools/CM9.sh: 21: tools/CM9.sh: repo: not found
Repo Syncing
tools/CM9.sh: 24: tools/CM9.sh: repo: not found
Elapsed: 0 sec(s)
Done.
Press Enter to continue
did I miss something?
Got it too. Install repo/sync and fix
You may also double check if you chmodded it.
Sent from my SGH-I927 using xda app-developers app
dbrannon79 said:
I followed your steps listed. first by choosing 1 then 2. when I try to sync a flavor, I get a message repo not found!
I'm running Ubuntu 12.10 32bit
Enter option: 4
##############################################
# #
# Building CM9 #
# Follw us on twitter @CollectiveDevs #
# #
##############################################
Making directory
Initializing Repo
tools/CM9.sh: 21: tools/CM9.sh: repo: not found
Repo Syncing
tools/CM9.sh: 24: tools/CM9.sh: repo: not found
Elapsed: 0 sec(s)
Done.
Press Enter to continue
did I miss something?
Click to expand...
Click to collapse
Have to install bin/repo
Sent from my Inspire 4G using xda premium
dman3285 said:
Have to install bin/repo
Sent from my Inspire 4G using xda premium
Click to expand...
Click to collapse
forgive me for my lack! my linux skills are very rusty
I see the folder in my home folder labled bin. inside is a file labled repo!
executing it gets me this...
[email protected]:~$ sudo su
[sudo] password for dbrannon79:
[email protected]:/home/dbrannon79# '/home/dbrannon79/bin/repo'
error: repo is not installed. Use "repo init" to install it here.
typing " repo init" in terminal as root....
[email protected]:/home/dbrannon79# repo init
No command 'repo' found, did you mean:
Command 'repro' from package 'repro' (universe)
Command 'rep' from package 'rep' (universe)
Command 'repl' from package 'nmh' (universe)
Command 'repl' from package 'mailutils-mh' (universe)
repo: command not found
[email protected]:/home/dbrannon79#
I think something went over my head!!
PATH=~/bin:$PATH
chmod +x ~/bin/repo
Sent from my Inspire 4G using xda premium
dman3285 said:
PATH=~/bin:$PATH
chmod +x ~/bin/repo
Sent from my Inspire 4G using xda premium
Click to expand...
Click to collapse
Sorry for bothering you like this, I really must be missing something. followed the two commands, I also googled how to install /bin/repo and found the same commands in another site!
I get no output when typing them, although no error! but still the same "repo not found" message when running your script!
here is my terminal output.
[email protected]:~$ PATH=~/bin:$PATH
[email protected]:~$ chmod +x ~/bin/repo
[email protected]:~$ '/home/dbrannon79/Repo-Sync_Tools-jellybean/Repo_Sync.sh'
##########################################################
# AOSP-SYNC V-1 #
#========================================================#
# 1 - Install Java-6 #
# 2 - Install Required Packages #
# 3 - Sync AoCP Jellybean #
# 4 - Sync CM9 #
# 5 - Sync AOSP Jellybean #
# 6 - Sync LiquidSmooth JB #
# 7 - sync CNA Jellybean #
# 8 - Sync CM10 #
# 9 - Sync AOKP #
##########################################################
# x - Exit #
##########################################################
Enter option: 3
##############################################
# #
# Building AoCP #
# Follw us on twitter @CollectiveDevs #
# #
##############################################
Making directory
mkdir: cannot create directory `AoCP': File exists
Initializing Repo
tools/AoCP.sh: 21: tools/AoCP.sh: repo: not found
Repo Syncing
tools/AoCP.sh: 24: tools/AoCP.sh: repo: not found
Elapsed: 0 sec(s)
Done.
Press Enter to continue
---------- Post added at 11:09 PM ---------- Previous post was at 10:54 PM ----------
dman3285 said:
PATH=~/bin:$PATH
chmod +x ~/bin/repo
Sent from my Inspire 4G using xda premium
Click to expand...
Click to collapse
I believe the repo is working!!! I opened the AoCP.sh script and copied "repo init -u https://github.com/TheCollective/platform_manifest.git -b jellybean
" and pasted it into terminal! I stoped when it started asking my questions!
here is my output!
[email protected]:~$ repo init -u https://github.com/TheCollective/platform_manifest.git -b jellybean
gpg: keyring `/home/dbrannon79/.repoconfig/gnupg/secring.gpg' created
gpg: keyring `/home/dbrannon79/.repoconfig/gnupg/pubring.gpg' created
gpg: /home/dbrannon79/.repoconfig/gnupg/trustdb.gpg: trustdb created
gpg: key 920F5C65: public key "Repo Maintainer <[email protected]>" imported
gpg: Total number processed: 1
gpg: imported: 1
Get https://gerrit.googlesource.com/git-repo
repo sync ***************************** (it paused here and I pasted this line from the script )****************************
remote: Counting objects: 313, done
remote: Finding sources: 100% (270/270)
remote: Getting sizes: 100% (72/72)
remote: Compressing objects: 100% (72/72)
remote: Total 2028 (delta 1175), reused 1968 (delta 1167)
Receiving objects: 100% (2028/2028), 1.26 MiB | 10 KiB/s, done.
Resolving deltas: 100% (1218/1218), done.
From https://gerrit.googlesource.com/git-repo
* [new branch] maint -> origin/maint
* [new branch] master -> origin/master
* [new branch] stable -> origin/stable
* [new tag] v1.0 -> v1.0
* [new tag] v1.0.1 -> v1.0.1
* [new tag] v1.0.2 -> v1.0.2
* [new tag] v1.0.3 -> v1.0.3
* [new tag] v1.0.4 -> v1.0.4
* [new tag] v1.0.5 -> v1.0.5
* [new tag] v1.0.6 -> v1.0.6
* [new tag] v1.0.7 -> v1.0.7
* [new tag] v1.0.8 -> v1.0.8
* [new tag] v1.0.9 -> v1.0.9
* [new tag] v1.1 -> v1.1
* [new tag] v1.10.0 -> v1.10.0
* [new tag] v1.10.1 -> v1.10.1
* [new tag] v1.10.2 -> v1.10.2
* [new tag] v1.10.3 -> v1.10.3
* [new tag] v1.10.4 -> v1.10.4
* [new tag] v1.11.0 -> v1.11.0
* [new tag] v1.11.1 -> v1.11.1
* [new tag] v1.2 -> v1.2
* [new tag] v1.3 -> v1.3
* [new tag] v1.3.1 -> v1.3.1
* [new tag] v1.3.2 -> v1.3.2
* [new tag] v1.4 -> v1.4
* [new tag] v1.4.1 -> v1.4.1
* [new tag] v1.4.2 -> v1.4.2
* [new tag] v1.4.3 -> v1.4.3
* [new tag] v1.4.4 -> v1.4.4
* [new tag] v1.5 -> v1.5
* [new tag] v1.5.1 -> v1.5.1
* [new tag] v1.6 -> v1.6
* [new tag] v1.6.1 -> v1.6.1
* [new tag] v1.6.10 -> v1.6.10
* [new tag] v1.6.10.1 -> v1.6.10.1
* [new tag] v1.6.10.2 -> v1.6.10.2
* [new tag] v1.6.2 -> v1.6.2
* [new tag] v1.6.3 -> v1.6.3
* [new tag] v1.6.4 -> v1.6.4
* [new tag] v1.6.5 -> v1.6.5
* [new tag] v1.6.6 -> v1.6.6
* [new tag] v1.6.7 -> v1.6.7
* [new tag] v1.6.7.1 -> v1.6.7.1
* [new tag] v1.6.7.2 -> v1.6.7.2
* [new tag] v1.6.7.3 -> v1.6.7.3
* [new tag] v1.6.7.4 -> v1.6.7.4
* [new tag] v1.6.7.5 -> v1.6.7.5
* [new tag] v1.6.8 -> v1.6.8
* [new tag] v1.6.8.1 -> v1.6.8.1
* [new tag] v1.6.8.10 -> v1.6.8.10
* [new tag] v1.6.8.11 -> v1.6.8.11
* [new tag] v1.6.8.2 -> v1.6.8.2
* [new tag] v1.6.8.3 -> v1.6.8.3
* [new tag] v1.6.8.4 -> v1.6.8.4
* [new tag] v1.6.8.5 -> v1.6.8.5
* [new tag] v1.6.8.6 -> v1.6.8.6
* [new tag] v1.6.8.7 -> v1.6.8.7
* [new tag] v1.6.8.8 -> v1.6.8.8
* [new tag] v1.6.8.9 -> v1.6.8.9
* [new tag] v1.6.9 -> v1.6.9
* [new tag] v1.6.9.1 -> v1.6.9.1
* [new tag] v1.6.9.2 -> v1.6.9.2
* [new tag] v1.6.9.3 -> v1.6.9.3
* [new tag] v1.6.9.4 -> v1.6.9.4
* [new tag] v1.6.9.5 -> v1.6.9.5
* [new tag] v1.6.9.6 -> v1.6.9.6
* [new tag] v1.6.9.7 -> v1.6.9.7
* [new tag] v1.6.9.8 -> v1.6.9.8
* [new tag] v1.7 -> v1.7
* [new tag] v1.7.1 -> v1.7.1
* [new tag] v1.7.2 -> v1.7.2
* [new tag] v1.7.3 -> v1.7.3
* [new tag] v1.7.3.1 -> v1.7.3.1
* [new tag] v1.7.4 -> v1.7.4
* [new tag] v1.7.4.1 -> v1.7.4.1
* [new tag] v1.7.4.2 -> v1.7.4.2
* [new tag] v1.7.4.3 -> v1.7.4.3
* [new tag] v1.7.5 -> v1.7.5
* [new tag] v1.7.6 -> v1.7.6
* [new tag] v1.7.6.1 -> v1.7.6.1
* [new tag] v1.7.7 -> v1.7.7
* [new tag] v1.7.7.1 -> v1.7.7.1
* [new tag] v1.7.7.2 -> v1.7.7.2
* [new tag] v1.7.7.3 -> v1.7.7.3
* [new tag] v1.7.7.4 -> v1.7.7.4
* [new tag] v1.7.7.5 -> v1.7.7.5
* [new tag] v1.7.7.6 -> v1.7.7.6
* [new tag] v1.7.8 -> v1.7.8
* [new tag] v1.7.8.1 -> v1.7.8.1
* [new tag] v1.7.8.2 -> v1.7.8.2
* [new tag] v1.8.0 -> v1.8.0
* [new tag] v1.8.1 -> v1.8.1
* [new tag] v1.8.2 -> v1.8.2
* [new tag] v1.9.0 -> v1.9.0
* [new tag] v1.9.1 -> v1.9.1
* [new tag] v1.9.2 -> v1.9.2
* [new tag] v1.9.3 -> v1.9.3
* [new tag] v1.9.4 -> v1.9.4
* [new tag] v1.9.5 -> v1.9.5
* [new tag] v1.9.6 -> v1.9.6
... A new repo command ( 1.18) is available.
... You should upgrade soon:
cp /home/dbrannon79/.repo/repo/repo /home/dbrannon79/bin/repo
Get https://github.com/TheCollective/platform_manifest.git
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:10 --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.
remote: Counting objects: 1497, done.
remote: Compressing objects: 100% (803/803), done.
remote: Total 1497 (delta 740), reused 1450 (delta 693)
Receiving objects: 100% (1497/1497), 209.37 KiB | 14 KiB/s, done.
Resolving deltas: 100% (740/740), done.
From https://github.com/TheCollective/platform_manifest
* [new branch] ics -> origin/ics
* [new branch] jellybean -> origin/jellybean
* [new tag] aocp-4.1.1 -> aocp-4.1.1
Your Name [Doug Brannon]: Your Email [[email protected](none)]:
Your identity is: repo sync <[email protected](none)>
is this correct [y/N]?
http://paste.ubuntu.com
Ubuntu paste for all logs or spoiler and code tags if possible...xD
Would help dman a lot I'm sure.
Sent from my SGH-I927 using xda app-developers app
Code:
All done!
Opening Tail Terminal...
Ign http://packages.medibuntu.org precise/free Translation-en_US
Ign http://packages.medibuntu.org precise/free Translation-en
Ign http://packages.medibuntu.org precise/non-free Translation-en_US
Ign http://packages.medibuntu.org precise/non-free Translation-en
Ign http://archive.getdeb.net precise-getdeb/apps Translation-en_US
Ign http://archive.getdeb.net precise-getdeb/apps Translation-en
Fetched 159 kB in 10s (15.6 kB/s)
Reading package lists...
15302's retcode: 0
success
java-6.sh hangs here for me...
[email protected] ~ $ uname -a
Linux Xel 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
(Linux Mint Maya)
Not a big deal, it's obviously done. Well after sudo apt-get install sun-java6-jdk
EDIT: Nice scripts, btw.
Zero Computing said:
Code:
All done!
Opening Tail Terminal...
Ign http://packages.medibuntu.org precise/free Translation-en_US
Ign http://packages.medibuntu.org precise/free Translation-en
Ign http://packages.medibuntu.org precise/non-free Translation-en_US
Ign http://packages.medibuntu.org precise/non-free Translation-en
Ign http://archive.getdeb.net precise-getdeb/apps Translation-en_US
Ign http://archive.getdeb.net precise-getdeb/apps Translation-en
Fetched 159 kB in 10s (15.6 kB/s)
Reading package lists...
15302's retcode: 0
success
java-6.sh hangs here for me...
[email protected] ~ $ uname -a
Linux Xel 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
(Linux Mint Maya)
Not a big deal, it's obviously done. Well after sudo apt-get install sun-java6-jdk
EDIT: Nice scripts, btw.
Click to expand...
Click to collapse
Yea.. I need to remove the tail terminal in the script. Its really useless...lol
Sent from my SGH-I927 using xda premium
dman3285 said:
Yea.. I need to remove the tail terminal in the script. Its really useless...lol
Sent from my SGH-I927 using xda premium
Click to expand...
Click to collapse
Dman, I figured out how to get your build environment working on my pc! don't know if this will help anyone else, but after installing # 1 and 2 the folder "bin" that's placed in home. opened it and copied "repo" to "/usr/bin". now it's syncing the first one on the list !
the command PATH=~/bin:$PATH for some reason wouldn't change the path!
I'm getting getter with Linux and android code, but still have lots of learning to do!!
dbrannon79 said:
Dman, I figured out how to get your build environment working on my pc! don't know if this will help anyone else, but after installing # 1 and 2 the folder "bin" that's placed in home. opened it and copied "repo" to "/usr/bin". now it's syncing the first one on the list !
the command PATH=~/bin:$PATH for some reason wouldn't change the path!
I'm getting getter with Linux and android code, but still have lots of learning to do!!
Click to expand...
Click to collapse
you need to export it like this:
export PATH=~/bin:$PATH
If you don't export it you'll have to call it everytime you wanna use it:
PATH=~/bin:$PATH ./run-some-script
Hey dman,
has your repos been updated with all the new fixes thats in cm10 and pac rom?
I was gonna run a build for the other roms and try them out!
thanks
---------- Post added at 08:17 PM ---------- Previous post was at 08:08 PM ----------
ok I attempted to build fro AoCP and got this error! any ideas?
[email protected]:~$ cd AoCP
[email protected]:~/AoCP$ . build/envsetup.sh && brunch i927
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/armv7-a/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/aocp/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/aocp/vendorsetup.sh
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/i927/aocp.mk]]: "device/*/i927/aocp.mk" does not exist. Stop.
Device i927 not found. Attempting to retrieve device repository from TheCollective Github (http://github.com/TheCollective).
Repository for i927 not found in TheCollective Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/i927/aocp.mk]]: "device/*/i927/aocp.mk" does not exist. Stop.
** Don't have a product spec for: 'aocp_i927'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
[email protected]:~/AoCP$
There isnt an aocp.mk in the device tree. You have ro make one
Sent from my SGH-I927 using xda premium
Hi!
Wanted to download the source PAC-man ROM JellyBean (brunch cm10.1) but somehow part of a package has been removed from Github.
Code:
Fetching projects: 99% (363/366) fatal: Could not find remote ref refs / heads / cm-10.1
fatal: Could not find remote ref refs / heads / cm-10.1
fatal: Could not find remote ref refs / heads / cm-10.1
error: Can not fetch android_packages_apps_PackageInstaller
error: Can not fetch android_frameworks_base
error: Can not fetch android_packages_apps_Settings
error: Exited sync due to fetch errors
Only the branches KitKat. Where can I find my packages?
I'm fetching LineageOS-15.1 with "repo sync -f", fails with same message everytime
it fails everytime with this message
Code:
Fetching project LineageOS/android_hardware_qcom_audioMiB/s
remote: Total 2886 (delta 532), reused 2785 (delta 532)
Receiving objects: 100% (2886/2886), 512.16 MiB | 1.69 MiB/s, done.
Resolving deltas: 100% (532/532), done.
From https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86
* [new tag] android-8.1.0_r20 -> android-8.1.0_r20
Fetching projects: 100% (629/629)
error: Exited sync due to fetch errors
how can I fix it
I'm using debian on windows subsystem linux
djdisodo01 said:
it fails everytime with this message
Code:
Fetching project LineageOS/android_hardware_qcom_audioMiB/s
remote: Total 2886 (delta 532), reused 2785 (delta 532)
Receiving objects: 100% (2886/2886), 512.16 MiB | 1.69 MiB/s, done.
Resolving deltas: 100% (532/532), done.
From https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86
* [new tag] android-8.1.0_r20 -> android-8.1.0_r20
Fetching projects: 100% (629/629)
error: Exited sync due to fetch errors
how can I fix it
I'm using debian on windows subsystem linux
Click to expand...
Click to collapse
it is working now
just pasted this
Code:
13256 apt-get-repository ppa:git-core/ppa
13257 apt-get repository ppa:git-core/ppa
13258 add-apt-repository ppa:git-core/ppa
13259 apt-get update
13260 apt-get install git
I am trying to download the Pixel XL kernel sources from Google but I can't seem to do it following their guide.
Whenever I run `repo init -u https://android.googlesource.com/kernel/manifest -b android-msm-marlin-3.18-pie-qpr2`, it errors out complaining that default.xml is missing. I can't find a single xml file in the .repo directory either.
Console:
Code:
$ repo init -u https://android.googlesource.com/kernel/manifest -b android-msm-marlin-3.18-pie-qpr2
Get https://gerrit.googlesource.com/git-repo/clone.bundle
Get https://gerrit.googlesource.com/git-repo
remote: Counting objects: 1, done
remote: Finding sources: 100% (105/105)
remote: Total 105 (delta 28), reused 105 (delta 28)
Receiving objects: 100% (105/105), 184.38 KiB | 6.58 MiB/s, done.
Resolving deltas: 100% (28/28), completed with 16 local objects.
From https://gerrit.googlesource.com/git-repo
d92464e..0c0e934 master -> origin/master
13f323b..c5b0e23 stable -> origin/stable
* [new tag] v1.13.3 -> v1.13.3
Get https://android.googlesource.com/kernel/manifest
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404
Server does not provide clone.bundle; ignoring.
remote: Total 110 (delta 30), reused 110 (delta 30)
Receiving objects: 100% (110/110), 17.66 KiB | 2.52 MiB/s, done.
Resolving deltas: 100% (30/30), done.
From https://android.googlesource.com/kernel/manifest
* [new branch] android-hikey-linaro-4.14 -> origin/android-hikey-linaro-4.14
* [new branch] android-hikey-linaro-4.19 -> origin/android-hikey-linaro-4.19
* [new branch] android-hikey-linaro-4.4 -> origin/android-hikey-linaro-4.4
* [new branch] android-hikey-linaro-4.9 -> origin/android-hikey-linaro-4.9
* [new branch] android-hikey960-linaro-4.14 -> origin/android-hikey960-linaro-4.14
* [new branch] android-hikey960-linaro-4.19 -> origin/android-hikey960-linaro-4.19
* [new branch] android-hikey960-linaro-4.4 -> origin/android-hikey960-linaro-4.4
* [new branch] android-hikey960-linaro-4.9 -> origin/android-hikey960-linaro-4.9
* [new branch] android-mainline-tracking -> origin/android-mainline-tracking
* [new branch] android-msm-bluecross-4.9-pie-qpr1 -> origin/android-msm-bluecross-4.9-pie-qpr1
* [new branch] android-msm-bonito-4.9-pie-b4s4 -> origin/android-msm-bonito-4.9-pie-b4s4
* [new branch] android-msm-crosshatch-4.9-pie-qpr1 -> origin/android-msm-crosshatch-4.9-pie-qpr1
* [new branch] android-msm-crosshatch-4.9-pie-qpr2 -> origin/android-msm-crosshatch-4.9-pie-qpr2
* [new branch] android-msm-marlin-3.18-pie-qpr1 -> origin/android-msm-marlin-3.18-pie-qpr1
* [new branch] android-msm-marlin-3.18-pie-qpr2 -> origin/android-msm-marlin-3.18-pie-qpr2
* [new branch] android-msm-wahoo-4.4-pie-qpr1 -> origin/android-msm-wahoo-4.4-pie-qpr1
* [new branch] android-msm-wahoo-4.4-pie-qpr2 -> origin/android-msm-wahoo-4.4-pie-qpr2
* [new branch] aosp-goldfish-3.10-arm-ranchu -> origin/aosp-goldfish-3.10-arm-ranchu
* [new branch] aosp-goldfish-3.10-arm64-ranchu -> origin/aosp-goldfish-3.10-arm64-ranchu
* [new branch] aosp-goldfish-3.10-mips-ranchu -> origin/aosp-goldfish-3.10-mips-ranchu
* [new branch] aosp-goldfish-3.10-mips64-ranchu -> origin/aosp-goldfish-3.10-mips64-ranchu
* [new branch] aosp-goldfish-3.10-x86-ranchu -> origin/aosp-goldfish-3.10-x86-ranchu
* [new branch] aosp-goldfish-3.10-x86_64-goldfish -> origin/aosp-goldfish-3.10-x86_64-goldfish
* [new branch] aosp-goldfish-3.10-x86_64-ranchu -> origin/aosp-goldfish-3.10-x86_64-ranchu
* [new branch] aosp-goldfish-3.4-arm-goldfish -> origin/aosp-goldfish-3.4-arm-goldfish
* [new branch] aosp-goldfish-3.4-mips-goldfish -> origin/aosp-goldfish-3.4-mips-goldfish
* [new branch] aosp-goldfish-3.4-x86-goldfish -> origin/aosp-goldfish-3.4-x86-goldfish
* [new branch] common-android-4.14 -> origin/common-android-4.14
* [new branch] common-android-4.19 -> origin/common-android-4.19
* [new branch] common-android-4.19-gki-dev -> origin/common-android-4.19-gki-dev
* [new branch] common-android-4.4 -> origin/common-android-4.4
* [new branch] common-android-4.9 -> origin/common-android-4.9
* [new branch] common-android-mainline -> origin/common-android-mainline
* [new branch] master -> origin/master
* [new branch] n-common-android-4.4 -> origin/n-common-android-4.4
* [new branch] n-release-common-android-4.4 -> origin/n-release-common-android-4.4
* [new branch] o-common-android-4.4 -> origin/o-common-android-4.4
* [new branch] o-common-android-4.9 -> origin/o-common-android-4.9
* [new branch] o-release-common-android-4.4 -> origin/o-release-common-android-4.4
* [new branch] o-release-common-android-4.9 -> origin/o-release-common-android-4.9
* [new branch] p-common-android-4.14 -> origin/p-common-android-4.14
* [new branch] p-common-android-4.4 -> origin/p-common-android-4.4
* [new branch] p-common-android-4.9 -> origin/p-common-android-4.9
* [new branch] p-release-common-android-4.14 -> origin/p-release-common-android-4.14
* [new branch] p-release-common-android-4.4 -> origin/p-release-common-android-4.4
* [new branch] p-release-common-android-4.9 -> origin/p-release-common-android-4.9
* [new branch] q-common-android-4.14 -> origin/q-common-android-4.14
* [new branch] q-common-android-4.19 -> origin/q-common-android-4.19
* [new branch] q-common-android-4.9 -> origin/q-common-android-4.9
* [new branch] upstream-linux-3.18.y -> origin/upstream-linux-3.18.y
* [new branch] upstream-linux-4.14.y -> origin/upstream-linux-4.14.y
* [new branch] upstream-linux-4.19.y -> origin/upstream-linux-4.19.y
* [new branch] upstream-linux-4.4.y -> origin/upstream-linux-4.4.y
* [new branch] upstream-linux-4.9.y -> origin/upstream-linux-4.9.y
fatal: manifest 'default.xml' not available
fatal: manifest default.xml not found
I am using repo v1.13.3 modified to use python 2 instead of 3. (Changed the shebang, nothing else)
Code:
$ repo --version
repo version v1.13.3
(from https://gerrit.googlesource.com/git-repo)
repo launcher version 1.25
(from /home/gudenau/bin/repo)
git version 2.22.0
Python 2.7.16 (default, Mar 11 2019, 18:59:25)
[GCC 8.2.1 20181127]
What am I doing wrong?
Hey, you have to follow the legacy kernel instructions. Made the same mistake myself.
https://source.android.com/setup/build/building-kernels-deprecated
NZedPred said:
Hey, you have to follow the legacy kernel instructions. Made the same mistake myself.
https://source.android.com/setup/build/building-kernels-deprecated
Click to expand...
Click to collapse
Why would the new one claim to support the Pixel XL if that is the case? Google does some weird stuff at times...
Edit:
Marlin isn't even on that page.
gudenau said:
Why would the new one claim to support the Pixel XL if that is the case? Google does some weird stuff at times...
Edit:
Marlin isn't even on that page.
Click to expand...
Click to collapse
I'll try and find the URL I used, give me a day or two.
From https://source.android.com/setup/build/building-kernels-deprecated
The msm project has the sources for ADP1, ADP2, Nexus One, Nexus 4, Nexus 5, Nexus 6, Nexus 5X, Nexus 6P, Nexus 7 (2013), Pixel, and Pixel XL, and can be used as a starting point for work on Qualcomm MSM chipsets.
Click to expand...
Click to collapse
Code:
git clone https://android.googlesource.com/kernel/msm
You also need to do some setup, by getting an appropriate compiler and setting some environment variables.
I used the compilers here (you need both - you can use git clone to pull these)
https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9
https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9
I used these values based upon my directory structure:
Code:
export CROSS_COMPILE=$(pwd)/../tools/aarch64-linux-android-4.9/bin/aarch64-linux-android-
export CROSS_COMPILE_ARM32=$(pwd)/../tools/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-
export ARCH=arm64
export SUBARCH=arm64
Then to do the build:
Code:
make marlin_defconfig
make -j4
Marlin and Sailfish have the same kernel, but you have to use marlin_defconfig.
Hope this helps.
NZedPred said:
From https://source.android.com/setup/build/building-kernels-deprecated
Code:
git clone https://android.googlesource.com/kernel/msm
You also need to do some setup, by getting an appropriate compiler and setting some environment variables.
I used the compilers here (you need both - you can use git clone to pull these)
https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9
https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9
I used these values based upon my directory structure:
Code:
export CROSS_COMPILE=$(pwd)/../tools/aarch64-linux-android-4.9/bin/aarch64-linux-android-
export CROSS_COMPILE_ARM32=$(pwd)/../tools/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-
export ARCH=arm64
export SUBARCH=arm64
Then to do the build:
Code:
make marlin_defconfig
make -j4
Marlin and Sailfish have the same kernel, but you have to use marlin_defconfig.
Hope this helps.
Click to expand...
Click to collapse
How do I figure out what tag to checkout? The kernel version on my device is 3.18.122-g665c9a1, but I am not sure what tag that corresponds to.
Edit:
Nevermind, seems that `git checkout 665c9a1` works.
Edit 2:
Alright, what's a good way to make the kernel build fast? These GCC versions have the wrappers that make it take forever, maybe I could use clang instead?
gudenau said:
How do I figure out what tag to checkout? The kernel version on my device is 3.18.122-g665c9a1, but I am not sure what tag that corresponds to.
Edit:
Nevermind, seems that `git checkout 665c9a1` works.
Edit 2:
Alright, what's a good way to make the kernel build fast? These GCC versions have the wrappers that make it take forever, maybe I could use clang instead?
Click to expand...
Click to collapse
Just to add to this, you can get a list of branches by using e.g.
Code:
git branch -av
You can filter using grep to get specific ones, e.g.
Code:
git branch -av | grep pie
or
Code:
git branch -av | grep q-preview
From there checkout the branch (exclude the remotes/origin/ prefix that is on most of the branches), e.g. I used
Code:
git checkout android-msm-marlin-3.18-q-preview-4
Yes it will take a while to build, you can increase the number I had in the make command before, e.g. use make -j8 for 8 threads, make -j16 for 16 threads. Depends on what your CPU is as to what will work optimally.
As for using clang, that's something that I'll look into at some stage. If you manage to work out how to get that working, please do post about it. I have cloned the git repository here: https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/
clang-r353983d is the one used for the Q preview builds I understand. I just haven't gotten to trying to compile with it (and what exports are needed much like what was done before for gcc).
This page has a bit of info, although it seems to be targeting custom rom kernels (not sure if that's important in this case, after all, a custom kernel would be based off stock in some way). https://github.com/nathanchance/android-kernel-clang
NZedPred said:
Just to add to this, you can get a list of branches by using e.g.
Code:
git branch -av
You can filter using grep to get specific ones, e.g.
Code:
git branch -av | grep pie
or
Code:
git branch -av | grep q-preview
From there checkout the branch (exclude the remotes/origin/ prefix that is on most of the branches), e.g. I used
Code:
git checkout android-msm-marlin-3.18-q-preview-4
Yes it will take a while to build, you can increase the number I had in the make command before, e.g. use make -j8 for 8 threads, make -j16 for 16 threads. Depends on what your CPU is as to what will work optimally.
As for using clang, that's something that I'll look into at some stage. If you manage to work out how to get that working, please do post about it. I have cloned the git repository here: https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/
clang-r353983d is the one used for the Q preview builds I understand. I just haven't gotten to trying to compile with it (and what exports are needed much like what was done before for gcc).
This page has a bit of info, although it seems to be targeting custom rom kernels (not sure if that's important in this case, after all, a custom kernel would be based off stock in some way). https://github.com/nathanchance/android-kernel-clang
Click to expand...
Click to collapse
Do you happen to know how I could install a custom build to my phone? I have Magisk, could I use a module perhaps?
gudenau said:
Do you happen to know how I could install a custom build to my phone? I have Magisk, could I use a module perhaps?
Click to expand...
Click to collapse
I forget the order in which you have to install things. The instructions on the Google page just involve flashing it with fastboot. Perhaps you can flash Magisk after, and it will retain your custom kernel? Other option is to build a flashable zip using Anykernel (I haven't done this before, other than building I haven't actually unlocked my bootloader to try).
Link to AnyKernel Github page: https://github.com/osm0sis/AnyKernel3
Link to XDA thread for it: https://forum.xda-developers.com/showthread.php?t=2670512
Don't forget to hit thanks!
Problems when doing "repo sync" for LineageOS 16.0 (android_system_keymaster)
Hi, I've built LineageOS 16.0 successfully under Ubuntu 16.04 but after doing a recent "repo sync" it appears to fail. It is the "repo sync" command itself that is failing as follows:
Code:
Fetching project LineageOS/android_system_keymaster
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
Receiving objects: 100% (5355/5355), 2.04 MiB | 10.00 KiB/s, done.
remote: Total 5355 (delta 0), reused 0 (delta 0), pack-reused 5354
Resolving deltas: 100% (3343/3343), done.
error: Could not read 1dca597b71226242e5ca1c9f278d6901e3401a2e
fatal: Failed to traverse parents of commit 70dc189d53c476893b93d3f4433b2487e7c35d8f
error: https://github.com/LineageOS/android_system_keymaster did not send all necessary objects
and this then causes problems later on:
Code:
Syncing work tree: 90% (641/712)Checking out project platform/system/connectivity/wifilogd
Checking out project LineageOS/android_system_core
Checking out project LineageOS/android_system_extras
Checking out project LineageOS/android_system_extras_su
Checking out project platform/system/gatekeeper
Checking out project platform/system/hardware/interfaces
Checking out project platform/system/hwservicemanager
Syncing work tree: 91% (648/712)Checking out project platform/system/iot/attestation
Checking out project LineageOS/android_system_keymaster
error: Cannot checkout LineageOS/android_system_keymaster: ManifestInvalidRevisionError: revision refs/heads/lineage-16.0 in LineageOS/android_system_keymaster not found
error: in `sync -j1 -f --force-sync`: revision refs/heads/lineage-16.0 in LineageOS/android_system_keymaster not found``
I've done a clean build with repo init and get the same problem. Does anyone else see this? I'm convinced something has become broken in the KLTE build. Thanks.
I should add, I can do a manual git clone of android_system_keymaster and also can checkout the lineage-16.0 branch.
If I run repo --trace sync I can see the exact command being run:
Code:
export GIT_DIR=/home/lineage/android/lineage/.repo/projects/system/keymaster.git
git fetch --progress github --tags --force +refs/heads/lineage-16.0:refs/remotes/github/lineage-16.0
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 5355 (delta 0), reused 0 (delta 0), pack-reused 5354
Receiving objects: 100% (5355/5355), 2.04 MiB | 1.40 MiB/s, done.
Resolving deltas: 100% (3343/3343), done.
error: Could not read 1dca597b71226242e5ca1c9f278d6901e3401a2e
fatal: Failed to traverse parents of commit 70dc189d53c476893b93d3f4433b2487e7c35d8f
error: https://github.com/LineageOS/android_system_keymaster did not send all necessary objects