[Q] Setting up a 4.2.1 Build Environment (Need help) - Barnes & Noble Nook Tablet

Currently,
I'm trying to set up a build environment for JB 4.2.1 (CM10.1)... I've got the repo synced, and everything looks good, however, I'm still unsure how to add the necessary Nook files, this is really my first time attempting any type of development, although i'm fairly familiar with linux.
I've followed the instructions found here (changing the device and vendor) and where I'm stuck at is creating the local_manifest.xml, doesn't matter what i put in, it tells me that the repo's don't exist, or my public keys don't work.
so i guess, to build CM10.1 for the nook tablet, what do i need to put in this manifest file?
Any help would be appretiated, i'm available on google talk as "[email protected]" (text only) if someone is able to walk me through this.

DarkShr0ud said:
Currently,
I'm trying to set up a build environment for JB 4.2.1 (CM10.1)... I've got the repo synced, and everything looks good, however, I'm still unsure how to add the necessary Nook files, this is really my first time attempting any type of development, although i'm fairly familiar with linux.
I've followed the instructions found here (changing the device and vendor) and where I'm stuck at is creating the local_manifest.xml, doesn't matter what i put in, it tells me that the repo's don't exist, or my public keys don't work.
so i guess, to build CM10.1 for the nook tablet, what do i need to put in this manifest file?
Any help would be appretiated, i'm available on google talk as "[email protected]" (text only) if someone is able to walk me through this.
Click to expand...
Click to collapse
I'm having a similar problem with my repo
i get this, whenever i'm attempting to sync with something in my local_manifest.xml file
Code:
[email protected]:~/android/system$ repo sync
Traceback (most recent call last):
File "/home/hinxman/android/system/.repo/repo/main.py", line 408, in <module>
_Main(sys.argv[1:])
File "/home/hinxman/android/system/.repo/repo/main.py", line 388, in _Main
result = repo._Run(argv) or 0
File "/home/hinxman/android/system/.repo/repo/main.py", line 122, in _Run
copts, cargs = cmd.OptionParser.parse_args(argv)
File "/home/hinxman/android/system/.repo/repo/command.py", line 45, in OptionParser
self._Options(self._optparse)
File "/home/hinxman/android/system/.repo/repo/subcmds/sync.py", line 147, in _Options
self.jobs = self.manifest.default.sync_j
File "/home/hinxman/android/system/.repo/repo/manifest_xml.py", line 256, in default
self._Load()
File "/home/hinxman/android/system/.repo/repo/manifest_xml.py", line 302, in _Load
nodes.append(self._ParseManifestXml(local, self.repodir))
File "/home/hinxman/android/system/.repo/repo/manifest_xml.py", line 313, in _ParseManifestXml
root = xml.dom.minidom.parse(path)
File "/usr/lib/python2.7/xml/dom/minidom.py", line 1920, in parse
return expatbuilder.parse(file)
File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 924, in parse
result = builder.parseFile(fp)
File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 207, in parseFile
parser.Parse(buffer, 0)
xml.parsers.expat.ExpatError: mismatched tag: line 13, column 2
[email protected]:~/android/system$

hinxman said:
I'm having a similar problem with my repo
i get this, whenever i'm attempting to sync with something in my local_manifest.xml file
Code:
[email protected]:~/android/system$ repo sync
Traceback (most recent call last):
File "/home/hinxman/android/system/.repo/repo/main.py", line 408, in <module>
_Main(sys.argv[1:])
File "/home/hinxman/android/system/.repo/repo/main.py", line 388, in _Main
result = repo._Run(argv) or 0
File "/home/hinxman/android/system/.repo/repo/main.py", line 122, in _Run
copts, cargs = cmd.OptionParser.parse_args(argv)
File "/home/hinxman/android/system/.repo/repo/command.py", line 45, in OptionParser
self._Options(self._optparse)
File "/home/hinxman/android/system/.repo/repo/subcmds/sync.py", line 147, in _Options
self.jobs = self.manifest.default.sync_j
File "/home/hinxman/android/system/.repo/repo/manifest_xml.py", line 256, in default
self._Load()
File "/home/hinxman/android/system/.repo/repo/manifest_xml.py", line 302, in _Load
nodes.append(self._ParseManifestXml(local, self.repodir))
File "/home/hinxman/android/system/.repo/repo/manifest_xml.py", line 313, in _ParseManifestXml
root = xml.dom.minidom.parse(path)
File "/usr/lib/python2.7/xml/dom/minidom.py", line 1920, in parse
return expatbuilder.parse(file)
File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 924, in parse
result = builder.parseFile(fp)
File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 207, in parseFile
parser.Parse(buffer, 0)
xml.parsers.expat.ExpatError: mismatched tag: line 13, column 2
[email protected]:~/android/system$
Click to expand...
Click to collapse
Forgot to add my SSH-keys to Github... and there was an error in my Local_Manifest file.
Double check the one you used, Kuzma30 updated his today, so if you're using that one, that might fix your problem.

