Solution Management

Solution Store

Introduction

Solution store is a visual solution control system. It is designed as a tool for users to manage solution software.

The major components are:
  • Create
  • Delete
  • View
  • Update
  • Deploy

Public & Private Solution

Private: The Solution is only visible and maintained by the owners.

Public: The Solution is visible to every user.

Solution Management

Get Available Solution

Click Edge Software Store on the top navigation bar.

  • Click Solution Market to view public solution list page.
  • Click My Solution to view private solution list page.
_images/solution1.png

Click the solution title to open solution detail page.

_images/solution2.png

Deploy Solution

If automatic OTA is configured, the device accepts solution image update commands from the cloud. Users can select a solution image in the store and deploy it to device(s).

Click Deploy button to deploy the solution to devices.

_images/solution-step0.png

Step1: Filter devices (According to Location, Name and Tags, system will find target devices).

_images/solution-step1.png

Step2: Select devices to deploy the solution.

_images/solution-step2.png

Step3: Click Deploy button to deploy solution.

_images/solution-step3.png

Create Solution

Click the Edge Software Store at the top of the page and the Solution Store in the left navigation bar.

_images/solution-upload-step0.png

Click Create button to open the “solution create” page.

All the fields marked with “*” are mandatory.

Step1: Input basic information.

Model Name: Choose a model for the solution Solution Name: Specify the name of the solution Version: Specify the version of the solution

_images/solution-upload-step1.png

Step2: Define permission of the solution.

Permission: Private solution is visible to the solution owner. Public solution is visible to all users. Tags: Apply tags to the solution.

_images/solution-upload-step2.png

Step3: Configure firmware settings.

  • Specify the firmware location (Image URL, assuming this image is uploaded in a public file storage).
  • Upload Firmware Image - users can upload a local firmware image (NOT supported yet).
_images/solution-upload-step3.png

Click Submit button to create the new solution.

Solution Component Update

This section introduces how to update the system software components such as firmware, Uboot, kernel, dtb, rootfs, etc.

Warning

Updating the system software component is risky. Please make sure the software component is compatible with the software image on the device. Otherwise, it may stop the system from booting or functioning normally.

  1. Precondition:
  • Device is online.
  • Device is already deployed with the full solution image. The component version is the same as the full solution image.
  1. Prepare components that need to be upgraded (u-boot, boot partition) and install.sh.

Step1: Provide the install script of how to deploy the software component image on the device.

Note

The install script must be named as “install.sh”. Below example only works with LSDK solution image. You should adapt the install script to the target device and the software system.

For example, to update components on ls2088ardb with LSDK image:

  • The install script for Uboot should be:
#!/bin/bash

download_path=/run/media/mmcblk0p3/updateImages
if [ -e ${download_path}/firmware*.img ];then
    update_file=`ls ${download_path}/*firmware*.img`
    flex-installer -f $update_file -d /dev/mmcblk0
fi
  • The install script for kernel should be:
#!/bin/bash

download_path=/run/media/marble0p3/appendages

if [ -e ${download_path}/boot*.tgz ];then
    update_file=`ls ${download_path}/*boot*.tgz`
    ls | grep -v lost+found | xargs rm -rf {}
    tar zxf $update_file -C /run/media/mmcblk0p2
fi

Step2: Tar components that need to be upgraded with the install script.

#packaging the Uboot image with install script
$tar czvf install.tgz firmware_ls2088ardb_uboot_norboot.img  install.sh

#packaging the boot partition image with install script
$tar czvf install.tgz bootpartition_LS_arm64_lts_4.14.tgz  install.sh

Step3: Create the solution component image.

Please refer to Create Solution

_images/solution-component-step1.png

Note

When updating the solution component image, the checkbox ‘Have the installer in solution’ must be marked.

_images/solution-component-step2.png

Fill in the image URL in the solution and submit.

_images/solution-component-step3.png

Step4: Deploy component image.

Please refer to Deploy Solution

Select the solution component image you created for deployment.

_images/solution-component-step4.png _images/solution-component-step5.png