* raspberry layer @ 2013-09-04 16:40 JC 2013-09-04 16:46 ` Gary Thomas 0 siblings, 1 reply; 11+ messages in thread From: JC @ 2013-09-04 16:40 UTC (permalink / raw) To: yocto 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: raspberry layer 2013-09-04 16:40 raspberry layer JC @ 2013-09-04 16:46 ` Gary Thomas 2013-09-05 7:21 ` JC 0 siblings, 1 reply; 11+ messages in thread From: Gary Thomas @ 2013-09-04 16:46 UTC (permalink / raw) To: yocto On 2013-09-04 10:40, JC wrote: > 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 -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: raspberry layer 2013-09-04 16:46 ` Gary Thomas @ 2013-09-05 7:21 ` JC 2013-09-05 7:31 ` Paul Barker 0 siblings, 1 reply; 11+ messages in thread From: JC @ 2013-09-05 7:21 UTC (permalink / raw) To: yocto On 04/09/2013 18:46, Gary Thomas wrote: > On 2013-09-04 10:40, JC wrote: >> 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: raspberry layer 2013-09-05 7:21 ` JC @ 2013-09-05 7:31 ` Paul Barker 2013-09-05 7:55 ` JC 0 siblings, 1 reply; 11+ messages in thread From: Paul Barker @ 2013-09-05 7:31 UTC (permalink / raw) To: JC; +Cc: Yocto discussion list On 5 September 2013 08:21, JC <jc@vtkloud.com> wrote: > On 04/09/2013 18:46, Gary Thomas wrote: >> >> 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' That looks like a parse error so the full log shouldn't be very long as that point, may be helpful to post it. > > 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? -- Paul Barker Email: paul@paulbarker.me.uk http://www.paulbarker.me.uk ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: raspberry layer 2013-09-05 7:31 ` Paul Barker @ 2013-09-05 7:55 ` JC 2013-09-05 8:04 ` Paul Barker 0 siblings, 1 reply; 11+ messages in thread From: JC @ 2013-09-05 7:55 UTC (permalink / raw) To: Paul Barker; +Cc: Yocto discussion list [-- Attachment #1.1: Type: text/plain, Size: 1159 bytes --] Hi, On 05/09/2013 09:31, Paul Barker wrote: > 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 >> 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) > 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 [-- Attachment #1.2: Type: text/html, Size: 2209 bytes --] [-- Attachment #2: rpibuild.log --] [-- Type: text/x-log, Size: 3226 bytes --] 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 1 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: raspberry layer 2013-09-05 7:55 ` JC @ 2013-09-05 8:04 ` Paul Barker 2013-09-05 8:08 ` JC 0 siblings, 1 reply; 11+ messages in thread From: Paul Barker @ 2013-09-05 8:04 UTC (permalink / raw) To: JC; +Cc: Yocto discussion list On 5 September 2013 08:55, JC <jc@vtkloud.com> wrote: > > 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? -- Paul Barker Email: paul@paulbarker.me.uk http://www.paulbarker.me.uk ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: raspberry layer 2013-09-05 8:04 ` Paul Barker @ 2013-09-05 8:08 ` JC 2013-09-05 8:12 ` Paul Barker 0 siblings, 1 reply; 11+ messages in thread From: JC @ 2013-09-05 8:08 UTC (permalink / raw) To: Paul Barker; +Cc: Yocto discussion list On 05/09/2013 10:04, Paul Barker wrote: > On 5 September 2013 08:55, JC <jc@vtkloud.com> wrote: >> 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? > 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 \ " ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: raspberry layer 2013-09-05 8:08 ` JC @ 2013-09-05 8:12 ` Paul Barker 2013-09-05 8:20 ` JC 0 siblings, 1 reply; 11+ messages in thread From: Paul Barker @ 2013-09-05 8:12 UTC (permalink / raw) To: JC; +Cc: Yocto discussion list On 5 September 2013 09:08, JC <jc@vtkloud.com> wrote: > On 05/09/2013 10:04, Paul Barker wrote: >> 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: > > > 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: > 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. -- Paul Barker Email: paul@paulbarker.me.uk http://www.paulbarker.me.uk ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: raspberry layer 2013-09-05 8:12 ` Paul Barker @ 2013-09-05 8:20 ` JC 2013-09-05 8:28 ` Paul Eggleton 0 siblings, 1 reply; 11+ messages in thread From: JC @ 2013-09-05 8:20 UTC (permalink / raw) To: Paul Barker; +Cc: Yocto discussion list In the log you posted is the 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: raspberry layer 2013-09-05 8:20 ` JC @ 2013-09-05 8:28 ` Paul Eggleton 2013-09-05 9:07 ` JC 0 siblings, 1 reply; 11+ messages in thread From: Paul Eggleton @ 2013-09-05 8:28 UTC (permalink / raw) To: JC; +Cc: yocto Hi Jay, 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 > > > 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. Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: raspberry layer 2013-09-05 8:28 ` Paul Eggleton @ 2013-09-05 9:07 ` JC 0 siblings, 0 replies; 11+ messages in thread From: JC @ 2013-09-05 9:07 UTC (permalink / raw) To: Paul Eggleton; +Cc: yocto Hi Paul On 05/09/2013 10:28, Paul Eggleton wrote: > Hi Jay, > > 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 >> >> >> 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2013-09-05 9:07 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-09-04 16:40 raspberry layer JC 2013-09-04 16:46 ` Gary Thomas 2013-09-05 7:21 ` JC 2013-09-05 7:31 ` Paul Barker 2013-09-05 7:55 ` JC 2013-09-05 8:04 ` Paul Barker 2013-09-05 8:08 ` JC 2013-09-05 8:12 ` Paul Barker 2013-09-05 8:20 ` JC 2013-09-05 8:28 ` Paul Eggleton 2013-09-05 9:07 ` JC
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.