Difference between revisions of "AIMLinux/AddOn/DeviceOn"
From ESS-WIKI
Daniel.hung (talk | contribs) |
Daniel.hung (talk | contribs) |
||
Line 7: | Line 7: | ||
To cross-compile DeviceOn agent, you have to install dependencies into SDK toolchain. | To cross-compile DeviceOn agent, you have to install dependencies into SDK toolchain. | ||
− | Please refer to '''[https://github.com/ADVANTECH-Corp/meta-advantech2/blob/aim20-rocko-sumo/meta-WISE-PaaS/recipes-core/packagegroups/packagegroup-wise-paas.bb packagegroup-wise-paas.bb]''' and '''[https://github.com/ADVANTECH-Corp/meta-advantech2/blob/aim20-rocko-sumo/meta-WISE-PaaS/recipes-core/images/sdk.inc sdk.inc]''' for details. These two files are used on Yocto to generate suitable image & toolchain for DeviceOn. | + | Please refer to '''[https://github.com/ADVANTECH-Corp/meta-advantech2/blob/aim20-rocko-sumo/meta-WISE-PaaS/recipes-core/packagegroups/packagegroup-wise-paas.bb packagegroup-wise-paas.bb]''' and '''[https://github.com/ADVANTECH-Corp/meta-advantech2/blob/aim20-rocko-sumo/meta-WISE-PaaS/recipes-core/images/sdk.inc sdk.inc]''' for details. These two files are used on '''Yocto '''to generate suitable image & toolchain for DeviceOn. |
+ | |||
+ | For '''Debian/Ubuntu''', you can refer to '''[https://github.com/ADVANTECH-Rockchip/linux_rootfs_adv/blob/rk3399_linux_v210/mk-adv.sh mk-adv.sh]''' which we use to build rootfs for RK platform. | ||
== <span style="color:#0070c0">Build Instruction</span> == | == <span style="color:#0070c0">Build Instruction</span> == | ||
Line 29: | Line 31: | ||
cd build/Standard | cd build/Standard | ||
./autobuild.sh | ./autobuild.sh | ||
+ | |||
+ | After build process is complete, you can get the installer (.run) and tarball files in '''Wrapped/''' folder. | ||
+ | |||
+ | $ ls Wrapped/ | ||
+ | wise-agent-Poky_2.1.1 imx6-1.2.14.0-binary.tar.gz | ||
+ | wise-agent-Poky_2.1.1_imx6-1.2.14.0.run | ||
+ | wise-agent-Poky_2.1.1 imx6-1.2.14.0.run.tar.gz | ||
+ | |||
+ | In addition, you can check the output binaries in '''Release/AgentService/''' folder as well. | ||
== <span style="color:#0070c0">Bundle Mechanism</span> == | == <span style="color:#0070c0">Bundle Mechanism</span> == |
Revision as of 08:04, 24 September 2019
This section describes the information about DeviceOn on RISC platform.
Contents
DeviceOn
Requirements for Build Environment
To cross-compile DeviceOn agent, you have to install dependencies into SDK toolchain.
Please refer to packagegroup-wise-paas.bb and sdk.inc for details. These two files are used on Yocto to generate suitable image & toolchain for DeviceOn.
For Debian/Ubuntu, you can refer to mk-adv.sh which we use to build rootfs for RK platform.
Build Instruction
Make sure you have set up SDK toolchain environment, before start building RMM EI agent.
# Get source git clone http://advgitlab.eastasia.cloudapp.azure.com/EI-PaaS-RMM/RMM-EI-Agent.git cd RMM-EI-Agent # Choose one for your platform source risc-env fsl imx6 yocto 2.1 source risc-env fsl imx8 yocto source risc-env qualcomm dragon yocto source risc-env ti am335x yocto 2.4 source risc-env rk 3399 debian source risc-env rk 3288 debian # Build make clean cd build/Standard ./autobuild.sh
After build process is complete, you can get the installer (.run) and tarball files in Wrapped/ folder.
$ ls Wrapped/ wise-agent-Poky_2.1.1 imx6-1.2.14.0-binary.tar.gz wise-agent-Poky_2.1.1_imx6-1.2.14.0.run wise-agent-Poky_2.1.1 imx6-1.2.14.0.run.tar.gz
In addition, you can check the output binaries in Release/AgentService/ folder as well.