Introduction.
ADLINK offers SEMA® (Smart Embedded Management Agent), which uses intelligent middleware to monitor and control devices.
SEMA® is available for Linux and Windows operating systems and a variety of HW platforms. SEMA® is available for Linux and Windows operating systems and a variety of HW platforms.
In this article, we will install the SEMA Utility on Linux and try to get information about the board.
Reference:
<Main products used in this project
-
LEC-EL
SMARC module with Intel® 6th generation Atom® x6000 processor (former code name: Elkhart Lake)
-
I-Pi SMARC Plus
SMARC 2.1 reference carrier board with M.2 expansion
- HTS-sEL
LEC-EL heatspreader
(There is also a THS-sEL LEC-EL heatsink)
Other items to be prepared for this project:
- HDMI cable / Monitor
- USB mouse and keyboard
- LAN cable (for internet connection)
- Windows 10 PC (used to write OS image to USB memory)
Preparation: Creation of Linux environment
Create a Linux environment by referring to the following URL.
Reference:
2. install the SEMA Utility 1.
1. install the packages essential for the build, download and compile the SEMA source code by executing the following commands in order
sudo apt install build-essential git hexer i2c-tools
git clone https://github.com/ADLINK/sema-linux.git -b sema-ec
cd sema-linux
sudo make
sudo make install
Once complete, load all drivers by entering the following command
sudo modprobe -a adl-bmc adl-bmc-boardinfo adl-bmc-vm adl-bmc-wdt adl-bmc-hwmon adl-bmc-nvmem adl-bmc-bklight adl-bmc-i2c adl-bmc-gpio adl-bmc -nvmem-sec
Reference:
ADLINK SEMA® GitHub EC Controller
ADLINK SEMA® GitHub How to install on Linux
3.3.1 Board Information Acquisition by SEMA
Execute the following command to check the list of SEMA Utility functions.
Note that not all functions are supported.
sudo semautil --h
The following is an excerpt from the output after executing the command, which contains information on the commands related to the board.
You can check the number of times you have booted by the following command.
sudo semautil /d get_value 2
We can see that the number of boots so far is 128.
You can check the uptime of the system with the following command
sudo semautil /d get_value 3
The unit is in minutes, so we know that the total uptime is 791 minutes.
You can check the CPU temperature at startup with the following command
sudo semautil /d get_value 25
The unit is 10K (Kelvin), so we know that the temperature is 25°C (77°F).
You can check the current CPU temperature with the following command
sudo semautil /d get_value 5
The unit is 10K (Kelvin), so we know that the temperature is 46°C (46°F).
Summary
This time, we obtained the board information, but there are other useful functions as well.
Related Articles
- Building an Ubuntu Environment on ADLINK's SMARC LEC-EL with Intel® 6th Generation Atom® x6000 Processor
- Implementing the SEMA Utility on ADLINK's SMARC LEC-EL with Intel® 6th generation Atom® x6000 processor