problem about repo init in my linux - General Questions and Answers

hi to everyone i was looking for help.. bcoz im not a git pro nor linux pro.. i just want to studying about it and compile my own rom from source.. and i already did it.. but my problem comes when i rm all git files to start new repo init i made this thing because i am from unfinished repo sync.. and my problem now is everytime i doing repo init the error comes out..
Code:
[email protected]:~/qrd# repo init -u git://codeaurora.org/quic/qrd-android/platform/manifest.git -b refs/tags/R8625QSOSKQLYA3070 -m CAF/R8625QSOSKQLYA3070.xml
Traceback (most recent call last):
File "/root/.repo/repo/main.py", line 31, in <module>
from git_config import init_ssh, close_ssh
ImportError: No module named git_config
any help will so much appreciated..

Related

build errors on XDANDROID eclair

I'm getting a build error with the latest repo sync of XDANDROID as follows:
# make
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.1-update1
TARGET_PRODUCT=xdandroid_msm_us
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ECLAIR
============================================
No private recovery resources for TARGET_DEVICE msm
Install: out/host/linux-x86/bin/vm-tests
Install: out/target/product/msm/system/app/Mms.apk
target thumb C: libbluetoothd <= external/bluetooth/bluez/src/plugin.c
external/bluetooth/bluez/src/plugin.c:109:21: error: builtin.h: No such file or directory
external/bluetooth/bluez/src/plugin.c: In function 'plugin_init':
external/bluetooth/bluez/src/plugin.c:135: error: '__bluetooth_builtin' undeclared (first use in this function)
external/bluetooth/bluez/src/plugin.c:135: error: (Each undeclared identifier is reported only once
external/bluetooth/bluez/src/plugin.c:135: error: for each function it appears in.)
make: *** [out/target/product/msm/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/plugin.o] Error 1
I checked the external/bluetooth/bluez/src/plugin.c:109
Definitely shows an include of builtin.h here, but I can't seem to find it in the source.
# find . -name builtin.h
#
I checked the vendor/xdandroid/msm/BoardConfig.mk file and verified that BOARD_HAVE_BLUETOOTH is set.
I'm not sure where to go at this point. Any advice is appreciated.
mrqu1cky said:
I'm getting a build error with the latest repo sync of XDANDROID as follows:
external/bluetooth/bluez/src/plugin.c:109:21: error: builtin.h: No such file or directory
Click to expand...
Click to collapse
Have you been mucking around in the source for that package? It's definitely in the repository that we pull from: http://android.git.kernel.org/?p=platform/external/bluetooth/bluez.git;a=tree;f=plugins;h=3628b0da9cda67649bc957f7b9c832326371915e;hb=HEAD.
Anyway, you can restore the file (and anything else that somehow got changed) by:
Code:
(from your AOSP source root)
$ cd external/bluetooth/bluez
$ git reset --hard HEAD
If the file still isn't there at that point, do...
Code:
$ git pull korg master
SOLVED
I'm not sure why repo sync didn't pull the file, but it is resolved. Thank you very much
hi, im try to compile xdandroid from xandroid wiki...
as kernel.org is down i cant use the repo curl android.git.kernel.org/repo >~/bin/repo and i tried with other.
the problem is when i want unzip the files from 'signed-dream_devphone_userdebug-ota-14721.zip' i dont find device/xdandroid/msm directory to run this script, why?
maybe because may be because I'm using a different repository: 'repo init -u git://codeaurora.org/platform/manifest.git -b froyo'
if i use this repo: 'repo init -u git://gitorious.org/xdandroid/manifest.git -b froyo' i have problems like 'unable to connect to kernel.org bla bla bla....' and dont download anything...
what can i do?
which repo can i use?
where is device/xdandroid/msm directory?
Thanks for all, regards....
euki said:
hi, im try to compile xdandroid from xandroid wiki...
as kernel.org is down i cant use the repo curl android.git.kernel.org/repo >~/bin/repo and i tried with other.
the problem is when i want unzip the files from 'signed-dream_devphone_userdebug-ota-14721.zip' i dont find device/xdandroid/msm directory to run this script, why?
maybe because may be because I'm using a different repository: 'repo init -u git://codeaurora.org/platform/manifest.git -b froyo'
if i use this repo: 'repo init -u git://gitorious.org/xdandroid/manifest.git -b froyo' i have problems like 'unable to connect to kernel.org bla bla bla....' and dont download anything...
what can i do?
which repo can i use?
where is device/xdandroid/msm directory?
Thanks for all, regards....
Click to expand...
Click to collapse
If kernel.org is down, you won't be able to sync the repo correctly.
Stine is looking at moving to bitbucket. Dunno when it'll actually happen, or if it will.
arrrghhh said:
If kernel.org is down, you won't be able to sync the repo correctly.
Stine is looking at moving to bitbucket. Dunno when it'll actually happen, or if it will.
Click to expand...
Click to collapse
I edited default.xml file from .repo/manifiest directory and changed a couple lines. Now i can sync xdandroid repo but i have a doubt when i have to create a product and a board directory as say in xdandroid wiki. These directories (board and product) are in ~/xdandroid/build/target/ do i have to create these directories into ~/xdandroid/device/xdandroid/msm/ directory? Or i can edit mk files to inherit them from ~/xdandroid/build/target/
Thanks, regards.

