Lantronix SGX 5150 IoT Device Gateway SGX 5150 User Guide - Page 155
: Developing Applications Using Yocto SDK, Using Lantronix PremierWave BSP Yocto Project, Summary
View all Lantronix SGX 5150 IoT Device Gateway manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 155 highlights
10: Developing Applications Using Yocto SDK 10: Developing Applications Using Yocto SDK This chapter is intended for developers. Using Lantronix PremierWave BSP Yocto Project Summary These instructions explain how to use PremierWave BSP Yocto to create a ROM image for the SGX 5150 that will include your own applications/configuration. This is based on Yocto Jethro. Prerequisites Development is done on a PC running Linux OS natively. These instructions have been validated on Ubuntu 16.04. Install the necessary packages using the following commands: sudo apt-get install gawk wget git-core diffstat unzip textinfo gcc- multilib \ build-essential chrpath socat libsdl1.2-dev xterm sudo apt-get install lzop Build the ROM Image and SDK Navigate to the folder in which you cloned the repo and build the ROM image and SDK using the following commands: cd yocto_premierwave/sources git clone -b jethro git://git.yoctoproject.org/poky.git git clone -b jethro git://git.openembedded.org/meta-openembedded.git cd .. ./customer_set_target.sh sgx5150 source sources/poky/oe-init-build-env build bitbake ltrx-customer-image The step "bitbake ltrx-customer-image" builds the target ROM image ("SGX5150_.rom" in "build/tmp/deploy/images/sgx5150/"). The initial build takes about 1 hour. Further builds after modifying your application are much faster because only changes are processed. bitbake ltrx-customer-image -c populate_sdk The step "bitbake ltrx-customer-image -c populate_sdk" builds the SDK, "poky-glibcx86_64-ltrx-customer-image-armv5e-toolchain-2.0.3.sh" (together with two other manifest files) under the folder "build/tmp/deploy/sdk/". This build takes about another 30 minutes. Install SDK Go to the folder containing the built SDK and install it using the following command: ./poky-glibc-x86_64-ltrx-customer-image-armv5e-toolchain-2.0.3.sh Confirm you want to proceed by entering "Y". SGX TM 5150, SGX TM 5150 MD, and SGX TM 5150 XL IoT Device Gateway User Guide 155