Yocto build instructions out of date with respect to github

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

wpd
Posts: 4
Joined: Mon Sep 07, 2015 1:41 am

Yocto build instructions out of date with respect to github

Wed Sep 09, 2015 8:48 pm

The Yocto build instructions listed at linux4sam/bin/view/Linux4SAM/Sama5d3XplainedMainPage say to check out the dizzy branch for building Linux4SAM, but the meta-qt layer requires a patch in order to build when doing this. (See http://lists.openembedded.org/pipermail ... 00389.html.)

The build instructions on github say to build from master.

Is it possible to learn how the images on the Linux4SAM pages were generated, since the documentation given there doesn't work and doesn't match github.

Thank you.

--wpd
redknight106
Posts: 12
Joined: Sun Aug 09, 2015 6:10 pm

Re: Yocto build instructions out of date with respect to git

Thu Sep 10, 2015 8:39 am

They are so out of date, which has been causing me issues when trying to bitbake atmel-qt5-demo-image.

With that said I'm still getting problems even when I have the following branch setup:

Meta-atmel : "dizzy:71ab54fda0ce05f46d89575f458f9135f37f2c16"
Meta-qt5 : "master:3f5430de74199ec592206adc5ac628b3febc95fe"
Meta-yocto-bsp : "dizzy:ab4cc02bf87c1b78933c221a29f187d05427ed08"
Meta-ruby : "dizzy:5b6f39ce325d490fc382d5d59c5b8b9d5fa38b38"
BunnyHug
Posts: 9
Joined: Thu Sep 10, 2015 12:20 pm

Re: Yocto build instructions out of date with respect to git

Thu Sep 10, 2015 12:44 pm

Note: in the original tutorial, IMHO, there is an inattention, they say

Code: Select all

git checkout dizzy -b my_branch
but instead I guess it should be:

Code: Select all

git checkout origin/dizzy -b my_branch
I can build successfully using the latest branch called fido
So, clone the yocto/poky git repository with branch = fido:

Code: Select all

git clone git://git.yoctoproject.org/poky
cd poky
git checkout origin/fido -b my_branch
Do the same with the other repositories, in other words replace "dizzy" with "fido" :wink:
redknight106
Posts: 12
Joined: Sun Aug 09, 2015 6:10 pm

Re: Yocto build instructions out of date with respect to git

Thu Sep 10, 2015 1:18 pm

I'll ask the stupid question but does changing the branch from dizzy to fido apply to the meta-qt5 which was 'master'.
BunnyHug
Posts: 9
Joined: Thu Sep 10, 2015 12:20 pm

Re: Yocto build instructions out of date with respect to git

Thu Sep 10, 2015 3:24 pm

the meta-qt5 layer is the only one to be left to "master" but for the other repos just replace dizzy with fido

Then continue following the Atmel tutorial, to avoid a weird error I had to edit my conf/bblayers.conf file like this:

Code: Select all

# LAYER_CONF_VERSION is increased each time *build/conf/bblayers.conf*
# changes incompatibly
LCONF_VERSION = "6" 

BBPATH = "${TOPDIR}" 
BBFILES ?= "" 

BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}" 

BBLAYERS ?= " \
  ${BSPDIR}/meta-atmel \
  ${BSPDIR}/meta-qt5 \
  ${BSPDIR}/meta \
  ${BSPDIR}/meta-yocto \
  ${BSPDIR}/meta-yocto-bsp \
  ${BSPDIR}/meta-openembedded/meta-oe \
  ${BSPDIR}/meta-openembedded/meta-networking \
  ${BSPDIR}/meta-openembedded/meta-python \
  ${BSPDIR}/meta-openembedded/meta-ruby \
  " 

I found an interesting website where u can find the entire procedure:
http://www.mikrocontroller-software.de/ ... ild_system

Have a look to the bashsetup.sh script :wink:
nferre
Site Admin
Posts: 166
Joined: Wed Feb 14, 2007 11:17 am

Re: Yocto build instructions out of date with respect to git

Fri Sep 11, 2015 3:53 pm

Hi,

indeed, the README file in meta-atmel repository is usually more up-to-date:

https://github.com/linux4sam/meta-atmel ... ido/README

Bye,
redknight106
Posts: 12
Joined: Sun Aug 09, 2015 6:10 pm

Re: Yocto build instructions out of date with respect to git

Sat Sep 12, 2015 6:39 pm

Thank you for the Info both 'bunnyhug' and 'nferre' but both these methods have both failed to build :(.

With that said I have created a new posted to hopefully answer this problem for other users.

discussions/viewtopic.php/f,12/t,25000.html

Thank you
micro1
Posts: 38
Joined: Sun Jun 08, 2014 11:55 am

Re: Yocto build instructions out of date with respect to git

Sun Sep 13, 2015 7:15 pm

Hello,


I have created the bashscript.sh from the Homepage http://www.mikrocontroller-software.de .

2 weeks ago it was possible to Build Dizzy. But i das you have unfinished jobs. This Problem i Hand when i used parallel Build.
Do not Use parallel build. Mybee this will help
redknight106
Posts: 12
Joined: Sun Aug 09, 2015 6:10 pm

Re: Yocto build instructions out of date with respect to git

Mon Sep 14, 2015 1:33 pm

Thank you for the comment 'micro1' but how did I know i'm working with a parallel build.
BunnyHug
Posts: 9
Joined: Thu Sep 10, 2015 12:20 pm

Re: Yocto build instructions out of date with respect to git

Mon Sep 14, 2015 4:58 pm

redknight106 wrote:Thank you for the comment 'micro1' but how did I know i'm working with a parallel build.
Usually the build tool detects automatically the number of cores and adjust automatically the compilation. I am running Xubuntu 14.04 and I have the cpu monitor with which I can see what the cores are doing. During a parallel build I can easily see all the cores running almost at 100%.

I am not an expert of bitbake but I am sure U can pass an option to set the jobs number = 1 (like make -j 1)
redknight106
Posts: 12
Joined: Sun Aug 09, 2015 6:10 pm

Re: Yocto build instructions out of date with respect to git

Mon Sep 14, 2015 5:55 pm

My system is using 3 cores at 100%, I could change it to use 1 core but it will take forever to bitbake.

But if that is what you ran, I'll give it a go :)
nferre
Site Admin
Posts: 166
Joined: Wed Feb 14, 2007 11:17 am

Re: Yocto build instructions out of date with respect to git

Tue Sep 15, 2015 4:30 pm

Hi,

FYI, I've updated both the README file that is in the meta-atmel layer repository and the instructions in Linux4SAM.org website.

I hope that it would help. Bye.

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 1 guest