This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Hob/Toaster for Arago for AM57XX EVM - where are Yocto scripts?

Can anyone point me in the right direction to get Hob (or Toaster) working in Arago. I've followed the "Setting Up the Build Environment" and done a complete AM57XX build using bitbake, but would like to use Hob (or Toaster) to get a better understanding of all the layers. The Arago distro does not seem to have a bunch of the scripts the Yocto/OE env normally has e.g. oe-init-build-env - the only script I seem to have is oe-layertool-setup.sh. and there appears to be no ./scripts directory in the tree. Did I miss a configuration step?

  • Hello Bill,

    Please see this NOTE: Hob is now deprecated and will no longer be available beginning with the 2.1 release of the Yocto Project. You can use Toaster instead.

    For a Toaster setup, please refer to this page.

    There is a <Processor SDK>/sources/oe-core/scripts directory in oe-core layer which contains some scripts.

    Best regards,
    Kemal

  • Thanks for the information Kermal. I understand that Hob is depreciated but since both it and Toaster depend on the same yocto init scripts I thought it would be easier to get working prior to Toaster but for the following discussion lets just assume I'll be running Toaster.

    >There is a <Processor SDK>/sources/oe-core/scripts directory in oe-core layer which contains some scripts.

    OK - Yes - "oe-init-build-env" is there but (actually in <Processor SDK>/sources/oe-core) but fails if you run it (see below)

    Note: I installed and built the SDK following the "Processor SDK Building the SDK" document which creates the build system using the following:

    $ git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk
    $ cd tisdk
    $ ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-03.00.00.04-config.txt
    $ cd build
    $ . conf/setenv
    $ export PATH=$HOME/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin:$PATH
    $ MACHINE=am57xx-evm bitbake arago-core-tisdk-image

    (many, many hours and 200Gig later....)

    So after running this (and fixing the broken cpuset reference) you end up with a directory structure in which the "tisdk" directory is similar to the "poky" directory in the Yocto docs - except it has no scripts subdirectoy and the only top level script is
    "oe-layertool-setup.sh"

    Now from the Toaster 1.7 manual, after installing the python stuff and setting up the virtual environment, the manual says the following:

    Source your build environment (as you usually do)
    $ source poky/oe-init-build-env

    given the above - it's not where is *should* be and trying to run the version in oe_core fails because it wants everything else to be in oe_core

    (pvenv) derbyw@ubuntu:~/tisdk$ source sources/oe-core/oe-init-build-env
    Error: The bitbake directory (/home/derbyw/tisdk/sources/oe-core/bitbake) does not exist! Please ensure a copy of bitbake exists at this location

    now in our case the "bitbake" directory is actually in /home/derbyw/tisdk/sources - moving the script up there makes it complain about the oe_core/scripts directory - which if moved doesn't help either.

    so obviously there are one or more environment variables missing here, symbolic links or things need to be moved around to work. What isn't obvious is if the script is needed in Arago or not.

    So, in case you were wondering what happens if you just try to run Toaster without the script, you get the following.

    (pvenv) derbyw@ubuntu:~/tisdk/build$ source toaster start
    bash: /home/derbyw/tisdk/sources/bitbake/bin/../../.templateconf: No such file or directory
    /toasterconf.json configuration file not found. Set TOASTER_CONF to specify file or fix .templateconf

    so now we're missing a .templateconf file in tisdk/sources or wherever "oe-init-build-env" apparently would have set it. just touching it doesn't help as it needs to aim at the correct toasterconf.json file.. Googling for "toasterconf.json" yields the following:

    # this is the configuraton file we are using for toaster
    -# note default is assuming yocto. Override this if you are
    -# running in a pure OE environment and use the toasterconf.json
    -# in meta/conf/toasterconf.json
    -# note: for future there are a number of relative path assumptions
    -# in the local layers that currently prevent using an arbitrary
    -# toasterconf.json
    +# we are using the same logic that oe-setup-builddir uses
    +# basesd on TEMPLATECONF and .templateconf to determine
    +# which toasterconf.json to use.
    +# note: There are a number of relative path assumptions
    +# in the local layers that currently make using an arbitrary
    +# toasterconf.json difficult.

    So there is more than one "toasterconf.json" file in the tree and it matters which one, so question 2 and 3 are:

    (2) how should I set this and (3) assuming others are not having trouble running this, what did I do/fail to do that this is not just working out of the box - this all seems crazy hard just to get a tool that anyone new to Yocto/Arago is gonna want to run.