LoginSignup
1
0

More than 5 years have passed since last update.

ラズパイZeroW にgreengrassをインストールしようとして出来なかった

Last updated at Posted at 2018-10-15

ラズパイZero W にgreengrassをインストールし(ようとし)た

先に結論

できなかった

理由

pi zero のcpuはarmv6l

$ uname -a
Linux raspberrypi-204 4.14.71+ #1145 Fri Sep 21 15:06:38 BST 2018 armv6l GNU/Linux

greengrassの動作要件はARMv7l

アーキテクチャ: ARMv7l、OS: Linux、ディストリビューション: Raspian
参考)
https://aws.amazon.com/jp/greengrass/faqs/

┐(´~`;)┌

手順

以下実施手順メモ

  • sshができた
  • git インストール
    • sudo apt-get install git
  • 動作環境確認
mkdir Downloads
cd /home/pi/Downloads
git clone https://github.com/aws-samples/aws-greengrass-samples.git
cd aws-greengrass-samples
cd greengrass-dependency-checker-GGCv1.5.0
sudo modprobe configs
sudo ./check_ggc_dependencies | more

以下のエラー

Missing required dependencies:
1. The 'memory' cgroup is not enabled on the device.
Greengrass will fail to set the memory limit of user lambdas.


----------------------------------Exit status---------------------------------------
Either the script failed to verify all dependencies or the device is missing one or
more of the required dependencies for Greengrass version 1.6.

Refer to the 'Errors' and 'Missing required dependencies' sections under 'Results'
for details.
greengrass-linux-armv7l-1.6.0.tar.gz
0f977cdc14-setup.tar.gz

をラズパイにコピー(この時点ですでにarmv7と書いてる。。。)

  • 展開
sudo tar -xzvf greengrass-OS-architecture-1.5.0.tar.gz -C /
sudo tar -xzvf 0f977cdc14-setup.tar.gz -C /greengrass
cd /greengrass/certs/
sudo wget -O root.ca.pem http://www.symantec.com/content/en/us/enterprise/verisign/roots/VeriSign-Class%203-Public-Primary-Certification-Authority-G5.pem

実行するとエラー

cd /greengrass/ggc/core/
sudo ./greengrassd start
Illegal instruction

っと、ここで、調べて、ARMv6では動かないことが判明

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0