Greetings:
I joined Fedevel recently and have purchased the course "Learn the Essentials of creating uBoot, Linux and YOCTO for a board". I started the first 2 sessions yesterday.
While I understand that this is not a course about using GitHub, I am finding that it really is impossible to un-entangle building Linux applications, especially using Yocto, and GitHub. I am an "older developer" and I am used to having all of my source code and recipes on my local system, running some "make" utility or project builder and coming back when it's done. I must admit that I am quite confused by what I am seeing during the procedures described in Lesson's 1 and 2.
First, I see that the a repository is accessed before any building begins:
repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b jethro
My understanding of this was that the source code for the Linux distro was being downloaded to my local machine at this point. This made sense until I launched the first "bitbake" session.
bitbake core-image-minimal
Watching this operation, it is clear that still more things are being downloaded and from all kinds of places. If there is an interruption in my internet feed, then it's game over.
So my first questions are:
In lesson 2, things got more confusing:
We synced up with another Git repository (I think), only this time, we seemed to "make it official" with GitHub by making our own repository out of the latest available "Open Rex" repository that was available on GitHub. Have I got this right so far?
We seemed to branch our repository away from the original (OK, makes sense), and then somehow told "bitbake" to use our branch and not the original one. We did this by way of some inexplicable stub of XML code:
cat > .repo/local_manifests/imx6openrex.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote fetch="git://github.com/FEDEVEL" name="fedevel"/>
<project remote="fedevel" revision="jethro" name="meta-openrex" path="sources/meta-openrex">
<copyfile src="openrex-setup.sh" dest="openrex-setup.sh"/>
</project>
</manifest>
EOF
Then we run "bitbake" again and I have more questions about that:
That's all for now.
Thanks for your help.
Mark
I joined Fedevel recently and have purchased the course "Learn the Essentials of creating uBoot, Linux and YOCTO for a board". I started the first 2 sessions yesterday.
While I understand that this is not a course about using GitHub, I am finding that it really is impossible to un-entangle building Linux applications, especially using Yocto, and GitHub. I am an "older developer" and I am used to having all of my source code and recipes on my local system, running some "make" utility or project builder and coming back when it's done. I must admit that I am quite confused by what I am seeing during the procedures described in Lesson's 1 and 2.
First, I see that the a repository is accessed before any building begins:
repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b jethro
My understanding of this was that the source code for the Linux distro was being downloaded to my local machine at this point. This made sense until I launched the first "bitbake" session.
bitbake core-image-minimal
Watching this operation, it is clear that still more things are being downloaded and from all kinds of places. If there is an interruption in my internet feed, then it's game over.
So my first questions are:
- What are we downloading and "syncing" before we run bitbake?
- What is bitbake accessing and downloading during the build operation?
In lesson 2, things got more confusing:
We synced up with another Git repository (I think), only this time, we seemed to "make it official" with GitHub by making our own repository out of the latest available "Open Rex" repository that was available on GitHub. Have I got this right so far?
We seemed to branch our repository away from the original (OK, makes sense), and then somehow told "bitbake" to use our branch and not the original one. We did this by way of some inexplicable stub of XML code:
cat > .repo/local_manifests/imx6openrex.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote fetch="git://github.com/FEDEVEL" name="fedevel"/>
<project remote="fedevel" revision="jethro" name="meta-openrex" path="sources/meta-openrex">
<copyfile src="openrex-setup.sh" dest="openrex-setup.sh"/>
</project>
</manifest>
EOF
Then we run "bitbake" again and I have more questions about that:
- Where is the source code physically located? Is it on our local system or is it getting it from our remote GitHub repository that we created earlier?
- Does this include all of the "C" and "H" source files?
- Are these recipe files (".SH") local or remote?
That's all for now.
Thanks for your help.
Mark
Comment