You can either clone with Git or download the tarball.
git://git.yoctoproject.org/meta-intel -b 10.1-thud-2.6.1
Purley Refresh Platform is supported by Intel Common Core BSP.
Building Common Core BSP layer for Purley Refresh Platform:
========================================================
Please download the Poky build system to your development machine.
Option 2: Download Poky build tarball from http://downloads.yoctoproject.org/releases/yocto/yocto-2.6.1/poky-thud-20.0.1.tar.bz2
Note: Ignore this step if there is already a folder with the same name.
$ mv poky-thud-20.0.1 poky
Get the BSP layer either by cloning with Git or downloading the BSP tarball.
Option 2: Download the corresponding BSP tarball from this ‘Board Support Package (BSP) Downloads’ page of the Yocto Project website.
Rename the folder of the extracted BSP tarball to meta-intel.
Note: Ignore this step if there is already a folder with the same name.
$ mv meta-intel-10.1-thud 2.6.1 meta-intel
Create a build folder at the same level of “poky” directory.
$ mkdir yocto_build
$ cd yocto_build
Assuming that you have downloaded the BSP tarball and extracted the content at top level of your development build tree, you need to prepare the build environment using “source” command.
$ source ../poky/oe-init-build-env .
Build an image for Purley Refresh Platform by adding the location of meta-intel layer to conf/bblayers.conf, e.g.:
BBLAYERS ?= ” \
/path/poky/meta \
/path/poky/meta-poky \
/path/poky/meta-yocto-bsp \
/path/meta-intel \
/path/meta-intel-sgx \
/path/meta-openembedded/meta-oe \
”
To build 64-bit image, add “intel-corei7-64” MACHINE to yocto_build/conf/local.conf:
MACHINE = “intel-corei7-64”
To build image with specified kernel version of linux-intel (Eg. linux-intel 4.14), add these parameters to local.conf:
PREFERRED_PROVIDER_virtual/kernel = “linux-intel”
PREFERRED_VERSION_linux-intel = “4.19%”
For those who required to execute a 32-bit standalone application on Yocto Project, the multilib environment need to be turned on in local.conf as the configuration below:
require conf/multilib.conf
DEFAULTTUNE = “corei7-64”
MULTILIBS = “multilib:lib32”
DEFAULTTUNE_virtclass-multilib-lib32 = “corei7-32″
To enable Systemd init system, add below configuration to local.conf:
DISTRO_FEATURES_append = ” systemd”
VIRTUAL-RUNTIME_init_manager = “systemd”
DISTRO_FEATURES_BACKFILL_CONSIDERED_append = “sysvinit”
To enable Intel(R) SGX technology on Yocto Project, add these parameters to local.conf:
IMAGE_INSTALL_append = ” sgx”
IMAGE_INSTALL_append = ” sgx-dev”
Once the configurations are added, kick start the image building process by using bitbake command.
To build an image with sato graphical interface:
$ bitbake core-image-sato
For building an image with the development tools, type the following command:
$ bitbake core-image-sato-sdk
A bootable image will be generated in yocto_build/tmp/deploy/images/intel-corei7-64/ once the compilation successful.
File name that will be generated:
core-image-sato-intel-corei7-64.hddimg
OR
core-image-sato-sdk-intel-corei7-64.hddimg
Booting Image:
===============
At the end of a successful build, you should have a live image that can be used to directly boot image off of a USB flash drive.
Under Linux host machine, insert a USB flash drive. Assuming the USB flash drive takes device /dev/sdf, use dd to copy the live image to it. For
example:
# dd if=core-image-sato-intel-corei7-64.hddimg of=/dev/sdf bs=4M
# sync
# eject /dev/sdf
This should give you a bootable USB flash device. Insert the device into a bootable USB socket on the platform, and power on. This should result in a system booted to the Sato graphical desktop. The root password is empty on the Poky reference distribution images.
================================================================================
Best Known Configuration:
========================
Supported platform: Purley Refresh Platform
CPU: 2nd Generation Intel® Xeon® Scalable Processor
PCH: Lewisburg SD S0 Stepping
BIOS/Firmware Version: PLYXCRB1.86B.0581.D01.1903181750
Features supported in this release:
===================================
-Linux kernel version v4.19.13
-Support I/O devices – SATA, USB Host v2.0&3.0, HD Audio, UART, SMBus, DMA, I2C, PCIE
-Support 2nd Generation Intel® Xeon® Scalable Processor in-chip Ethernet driver: e1000e
-Support Intel(R) SGX technology
Important Notes:
================
Intel encourages using latest poky and meta-intel layer to build BSP layers with below command:
It provides the latest source, which will contain fixes or new feature.