Build image

Switch to build directory for compilation/building.

cd tisdk_bbb/build/

Export environmental variables which is needed for youcto compilation

export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
export LC_NUMERIC="en_US.UTF-8"
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
ulimit -n 4096

# source env
. conf/setenv
Best Practices:

TODO: Refraze it

If your computer is frequently crashing while running the bitbake command, edit the conf/local.conf file under build directory and set the variables: BB_NUMBER_THREADS and PARALLEL_MAKE to cap the number of threads bitbake can create at a time. By default bitbake tries to automatically figure out and set the maximum values for these variables on your system which may lead to errors.

Compile and generate image

MACHINE=am335x-evm bitbake -k tisdk-thinlinux-image
  • There are option to create diffrent image, following are the options
    • tisdk-default-image
    • tisdk-base-image
    • tisdk-thinlinux-image
    • meta-toolchain-arago-tisdk

Yocto also provide support to compile single recipe

MACHINE=am335x-evm bitbake -k linux

Clean compile

MACHINE=am335x-evm bitbake -k -ccleansstate linux

force re-compile

MACHINE=am335x-evm bitbake -k --force -c compile linux

©2023-2024 rculock.com