Lantronix SGX 5150 IoT Device Gateway SGX 5150 User Guide - Page 155

: Developing Applications Using Yocto SDK, Using Lantronix PremierWave BSP Yocto Project, Summary

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171

10: Developing Applications Using Yocto SDK
SGX
5150, SGX
5150 MD, and SGX
5150 XL IoT Device Gateway User Guide
155
TM
TM
TM
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-glibc-
x86_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
".