hinxman said:
Forgot to add my SSH-keys to Github... and there was an error in my Local_Manifest file.
Double check the one you used, Kuzma30 updated his today, so if you're using that one, that might fix your problem.
Click to expand...
Click to collapse
Thanks, yeah that did help, i'm able to sync my repo now at least, i'll post back if there are any more problems.

What is the minimum hardware CPU/memory requirements for a workable build environment?

I followed this guide http://wiki.cyanogenmod.org/index.php?title=Build_for_acclaim and I got the error below when I did a 'breakfast acclaim'
Code:
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/bn/acclaim/cm.mk]]: "frameworks/base/build/tablet-dalvik-heap.mk" does not exist. Stop.
Device acclaim not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for acclaim not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/bn/acclaim/cm.mk]]: "frameworks/base/build/tablet-dalvik-heap.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_acclaim'
** Do you have the right repo manifest?
What am I missing?

digixmax said:
I followed this guide http://wiki.cyanogenmod.org/index.php?title=Build_for_acclaim and I got the error below when I did a 'breakfast acclaim'
Code:
...
** Don't have a product spec for: 'cm_acclaim'
** Do you have the right repo manifest?
What am I missing?
Click to expand...
Click to collapse
I found the problem: I didn't have the right local_manifest in the right directory (in .repo instead of .repo/local_manifests as I was led to believe).

Related

Problem when doing repo init

hi devs
im trying to sync some code from github but i keep getting this error and i dont know how to solve it
Code:
[email protected]:~/Transferências/LCICS$ repo init -u git://github.com/IceColdSandwich/android.git -b ics
Traceback (most recent call last):
File "/home/danielgek/Transferências/LCICS/.repo/repo/main.py", line 385, in <module>
_Main(sys.argv[1:])
File "/home/danielgek/Transferências/LCICS/.repo/repo/main.py", line 365, in _Main
result = repo._Run(argv) or 0
File "/home/danielgek/Transferências/LCICS/.repo/repo/main.py", line 137, in _Run
result = cmd.Execute(copts, cargs)
File "/home/danielgek/Transferências/LCICS/.repo/repo/subcmds/init.py", line 290, in Execute
self._SyncManifest(opt)
File "/home/danielgek/Transferências/LCICS/.repo/repo/subcmds/init.py", line 154, in _SyncManifest
if not m.Sync_NetworkHalf(is_new=is_new):
File "/home/danielgek/Transferências/LCICS/.repo/repo/project.py", line 982, in Sync_NetworkHalf
current_branch_only=current_branch_only):
File "/home/danielgek/Transferências/LCICS/.repo/repo/project.py", line 1483, in _RemoteFetch
if GitCommand(self, cmd, bare=True, ssh_proxy=ssh_proxy).Wait() == 0:
File "/home/danielgek/Transferências/LCICS/.repo/repo/git_command.py", line 160, in __init__
_setenv(env, GIT_DIR, gitdir)
File "/home/danielgek/Transferências/LCICS/.repo/repo/git_command.py", line 119, in _setenv
env[name] = value.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 24: ordinal not in range(128)
the problem its with python im on ubuntu 12.04 fresh install
thx

Error when Compiling from source (PA)

First of all I tried everything that could be possible before coming on here asking for help and was hoping someone would know what is wrong.
Anyways I simply resynced the REPO from github like always but when I tried compiling the new version of PA I got this error:
Code:
Downloading prebuilts
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 319k 100 319k 0 0 253k 0 0:00:01 0:00:01 --:--:-- 253k
Archive: ./proprietary/Term.apk
inflating: ./proprietary/lib/armeabi/libjackpal-androidterm4.so
Setting up environment
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/armv7-a/vendorsetup.sh
including device/semc/coconut/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including vendor/pa/vendorsetup.sh
including sdk/bash_completion/adb.bash
Lunching device
build/core/product_config.mk:196: *** _nic.PRODUCTS.[[device/semc/coconut/full_coconut.mk]]: "device/semc/mogami-common/mogami.mk" does not exist. Stop.
Device coconut not found. Attempting to retrieve device repository from CyanogenMod Github (github.c0m/CyanogenMod).
Traceback (most recent call last):
File "build/tools/roomservice.py", line 56, in <module>
result = json.loads(urllib2.urlopen(githubreq).read())
File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.6/urllib2.py", line 397, in open
response = meth(req, response)
File "/usr/lib/python2.6/urllib2.py", line 510, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.6/urllib2.py", line 435, in error
return self._call_chain(*args)
File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 518, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden
build/core/product_config.mk:196: *** _nic.PRODUCTS.[[device/semc/coconut/full_coconut.mk]]: "device/semc/mogami-common/mogami.mk" does not exist. Stop.
** Don't have a product spec for: 'pa_coconut'
** Do you have the right repo manifest?
Starting compilation
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:196: *** _nic.PRODUCTS.[[device/semc/coconut/full_coconut.mk]]: "device/semc/mogami-common/mogami.mk" does not exist. Stop.
Device coconut not found. Attempting to retrieve device repository from CyanogenMod Github (github.c0m/CyanogenMod).
Traceback (most recent call last):
File "build/tools/roomservice.py", line 56, in <module>
result = json.loads(urllib2.urlopen(githubreq).read())
File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.6/urllib2.py", line 397, in open
response = meth(req, response)
File "/usr/lib/python2.6/urllib2.py", line 510, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.6/urllib2.py", line 435, in error
return self._call_chain(*args)
File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 518, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden
build/core/product_config.mk:196: *** _nic.PRODUCTS.[[device/semc/coconut/full_coconut.mk]]: "device/semc/mogami-common/mogami.mk" does not exist. Stop.
** Don't have a product spec for: 'pa_coconut'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
Total time elapsed: 0 minutes (3.466118097 seconds)
Ow by the way I was compiling for wt19i but somehow it searches for an other device (atleast this is what is written when I try to compile it).
If nobody knows why is it doing this then I might just go and ask the support of the official rom on what to do.

