!** APPLIES TO ZYMKEY 2i ONLY **!
(product shipped before April 2017)
For all zymkey products shipped on or after April 2017 follow 'Getting Started with Zymkey 3i'
BEFORE INSTALLING ZYMKEY
Configure the I2C Bus:
ssh to your raspberry pi i.e. -
From the gui, select Advanced Options (9) -> I2C (A7) -> Enable? (click Yes)
Arrow Right to Finish
Power down your Raspberry Pi
Connectors on Zymkey I2C
Install Zymkey I2C Hardware
This is a crucial step to get right. Be sure to follow the images below to ensure the first 10 GPIO pins are correctly aligned with the Zymkey header. Note: the coin cell battery should be facing up.
Fit i2c Zymkey with battery facing upwards. Be sure your i2c Zymkey is properly aligned with the first 10 GPIO pins and that pressed firmly down onto the header. If missaligned, this could cause damage to the Zymkey and/or your Raspberry Pi. Your Zymkey should fit relatively snug and maintain tight interference fit around the pins.
Zymkey occupies 10 pins on the GPIO header. It can also be used with Pi Plate devices attached, or other i2c devices attached. See options later for correct address range and use of IO pins.
Option: Using Zymkey with another Pi Plate fitted.
Power On, Confirm Operation
Finally, power up the pi and you will see a blue led blinking consistently. If you see sporadic blinking, this is an error message and you should check your connections.
Software Package Installation
For a bare raspbian system, first:
Note: Your Zymkey will require a number of packages to be installed from the Raspberry Pi and Zymbit apt repositories. The following setup script will be installing a number of files and software packages on your system:
* Docker and docker-compose
* Zymbit .service files located in the
Download and install the necessary Zymbit Cloud services
curl -G https://s3.amazonaws.com/zymbit-apt/setup.sh | sudo bash
(grab a cup of coffee because this will take some time )
Bind Zymkey to Host
Your I2C Zymkey should alread be plugged into the host Pi.
- Visit https://console.zymbit.com/
- Sign up and create a new project
- Copy the bootstrap key as shown:
- Return to the shell and paste in your bootstrap key in the following configuration file:
sudo nano /etc/systemd/system/zymbit-connect.service.d/10-env.conf
The configuration file should look similar to this when you are finished with step 4.
Reload the daemon:
sudo systemctl daemon-reload
Reload https://console.zymbit.com and you should see your device with a Zymkey status of unbound and the option to Bind now! Note: this could be delayed about a minute. Right now your pi is starting up the Zymbit connect service for the first time.
Click the Bind Now! Button and the Zymkey LED should turn a solid blue. Your Zymkey is now bound!
Please read the Zymkey community pages for documentation on:
- LUKS filesystem encryption
- Encrypting & decrypting sensor data on disk
- Real Time Clock
The quickest way to get started is to see the various methods at work by running these scripts: