---
# System prepended metadata

title: IoT Gateway - EC70A-TGU
tags: [Edge]

---

---
title: IoT Gateway - EC70A-TGU
tags: Edge
image:
---

# IoT Gateway - EC70A-TGU

[toc]

## todo

* Smart Pole Frontend #2
* Topview IP camera
* Yolo v7
* ...

##  EC70A-TGU

### Rear I/O

* ...
* ...
* ...

### BIOS

* ...
* ...

### Debian 11

> Check version
```
# uname -a
Linux EC70A-TGU 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux

# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
```
> Initialization
```
# apt install vim sudo net-tools curl git
# usermod -aG sudo dfi
# logout
```
> Find Out Graphics Card Info
```
sudo apt update
sudo update-pciids
```
* lspci -v
  :::spoiler Intel Corporation **TigerLake-LP GT2** 
    ```
    00:00.0 Host bridge: Intel Corporation 11th Gen Core Processor Host Bridge/DRAM Registers (rev 01)
            DeviceName: Onboard - Other
            Flags: bus master, fast devsel, latency 0, IOMMU group 0
            Capabilities: <access denied>

    00:02.0 VGA compatible controller: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (rev 01) (prog-if 00 [VGA controller])
            DeviceName: Onboard - Video
            Flags: bus master, fast devsel, latency 0, IRQ 163, IOMMU group 1
            Memory at 6000000000 (64-bit, non-prefetchable) [size=16M]
            Memory at 4000000000 (64-bit, prefetchable) [size=256M]
            I/O ports at 5000 [size=64]
            Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
            Capabilities: <access denied>
            Kernel driver in use: i915
            Kernel modules: i915

    00:04.0 Signal processing controller: Intel Corporation TigerLake-LP Dynamic Tuning Processor Participant (rev 01)
            DeviceName: Onboard - Other
            Flags: fast devsel, IRQ 16, IOMMU group 2
            Memory at 6001100000 (64-bit, non-prefetchable) [size=128K]
            Capabilities: <access denied>
            Kernel driver in use: proc_thermal
            Kernel modules: processor_thermal_device

    00:06.0 PCI bridge: Intel Corporation 11th Gen Core Processor PCIe Controller (rev 01) (prog-if 00 [Normal decode])
            Flags: bus master, fast devsel, latency 0, IRQ 122, IOMMU group 3
            Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
            I/O behind bridge: [disabled]
            Memory behind bridge: 80a00000-80afffff [size=1M]
            Prefetchable memory behind bridge: [disabled]
            Capabilities: <access denied>
            Kernel driver in use: pcieport

    00:08.0 System peripheral: Intel Corporation GNA Scoring Accelerator module (rev 01)
            DeviceName: Onboard - Other
            Flags: fast devsel, IRQ 255, IOMMU group 4
            Memory at 600115b000 (64-bit, non-prefetchable) [disabled] [size=4K]
            Capabilities: <access denied>

    00:0a.0 Signal processing controller: Intel Corporation Tigerlake Telemetry Aggregator Driver (rev 01)
            DeviceName: Onboard - Other
            Flags: fast devsel, IOMMU group 5
            Memory at 6001140000 (64-bit, non-prefetchable) [size=32K]
            Capabilities: <access denied>

    00:0d.0 USB controller: Intel Corporation Tiger Lake-LP Thunderbolt 4 USB Controller (rev 01) (prog-if 30 [XHCI])
            DeviceName: Onboard - Other
            Flags: bus master, medium devsel, latency 0, IRQ 151, IOMMU group 6
            Memory at 6001130000 (64-bit, non-prefetchable) [size=64K]
            Capabilities: <access denied>
            Kernel driver in use: xhci_hcd
            Kernel modules: xhci_pci

    00:10.0 Serial bus controller: Intel Corporation Device a0d8 (rev 20)
            DeviceName: Onboard - Other
            Flags: bus master, fast devsel, latency 0, IRQ 18, IOMMU group 7
            Memory at 4017000000 (64-bit, non-prefetchable) [size=4K]
            Capabilities: <access denied>
            Kernel driver in use: intel-lpss
            Kernel modules: intel_lpss_pci

    00:10.5 Host bridge: Intel Corporation Device a0af (rev 20)
            DeviceName: Onboard - Other
            Subsystem: Intel Corporation Device 0000
            Flags: fast devsel, IOMMU group 8
            Capabilities: <access denied>

    00:14.0 USB controller: Intel Corporation Tiger Lake-LP USB 3.2 Gen 2x1 xHCI Host Controller (rev 20) (prog-if 30 [XHCI])
            DeviceName: Onboard - Other
            Flags: medium devsel, IRQ 153, IOMMU group 9
            Memory at 6001120000 (64-bit, non-prefetchable) [size=64K]
            Capabilities: <access denied>
            Kernel driver in use: xhci_hcd
            Kernel modules: xhci_pci

    00:14.2 RAM memory: Intel Corporation Tiger Lake-LP Shared SRAM (rev 20)
            DeviceName: Onboard - Other
            Flags: fast devsel, IOMMU group 9
            Memory at 600114c000 (64-bit, non-prefetchable) [disabled] [size=16K]
            Memory at 6001159000 (64-bit, non-prefetchable) [disabled] [size=4K]
            Capabilities: <access denied>

    00:15.0 Serial bus controller: Intel Corporation Tiger Lake-LP Serial IO I2C Controller #0 (rev 20)
            DeviceName: Onboard - Other
            Flags: bus master, fast devsel, latency 0, IRQ 27, IOMMU group 10
            Memory at 4017001000 (64-bit, non-prefetchable) [size=4K]
            Capabilities: <access denied>
            Kernel driver in use: intel-lpss
            Kernel modules: intel_lpss_pci

    00:15.2 Serial bus controller: Intel Corporation Tiger Lake-LP Serial IO I2C Controller #2 (rev 20)
            DeviceName: Onboard - Other
            Flags: bus master, fast devsel, latency 0, IRQ 29, IOMMU group 10
            Memory at 4017002000 (64-bit, non-prefetchable) [virtual] [size=4K]
            Capabilities: <access denied>
            Kernel driver in use: intel-lpss
            Kernel modules: intel_lpss_pci

    00:15.3 Serial bus controller: Intel Corporation Tiger Lake-LP Serial IO I2C Controller #3 (rev 20)
            DeviceName: Onboard - Other
            Flags: bus master, fast devsel, latency 0, IRQ 30, IOMMU group 10
            Memory at 4017003000 (64-bit, non-prefetchable) [virtual] [size=4K]
            Capabilities: <access denied>
            Kernel driver in use: intel-lpss
            Kernel modules: intel_lpss_pci

    00:16.0 Communication controller: Intel Corporation Tiger Lake-LP Management Engine Interface (rev 20)
            DeviceName: Onboard - Other
            Flags: bus master, fast devsel, latency 0, IRQ 162, IOMMU group 11
            Memory at 6001155000 (64-bit, non-prefetchable) [size=4K]
            Capabilities: <access denied>
            Kernel driver in use: mei_me
            Kernel modules: mei_me

    00:16.3 Serial controller: Intel Corporation Tiger Lake-LP Active Management Technology - SOL (rev 20) (prog-if 02 [16550])
            DeviceName: Onboard - Other
            Subsystem: Intel Corporation Device 0000
            Flags: 66MHz, fast devsel, IRQ 19, IOMMU group 11
            I/O ports at 50a0 [size=8]
            Memory at 80b04000 (32-bit, non-prefetchable) [size=4K]
            Capabilities: <access denied>
            Kernel driver in use: serial

    00:17.0 SATA controller: Intel Corporation Tiger Lake-LP SATA Controller (rev 20) (prog-if 01 [AHCI 1.0])
            DeviceName: Onboard - SATA
            Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 152, IOMMU group 12
            Memory at 80b00000 (32-bit, non-prefetchable) [size=8K]
            Memory at 80b03000 (32-bit, non-prefetchable) [size=256]
            I/O ports at 5090 [size=8]
            I/O ports at 5080 [size=4]
            I/O ports at 5060 [size=32]
            Memory at 80b02000 (32-bit, non-prefetchable) [size=2K]
            Capabilities: <access denied>
            Kernel driver in use: ahci
            Kernel modules: ahci

    00:19.0 Serial bus controller: Intel Corporation Tiger Lake-LP Serial IO I2C Controller #4 (rev 20)
            DeviceName: Onboard - Other
            Flags: bus master, fast devsel, latency 0, IRQ 31, IOMMU group 13
            Memory at 4017004000 (64-bit, non-prefetchable) [virtual] [size=4K]
            Capabilities: <access denied>
            Kernel driver in use: intel-lpss
            Kernel modules: intel_lpss_pci

    00:19.1 Serial bus controller: Intel Corporation Tiger Lake-LP Serial IO I2C Controller #5 (rev 20)
            DeviceName: Onboard - Other
            Flags: bus master, fast devsel, latency 0, IRQ 32, IOMMU group 13
            Memory at 4017005000 (64-bit, non-prefetchable) [virtual] [size=4K]
            Capabilities: <access denied>
            Kernel driver in use: intel-lpss
            Kernel modules: intel_lpss_pci

    00:1c.0 PCI bridge: Intel Corporation Device a0ba (rev 20) (prog-if 00 [Normal decode])
            Flags: bus master, fast devsel, latency 0, IRQ 123, IOMMU group 14
            Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
            I/O behind bridge: 00004000-00004fff [size=4K]
            Memory behind bridge: 80900000-809fffff [size=1M]
            Prefetchable memory behind bridge: [disabled]
            Capabilities: <access denied>
            Kernel driver in use: pcieport

    00:1c.4 PCI bridge: Intel Corporation Device a0bc (rev 20) (prog-if 00 [Normal decode])
            Flags: bus master, fast devsel, latency 0, IRQ 124, IOMMU group 15
            Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
            I/O behind bridge: [disabled]
            Memory behind bridge: 80400000-806fffff [size=3M]
            Prefetchable memory behind bridge: [disabled]
            Capabilities: <access denied>
            Kernel driver in use: pcieport

    00:1c.5 PCI bridge: Intel Corporation Tigerlake PCH-LP PCI Express Root Port #6 (rev 20) (prog-if 00 [Normal decode])
            Flags: bus master, fast devsel, latency 0, IRQ 125, IOMMU group 16
            Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
            I/O behind bridge: 00003000-00003fff [size=4K]
            Memory behind bridge: 80800000-808fffff [size=1M]
            Prefetchable memory behind bridge: [disabled]
            Capabilities: <access denied>
            Kernel driver in use: pcieport

    00:1c.6 PCI bridge: Intel Corporation Device a0be (rev 20) (prog-if 00 [Normal decode])
            Flags: bus master, fast devsel, latency 0, IRQ 126, IOMMU group 17
            Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
            I/O behind bridge: [disabled]
            Memory behind bridge: 80700000-807fffff [size=1M]
            Prefetchable memory behind bridge: [disabled]
            Capabilities: <access denied>
            Kernel driver in use: pcieport

    00:1e.0 Communication controller: Intel Corporation Tiger Lake-LP Serial IO UART Controller #0 (rev 20)
            DeviceName: Onboard - Other
            Flags: bus master, fast devsel, latency 0, IRQ 16, IOMMU group 18
            Memory at 4017006000 (64-bit, non-prefetchable) [virtual] [size=4K]
            Capabilities: <access denied>
            Kernel driver in use: intel-lpss
            Kernel modules: intel_lpss_pci

    00:1e.3 Serial bus controller: Intel Corporation Tiger Lake-LP Serial IO SPI Controller #1 (rev 20)
            DeviceName: Onboard - Other
            Flags: bus master, fast devsel, latency 0, IRQ 37, IOMMU group 18
            Memory at 4017007000 (64-bit, non-prefetchable) [virtual] [size=4K]
            Capabilities: <access denied>
            Kernel driver in use: intel-lpss
            Kernel modules: intel_lpss_pci

    00:1f.0 ISA bridge: Intel Corporation Tiger Lake-LP LPC Controller (rev 20)
            DeviceName: Onboard - Other
            Flags: bus master, fast devsel, latency 0, IOMMU group 19

    00:1f.3 Audio device: Intel Corporation Tiger Lake-LP Smart Sound Technology Audio Controller (rev 20)
            DeviceName: Onboard - Sound
            Subsystem: DFI Inc Tiger Lake-LP Smart Sound Technology Audio Controller
            Flags: bus master, fast devsel, latency 32, IRQ 164, IOMMU group 19
            Memory at 6001148000 (64-bit, non-prefetchable) [size=16K]
            Memory at 6001000000 (64-bit, non-prefetchable) [size=1M]
            Capabilities: <access denied>
            Kernel driver in use: snd_hda_intel
            Kernel modules: snd_hda_intel, snd_sof_pci

    00:1f.4 SMBus: Intel Corporation Tiger Lake-LP SMBus Controller (rev 20)
            DeviceName: Onboard - Other
            Flags: medium devsel, IRQ 16, IOMMU group 19
            Memory at 6001150000 (64-bit, non-prefetchable) [size=256]
            I/O ports at efa0 [size=32]
            Kernel driver in use: i801_smbus
            Kernel modules: i2c_i801

    00:1f.5 Serial bus controller: Intel Corporation Tiger Lake-LP SPI Controller (rev 20)
            DeviceName: Onboard - Other
            Flags: fast devsel, IOMMU group 19
            Memory at 80b05000 (32-bit, non-prefetchable) [size=4K]

    01:00.0 Non-Volatile memory controller: Micron Technology Inc Device 5407 (prog-if 02 [NVM Express])
            Subsystem: Micron Technology Inc Device 0100
            Flags: bus master, fast devsel, latency 0, IRQ 16, NUMA node 0, IOMMU group 20
            Memory at 80a00000 (64-bit, non-prefetchable) [size=16K]
            Capabilities: <access denied>
            Kernel driver in use: nvme
            Kernel modules: nvme

    02:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
            Subsystem: DFI Inc I210 Gigabit Network Connection
            Flags: bus master, fast devsel, latency 0, IRQ 18, IOMMU group 21
            Memory at 80900000 (32-bit, non-prefetchable) [size=512K]
            I/O ports at 4000 [disabled] [size=32]
            Memory at 80980000 (32-bit, non-prefetchable) [size=16K]
            Capabilities: <access denied>
            Kernel driver in use: igb
            Kernel modules: igb

    03:00.0 Ethernet controller: Intel Corporation Ethernet Controller (2) I225-IT (rev 03)
            Subsystem: DFI Inc Ethernet Controller (2) I225-IT
            Flags: bus master, fast devsel, latency 0, IRQ 16, IOMMU group 22
            Memory at 80500000 (32-bit, non-prefetchable) [size=1M]
            Memory at 80600000 (32-bit, non-prefetchable) [size=16K]
            Expansion ROM at 80400000 [disabled] [size=1M]
            Capabilities: <access denied>
            Kernel driver in use: igc
            Kernel modules: igc

    04:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
            Subsystem: DFI Inc I210 Gigabit Network Connection
            Flags: bus master, fast devsel, latency 0, IRQ 17, IOMMU group 23
            Memory at 80800000 (32-bit, non-prefetchable) [size=512K]
            I/O ports at 3000 [disabled] [size=32]
            Memory at 80880000 (32-bit, non-prefetchable) [size=16K]
            Capabilities: <access denied>
            Kernel driver in use: igb
            Kernel modules: igb

    05:00.0 USB controller: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller (rev 03) (prog-if 30 [XHCI])
            Flags: bus master, fast devsel, latency 0, IRQ 18, IOMMU group 24
            Memory at 80700000 (64-bit, non-prefetchable) [size=8K]
            Capabilities: <access denied>
            Kernel driver in use: xhci_hcd
            Kernel modules: xhci_pci
  ```
  :::
