Date: Fri, 29 Mar 2024 00:56:20 +0000 (UTC)
Message-ID: <1552835465.17516.1711673780263@localhost>
Subject: Exported From Confluence
MIME-Version: 1.0
Content-Type: multipart/related;
boundary="----=_Part_17515_52530790.1711673780263"
------=_Part_17515_52530790.1711673780263
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Content-Location: file:///C:/exported.html
Tables of Contents
Yocto =
Build
=
Host Machine Setup
Hardware requirements:
- Ubuntu 18.04 desktop machine
- RAM - 8 GB or more
- Memory - a minimum of 100 GB free space
Refer to the link for host machine setup: Host Setup
Yocto workspace setup
build setup
apply bug fixes
Note: The above bug fixes changes are temporary given as instructions. T=
his is not required once the change is get merged into the appropriate laye=
r.
Popu=
late eSDK
image build
MACHINE=
=3Dturris source meta-turris /setup-environment
bitbake rdk-generic-broadband-image -=
c populate_sdk_ext
|
The generated eSDK installer resides under the directory buil=
d-<MACHINE>/tmp/deploy/sdk/rdk-glibc-x86_64-arm-toolchain-ext-2.0.sh<=
/code> of the Yocto workspace.
Note: The generated eSDK installer script usually occupies 1.5 to 2.5 GB=
eSDK Installation
The installer can be done on any x86_64 Linux machines.
Host Configuration
Refer to the RDKCentral's credential configuration=
to setup RDK Central's credentials in the machine where =
eSDK to be installed. This is to access repositories by the RDK Yocto recip=
es that reside in the eSDK installer.
Inst=
allation
# run =
the installer script file
# installer asks for a directory to install (default dir=
ectory ~/rdk_sdk)
# installer asks permission to proceed
. /rdk-glibc-x86_64-arm-toolchain-ext-2 .0.sh
|
Below is the result (terminal output) of th=
e installation
xxxuser@yyy=
-machine-003:~/turris/broadband$ build-turris/tmp/deploy/sdk/rdk-glibc-x86_=
64-arm-toolchain-ext-2.0.sh
RDK (A Yocto Project based Dist=
ro) Extensible SDK installer version 2.0
=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Enter target =
directory for SDK (default: ~/rdk_sdk):
You are about to in=
stall the SDK to "/home/xxxuser/rdk_sdk". Proceed [Y/n]? Y
=
Extracting SDK.............................................................=
...................................................done
Set=
ting it up...
Extracting buildtools...
Prep=
aring build system...
Parsing re=
cipes: 100% |##############################################################=
####| Time: 0:00:52
Initialising=
tasks: 100% |#############################################################=
##| Time: 0:00:00
Checking sstat=
e mirror object availability: 100% |#######################################=
| Time: 0:00:00
Loading cache: 1=
00% |####################################################################| =
Time: 0:00:00
Initialising tasks=
: 100% |###############################################################| Ti=
me: 0:00:00
done
SDK has been successfully set up and is ready t=
o be used. Each time you wish to use the SDK in a new shell session, you ne=
ed to source the environment setup script e.g. =
$ . /home/xxxuser/rdk_sdk/en=
vironment-setup-armv7ahf-neon-rdk-linux-gnueabi
SDK =
Installation Done.
|
Build from eSDK
This section covers how to use the eSDK for component build and image bu=
ild
=
Environment Setup
The installer can be run on any x86_64 Linux based machines.
# chan=
ge directory to the installed path
cd ~ /rdk_sdk
# setup the eSDK environemnt
source =
environment-setup-armv7ahf-neon-rdk-linux-gnueabi
|
New Components
Add =
Component
# way =
1
# add=
a new recipe with URL
devtool add <recipe_name> < source URL>
# eg. &nb=
sp; devtool add mosquitto "http://=
mosquitto.org/files/source/mosquitto-1.6.10.tar.gz"
# way =
2
# add=
a new recipe with external source directory
devtool add <recipe_name> <abso=
lute path>
# eg. devtool add wireless-tools /path/for/source/directory =
p>
|
M=
odify Component
Edit Component's recipe
# modi=
fy recipe from an editor
devtool edit-recipe <recipe_name>
# eg. devtool edit-recipe m=
osquitto
|
<=
span>Build Components
# Pre-=
requisite: add a new recipe using devtool
devtool build <recipe_name>
# eg. devtool bu=
ild mosquitto
|
Build Image
A complete RDK image can be generated from the eSDK installer.
Note: The same image where the eSDK populated can be ge=
nerated here.
# devt=
ool command to build image from eSDK
# <IMAGE> - rdk-generic-broadband-image=
devtool =
build-image <IMAGE>
|
Note: Stabilized image is generated=
in Phase2
Known Issues
- Taskhash mismatch error may appear while generating image from sdk, but=
that would not break the build.
Flashing procedure
Turris Omnia Referenc=
e Platform: Flashing Instruction
------=_Part_17515_52530790.1711673780263--