raspberry layer
Hi,
I am maintaining a small project based on yocto and would like to check to what extent I can port it to Raspberry. It seems there's an ongoing rapsberry layer but I couldn't find which is the right URL to point to in order to get started.
Can someone tell me ?
Regards
Jay
Quoted 6 lines · JC
Hi,
I am maintaining a small project based on yocto and would like to check to what extent I can port it to Raspberry. It seems there's an ongoing rapsberry layer but I couldn't find which is the right URL to point to in order to get started.
Can someone tell me ?
git://git.yoctoproject.org/meta-raspberrypi
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 10 lines · Gary Thomas
Quoted 6 lines · JC
Hi,
I am maintaining a small project based on yocto and would like to check to what extent I can port it to Raspberry. It seems there's an ongoing rapsberry layer but I couldn't find which is the right URL to point to in order to get started.
Can someone tell me ?
git://git.yoctoproject.org/meta-raspberrypi
Thanks. I checked out everything (including a "fresh" poky) and I get this error:
ERROR: Error executing a python function in <code>:# | ETA: 00:00:57
ExpansionError: Failure expanding variable MAJ_VER, expression was ${@oe.utils.trim_version("2.28.2", 2)} which triggered exception AttributeError: 'module' object has no attribute 'trim_version'
my local.conf changes: just added raspberrypi machine bblayers.conf:
added
/media/yocto/yocto/openembedded-core/meta \
/media/yocto/yocto/meta-raspberrypi \
(i had to add meta otherwise it complained it didn't have the mesa recipe)
Any idea? Do you need the complete failure log or is this something known ?
Jay
Quoted 10 lines · JC
Quoted 3 lines · Gary Thomas
git://git.yoctoproject.org/meta-raspberrypiThanks. I checked out everything (including a "fresh" poky) and I get this error:
ERROR: Error executing a python function in <code>:# | ETA: 00:00:57
ExpansionError: Failure expanding variableMAJ_VER, expression was ${@oe.utils.trim_version("2.28.2", 2)} which triggered exception
AttributeError: 'module' object has no attribute 'trim_version'
That looks like a parse error so the full log shouldn't be very long as that point, may be helpful to post it.
Quoted 7 lines
my local.conf changes: just added raspberrypi machine bblayers.conf:
added
/media/yocto/yocto/openembedded-core/meta \
/media/yocto/yocto/meta-raspberrypi \
The README in meta-raspberrypi states that you need meta-openembedded as well (specifically, the meta-oe layer). I'm not sure that this is the cause of your error though.
What branches of the different layers are you using? I just want to make sure they're all the same. Also, what version or branch of bitbake are you using?
Signature · 4 lines
Paul Barker Email: [email protected] http://www.paulbarker.me.uk
Hi,
Quoted 1 line · Paul Barker
That looks like a parse error so the full log shouldn't be very long as that point, may be helpful to post it.
I attached rpibuild.log to this email
Quoted 9 lines
Quoted 6 lines
my local.conf changes: just added raspberrypi machine bblayers.conf:
added/media/yocto/yocto/openembedded-core/meta \ /media/yocto/yocto/meta-raspberrypi \The README in meta-raspberrypi states that you need meta-openembedded as well (specifically, the meta-oe layer). I'm not sure that this is the cause of your error though.
Sorry, it is indeed added (otherwise it complains about mesa, anyway)
Quoted 4 lines
What branches of the different layers are you using? I just want to make sure they're all the same. Also, what version or branch of bitbake are you using?
As a reference, following this link http://www.pimpmypi.com/blog/blogPost.php?blogPostID=7 I got successful (well the image is not yet finished but I hadn't that specific parsing error)
I followed the exact README steps in a fresh directory for the checkout, so I am on the trunk for poky & meta-raspberrypi...
Jay
ERROR: Error executing a python function in <code>:# | ETA: 00:00:57
ExpansionError: Failure expanding variable MAJ_VER, expression was ${@oe.utils.trim_version("2.28.2", 2)} which triggered exception AttributeError: 'module' object has no attribute 'trim_version'
ERROR: The stack trace of python calls that resulted in this exception/failure was:
ERROR: File "<code>", line 1, in <module>
ERROR:
ERROR: File "__anon_637__media_yocto_yocto_poky_meta_classes_base_bbclass", line 169, in __anon_637__media_yocto_yocto_poky_meta_classes_base_bbclass
ERROR:
ERROR: File "/media/yocto/yocto/poky/bitbake/lib/bb/data_smart.py", line 503, in getVar
ERROR: return self.expand(value, var)
ERROR:
ERROR: File "/media/yocto/yocto/poky/bitbake/lib/bb/data_smart.py", line 336, in expand
ERROR: return self.expandWithRefs(s, varname).value
ERROR:
ERROR: File "/media/yocto/yocto/poky/bitbake/lib/bb/data_smart.py", line 317, in expandWithRefs
ERROR: s = __expand_var_regexp__.sub(varparse.var_sub, s)
ERROR:
ERROR: File "/media/yocto/yocto/poky/bitbake/lib/bb/data_smart.py", line 97, in var_sub
ERROR: var = self.d.getVar(key, True)
ERROR:
ERROR: File "/media/yocto/yocto/poky/bitbake/lib/bb/data_smart.py", line 503, in getVar
ERROR: return self.expand(value, var)
ERROR:
ERROR: File "/media/yocto/yocto/poky/bitbake/lib/bb/data_smart.py", line 336, in expand
ERROR: return self.expandWithRefs(s, varname).value
ERROR:
ERROR: File "/media/yocto/yocto/poky/bitbake/lib/bb/data_smart.py", line 326, in expandWithRefs
ERROR: raise ExpansionError(varname, s, exc)
ERROR:
ERROR: The code that was being executed was:
ERROR: *** 0001:__anon_637__media_yocto_yocto_poky_meta_classes_base_bbclass(d)
ERROR: 0002:__anon_227__media_yocto_yocto_poky_meta_classes_package_bbclass(d)
ERROR: 0003:__anon_1137__media_yocto_yocto_poky_meta_classes_package_rpm_bbclass(d)
ERROR: 0004:__anon_914__media_yocto_yocto_poky_meta_classes_insane_bbclass(d)
ERROR: 0005:__anon_20__media_yocto_yocto_poky_meta_classes_debian_bbclass(d)
ERROR: [From file: '<code>', lineno: 1, function: <module>]
ERROR: 0165: elif all_skipped or incompatible_license(d, bad_licenses):
ERROR: 0166: bb.debug(1, "SKIPPING recipe %s because it's %s" % (pn, recipe_license))
ERROR: 0167: raise bb.parse.SkipPackage("incompatible with license %s" % recipe_license)
ERROR: 0168:
ERROR: *** 0169: srcuri = d.getVar('SRC_URI', True)
ERROR: 0170: # Svn packages should DEPEND on subversion-native
ERROR: 0171: if "svn://" in srcuri:
ERROR: 0172: d.appendVarFlag('do_fetch', 'depends', ' subversion-native:do_populate_sysroot')
ERROR: 0173:
ERROR: [From file: '__anon_637__media_yocto_yocto_poky_meta_classes_base_bbclass', lineno: 169, function: __anon_637__media_yocto_yocto_poky_meta_classes_base_bbclass]
ERROR: Failed to parse recipe: /media/yocto/yocto/openembedded-core/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.28.2.bb
ERROR: Command execution failed: Exited with 1Quoted 9 lines · JC
As a reference, following this link
http://www.pimpmypi.com/blog/blogPost.php?blogPostID=7 I got successful (well the image is not yet finished but I hadn't that specific parsing error)I followed the exact README steps in a fresh directory for the checkout, so I am on the trunk for poky & meta-raspberrypi...
The log you've attached shows paths for poky as well as openembedded-core. Poky is basically a combination of openembedded-core, meta-yocto and bitbake so you don't want to add openembedded-core again. Could you post your full bblayers.conf?
Signature · 4 lines
Paul Barker Email: [email protected] http://www.paulbarker.me.uk
Quoted 6 lines · Paul Barker
Quoted 5 lines · JC
As a reference, following this link
http://www.pimpmypi.com/blog/blogPost.php?blogPostID=7 I got successful (well the image is not yet finished but I hadn't that specific parsing error)
Quoted 8 lines
Quoted 3 lines
I followed the exact README steps in a fresh directory for the checkout, so I am on the trunk for poky & meta-raspberrypi...
The log you've attached shows paths for poky as well as openembedded-core. Poky is basically a combination of openembedded-core, meta-yocto and bitbake so you don't want to add openembedded-core again. Could you post your full bblayers.conf?
Yes that's strange. Do you think it could be an issue with trunk ?
Here's my bblayers:
# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly LCONF_VERSION = "6"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
BBLAYERS ?= " \
/media/yocto/yocto/poky/meta \
/media/yocto/yocto/poky/meta-yocto \
/media/yocto/yocto/poky/meta-yocto-bsp \
/media/yocto/yocto/meta-openembedded/meta-oe \
/media/yocto/yocto/meta-raspberrypi \
"
BBLAYERS_NON_REMOVABLE ?= " \
/media/yocto/yocto/poky/meta \
/media/yocto/yocto/poky/meta-yocto \
"
Quoted 13 lines · JC
Quoted 5 lines · Paul Barker
The log you've attached shows paths for poky as well as openembedded-core. Poky is basically a combination of openembedded-core, meta-yocto and bitbake so you don't want to add openembedded-core again. Could you post your full bblayers.conf?
Yes that's strange. Do you think it could be an issue with trunk ?
Here's my bblayers:
Quoted 8 lines
BBLAYERS ?= " \
/media/yocto/yocto/poky/meta \
/media/yocto/yocto/poky/meta-yocto \
/media/yocto/yocto/poky/meta-yocto-bsp \
/media/yocto/yocto/meta-openembedded/meta-oe \
/media/yocto/yocto/meta-raspberrypi \
"
In the log you posted is the line:
Quoted 1 line
ERROR: Failed to parse recipe: /media/yocto/yocto/openembedded-core/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.28.2.bb
So something was adding the path /media/yocto/yocto/openembedded-core/meta to BBLAYERS. If you've just removed that, give it another try.
Signature · 4 lines
Paul Barker Email: [email protected] http://www.paulbarker.me.uk
In the log you posted is the line:
Quoted 5 lines
Quoted 1 line
ERROR: Failed to parse recipe: /media/yocto/yocto/openembedded-core/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.28.2.bb
So something was adding the path /media/yocto/yocto/openembedded-core/meta to BBLAYERS. If you've just removed that, give it another try.
I did remove that and gave another try *before* sending the mail :) so some cache were present. In order to make sure everything with fine I sourced oe-init-build-env to a new directory
As a reminder here's how my stuff is installed:
from a directory /media/yocto/yocto I performed a git clone of poky, meta-raspberrypi and meta-openembedded so I now have :
$ ls meta-openembedded meta-raspberrypi poky rpi
(rpi is the name of the directory I oe-init'd)
Here are the steps:
1. local.conf is unmodified, except for MACHINE set to raspberrypi
2. bblayers.conf is:LCONF_VERSION = "6"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
BBLAYERS ?= " \
/media/yocto/yocto/poky/meta \
/media/yocto/yocto/poky/meta-yocto \
/media/yocto/yocto/poky/meta-yocto-bsp \
/media/yocto/yocto/meta-openembedded/meta-oe \
/media/yocto/yocto/meta-raspberrypi \
"BBLAYERS_NON_REMOVABLE ?= " \
/media/yocto/yocto/poky/meta \
/media/yocto/yocto/poky/meta-yocto \
"
3. bitbake rpi-image-basic
Pseudo is not present but is required, building this first before the main build
Loading cache: 100% |##########################################################################################################| ETA: 00:00:00 Loaded 202 entries from dependency cache.
ERROR: ParseError at /media/yocto/yocto/meta-openembedded/meta-oe/recipes-devtools/libgee/libgee.inc:12: Could not inherit file classes/vala.bbclass
ERROR: Command execution failed: Exited with 1
If this is not something you get with a head checkout of poky, meta-raspberrypi and meta-openembedded, I can retry a new fresh git clone to test again...
Jay
Hi Jay,
Quoted 9 lines · On Thursday 05 September 2013 10:20:41 JC wrote:
ERROR: ParseError at /media/yocto/yocto/meta-openembedded/meta-oe/recipes-devtools/libgee/libgee. inc:12: Could not inherit file classes/vala.bbclass
ERROR: Command execution failed: Exited with 1If this is not something you get with a head checkout of poky, meta-raspberrypi and meta-openembedded, I can retry a new fresh git clone to test again...
This looks to me like the branch you have checked out of meta-oe does not match up with the branch of poky. If you are using the "dylan" branch of poky you need to be using the "dylan" branch of meta-oe and meta-raspberrypi.
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Hi Paul
Quoted 9 lines · Paul Eggleton
Hi Jay,
Quoted 6 lines · On Thursday 05 September 2013 10:20:41 JC wrote:
ERROR: ParseError at /media/yocto/yocto/meta-openembedded/meta-oe/recipes-devtools/libgee/libgee. inc:12: Could not inherit file classes/vala.bbclass
ERROR: Command execution failed: Exited with 1
Quoted 7 lines
Quoted 3 lines
If this is not something you get with a head checkout of poky, meta-raspberrypi and meta-openembedded, I can retry a new fresh git clone to test again...
This looks to me like the branch you have checked out of meta-oe does not match up with the branch of poky. If you are using the "dylan" branch of poky you need to be using the "dylan" branch of meta-oe and meta-raspberrypi.
I re-checked out all of the gits with -b dylan, now the bitbake goes further.. Let's see where/if it fails :)
Thanks !!!
Jay