Table of Contents:

1.  Overview

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

  • HP0A
  • HP0C
  • LPS8v2
  • MS20

2.  Development Guide

For advanced users to develop Driver/ Linux etc

2.1  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 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

2.2  How to clone Complete OS on the EMMC to SD card

2.3  How to flash SD card to eMMC

 Preparations:

1. Prepare an SD card and a card reader device

2. Formatting the SD card (Make sure the SD card is empty)

3. Download the OS image from xxxxx:  ( File format dragino-lps8v2-1.5.img )

4. A Flash software tool ( Such as balenaEtcher )

5. Open the LPS8-V2 shell, and put the SD card into the card slot

6. Power on the device and access the gateway's CLI via the serial port.

7. Login and run the below command to flash.

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.

Init the new Os

Run the command 

wget -P /tmp/ http://repo.dragino.com/release/hp0c-image/lps8v2_init.sh && chmod +x /tmp/lps8v2_init.sh && /tmp/lps8v2_init.sh

 

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