Error while downloading CM10.1 source

Hey,
I can't download CM10.1 source due to this stupid error: (I run repo --trace sync -j4 to find it)
Code:
: export GIT_DIR=/home/lozohcum/CM/.repo/projects/vendor/tmobile/providers/ThemeManager.git
: git gc --auto 1>| 2>|
: load refs /home/lozohcum/CM/.repo/repo/.git
: load refs /home/lozohcum/CM/.repo/projects/abi/cpp.git
: git config --file /home/lozohcum/CM/.repo/projects/abi/cpp.git/config --null --list 1>| 2>|
: export GIT_DIR=/home/lozohcum/CM/.repo/projects/abi/cpp.git
: git rev-parse --verify refs/remotes/github/cm-10.1^0 1>| 2>|
: cd /home/lozohcum/CM/abi/cpp
: git read-tree --reset -u -v HEAD
fatal: This operation must be run in a work tree
Traceback (most recent call last):
File "/home/lozohcum/CM/.repo/repo/main.py", line 418, in <module>
_Main(sys.argv[1:])
File "/home/lozohcum/CM/.repo/repo/main.py", line 394, in _Main
result = repo._Run(argv) or 0
File "/home/lozohcum/CM/.repo/repo/main.py", line 142, in _Run
result = cmd.Execute(copts, cargs)
File "/home/lozohcum/CM/.repo/repo/subcmds/sync.py", line 657, in Execute
project.Sync_LocalHalf(syncbuf)
File "/home/lozohcum/CM/.repo/repo/project.py", line 1080, in Sync_LocalHalf
self._InitWorkTree()
File "/home/lozohcum/CM/.repo/repo/project.py", line 2059, in _InitWorkTree
raise GitError("cannot initialize work tree")
error.GitError: cannot initialize work tree
can anyone help me?

[Q] CM repo sync "bad object HEAD "error

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

Cannot build TWRP with the GitHub Recovery-builder

As the title says, I'm trying to make TWRP for an unknown device (Wiko Y60 for anyone interested) but After providing device tree/model I get this on build step :
Run cd work
including vendor/omni/vendorsetup.sh
including sdk/bash_completion/adb.bash
build/make/core/version_defaults.mk:57: warning: Invalid TARGET_PLATFORM_VERSION 'eng', must be one of
build/make/core/version_defaults.mk:58: error: PPR1.
19:09:08 dumpvars failed with: exit status 1
Traceback (most recent call last):
Your device can't be found in device sources..
File "vendor/omni/build/tools/roomservice.py", line 405, in <module>
fetch_device(device)
File "vendor/omni/build/tools/roomservice.py", line 373, in fetch_device
git_data = search_gerrit_for_device(device)
File "vendor/omni/build/tools/roomservice.py", line 81, in search_gerrit_for_device
device_data = check_repo_exists(git_data, device)
File "vendor/omni/build/tools/roomservice.py", line 58, in check_repo_exists
"exiting roomservice".format(device=device))
Exception: W not found,exiting roomservice
build/make/core/product_config.mk:234: error: Can not locate config makefile for product "omni_W".
19:09:10 dumpvars failed with: exit status 1
** Don't have a product spec for: 'omni_W'
** Do you have the right repo manifest?
Error: Process completed with exit code 1.
Can anyone help here ?
Oh and here's the device tree : https://github.com/DarkGaming09/w_k510_recovery_twrp
Same issue, help please
Thank you
Same

Categories

Resources