Cm7 development repo infuse4g no product

Hi,
Can't post this in the development thread (not enough posts) but it looks like the build process is currently borked on the github repo. Command run are:
Code:
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
repo sync -j16
vendor/cyanogen/get-rommanager
repo sync
. build/envsetup.sh && brunch infuse4g
error is:
build/core/product_config.mk:203: *** No matches for product "cyanogen_infuse4g"
I'm probably being dumb...
Yes I am dumb - init should be:
init -u git://github.com/TeamRefuse/android.git -b gingerbread
R
I'm having an issue too...now when I try to sync repo it says permission denied...help please!
sent from my infuse on MIUI 1.4ghz KI3
If in doubt just start again - delete the repo and resync (you might need to get rid of ~/.repoconfig but see if it works without doing that first.

[Q] error Downloading AOSP

I was downloading the AOSP following the steps mentioned in the page
source.android.com/source/downloading
and I kept geting the same error when i was initializing the Repo client:
[email protected]:/home/andres# repo init -u android.googlesource.com/platform/manifest
Traceback (most recent call last):
File "/root/bin/repo", line 91, in <module>
import readline
ImportError: No module named readline
I tried doing loading the python tools using:
apt-get install python-setuptools
and then the: easy_install pyreadline
Later I got the same error, did someone solve this problem???

[Q] Galaxy tab 2.7.0 (p3100) building CM11. First time user question.

Hello,
I am trying to build CM11 for my p3100 from source for first time.
I am following http://wiki.cyanogenmod.org/w/Build_for_p3100. But I guess it is bit old.
I setup a virtualbox with ubuntu 13.10 64 bit server edition and created the folders as in the instructions.
Then I created another folder cm11 (mkdir -p ~/cm11) and I cd to cm11.
Now here is the confusion, should I be doing repo init as below,
Code:
repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0
or
Code:
repo init -u git://github.com/CyanogenMod/android_device_samsung_p3100.git -b cm-11.0
Note: This question came to me after initiated the repo with android.git and its downloaded some GBs of data already.
Thanks,
Simon Mandy

Guide To Build Sultanxda CM13

since i'm a flashaholic and a great fan of sultan's cm13, i'm trying my hands on android rom development and i thought the first step would be to learn how to compile a rom from source and the best choice was cm13 by sultan.
i'm using google's cloud platform for vm instance and using ubuntu 14.04.
i've used @akhilnarang script (link to his github:github.com/akhilnarang/scripts ) to setup the build environment and followed these commands to build the rom.
Code:
~$ repo init -u git://github.com/CyanogenMod/android.git -b stable/cm-13.0-ZNH2K
~$ mkdir .repo/local_manifests
~$ curl https://raw.githubusercontent.com/sultanxda/android/master/bacon/cm-13.0-stable/local_manifest.xml > .repo/local_manifests/local_manifest.xml
~$ repo sync -c -j10
~$ ./patcher/patcher.sh
~$ make clobber
~$ . build/envsetup.sh
~$ lunch cm_bacon-user
~$ time mka bacon -j8
but after 1h or so the compiler spilled these errors
Code:
Package OTA: /home/arjunmanoj1995/out/target/product/bacon/cm_bacon-ota-f59d4b6456.zip
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 1782, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 1674, in main
], extra_option_handler=option_handler)
File "/home/arjunmanoj1995/build/tools/releasetools/common.py", line 826, in ParseOptions
if extra_option_handler is None or not extra_option_handler(o, a):
File "./build/tools/releasetools/ota_from_target_files", line 1644, in option_handler
from backports import lzma
ImportError: No module named backports
make: *** [/home/arjunmanoj1995/out/target/product/bacon/cm_bacon-ota-f59d4b6456.zip] Error 1
make: Leaving directory `/home/arjunmanoj1995'
#### make failed to build some targets (01:07:57 (hh:mm:ss)) ####
can someone plz help me resolve this error.
baconxda said:
since i'm a flashaholic and a great fan of sultan's cm13, i'm trying my hands on android rom development and i thought the first step would be to learn how to compile a rom from source and the best choice was cm13 by sultan.
i'm using google's cloud platform for vm instance and using ubuntu 14.04.
i've used @akhilnarang script (link to his github:github.com/akhilnarang/scripts ) to setup the build environment and followed these commands to build the rom.
Code:
~$ repo init -u git://github.com/CyanogenMod/android.git -b stable/cm-13.0-ZNH2K
~$ mkdir .repo/local_manifests
~$ curl https://raw.githubusercontent.com/sultanxda/android/master/bacon/cm-13.0-stable/local_manifest.xml > .repo/local_manifests/local_manifest.xml
~$ repo sync -c -j10
~$ ./patcher/patcher.sh
~$ make clobber
~$ . build/envsetup.sh
~$ lunch cm_bacon-user
~$ time mka bacon -j8
but after 1h or so the compiler spilled these errors
Code:
Package OTA: /home/arjunmanoj1995/out/target/product/bacon/cm_bacon-ota-f59d4b6456.zip
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 1782, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 1674, in main
], extra_option_handler=option_handler)
File "/home/arjunmanoj1995/build/tools/releasetools/common.py", line 826, in ParseOptions
if extra_option_handler is None or not extra_option_handler(o, a):
File "./build/tools/releasetools/ota_from_target_files", line 1644, in option_handler
from backports import lzma
ImportError: No module named backports
make: *** [/home/arjunmanoj1995/out/target/product/bacon/cm_bacon-ota-f59d4b6456.zip] Error 1
make: Leaving directory `/home/arjunmanoj1995'
#### make failed to build some targets (01:07:57 (hh:mm:ss)) ####
can someone plz help me resolve this error.
Click to expand...
Click to collapse
It seems like your missing the backports module to build certain parts of the rom. As i looked at the prepare script you used I noticed an commented piece of code in there refering exectly to your error regarding lzma backports:
Code:
#echo Cloning LZMA repo
#git clone https://github.com/peterjc/backports.lzma /tmp/backports.lzma
#cd /tmp/backports.lzma
#sudo python2 setup.py install
#python2 test/test_lzma.py
#rm -rf /tmp/backports.lzma
#echo LZMA compression for ROMs enabled
#echo "WITH_LZMA_OTA=true" >> ~/.bashrc
Running this, or running the prepare script again with this uncommented might acctualy fix your import problem
gs-crash-24-7 said:
It seems like your missing the backports module to build certain parts of the rom. As i looked at the prepare script you used I noticed an commented piece of code in there refering exectly to your error regarding lzma backports:
Code:
#echo Cloning LZMA repo
#git clone https://github.com/peterjc/backports.lzma /tmp/backports.lzma
#cd /tmp/backports.lzma
#sudo python2 setup.py install
#python2 test/test_lzma.py
#rm -rf /tmp/backports.lzma
#echo LZMA compression for ROMs enabled
#echo "WITH_LZMA_OTA=true" >> ~/.bashrc
Running this, or running the prepare script again with this uncommented might acctualy fix your import problem
Click to expand...
Click to collapse
thanks mate, i'll give this a try and report back
edit: thanks .... it worked...:good:
I can't install the backports thing... I can't use the script to setup the build environment. How did you do it @baconxda? I uncommented those lines and it says that it doesn't have the lzma.h thing.
gs-crash-24-7 said:
It seems like your missing the backports module to build certain parts of the rom. As i looked at the prepare script you used I noticed an commented piece of code in there refering exectly to your error regarding lzma backports:
Code:
#echo Cloning LZMA repo
#git clone https://github.com/peterjc/backports.lzma /tmp/backports.lzma
#cd /tmp/backports.lzma
#sudo python2 setup.py install
#python2 test/test_lzma.py
#rm -rf /tmp/backports.lzma
#echo LZMA compression for ROMs enabled
#echo "WITH_LZMA_OTA=true" >> ~/.bashrc
Running this, or running the prepare script again with this uncommented might acctualy fix your import problem
Click to expand...
Click to collapse
Cesaragus said:
I can't install the backports thing... I can't use the script to setup the build environment. How did you do it @baconxda? I uncommented those lines and it says that it doesn't have the lzma.h thing.
Click to expand...
Click to collapse
just run the script then run those commands quoted above, thats it.
@baconxda Any idea if this ROM could be built for any other device?
Has.007 said:
@baconxda Any idea if this ROM could be built for any other device?
Click to expand...
Click to collapse
only for devices supported by @Sultanxda.

Categories

Resources