2014-11-21 71 views
0

我遇到的問題是,我試圖從零開始使用bitbake構建一個Angstrom圖像(因爲Angstrom現在是Yocto兼容),但是當我運行時我遇到了一個錯誤bitbake systemd-image構建Angstrom的bitbake問題

Traceback (most recent call last): 
    File "/usr/bin/bitbake", line 234, in <module> 
    ret = main() 
    File "/usr/bin/bitbake", line 197, in main 
    server = ProcessServer(server_channel, event_queue, configuration) 
    File "/usr/lib/pymodules/python2.7/bb/server/process.py", line 78, in __init__ 
    self.cooker = BBCooker(configuration, self.register_idle_function) 
    File "/usr/lib/pymodules/python2.7/bb/cooker.py", line 76, in __init__ 
    self.parseConfigurationFiles(self.configuration.file) 
    File "/usr/lib/pymodules/python2.7/bb/cooker.py", line 510, in parseConfigurationFiles 
    data = _parse(os.path.join("conf", "bitbake.conf"), data) 
TypeError: getVar() takes exactly 3 arguments (2 given) 
ERROR: Error evaluating '${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:build-${BUILD_OS}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}:forcevariable${@bb.utils.contains("TUNE_FEATURES", "thumb", ":thumb", "", d)}${@bb.utils.contains("TUNE_FEATURES", "no-thumb-interwork", ":thumb-interwork", "", d)}' 
Traceback (most recent call last): 
    File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 116, in expandWithRefs 
    s = __expand_var_regexp__.sub(varparse.var_sub, s) 
    File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 60, in var_sub 
    var = self.d.getVar(key, 1) 
    File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 260, in getVar 
    return self.expand(value, var) 
    File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 132, in expand 
    return self.expandWithRefs(s, varname).value 
    File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 117, in expandWithRefs 
    s = __expand_python_regexp__.sub(varparse.python_sub, s) 
TypeError: getVar() takes exactly 3 arguments (2 given) 

ERROR: Error evaluating '${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[0] or 'defaultpkgname'}' 
Traceback (most recent call last): 
    File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 117, in expandWithRefs 
    s = __expand_python_regexp__.sub(varparse.python_sub, s) 
    File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 76, in python_sub 
    value = utils.better_eval(codeobj, DataContext(self.d)) 
    File "/usr/lib/pymodules/python2.7/bb/utils.py", line 387, in better_eval 
    return eval(source, _context, locals) 
    File "PN", line 1, in <module> 
TypeError: getVar() takes exactly 3 arguments (2 given) 

我一直在這一段時間,現在在不同的網站上搜索。最初我嘗試了在Angstrom網站的開發人員部分的指南,但是一旦我收到了一些錯誤(在此之前,我在這裏),我發現Derek Molloy的網站http://derekmolloy.ie/building-angstrom-for-beaglebone-from-source/解決了這些錯誤,並給了更多的細節該過程。

最終我偶然發現了另一個論壇帖子,它描述了我的問題,但不幸的是,答案並不十分清楚(無論如何)http://comments.gmane.org/gmane.linux.distributions.angstrom.devel/7431。我對可能出錯的事情感到不知所措,而且我對Yocto項目非常陌生,所以我不確定是否缺少任何步驟或隱含的內容,因此我非常感謝任何人我在這個正確的方向。作爲備註,我一直認爲它可能與我所使用的環境 - angstrom -...文件有關,因爲我的環境-angstrom-v2013.12和所有其他示例使用以前的版本,我想知道是否有一個新的步驟涉及工作與此。

回答

1

是否有原因使用系統級bitbake而不是與該版本的Angstrom兼容?

+0

基本上我想學習如何使用yocto,更具體BitBake的,從已經安裝項目。我的最終目標是將Linux映像放入定製的嵌入式主板(實際上是一個Variscite VAR-SOM-AM33系統模塊) – jobenas 2014-11-22 02:43:18

+0

對於該版本使用相應的bitbake。 – 2016-02-04 17:13:06

0

不要使用系統範圍的bitbake,因爲bitbake API可以並隨時間發生變化。使用相應的bitbake來釋放埃。

(這是打破因爲你需要bitbake的getVar採取三個參數,但你的埃層只有經過二)