![Kontron SMARC-sAL28 Скачать руководство пользователя страница 44](http://html1.mh-extra.com/html/kontron/smarc-sal28/smarc-sal28_user-manual_1996505044.webp)
SMARC-sAL28 User Guide. Rev. 1.0
// 44
7/
Installation and Setup Procedures
The Board Support Package (BSP) is based on Yocto 2.5 Sumo and uses layers from Yocto, OpenEmbedded, and FSL
Community BSP projects.
BSP makes use of proprietary hardware support packages that are covered by NXP SOFTWARE LICENSE
AGREEMENT. This agreement explicitly disallows redistribution of covered objects. Because of that, the BSP
provides sources and binaries/images for open-source components. So rootfs images to deploy and boot on board
must be built manually. Yocto tools completely automate this process – including downloading and integrating
restricted NXP packages. Brief build instructions are included into this document; for complete information please
refer to Yocto documentation at https://www.yoctoproject.org/documentation.
For reference, BSP archive includes binary kernel and device tree images that have been used for BSP validation.
However, for consistency reasons, it is recommended to use kernel and device tree images created by local build.
7.1.
Building BSP images (rootfs, kernel, device tree)
1.
Make sure that your host development system meets the following requirements:
https://www.yoctoproject.org/docs/2.5.3/mega-manual/mega-manual.html#detailed-supported-distros
2.
Create an empty BSP directory and change to it.
3.
Unpack BSP metadata:
tar xzf /path/to/sources/sources-base-*.tar.gz
tar xzf /path/to/sources/sources-meta-kontron-sal28-*.tar.gz
This will create “sources/” subdirectory populated with metadata layers
4.
Set up Yocto build environment:
cp sources/meta-kontron-sal28/setup-env ./
source setup-env -m kontron-sal28 -b ./build
While this command runs, NXP EULA will be shown. User has to accept it, or BSP build will fail.
5.
Once license is accepted, build session is set up in ./build/ subdirectory.
6.
Build session could be used to build target system images - which includes kernel image, device tree
image and root filesystem image. BSP provides custom image recipe called “sal28-machine-test”. It's recommended
to start with it. Users already familiar with Yocto can also try building standard Yocto images and/or individual
packages.
7.
But before building, some extra configuration must be added to “conf/local.conf” file. E.g. “sal28-machine-
test” contains binary KEAPI libraries that require agreement with their license. To integrate them into image,
following line should be added to “conf/local.conf”:
LICENSE_FLAGS_WHI= " commercial_libkeapi3 "
8.
When the build process is completed, the resulted images (kernel, device trees, kernel modules, archived
rootfs image and archived sd/usb image) can be found in build/tmp/deploy/images/kontron-sal28/ directory. E.g.:
└──
kontron-sal28
├──
Image
├──
sl28-var2.dtb
├──
sl28-var34.dtb
├──
sl28-var2-ads2.dtb
├──
sl28-var34-ads2.dtb
├──
sl28-var2-s1914.dtb
├──
sl28-var34-s1914.dtb
├──
sl28-var3-ads2-am1280800.dtb
├──
sl28-var3-ads2-b101uan021.dtb
├──
modules-kontron-sal28.tgz
├──
sal28-machine-test-kontron-sal28.tar.gz
└──
sal28-machine-test-kontron-sal28.wic.gz
Содержание SMARC-sAL28
Страница 1: ...USER GUIDE 1 SMARC sAL28 Doc Rev 1 0 Doc ID 1064 6120...
Страница 2: ...SMARC sAL28 Rev 1 0 www kontron com 2 This page has been intentionally left blank...
Страница 22: ...SMARC sAL28 User Guide Rev 1 0 www kontron com 22 Figure 4 Bottom View 3 Product label 3...
Страница 28: ...SMARC sAL28 User Guide Rev 1 0 www kontron com 28...