Hi, im trying to learn "building rom from source.." and i got somewhere..
Now i have a problem with "repo" or something else "block's it"
So, i have repo installed, i already downloaded the sources from google, and yesterday i tried to download the CM device tree for kumquat.
It downloaded a lot of files, i got some "errors"
Code:
Line 30: fatal: Invalid gitfile format: /home/igor/android/.repo/repo/.git/clone.bundle
Line 31: fatal: The remote end hung up unexpectedly
Line 72: curl: (22) The requested URL returned error: 404
Line 409: curl: (22) The requested URL returned error: 404
Line 434: curl: (22) The requested URL returned error: 404
Line 563: curl: (22) The requested URL returned error: 404
but it kept sync-ing, until :
Code:
Fetching projects: 99% (408/412) Fetching project platform/hardware/qcom/keymaster
, and then it stopped downloading, i waited for 1 hour but..
Then i closed the terminal, and shutdown the VitrualPC/PC because i had to..
NOW, i cant sync anything, i have repo, but it says that i need to install it..???
There must be something i can do, im new to linux so.. please help me.
[email protected]:~/android/.repo$ repo --version
repo version v1.12.13
(from https://gerrit.googlesource.com/git-repo)
repo launcher version 1.21
(from /home/igor/bin/repo)
git version 1.7.9.5
Python 2.7.3 (default, Feb 27 2014, 19:58:35)
[GCC 4.6.3]
[email protected]:~/android/.repo$ which repo
/home/igor/bin/repo
[email protected]:~/android/.repo$ cd ../..
[email protected]:~$ repo sync -f
error: command 'sync' requires repo to be installed first.
Use "repo init" to install it here.
[email protected]:~$
Click to expand...
Click to collapse
If Repo Sync Fails due to Fetch Errors
Use This Command ->
Code:
repo sync -f
"-f" Means to (continue sync even if a project fails to sync)
Happy Developing
not working for me as I am trying to do an initial sync from Liquid Smooth Lollipop repo ... without -f flag this error stops me:
error: Cannot fetch android_packages_inputmethods_LatinIME
With the -f flag another error relating to same package stops me a step further LOL:
Fetching projects: 98% (447/456) Fetching project CyanogenMod/android_external_ebtables
Fetching projects: 99% (452/456) fatal: Invalid refspec '+refs/heads/lollipop :refs/remotes/ls/lollipop '
error: Cannot fetch android_packages_inputmethods_LatinIME
warn: --force-broken, continuing to sync
Fetching projects: 100% (456/456), done.
Syncing work tree: 87% (397/456) error: in `sync -j2 -f`: revision lollipop in android_packages_inputmethods_LatinIME not found
Hey I've been trying to download the cyanogenmod source code for about two weeks now.
I've been trying different arguments to repo sync, resyncing multiple times but to no avail.
I've initialized the directory with:
repo init -u git://github.com/CyanogenMod/android.git -b jellybean
and synced with:
repo sync -j 4 -c -f
after hitting 100% I get this:
Fetching projects: 100% (316/316), done.
Traceback (most recent call last):
File "/home/s7hoang/android/system/.repo/repo/main.py", line 506, in <module>
_Main(sys.argv[1:])
File "/home/s7hoang/android/system/.repo/repo/main.py", line 482, in _Main
result = repo._Run(argv) or 0
File "/home/s7hoang/android/system/.repo/repo/main.py", line 161, in _Run
result = cmd.Execute(copts, cargs)
File "/home/s7hoang/android/system/.repo/repo/subcmds/sync.py", line 681, in Execute
project.Sync_LocalHalf(syncbuf)
File "/home/s7hoang/android/system/.repo/repo/project.py", line 1230, in Sync_LocalHalf
lost = self._revlist(not_rev(revid), HEAD)
File "/home/s7hoang/android/system/.repo/repo/project.py", line 2309, in _revlist
return self.work_git.rev_list(*a, **kw)
File "/home/s7hoang/android/system/.repo/repo/project.py", line 2503, in rev_list
p.stderr))
error.GitError: CyanogenMod/android_abi_cpp rev-list ('^eb789ea833d8d800662b67914d9c1785a58c2caa', 'HEAD', '--'): fatal: bad object HEAD
I don't know what it means or what to do about it so I'm looking for help.
My goal is just to experiment with getting clockworkmod onto an unsupported phone.
Thanks in advance.
Hmm.. No real clues here.
Are you using an up to date version of git?
Sent from my AOSPA One m8 using XDA Free mobile app
Tried it again with the latest version of git ( 2.3.5 ) but I'm still getting the same error.
jellybean seams to be a pretty old branch.. Please try again with cm-10.2 branch for the manifest.
Sent from my AOSPA One m8 using XDA Free mobile app
Q&A for [DEV] Docker template for building CyanogenMod
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [DEV] Docker template for building CyanogenMod. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
Docker issues?
I'm running Windows 10 and I've installed Docker on my device. Everything works until I use the "./run.sh" command. It keeps returning:
Code:
invalid value "c:\\Users\\booge_000\\docker-cyanogenmod\\android;C:\\Program Files (x86)\\Git\\home\\cmbuild\\android" for flag -v: \Users\booge_000\docker-cyanogenmod\android;C:\Program Files (x86)\Git\home\cmbuild\android is not an absolute path
See 'c:\Program Files\Boot2Docker for Windows\docker.exe run --help'.
Is there any way I can fix this?
spenceboy98 said:
I'm running Windows 10 and I've installed Docker on my device. Everything works until I use the "./run.sh" command. It keeps returning:
Code:
invalid value "c:\\Users\\booge_000\\docker-cyanogenmod\\android;C:\\Program Files (x86)\\Git\\home\\cmbuild\\android" for flag -v: \Users\booge_000\docker-cyanogenmod\android;C:\Program Files (x86)\Git\home\cmbuild\android is not an absolute path
See 'c:\Program Files\Boot2Docker for Windows\docker.exe run --help'.
Is there any way I can fix this?
Click to expand...
Click to collapse
Hmm, I haven't tried this out with Windows (10 and older). I'm surprised that you can even run run.sh because that is a Unix shell script.
However if this really works then it's probably just a problem of setting the right paths for the shared volumes. I suggest that you remove the two "-v ..." parameters from run.sh and see if that helps.
Most likely I don't think that your problem is specific to my Docker project, it's rather a general issue with Docker on Windows. So you might ask on the Docker forum: https://forums.docker.com/
You can also install Ubuntu 14.04 (e.g. inside a VirtualBox machine) and install it there. This will work for sure!
Now I'm using VirtualBox with Ubuntu 14.04. I'm syncing the source files and now it's giving me:
Code:
Fetching projects: 99% (552/557) fatal: Not a git repository: '/home/cmbuild/android/.repo/projects/system/netd.git'
error: Cannot fetch CyanogenMod/android_system_netd
error: Exited sync due to fetch errors
spenceboy98 said:
Now I'm using VirtualBox with Ubuntu 14.04. I'm syncing the source files and now it's giving me:
Code:
Fetching projects: 99% (552/557) fatal: Not a git repository: '/home/cmbuild/android/.repo/projects/system/netd.git'
error: Cannot fetch CyanogenMod/android_system_netd
error: Exited sync due to fetch errors
Click to expand...
Click to collapse
Delete the netd.git folder and sync again.
michael_ch said:
Delete the netd.git folder and sync again.
Click to expand...
Click to collapse
It keeps recreating the folder and giving me the same error.
spenceboy98 said:
It keeps recreating the folder and giving me the same error.
Click to expand...
Click to collapse
Hmm really can't reproduce. Some things to try:
"repo selfupdate" - make sure that repo is up to date
"repo sync -j 1" - sync with only 1 concurrent connection
"repo sync --force-sync" - overwrite an existing git directory if it needs to point to a different object directory
michael_ch said:
Hmm really can't reproduce. Some things to try:
"repo selfupdate" - make sure that repo is up to date
"repo sync -j 1" - sync with only 1 concurrent connection
"repo sync --force-sync" - overwrite an existing git directory if it needs to point to a different object directory
Click to expand...
Click to collapse
Okay, I've tried that and it gives me the same error. I've tried deleting the netg file while syncing and then it just gives me this:
Code:
Fetching projects: 72% (394/546) Fetching project CyanogenMod/android_system_netd
fatal: Not a git repository: '/home/cmbuild/android/.repo/projects/system/netd.git'
fatal: Not a git repository: '/home/cmbuild/android/.repo/projects/system/netd.git'
error: Cannot fetch CyanogenMod/android_system_netd (GitError: CyanogenMod/android_system_netd pack-refs: fatal: Not a git repository: '/home/cmbuild/android/.repo/projects/system/netd.git'
)
Traceback (most recent call last):
File "/home/cmbuild/android/.repo/repo/main.py", line 513, in <module>
_Main(sys.argv[1:])
File "/home/cmbuild/android/.repo/repo/main.py", line 489, in _Main
result = repo._Run(argv) or 0
File "/home/cmbuild/android/.repo/repo/main.py", line 162, in _Run
result = cmd.Execute(copts, cargs)
File "/home/cmbuild/android/.repo/repo/subcmds/sync.py", line 672, in Execute
fetched = self._Fetch(to_fetch, opt)
File "/home/cmbuild/android/.repo/repo/subcmds/sync.py", line 363, in _Fetch
self._FetchProjectList(**kwargs)
File "/home/cmbuild/android/.repo/repo/subcmds/sync.py", line 254, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File "/home/cmbuild/android/.repo/repo/subcmds/sync.py", line 297, in _FetchHelper
optimized_fetch=opt.optimized_fetch)
File "/home/cmbuild/android/.repo/repo/project.py", line 1181, in Sync_NetworkHalf
no_tags=no_tags)):
File "/home/cmbuild/android/.repo/repo/project.py", line 1960, in _RemoteFetch
self.bare_git.pack_refs('--all', '--prune')
File "/home/cmbuild/android/.repo/repo/project.py", line 2668, in runner
p.stderr))
error.GitError: CyanogenMod/android_system_netd pack-refs: fatal: Not a git repository: '/home/cmbuild/android/.repo/projects/system/netd.git'
I'm going to try to start again from scratch while booting from a disc and see if that makes a difference.
spenceboy98 said:
Okay, I've tried that and it gives me the same error.
Click to expand...
Click to collapse
Hmm, I wonder if one of your local manifest files includes a wrong repository?
What is the output of this:
Code:
grep -ri "netd" .repo/*manifest*
spenceboy98 said:
I'm going to try to start again from scratch while booting from a disc and see if that makes a difference.
Click to expand...
Click to collapse
Ok, let me know! In any case, your problem is clearly not Docker related...
michael_ch said:
Hmm, I wonder if one of your local manifest files includes a wrong repository?
What is the output of this:
Code:
grep -ri "netd" .repo/*manifest*
Ok, let me know! In any case, your problem is clearly not Docker related...
Click to expand...
Click to collapse
I encountered the same error "fatal: Not a git repository: 'xxxxxx/.repo/projects/external/blktrace.git'" and google brought me here.
I tried to delete the blktrace.git, but after I resync it with "repo sync -j1", it created the blktrace.git again and threw the same error out. Then I tried to update the repo, but failed. And the result of "grep -ri "netd" .repo/*manifest*" is like this in the picture.
BobbyCurry said:
I encountered the same error "fatal: Not a git repository: 'xxxxxx/.repo/projects/external/blktrace.git'" and google brought me here.
I tried to delete the blktrace.git, but after I resync it with "repo sync -j1", it created the blktrace.git again and threw the same error out. Then I tried to update the repo, but failed. And the result of "grep -ri "netd" .repo/*manifest*" is like this in the picture.
Click to expand...
Click to collapse
No matter what, it has nothing to do with the Docker image. Besides this, it's really hard for me to help with this because I'm not able to reproduce the issue.
I suggest that you're trying to debug the problem on your own. Run "git fetch" in the corresponding directories and see if that helps, etc.
Good luck!
I need help writting a local manifest so that I can sync the sources below in order to build cm12.1/Blisspop for the T330/GalaxyTab4 8.0 model. I've tried writing one myself which I will attach(Its in .txt form for xda) but i don't know what i did wrong as it syncs nothing and says it failed to fetch the repo's
https://github.com/GalaxyTab4/bliss_device_samsung_milletwifi
https://github.com/GalaxyTab4/bliss_kernel_samsung_millet
https://github.com/GalaxyTab4/bliss_vendor_samsung_millet-common
https://github.com/GalaxyTab4/bliss_device_samsung_millet-common
Error is as follows
" error: Cannot fetch Evasii0n/bliss_device_samsung_milletwifi
error: Cannot fetch Evasii0n/bliss_kernel_samsung_millet
error: Cannot fetch Evasii0n/bliss_vendor_samsung_millet-common
error: Cannot fetch Evasii0n/bliss_device_samsung_millet-common
error: Exited sync due to fetch errors " I get the same error using the GalaxyTab4 instead of my own fork