> Install Docker Env
```!
sudo apt -y install apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt -y install docker-ce docker-ce-cli containerd.io
sudo usermod -aG docker dfi
logout

sudo curl -L "https://github.com/docker/compose/releases/download/v2.17.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker compose version
```
> Install Ubuntu Frame
```
sudo apt install snapd
sudo snap install core
sudo snap install ubuntu-frame
sudo snap set ubuntu-frame daemon=true
sudo snap get ubuntu-frame daemon  
```
> Install Web Kiosk in Ubuntu Core
```
sudo snap install wpe-webkit-mir-kiosk
sudo snap set wpe-webkit-mir-kiosk daemon=true
```
> Install Dependencies
```
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev
```
> Install Python3
```
$ sudo apt install python3 -y
$ python3 --version
Python 3.9.2
```
> Install PIP (Package Manager)
```
sudo apt install python3-pip
pip3 --version
```
> Set up a Virtual Environment (better option)
```
sudo apt install python3-venv -y
mkdir -p workspace/lab
cd workspace/lab
```
### OpenVINO 2022.1

* OpenVINO Runtim
```
(openvino) dfi@EC70A-TGU:~/workspace/lab$ pip install openvino
Requirement already satisfied: openvino in /home/dfi/.local/lib/python3.9/site-packages (2022.3.0)
Requirement already satisfied: numpy<=1.23.4,>=1.16.6 in /home/dfi/.local/lib/python3.9/site-packages (from openvino) (1.23.4)
(openvino) dfi@EC70A-TGU:~/workspace/lab$ python3 -c "from openvino.runtime import Core"
(openvino) dfi@EC70A-TGU:~/workspace/lab$
```
* OpenVINO Dev Tools
```
python3 -m venv openvino_env
ls -l openvino_env/
total 20
drwxr-xr-x 2 dfi dfi 4096 Apr 13 16:41 bin
drwxr-xr-x 2 dfi dfi 4096 Apr 13 16:41 include
drwxr-xr-x 3 dfi dfi 4096 Apr 13 16:41 lib
lrwxrwxrwx 1 dfi dfi    3 Apr 13 16:41 lib64 -> lib
-rw-r--r-- 1 dfi dfi   69 Apr 13 16:41 pyvenv.cfg
drwxr-xr-x 3 dfi dfi 4096 Apr 13 16:41 share
source ./openvino_env/bin/activate
(openvino) dfi@EC70A-TGU:~/workspace/lab$

pip install openvino-dev


###To exit the virtual environment, simply run the deactivate  command:
deactivate
```
### YOLOv7



## Computex

### IP camera: Topview

### Display: AUO 21.5" TFT-LCD






## References
* [openvino](https://docs.openvino.ai/latest/openvino_docs_install_guides_install_dev_tools.html#install-dev-tools)
* https://makerpro.cc/2022/11/openvino-accelerates-yolov7-inference/
* https://github.com/ultralytics/yolov5/wiki/Docker-Quickstart