> For the complete documentation index, see [llms.txt](https://dev.solid-run.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.solid-run.com/nxp/imx6/sbc-platform/imx6-other-articles/rak833-loragateway-yocto.md).

# RAK833 – LoRaGateway – Yocto

## RAK833-LoRaGateway-SolidRun-Yocto

verified on HummingBoard2 rev 1.4 and MicroSOM rev 1.5

## Compilation environment requirements

ubuntu16.Other versions of the operating system may have unpredictable errors.

## Prepare yocto image

step1 : Download

refer to guide ([Yocto for i.MX6](/nxp/imx6/sbc-platform/imx6-software/yocto-for-imx6.md) )

First, get Poky:

```
  git clone -b fido git://git.yoctoproject.org/poky.git
```

Then get the Freescale layers:

```
  cd poky
  git clone -b fido git://git.yoctoproject.org/meta-fsl-arm
  git clone -b fido git://github.com/SolidRun/meta-solidrun-arm-imx6.git      
```

Add meta-semtech lora layer

```
  git clone https://github.com/RAKWireless/RAK833-LoRaGateway-SolidRun-Yocto.git
```

Copy RAK833-LoRaGateway-SolidRun-Yocto/meta-semtech to poky path.

step2 : Copy the file libftdi\_1.1.bb to the directory meta/recipes-support/libftdi/ and the directory meta-fsl-arm/openembedded-layer/recipes-support/libftdi/, if the directory libftdi does not exist, create it. refer [libftdi\_1.1.bb](https://github.com/RAKWireless/RAK833-LoRaGateway-SolidRun-Yocto.git)

then run

```
  source oe-init-build-env
```

step3 : Editing local.conf and bblayers.conf at build/conf

```
  set MACHINE ??= "solidrun-imx6" at local.conf       
  add  meta-fsl-arm meta-solidrun-arm-imx6  meta-semtech to bblayers.conf 
```

refer [bblayers.conf](https://github.com/RAKWireless/RAK833-LoRaGateway-SolidRun-Yocto.git)

step4 : Customizing images for lora image

```
  add IMAGE_INSTALL += "git libftdi libmpsse bash cmake lora-packet-forwarder lora-gateway-dev lora-gateway-staticdev lora-gateway-utils" to core-image-base.bb (../poky/meta/recipes-core/images) , 
```

refer [core-image-base.bb](https://github.com/RAKWireless/RAK833-LoRaGateway-SolidRun-Yocto.git)

step5 : Building packages

```
  source oe-init-build-env
  nice bitbake core-image-base
```

step6 : flashing image to SD card([Flashing an SD Card](/other-articles/flashing-an-sd-card.md) ) sudo dd if=core-image-base-solidrun-imx6.sdcard of=/dev/sdb bs=4M conv=fsync

step7 : plug RAK833 module to solidrun HB2 board. make sure the mini-pcie PERST# signal(pin 22) pulled down (default high will cause rak833 function error)

step8 : Start the packet-forwarder application

```
  $ cd /opt/lora-packet-forwarder
  $ ./lora_pkt_fwd
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev.solid-run.com/nxp/imx6/sbc-platform/imx6-other-articles/rak833-loragateway-yocto.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
