Newbie trying to get started
I've been working with a Gumstix, and have successfully built both the console and GUI version of their distro. So now I have two directories, yocto/poky containing everything that was downloaded, and yocto/build containing the stuff that was built. So far, so good.
Now, I need to do a completely unrelated project, based on an Intel Atom. I've downloaded the BSP (the N2600/N2800/D2550), and the directions told me to unpack it so that it's all contained in yocto/meta-intel. Does this mean that this BSP isn't related to Poky? My yocto/poky directory is full of other meta-blahblah stuff, so I would think that meta-intel would go in there, one level down.
Then, the directions say to edit bblayers.conf, and possibly local.conf. The only place I find these files are in my yocto/build/conf directory, but I would think that doing a build for a different machine would involve setting up a different build directory, e.g., yocto/buildatom. Is that correct? But isn't the build directory set up by running the oe-init-build-env script, which comes afterwards in the instructions?
Also, those instructions imply that I should run that script in the yocto/poky directory, since that's where the script is located, but the meta-intel is "upstairs" from that, which seems odd.
I'm confused by all this, but more to the point, I'm afraid of doing the wrong thing, and clobbering the Gumstix stuff, which took a day and a half to build. I expect the Atom build will also take a long time, but I don't want to have to do it two more times.
Thanks in advance.
Signature · 2 lines
Ciao, Paul D. DeRocco Paul mailto:[email protected]
Quoted 9 lines
-----Original Message-----
From: [email protected] [mailto:yocto- [email protected]] On Behalf Of Paul D. DeRocco
Sent: Thursday, February 28, 2013 3:55 PM
To: [email protected]
Subject: [yocto] Newbie trying to get started
Quoted 8 lines
I've been working with a Gumstix, and have successfully built both the console and GUI version of their distro. So now I have two directories, yocto/poky containing everything that was downloaded, and yocto/build containing the stuff that was built. So far, so good.
Now, I need to do a completely unrelated project, based on an Intel Atom. I've downloaded the BSP (the N2600/N2800/D2550), and the directions told me to unpack it so that it's all contained in yocto/meta-intel. Does this
mean
Quoted 1 line
that this BSP isn't related to Poky? My yocto/poky directory is full of
other
Quoted 1 line
meta-blahblah stuff, so I would think that meta-intel would go in there,
one
Quoted 3 lines
level down.
Then, the directions say to edit bblayers.conf, and possibly local.conf.
The
Quoted 1 line
only place I find these files are in my yocto/build/conf directory, but I
would
Quoted 1 line
think that doing a build for a different machine would involve setting up
a
Quoted 1 line
different build directory, e.g., yocto/buildatom. Is that correct? But
isn't the
Quoted 1 line
build directory set up by running the oe-init-build-env script, which
comes
Quoted 3 lines
afterwards in the instructions?
Also, those instructions imply that I should run that script in the
yocto/poky
Quoted 4 lines
directory, since that's where the script is located, but the meta-intel is "upstairs" from that, which seems odd.
I'm confused by all this, but more to the point, I'm afraid of doing the
wrong
Quoted 1 line
thing, and clobbering the Gumstix stuff, which took a day and a half to
build. I
Quoted 1 line
expect the Atom build will also take a long time, but I don't want to have
to
Quoted 6 lines
do it two more times.
Thanks in advance.
--
Quoted 8 lines
Ciao, Paul D. DeRocco
Paul mailto:[email protected]_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
I have been working with the Intel Atom and Yocto Project -
http://www.annabooks.com/Book_OSSATOM.html
1. Make sure you have first downloaded and extracted Poky. I extract Danny as - Yocto 1.3/poky-danny-8.0
2. Download the BSP separately and unpack the contents to a temp folder. There should be a meta-Intel directory.
3. Copy this meta-Intel folder to the Yocto 1.3/poky-danny-8.0 folder. Go ahead and over write the directory that is there.
Yes, create a new project and build directory. you need to modify the bblayers.conf file to point to the BSP files:
BBFILES ?= ""
BBLAYERS ?= " \
/home/user/Yocto1.3/poky-danny-8.0/meta \
/home/user/Yocto1.3/poky-danny-8.0/meta-yocto \
/home/user/Yocto1.3/poky-danny-8.0/meta-intel \
/home/user/Yocto1.3/poky-danny-8.0/meta-intel/meta-cedartrail \
Regards,
Sean Liming
Owner
Annabooks
Tel: 714-970-7523 / Cell: 858-774-3176
Hi Paul,
It does not matter where you unpack the meta-intel tarball to. All that matters is that you include it in the bblayers.conf file of your build environment.
Yes, you are right that you want to create a new build environment for your new Atom project. Do so with
cd yocto
source poky/oe-init-build-env buildatom
This will create a new build environment for you and change directory to buildatom. Then edit con/bblayers.conf to include the BSP layer. The meta-intel is a container layer that contains multiple BSPs you will have to add the meta-intel as well as the layer for the BSP that you want to use in the BBLAYERS variable e.g.
BBLAYERS ?= " \
<path to yocto>/poky/meta \
<path to yocto>/poky/meta-yocto \
<path to yocto>/meta-intel \
<path to yocto>/meta-intel/meta-<bsp> "
Then you need to set the MACHINE variable in conf/local.conf to a machine defined by the the BSP.
That should do the trick.
And I now see that Sean has beat me to it. Now you have it twice.
Cheers,
Rudi
Quoted 43 lines · Paul D. DeRocco
I've been working with a Gumstix, and have successfully built both the console and GUI version of their distro. So now I have two directories, yocto/poky containing everything that was downloaded, and yocto/build containing the stuff that was built. So far, so good.
Now, I need to do a completely unrelated project, based on an Intel Atom. I've downloaded the BSP (the N2600/N2800/D2550), and the directions told me to unpack it so that it's all contained in yocto/meta-intel. Does this mean that this BSP isn't related to Poky? My yocto/poky directory is full of other meta-blahblah stuff, so I would think that meta-intel would go in there, one level down.
Then, the directions say to edit bblayers.conf, and possibly local.conf. The
only place I find these files are in my yocto/build/conf directory, but I would think that doing a build for a different machine would involve setting
up a different build directory, e.g., yocto/buildatom. Is that correct? But isn't the build directory set up by running the oe-init-build-env script, which comes afterwards in the instructions?Also, those instructions imply that I should run that script in the yocto/poky directory, since that's where the script is located, but the meta-intel is "upstairs" from that, which seems odd.
I'm confused by all this, but more to the point, I'm afraid of doing the wrong thing, and clobbering the Gumstix stuff, which took a day and a half to build. I expect the Atom build will also take a long time, but I don't want to have to do it two more times.
Thanks in advance.
--
Ciao, Paul D. DeRocco
Paul mailto:[email protected]_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Signature · 12 lines
-- *Rudolf J. Streif* Director of Embedded Solutions The Linux Foundation [email protected] Phone: +1.619.631.5383 Skype: rudolfstreif PGP: RSA 2048/2048 D6E7D28B Linux Foundation Events Schedule: events.linuxfoundation.org Linux Foundation Training Schedule: training.linuxfoundation.org
Quoted 11 lines · Paul D. DeRocco
I've been working with a Gumstix, and have successfully built both the console and GUI version of their distro. So now I have two directories, yocto/poky containing everything that was downloaded, and yocto/build containing the stuff that was built. So far, so good.
Now, I need to do a completely unrelated project, based on an Intel Atom. I've downloaded the BSP (the N2600/N2800/D2550), and the directions told me to unpack it so that it's all contained in yocto/meta-intel. Does this mean that this BSP isn't related to Poky? My yocto/poky directory is full of other meta-blahblah stuff, so I would think that meta-intel would go in there, one level down.
Not sure about the Intel BSPs but they may contain just their layer and/or poky + meta-intel. It does not really matter where meta-intel lives on your file system though. It can be referenced directly in your 'conf/bblayers.conf' file in your build folder.
Quoted 6 lines
Then, the directions say to edit bblayers.conf, and possibly local.conf. The only place I find these files are in my yocto/build/conf directory, but I would think that doing a build for a different machine would involve setting up a different build directory, e.g., yocto/buildatom. Is that correct? But isn't the build directory set up by running the oe-init-build-env script, which comes afterwards in the instructions?
Different build folders are not an explicit requirement for different MACHINES (or in some cases unless there are some conflicts that are unknown diferrent distros - don't go out of your way to do this though). In fact if two MACHINES are the same ARCH you can reuse components between and save a lot of build time. That or use sstate-cache between two build folders which won't be quite as fast but almost...
Quoted 3 lines
Also, those instructions imply that I should run that script in the yocto/poky directory, since that's where the script is located, but the meta-intel is "upstairs" from that, which seems odd.
Should not matter, you add meta-intel to 'conf/bblayers/conf' later. Unless this is possibly done for you via script - but I don't think any scripts in poky do this for you. Either way you can checkup on things layer to make sure the require layers are included.
Quoted 4 lines
I'm confused by all this, but more to the point, I'm afraid of doing the wrong thing, and clobbering the Gumstix stuff, which took a day and a half to build. I expect the Atom build will also take a long time, but I don't want to have to do it two more times.
You are mixing gumstix and poky distros in one build folder? That could work as mentioned above, but it might encounter issues. I don't think it's regularly tested though so YMMV. My suggest would be to share the sstate-cache between the two build environments. So if one package has already been built it's reused (and the signatures match - which just means it's deemed compatible between machines)
It's also quite likely you won't save much build time since gumstix and poky will be using different ARCHs and all the recipes will be rebuilt anyways. Again not really that familiar with gumstix so some statements above could be a bit off.
-M
Quoted 52 lines
From: McClintock Matthew-B29882
Not sure about the Intel BSPs but they may contain just their layer and/or poky + meta-intel. It does not really matter where meta-intel lives on your file system though. It can be referenced directly in your '
conf/bblayers.conf' file in your build folder.Quoted 1 line
Then, the directions say to edit bblayers.conf, and
possibly local.conf. The
Quoted 1 line
only place I find these files are in my yocto/build/conf
directory, but I
Quoted 1 line
would think that doing a build for a different machine
would involve setting
Quoted 1 line
up a different build directory, e.g., yocto/buildatom. Is
that correct? But
Quoted 1 line
isn't the build directory set up by running the
oe-init-build-env script,
Quoted 1 line
which comes afterwards in the instructions?
Different build folders are not an explicit requirement for different MACHINES (or in some cases unless there are some conflicts that are unknown diferrent distros - don't go out of your way to do this though). In fact if two MACHINES are the same ARCH you can reuse components between and save a lot of build time. That or use sstate-cache between two build folders which won't be quite as fast but almost...
Quoted 2 lines
Also, those instructions imply that I should run that script in the yocto/poky directory, since that's where the script is
located, but the
Quoted 1 line
meta-intel is "upstairs" from that, which seems odd.
Should not matter, you add meta-intel to 'conf/bblayers/conf' later. Unless this is possibly done for you via script - but I don't think any scripts in poky do this for you. Either way you can checkup on things layer to make sure the require layers are included.
Quoted 1 line
I'm confused by all this, but more to the point, I'm afraid
of doing the
Quoted 1 line
wrong thing, and clobbering the Gumstix stuff, which took a
day and a half
Quoted 1 line
to build. I expect the Atom build will also take a long
time, but I don't
Quoted 1 line
want to have to do it two more times.
You are mixing gumstix and poky distros in one build folder? That could work as mentioned above, but it might encounter issues. I don't think it's regularly tested though so YMMV. My suggest would be to share the sstate-cache between the two build environments. So if one package has already been built it's reused (and the signatures match - which just means it's deemed compatible between machines)
Quoted 4 lines
It's also quite likely you won't save much build time since gumstix and poky will be using different ARCHs and all the recipes will be rebuilt anyways. Again not really that familiar with gumstix so some statements above could be a bit off.
That's what I thought. You can't really share much of anything between a Gumstix and an Atom, so I'm using a separate build tree.
But it's not working. The instructions tell me to set MACHINE to "cedartrail" or "cedartrail-nopvr" in local.conf, so I chose the latter since I'm doing a GUI-less system. And then it tells me to run "bitbake core-image-sato" which seems strange, since "sato" refers to a desktop manager or something graphical. After a lot of DEBUG output, I get the following error message:
ERROR: OE-core's config sanity checker detected a potential
misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:
Please set a valid MACHINE in your local.conf or environment
Also, I notice among the debug output, early on:
DEBUG: CONF file 'conf/machine/cedartrail-nopvr.conf' not found
even though that file exists in poky/meta-intel.
Is the problem that I'm making the wrong image for a GUI-less system? Where are targets like "core-image-sato" defined? I don't see any file of that name, with a .bb or any other extension, other than a prebuilt image.
I get the feeling I'm missing something.
By the way, I'm using the poky tree that was downloaded as a result of my Gumstix build, except for the meta-intel subdirectory. Is that wrong?
Signature · 2 lines
Ciao, Paul D. DeRocco Paul mailto:[email protected]
Quoted 74 lines · Paul D. DeRocco
Quoted 52 lines
From: McClintock Matthew-B29882
Not sure about the Intel BSPs but they may contain just their layer and/or poky + meta-intel. It does not really matter where meta-intel lives on your file system though. It can be referenced directly in your '
conf/bblayers.conf' file in your build folder.Quoted 1 line
Then, the directions say to edit bblayers.conf, and
possibly local.conf. The
Quoted 1 line
only place I find these files are in my yocto/build/conf
directory, but I
Quoted 1 line
would think that doing a build for a different machine
would involve setting
Quoted 1 line
up a different build directory, e.g., yocto/buildatom. Is
that correct? But
Quoted 1 line
isn't the build directory set up by running the
oe-init-build-env script,
Quoted 1 line
which comes afterwards in the instructions?
Different build folders are not an explicit requirement for different MACHINES (or in some cases unless there are some conflicts that are unknown diferrent distros - don't go out of your way to do this though). In fact if two MACHINES are the same ARCH you can reuse components between and save a lot of build time. That or use sstate-cache between two build folders which won't be quite as fast but almost...
Quoted 2 lines
Also, those instructions imply that I should run that script in the yocto/poky directory, since that's where the script is
located, but the
Quoted 1 line
meta-intel is "upstairs" from that, which seems odd.
Should not matter, you add meta-intel to 'conf/bblayers/conf' later. Unless this is possibly done for you via script - but I don't think any scripts in poky do this for you. Either way you can checkup on things layer to make sure the require layers are included.
Quoted 1 line
I'm confused by all this, but more to the point, I'm afraid
of doing the
Quoted 1 line
wrong thing, and clobbering the Gumstix stuff, which took a
day and a half
Quoted 1 line
to build. I expect the Atom build will also take a long
time, but I don't
Quoted 1 line
want to have to do it two more times.
You are mixing gumstix and poky distros in one build folder? That could work as mentioned above, but it might encounter issues. I don't think it's regularly tested though so YMMV. My suggest would be to share the sstate-cache between the two build environments. So if one package has already been built it's reused (and the signatures match - which just means it's deemed compatible between machines)
Quoted 4 lines
It's also quite likely you won't save much build time since gumstix and poky will be using different ARCHs and all the recipes will be rebuilt anyways. Again not really that familiar with gumstix so some statements above could be a bit off.
That's what I thought. You can't really share much of anything between a Gumstix and an Atom, so I'm using a separate build tree.
But it's not working. The instructions tell me to set MACHINE to "cedartrail" or "cedartrail-nopvr" in local.conf, so I chose the latter since I'm doing a GUI-less system. And then it tells me to run "bitbake core-image-sato" which seems strange, since "sato" refers to a desktop manager or something graphical. After a lot of DEBUG output, I get the following error message:
ERROR: OE-core's config sanity checker detected a potential
misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:
Please set a valid MACHINE in your local.conf or environment
Quoted 5 lines
Also, I notice among the debug output, early on:
DEBUG: CONF file '
conf/machine/cedartrail-nopvr.conf' not foundeven though that file exists in poky/meta-intel.
Is the layer that contains this file in conf/bblayers.conf?
Quoted 5 lines
Is the problem that I'm making the wrong image for a GUI-less system? Where are targets like "core-image-sato" defined? I don't see any file of that name, with a .bb or any other extension, other than a prebuilt image.
I get the feeling I'm missing something.
What about just building core-image-minimal (this image has no gui)?
Quoted 2 lines
By the way, I'm using the poky tree that was downloaded as a result of my Gumstix build, except for the meta-intel subdirectory. Is that wrong?
It could be.... you should check the differences between the two trees each one is expecting (e.g. they could be based on different releases)
-M
Well, I'm making progress.
I discovered one mysterious cockpit error: my addition of meta-intel and meta-intel/meta-cedartrail to bblayers.conf had somehow gotten lost. When I added those lines again, the error concerning the invalid MACHINE disappeared. I also found the recipe files for the various images, in meta rather than meta-intel, so now I know that what I really want is something called core-image-base, which is a console-based image that supports all features of the machine except the graphics stuff.
Setting it up this way immediately complained that it couldn't find a file called io32-base.inc, and a search found that this file doesn't exist anywhere in my poky tree, even though Gumstix builds this tree by fetching from the git repos, and I had just done a sync. However, I downloaded the poky-danny-8.0 tarball, and it does include this file. It looks like my hope that I could use the same poky tree that the Gumstix build fetched was a pipe dream. Oh, well...
Anyway, "bitbake core-image-base" at least gets started. We'll see if it makes it all the way through, some time tomorrow.
Thanks for your help.
Signature · 2 lines
Ciao, Paul D. DeRocco Paul mailto:[email protected]
Quoted 52 lines · Paul D. DeRocco
Quoted 52 lines
From: McClintock Matthew-B29882
Not sure about the Intel BSPs but they may contain just their layer and/or poky + meta-intel. It does not really matter where meta-intel lives on your file system though. It can be referenced directly in your '
conf/bblayers.conf' file in your build folder.Quoted 1 line
Then, the directions say to edit bblayers.conf, and
possibly local.conf. The
Quoted 1 line
only place I find these files are in my yocto/build/conf
directory, but I
Quoted 1 line
would think that doing a build for a different machine
would involve setting
Quoted 1 line
up a different build directory, e.g., yocto/buildatom. Is
that correct? But
Quoted 1 line
isn't the build directory set up by running the
oe-init-build-env script,
Quoted 1 line
which comes afterwards in the instructions?
Different build folders are not an explicit requirement for different MACHINES (or in some cases unless there are some conflicts that are unknown diferrent distros - don't go out of your way to do this though). In fact if two MACHINES are the same ARCH you can reuse components between and save a lot of build time. That or use sstate-cache between two build folders which won't be quite as fast but almost...
Quoted 2 lines
Also, those instructions imply that I should run that script in the yocto/poky directory, since that's where the script is
located, but the
Quoted 1 line
meta-intel is "upstairs" from that, which seems odd.
Should not matter, you add meta-intel to 'conf/bblayers/conf' later. Unless this is possibly done for you via script - but I don't think any scripts in poky do this for you. Either way you can checkup on things layer to make sure the require layers are included.
Quoted 1 line
I'm confused by all this, but more to the point, I'm afraid
of doing the
Quoted 1 line
wrong thing, and clobbering the Gumstix stuff, which took a
day and a half
Quoted 1 line
to build. I expect the Atom build will also take a long
time, but I don't
Quoted 1 line
want to have to do it two more times.
You are mixing gumstix and poky distros in one build folder? That could work as mentioned above, but it might encounter issues. I don't think it's regularly tested though so YMMV. My suggest would be to share the sstate-cache between the two build environments. So if one package has already been built it's reused (and the signatures match - which just means it's deemed compatible between machines)
Quoted 7 lines
Quoted 4 lines
It's also quite likely you won't save much build time since gumstix and poky will be using different ARCHs and all the recipes will be rebuilt anyways. Again not really that familiar with gumstix so some statements above could be a bit off.
That's what I thought. You can't really share much of anything between a Gumstix and an Atom, so I'm using a separate build tree.
well whole native recipes will be shared that a lot of build time saved
Quoted 8 lines
But it's not working. The instructions tell me to set MACHINE to "cedartrail" or "cedartrail-nopvr" in local.conf, so I chose the latter since I'm doing a GUI-less system. And then it tells me to run "bitbake core-image-sato" which seems strange, since "sato" refers to a desktop manager or something graphical. After a lot of DEBUG output, I get the following error message:
Quoted 7 lines
ERROR: OE-core's config sanity checker detected a potential
misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:
Please set a valid MACHINE in your local.conf or environment
you simply add the right layer to conf/bblayers.conf
BBLAYERS = "....
${TOPDIR}/sources/meta-intel/meta-cedartrail
...
"
and then
MACHINE=cedartrail-nopvr bitbake core-image-minimal e.g. will build minimal image
Quoted 24 lines
Also, I notice among the debug output, early on:
DEBUG: CONF file '
conf/machine/cedartrail-nopvr.conf' not foundeven though that file exists in poky/meta-intel.
Is the problem that I'm making the wrong image for a GUI-less system? Where are targets like "core-image-sato" defined? I don't see any file of that name, with a .bb or any other extension, other than a prebuilt image.
I get the feeling I'm missing something.
By the way, I'm using the poky tree that was downloaded as a result of my Gumstix build, except for the meta-intel subdirectory. Is that wrong?
Signature · 7 lines
Ciao, Paul D. DeRocco Paul mailto:[email protected] _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
Signature · 1 line
-Khem
Hi Paul,
I saw your email on the gumstix list but forgot to "star" it, and therefore didn't get back to it as I would have liked, sorry about that.
I too play around with a gumstix from time to time, as well as other boards. In my (still learning) opinion, the gumstix stable build is based on really old stuff (i.e. from last... September? October?) So in my case I tend to have two completely separate "yocto" areas: one for gumstix, and another for everything else, and I don't mix anything between the two except the download location. For example, the gumstix build is sort of based on Danny, but not really, if you check, the repositories are checked out at random points in time (detached HEAD state) instead of actually using or tracking Danny.
Working with a gumstix is sort of like having to work with a vendor
branch: for best results you have to use their stuff, but their stuff isn't really upstream or tracking upstream very closely. So it's best not to confuse the "real" Yocto, for gumstix's Yocto-based build. For example their instructions have you use the "repo" utility (instead of just using git) and start your project with:
$ TEMPLATECONF=meta-gumstix/conf source ./poky/oe-init-build-env
instead of the "regular" template file and a regular git checkout of the yocto project.
For best results I would recommend that you be sure to use a separate, new terminal when you start your Intel work. That way various environment variables (PATH, etc) don't interfere with each other.
As I mentioned above, you might get some savings if you open the conf/local.conf of both projects and point the DL_DIR variable to the same directory. But how much savings you'll get from that isn't obvious (you might not get any).
Best regards,
Trevor
Quoted 6 lines · Trevor Woerner
Working with a gumstix is sort of like having to work with a vendor
branch: for best results you have to use their stuff, but their stuff isn't really upstream or tracking upstream very closely. So it's best not to confuse the "real" Yocto, for gumstix's Yocto-based build. For example their instructions have you use the "repo" utility (instead of just using git) and start your project with:
https://github.com/adam-lee/Gumstix-YoctoProject-Repo/blob/danny/default.xml
shows that its using danny branch. The detached head is an artifact of repo it does not mean its using a random revision. You should start a topic branch with repo and the detached head state should disappear.