Yocto Build Release TI: Difference between revisions
From Variscite Wiki
No edit summary |
No edit summary |
||
Line 38: | Line 38: | ||
$ git clone {{#var:OE_LAYERSETUP_GIT}} tisdk | $ git clone {{#var:OE_LAYERSETUP_GIT}} tisdk | ||
$ cd tisdk | $ cd tisdk | ||
$ ./oe-layertool-setup.sh -f {{# | $ ./oe-layertool-setup.sh -f {{#var:OE_LAYERSETUP_MANIFEST_PATH}} | ||
Next, setup the environment. The above commands are only required for the very first build setup: whenever restarting a newer build session (from a different terminal or in a different time), you can skip the full setup and just run: | Next, setup the environment. The above commands are only required for the very first build setup: whenever restarting a newer build session (from a different terminal or in a different time), you can skip the full setup and just run: |
Revision as of 19:16, 8 February 2023
Warning: This page is designed to be used with a 'release' URL parameter.
This page is using the default release am62-yocto-dunfell-5.10.140_08.05.00.21-v1.0.
To view this page for a specific Variscite SoM and software release, please follow these steps:
- Visit variwiki.com
- Select your SoM
- Select the software release
Installing required packages
Please make sure your host PC is running Ubuntu 18.04/20.04/22.04 64-bit and is up to date:
$ sudo apt-get update && sudo apt-get dist-upgrade
Then, install the following packages:
$ sudo dpkg --add-architecture i386 $ sudo apt update && sudo apt install build-essential autoconf \ automake bison \ flex libssl-dev bc u-boot-tools \ python diffstat \ texinfo gawk chrpath dos2unix \ wget unzip socat doxygen libc6:i386 \ libncurses5:i386 libstdc++6:i386 \ libz1:i386 g++-multilib \ git python3-distutils python3-apt $ sudo dpkg-reconfigure dash
Install Toolchains to home directory
$ cd ~ $ wget && \ tar -Jxvf -C $HOME && \ wget && \ tar -Jxvf -C $HOME
Download Yocto and setup environment
Download the source code:
$ mkdir ~/var-ti-yocto && cd ~/var-ti-yocto $ git clone tisdk $ cd tisdk $ ./oe-layertool-setup.sh -f
Next, setup the environment. The above commands are only required for the very first build setup: whenever restarting a newer build session (from a different terminal or in a different time), you can skip the full setup and just run:
$ cd build $ . conf/setenv $ export TOOLCHAIN_PATH_ARMV7=$HOME/ && \ export TOOLCHAIN_PATH_ARMV8=$HOME/
Build GUI demo image
$ MACHINE=am62x-var-som bitbake tisdk-default-image
Program SD Card
$ xzcat arago-tmp-external-arm-glibc/deploy/images/am62x-var-som/tisdk-default-image-am62x-var-som.wic.xz | sudo dd of=/dev/sdX bs=1M && sync