Table of Contents:

Overview

This is a general instruction for the use of Armbian base OS of Dragino devices. Current models include:

  • HP0A
  • HP0C
  • LPS8v2

Development Guide

For advanced users to develop Driver/ Linux etc

How to recompile LoRaWAN Concentrator Driver ( dragino-fwd package).

Step 1. Clone dragino-fwd package

Requirements:

sudo apt install -y libsqlite3-dev
sudo apt install -y libftdi1-dev

Run command clone dragino-fwd package:

git clone https://github.com/dragino/dragino_fwd_src.git

image-20220527151010-1.png

Step 2. Compile dragino_fwd

After cloning is complete, Run the command starts compiling:

Compile HP0D/rasspberrypi fwd:                      ./hp0z-make-deb.sh  d
Compile HP0C/HP0A fwd:                                 ./hp0z-make-deb.sh  c

The following example compilers HP0C fwd.

image-20220527153913-3.png

When the compilation is complete a draginofwd-*.deb package is generated.

image-20220527154311-4.png

Step 3. Install the dragino_fwd

Run command:

dpkg -i draginofwd-*.deb 

image-20220527154811-5.png

Step 4. Test

Check the dragino_fwd log:

journalctl -u draginofwd -f

image-20220527165221-7.png

Start/stop dragino_fwd via systemctl:

systemctl start draginofwd
systemctl stop draginofwd

How to flash SD card to eMMC

Run command:

nand-sata-install

image-20220602112051-1.png

Select the "Boot from eMMC - system on eMMC"

image-20220602112058-2.png

image-20220602112106-3.png

Select the "1  ext4"

image-20220602112113-4.png

It takes 4-5 minutes to burn from SD card to eMMC

image-20220602112119-5.png

image-20220602112125-6.png

image-20220602112131-7.png

Note: After the flash is complete, power off the device and then remove the SD card.

How to clone Complete OS on the EMMC to SD card

 

Tags:
    
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0