Home/Support/Support Forum/CC6sbc bitbake error
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

CC6sbc bitbake error

0 votes
Hi,

I am trying to build a graphical image for a connectcore 6. I followed the guide steps and when I do "sudo bitbake dey-image-graphical" I have the error :
"sudo: bitbake: commande not found".

I looked up on internet but I didn't find anything.
Can somebody help me please?
Thanks
asked Jun 2, 2015 in Linux by digiConnectcore6 New to the Community (2 points)

Please log in or register to answer this question.

2 Answers

0 votes
something went wrong on a previous step I assume:
mkdir -p $HOME/workspace/ccimx6sbc
cd $HOME/workspace/ccimx6sbc
source /usr/local/dey-1.6/mkproject.sh -p ccimx6sbc

Did this execute without error?
answered Jun 3, 2015 by LeonidM Veteran of the Digi Community (3,171 points)
I manage to launch bitbake but I got this error message :
ERROR: Error parsing configuration files
Traceback (most recent call last):
  File "/usr/local/dey-1.6/sources/poky/bitbake/lib/bb/cookerdata.py", line 228, in CookerDataBuilder.parseBaseConfiguration():
             try:
    >            self.parseConfigurationFiles(self.prefiles, self.postfiles)
             except SyntaxError:
  File "/usr/local/dey-1.6/sources/poky/bitbake/lib/bb/cookerdata.py", line 290, in CookerDataBuilder.parseConfigurationFiles(prefiles=[], postfiles=[]):
             if data.getVar("BB_WORKERCONTEXT", False) is None:
    >            bb.fetch.fetcher_init(data)
             bb.codeparser.parser_cache_init(data)
  File "/usr/local/dey-1.6/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 484, in fetcher_init(d=<bb.data_smart.DataSmart object at 0x7f365519ed50>):
                 pass
    >        revs.clear()
         else:
  File "/usr/local/dey-1.6/sources/poky/bitbake/lib/bb/persist_data.py", line 147, in SQLTable.clear():
         def clear(self):
    >        self._execute("DELETE FROM %s;" % self.table)
     
  File "/usr/local/dey-1.6/sources/poky/bitbake/lib/bb/persist_data.py", line 66, in SQLTable._execute(*query=('DELETE FROM BB_URI_HEADREVS;',)):
                 try:
    >                return self.cursor.execute(*query)
                 except sqlite3.OperationalError as exc:
OperationalError: attempt to write a readonly database

What should I do? :(
>OperationalError: attempt to write a readonly database
This is a permission problem. Maybe you are installing as root , running as regular user? I suggest installing everything as regular user.
https://stackoverflow.com/questions/17641993/operationalerror-attempt-to-write-a-readonly-database-in-ubuntu-server
I fixed that problem and now I have this error :
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
ERROR: Worker process (3654) exited unexpectedly (-9), shutting down...
Warning, worker left partial message: <event>ccopy_reg
_reconstructor
p1
(clogging
LogRecord
p2
c__builtin__
object
p3
NtRp4
(dp5
S'taskpid'
p6
I0
sS'threadName'
p7
S'MainThread'
p8
sS'name'
p9
S'BitBake.Parsing'
p10
sS'thread'
p11
I140015686321984
sS'created'
p12
F1433751177.806149
sS'process'
p13
I3654
sS'processName'
p14
S'MainProcess'
p15
sS'args'
p16
(S'/usr/local/dey-1.6/sources/poky/meta/conf/machine/include/arm/feature-arm-thumb.inc'
p17
tp18
sS'module'
p19
S'__init__'
p20
sS'filename'
p21
S'__init__.py'
p22
sS'levelno'
p23
I9
sS'exc_text'
p24
NsS'pathname'
p25
S'/usr/local/dey-1.6/sources/poky/bitbake/lib/bb/__init__.py'
p26
sS'lineno'
p27
I58
sS'msg'
p28
S'BB %s: handle(data, i
NOTE: Tasks Summary: Attempted 51 tasks of which 51 didn't need to be rerun and all succeeded.

Summary: There was 1 ERROR message shown, returning a non-zero exit code.


Is it normal to have so many problem with bitbake?
What OS are you using?

I would also check that you do not have another bitbake installed in the system. Please run “which bitbake” and even “sudo apt-get remove bitbake”.

That should leave just the DEY bitbake installed.

Also, you could try to run the “source /usr/local/dey-1.6/mkproject.sh -p ccimx6sbc” from a clean environment,

env –i
source /usr/local/dey-1.6/mkproject.sh -p ccimx6sbc
I am using a vm with ubuntu. Apparently bitbake is in the folder "/usr/local/dey-1.6/sources/poky/bitbake/bin/bitbake"
I tried to remove bitbake but I had this message "E: Unable to locate package bitbake". I don't understand why.

Even when I clean the environment, it still doesn't work. I have the same error :(
0 votes
I sloved the problem myself.
answered Jun 3, 2015 by digiConnectcore6 New to the Community (2 points)
it would help if you also specify the reason for the problem and how you solved it.
There was something wrong with the sourcing. I erase the folder and did it again and it worked. You have to source the files before running bitbake or it won't work.
...