Azure IoT Edge Quick Install Guide for Raspberry Pi 3
Azure IoT Edge v2 ランタイムをRaspberry Pi 3にインストールする手順です。
Key point
Setup process consume memory and Raspberry Pi 3 has memory only little. You need reboot before heavy setup/install process.
Step 1
Create microSD image
- 2018-03-13-raspbian-stretch-lite.img
- Create empty file 'ssh' on boot volume in microSD when you need to use SSH.
Step 2
Reduce GPU memory
$ sudo vi /boot/config.txt gpu_mem=16
Disable IPv6 stack
$ sudo vi /etc/sysctl.conf net.ipv6.conf.all.disable_ipv6=1
Reboot
$ sudo reboot
Step 3
Install pip
$ sudo apt-get update $ sudo apt-get install python-pip
Upgrade setuptools and others
$ sudo apt-get install python2.7-dev libffi-dev libssl-dev $ sudo pip install -U setuptools pip $ sudo pip install -U cryptography idna
Reboot
$ sudo reboot
Step 4
Install Docker
$ curl -fsSL get.docker.com -o get-docker.sh $ sudo sh get-docker.sh $ sudo usermod -aG docker pi
Re-login
$ exit
Step 5
Install Azure IoT Edge Runtime
$ sudo pip install -U azure-iot-edge-runtime-ctl $ sudo iotedgectl setup --auto-cert-gen-force-no-passwords --connection-string "{ConnectionString}"
Reboot
$ sudo reboot
Step 6
Start Azure IoT Edge Runtime
$ sudo iotedgectl start
Reboot
$ sudo reboot