error in compiling yocto Ubuntu 12.04

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

error in compiling yocto Ubuntu 12.04

1,577 Views
longzhao
Contributor II

Dear ;

i am sorry to truble you,I am a newbie,when i compilering  a core image :  $bitbake fsl-image-machine-test

ubuntu:12.04

the version:3.14.28-1.0

here is my Installation documentation:

A)

  1.

  $ mkdir ~/bin (this step may not be needed if the bin folder already exists)

  $ git clone https://gerrit-google.tuna.tsinghua.edu.cn/git-repo

  $ cp git-repo/repo ~/bin/repo

  $ chmod a+x ~/bin/repo

  2. export PATH=~/bin:$PATH

B)

$ git config --global user.name "zhaolong"

$ git config --global user.email "home_zhaolong@outlook.com"

$ git config --list

$ mkdir fsl-release-bsp

$ cd fsl-release-bsp

$ repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.14.52-1.1.0_ga --repo-url=https://gerrit-google.tuna.tsinghua.edu.cn/git-repo

$ repo sync

C)

MACHINE=imx6qsabresd source fsl-setup-release.sh -b imx6qsabresd-fb -e fb

bitbake fsl-image-machine-test

there is the following error while running ;

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'

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)

Thanks;

zhaolong;

Labels (1)
Tags (1)
0 Kudos
Reply
2 Replies

929 Views
Pavel
NXP Employee
NXP Employee

We usually use the following command sequence for SDK installing under Ubuntu 14.04 or 12.04:

  1. 1. sudo apt-get install ubuntu-minimal ubuntu-standard patch vim-common sed wget subversion git-core coreutils libbonobo2-common unzip texi2html texinfo libsdl1.2-dev docbook-utils gawk python-pysqlite2 diffstat make gcc build-essential xz-utils g++ desktop-file-utils chrpath libgl1-mesa-dev libglu1-mesa-dev autoconf automake groff libtool xterm libncurses5-dev cvs tofrodos

  1. 2.  a) command: ls -l /bin/sh

                Message:  /bin/sh -> dash

    b) command: sudo dpkg-reconfigure dash

                Answer after password – No

                Message:

                Removing 'diversion of /bin/sh to /bin/sh.distrib by dash'

                Adding 'diversion of /bin/sh to /bin/sh.distrib by bash'

                Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash'

                Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash'

    c) command for checking: ls -l /bin/sh

                Message: /bin/sh -> bash

  1. 3. install SDK for your core
  2. 4. install SDK source
  3. 5. cd <sdk-install-dir>.
  4. 6. ./sources/meta-freescale/scripts/host-prepare.sh

Usually Linux recommends also run the following command: sudo usr/sbin/visudo


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

929 Views
longzhao
Contributor II

thanks 

0 Kudos
Reply