How to build a LoRaWAN gateway

Revision as of 14:59, 10 April 2019 by Registered User

Template:ArticleMainWriter Template:ArticleFirstDraftVersion


1. Article purpose[edit source]

This article provides simple examples for the Distribution Package of the OpenSTLinux distribution, that illustrate the cross-compilation with the BitBake tools:

  • modification with Linux® Kernel (configuration, device tree, driver, ...)
  • modification of an external in-tree Linux Kernel module
  • modification of U-Boot
  • modification of TF-A
  • addition of software

These examples also show how to deploy the results of the cross-compilation on the target, through a network connection to the host machine.


Info white.png Information
All the examples described on this page use devtool and/or bitbake from OpenEmbededded, see OpenEmbedded - devtool for more information.


Info white.png Information
There are many ways to achieve the same result; this article aims to provide at least one solution per example. You have the liberty to explore other methods that are better adapted to your development constraints.

2. Prerequisites[edit source]

The prerequisites from Installing the OpenSTLinux distribution must be executed.

The board and the host machine are connected through an Ethernet link, and a remote terminal program is started on the host machine: see How to get Terminal.

The target is started, and its IP address (<board ip address>) is known.

3. Modification with kernel[edit source]

3.1. Preamble[edit source]

To start modification with a module, you need to initialize your Distribution Package environment.

 cd <working directory path of distribution>
 DISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.sh


Initialize devtool for kernel component:

 devtool modify virtual/kernel
No categories assignedEdit