[yocto] Is there a good "getting started" tutorial?

Grant Edwards grant.b.edwards at gmail.com
Fri Jan 11 09:32:52 PST 2019


I'm new to Yocto and looking for a good "getting started"
tutorial. I've tried

https://www.yoctoproject.org/docs/2.6/brief-yoctoprojectqs/brief-yoctoprojectqs.html

and immediately ran into mistakes on the very first step:

    Use Git to Clone Poky¶
    Once you complete the setup instructions for your machine, you need to get a copy of the Poky repository on your build host. Use the following commands to clone the Poky repository and then checkout the yocto-2.6 release:
    
         $ git clone git://git.yoctoproject.org/poky
         Cloning into 'poky'...
         remote: Counting objects: 361782, done.
         remote: Compressing objects: 100% (87100/87100), done.
         remote: Total 361782 (delta 268619), reused 361439 (delta 268277)
         Receiving objects: 100% (361782/361782), 131.94 MiB | 6.88 MiB/s, done.
         Resolving deltas: 100% (268619/268619), done.
         Checking connectivity... done.
         $ git checkout tags/yocto-2.5 -b my-yocto-2.5
                
    The previous Git checkout command creates a local branch named
    my-yocto-2.6. [...]

It does? The 'git clone' command seems to be OK, but the second command fails:

    $ git clone git://git.yoctoproject.org/poky
    Cloning into 'poky'...
    remote: Counting objects: 428632, done.
    remote: Compressing objects: 100% (101203/101203), done.
    remote: Total 428632 (delta 320463), reused 428532 (delta 320363)
    Receiving objects: 100% (428632/428632), 153.01 MiB | 1.33 MiB/s, done.
    Resolving deltas: 100% (320463/320463), done.
    $ git checkout tags/yocto-2.5 -b my-yocto-2.5
    fatal: not a git repository (or any parent up to mount point /)
    Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

I re-tried the second command, changing the version from 2.5 to 2.6,
and that didn't work either:

    $ git checkout tags/yocto-2.6 -b my-yocto-2.6
    fatal: not a git repository (or any parent up to mount point /)
    Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

It looks like there's a missing 'cd poky' command that needs to be
inserted before the 'git checkout', and the checkout command needs to
be changed from 2.5 to 2.6.

Has anybody tried this tutorial recently to see if it actually works?

Is there a better getting started doc?

--
Grant


More information about the yocto mailing list