# Getting Started: ZYMKEY4i with RASPBERRY PI

**URL:** https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202
**Category:** Getting Started
**Created:** [July 23, 2017, 8:06pm UTC](https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202 "2017-07-23T20:06:01Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Phil\_S\_Zymbit\_1](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@Phil\_S\_Zymbit\_1](https://community.zymbit.com/u/Phil_S_Zymbit_1)
#### Post date: [July 23, 2017, 8:06pm UTC](https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202/1 "2017-07-23T20:06:01Z")

</div>

See [Zymbit’s Documentation Site](https://docs.zymbit.com/quickstart/getting-started/zymkey4/) for the most recent Getting Started documentation.

---

<div class="post-metadata">

### Author: ![Phil\_S\_Zymbit\_1](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@Phil\_S\_Zymbit\_1](https://community.zymbit.com/u/Phil_S_Zymbit_1)
#### Post date: [July 23, 2017, 8:06pm UTC](https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202/2 "2017-07-23T20:06:08Z")

</div>



---

<div class="post-metadata">

### Author: ![Phil\_S\_Zymbit\_1](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@Phil\_S\_Zymbit\_1](https://community.zymbit.com/u/Phil_S_Zymbit_1)
#### Post date: [July 24, 2017, 11:14pm UTC](https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202/3 "2017-07-24T23:14:11Z")

</div>



---

<div class="post-metadata">

### Author: ![Phil\_S\_Zymbit\_1](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@Phil\_S\_Zymbit\_1](https://community.zymbit.com/u/Phil_S_Zymbit_1)
#### Post date: [July 26, 2017, 7:31pm UTC](https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202/4 "2017-07-26T19:31:16Z")

</div>



---

<div class="post-metadata">

### Author: ![kladskull](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.zymbit.com/kladskull/32/190_2.png) [@kladskull](https://community.zymbit.com/u/kladskull)
#### Post date: [October 20, 2017, 4:03pm UTC](https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202/6 "2017-10-20T16:03:42Z")

</div>

Probably best to just leave “jessie” where “stretch” was until they upgrade the software to support Openssl. Many packages rely on Openssl, and I’ve had nothing but issues trying to work around this.

I cannot install Jessie on my PI at all, which is what I’d love to do at this point.

---

<div class="post-metadata">

### Author: ![inov](https://avatars.discourse-cdn.com/v4/letter/i/977dab/32.png) [@inov](https://community.zymbit.com/u/inov)
#### Post date: [April 9, 2018, 3:57pm UTC](https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202/7 "2018-04-09T15:57:17Z")

</div>

Hello,

When running the install\_zk\_sw.sh script over a previous install, the create\_zk\_crypt\_vol symlink fails to get recreated because it already exists. Can you implement a check in the script to delete and recreate it?

> :~ $ curl -G https:// s3.amazonaws. com/zk-sw-repo/install\_zk\_sw.sh | sudo bash  
> % Total % Received % Xferd Average Speed Time Time Time Current  
> Dload Upload Total Spent Left Speed  
> 100 1716 100 1716 0 0 6286 0 --:–:-- --:–:-- --:–:-- 6308  
> Installing prerequisites…Searching for pip  
> Best match: pip 9.0.1  
> Processing pip-9.0.1-py2.7.egg  
> pip 9.0.1 is already the active version in easy-install.pth  
> Installing pip script to /usr/local/bin  
> Installing pip2.7 script to /usr/local/bin  
> Installing pip2 script to /usr/local/bin  
> Using /usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg  
> Processing dependencies for pip  
> Finished processing dependencies for pip  
> Requirement already satisfied: inotify in /usr/local/lib/python2.7/dist-packages  
> You are using pip version 9.0.1, however version 9.0.3 is available.  
> You should consider upgrading via the ‘pip install --upgrade pip’ command.  
> Requirement already satisfied: pycurl in /usr/lib/python2.7/dist-packages  
> You are using pip version 9.0.1, however version 9.0.3 is available.  
> You should consider upgrading via the ‘pip install --upgrade pip’ command.  
> Requirement already satisfied: progress in /usr/local/lib/python2.7/dist-packages  
> You are using pip version 9.0.1, however version 9.0.3 is available.  
> You should consider upgrading via the ‘pip install --upgrade pip’ command.  
> Requirement already satisfied: python-gnupg in /usr/local/lib/python2.7/dist-packages  
> You are using pip version 9.0.1, however version 9.0.3 is available.  
> You should consider upgrading via the ‘pip install --upgrade pip’ command.  
> done.  
> Importing Zymbit Packages gpg key… done.  
> Installing /etc/apt/sources.list.d/zymbit.list…done…Updating now.  
> **Installing Zymkey Packages…ln: failed to create symbolic link ‘/usr/local/bin/create\_zk\_crypt\_vol’: File exists**  
> % Total % Received % Xferd Average Speed Time Time Time Current  
> Dload Upload Total Spent Left Speed  
> 100 11491 100 11491 0 0 37781 0 --:–:-- --:–:-- --:–:-- 37799  
> Rebooting now…

---

<div class="post-metadata">

### Author: ![ido](https://avatars.discourse-cdn.com/v4/letter/i/e274bd/32.png) [@ido](https://community.zymbit.com/u/ido)
#### Post date: [May 30, 2018, 1:16pm UTC](https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202/8 "2018-05-30T13:16:19Z")

</div>

trying to install the i4 on RPi 3 stretch 9.4, after the installation is finished I reboot the system and the module’s LED turns off and I get the following error -  
[FAILED] Failed to start Restore System Clock from Zymkey.  
See ‘systemctl status zkbootrtc.service’ for details.

---

<div class="post-metadata">

### Author: ![Bob\_of\_Zymbit](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@Bob\_of\_Zymbit](https://community.zymbit.com/u/Bob_of_Zymbit)
#### Post date: [May 30, 2018, 2:22pm UTC](https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202/9 "2018-05-30T14:22:38Z")

</div>

Does this happen on each reboot? How’s your power supply? Make sure that you have a power supply that is capable of putting out at least 2.5A.

Check out  
[Power Quality - How it Impacts Software & System Reliability](https://community.zymbit.com/t/power-quality-how-it-impacts-software-system-reliability/243)

---

<div class="post-metadata">

### Author: ![smbrandnojr](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@smbrandnojr](https://community.zymbit.com/u/smbrandnojr)
#### Post date: [July 3, 2018, 7:54pm UTC](https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202/10 "2018-07-03T19:54:39Z")

</div>

In Developer mode, are there any steps I can take to test that my Zymkey is doing what i expect it to do before moving it to production mode?

---

<div class="post-metadata">

### Author: ![Phil\_S\_Zymbit\_1](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@Phil\_S\_Zymbit\_1](https://community.zymbit.com/u/Phil_S_Zymbit_1)
#### Post date: [July 3, 2018, 10:48pm UTC](https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202/11 "2018-07-03T22:48:49Z")

</div>

Before you move to production mode we recommend you develop your applicaition, using the Zymbit API functions as needed.

For example, if you planning on [encrypting your file system using LUKS](https://community.zymbit.com/t/luks-encrypt-your-root-file-system-on-raspberry-pi/150) then build that first, before you lock into production mode.

If your Zymkey is working in developer mode, it will work in production mode.

---

<div class="post-metadata">

### Author: ![smbrandnojr](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@smbrandnojr](https://community.zymbit.com/u/smbrandnojr)
#### Post date: [July 5, 2018, 1:10pm UTC](https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202/12 "2018-07-05T13:10:07Z")

</div>

Thanks Phil. I have performed the “encrypt using LUKS” and seem to have that working. I am noticing issues booting after a power cycle however. Sometimes it will take me 3 or more power cycles to get my Pi to boot up. Once it does boot, everything seems fine. Is this something you have seen/heard of before or is my issue unrelated to the Zymkey?

---

<div class="post-metadata">

### Author: ![Phil\_S\_Zymbit\_1](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@Phil\_S\_Zymbit\_1](https://community.zymbit.com/u/Phil_S_Zymbit_1)
#### Post date: [July 5, 2018, 3:11pm UTC](https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202/13 "2018-07-05T15:11:47Z")

</div>

smbrandnojr  
There is a high probability your issue is related to power supply quality: Zymkey monitors the power rails and if they don’t come up cleanly (after a power cycle) then it will remain locked. If you have other items plugged into your pi (USB devices, display, or GPIO attached devices), these can put additional stress on the power supply at power up.

Suggested paths forward :

1. read this, and be sure to look for the power thunderbolt which is a sure sign of an overloaded power supply. [Power Quality - How it Impacts Software & System Reliability](https://community.zymbit.com/t/power-quality-how-it-impacts-software-system-reliability/243)
2. try rebooting without power cycling.
3. increase the capacity of your power supply.

---

<div class="post-metadata">

### Author: ![Tgratier](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@Tgratier](https://community.zymbit.com/u/Tgratier)
#### Post date: [September 18, 2018, 4:13pm UTC](https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202/14 "2018-09-18T16:13:41Z")

</div>

Hi,

I have specific needs and would like to made an iso with a raspbian distrib and many libraries already installed. I would like to proceed to an offline setup of all the zymkey libraries and just launch a last script to proceed to the zymkey module setup.

How could I do that? I can find all theese informations on your aws repository:

> apt-repo-jessie/conf/distributions  
> apt-repo-jessie/db/checksums.db  
> apt-repo-jessie/db/contents.cache.db  
> apt-repo-jessie/db/packages.db  
> apt-repo-jessie/db/references.db  
> apt-repo-jessie/db/release.caches.db  
> apt-repo-jessie/db/version  
> apt-repo-jessie/dists/jessie/InRelease  
> apt-repo-jessie/dists/jessie/Release  
> apt-repo-jessie/dists/jessie/Release.gpg  
> apt-repo-jessie/dists/jessie/main/binary-arm64/Packages  
> apt-repo-jessie/dists/jessie/main/binary-arm64/Packages.gz  
> apt-repo-jessie/dists/jessie/main/binary-arm64/Release  
> apt-repo-jessie/dists/jessie/main/binary-armhf/Packages  
> apt-repo-jessie/dists/jessie/main/binary-armhf/Packages.gz  
> apt-repo-jessie/dists/jessie/main/binary-armhf/Release  
> apt-repo-jessie/pool/main/libz/libzk/libzk\_1.1-11\_armhf.deb  
> apt-repo-jessie/pool/main/libz/libzymkeyssl/libzymkeyssl\_1.0-5\_armhf.deb  
> apt-repo-jessie/pool/main/libz/libzymkeyssl/libzymkeyssl\_1.0-7\_armhf.deb  
> apt-repo-jessie/pool/main/z/zkapputilslib/zkapputilslib\_1.1-7\_armhf.deb  
> apt-repo-jessie/pool/main/z/zkapputilslib/zkapputilslib\_1.1-8\_armhf.deb  
> apt-repo-jessie/pool/main/z/zkbootrtc/zkbootrtc\_1.1-10\_armhf.deb  
> apt-repo-jessie/pool/main/z/zkifc/zkifc\_1.2-14\_armhf.deb  
> apt-repo-jessie/pool/main/z/zkifc/zkifc\_1.2-15\_armhf.deb  
> apt-repo-jessie/pool/main/z/zksaapps/zksaapps\_1.0-8\_armhf.deb  
> apt-zymkey-pubkey.gpg  
> conv\_edev\_boot.tar.gz  
> conv\_edev\_boot.tar.gz.sig  
> conv\_edev\_rfs.tar.gz  
> conv\_edev\_rfs.tar.gz.sig  
> create\_zk\_crypt\_vol  
> install\_zk\_sw-beaglebone.sh  
> install\_zk\_sw.sh  
> luks.gpg  
> mk\_encr\_ext\_rfs.sh  
> mk\_encr\_sd\_rfs-beaglebone.sh  
> mk\_encr\_sd\_rfs.sh  
> zkAppUtilsClass.cpp.pdf  
> zk\_app\_utils.c.pdf  
> zk\_app\_utils.py.pdf  
> zk\_prep\_encr

Should I download all of this and setup the .deb one by one? What is the last step to do to setup the zymkey module after having setup the libraries needed?

Thx by advance 😁

---

<div class="post-metadata">

### Author: ![Tgratier](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@Tgratier](https://community.zymbit.com/u/Tgratier)
#### Post date: [September 27, 2018, 7:38pm UTC](https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202/15 "2018-09-27T19:38:49Z")

</div>

Hi! any answer? thx 😉

---

<div class="post-metadata">

### Author: ![pico2183](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@pico2183](https://community.zymbit.com/u/pico2183)
#### Post date: [September 27, 2018, 8:23pm UTC](https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202/16 "2018-09-27T20:23:33Z")

</div>

hi ☹  
i have same problem…i go to production mode by Manual Cut-2-Lock and my raspberry do not start!!!  
why?

---

<div class="post-metadata">

### Author: ![azkikr](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@azkikr](https://community.zymbit.com/u/azkikr)
#### Post date: [October 2, 2018, 11:21pm UTC](https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202/17 "2018-10-02T23:21:34Z")

</div>

Hi this is my 2 deployment with raspberry pi raspbian Jessie (Linux pi 4.9.35+ #1014 Fri Jun 30 14:34:49 BST 2017 armv6l GNU/Linux).  
After I issue the command “curl -G [https://s3.amazonaws.com/zk-sw-repo/install\_zk\_sw.sh](https://s3.amazonaws.com/zk-sw-repo/install_zk_sw.sh) | sudo bash” and manually reboots still the zymkey not binding. blue led blinks fast not slow as i blink in 3 seconds.  
Then I tried “sudo apt-get update” and at the last part this echo came out…  
“W: GPG error: [https://zk-sw-repo.s3.amazonaws.com](https://zk-sw-repo.s3.amazonaws.com) jessie InRelease: The following signatures couldn’t be verified because the public key is not available: NO\_PUBKEY CD71D52EB867632F”

Please help …thanks

---

<div class="post-metadata">

### Author: ![azkikr](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@azkikr](https://community.zymbit.com/u/azkikr)
#### Post date: [October 3, 2018, 11:04pm UTC](https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202/18 "2018-10-03T23:04:42Z")

</div>

Now I re-install with raspbian stretch and did the same procedure and it did not bind on the first reboot and finally after the 3rd reboot the blue led start blinking slowly. So I started to do LUKS procedure with “curl -G [https://s3.amazonaws.com/zk-sw-repo/mk\_encr\_sd\_rfs.sh](https://s3.amazonaws.com/zk-sw-repo/mk_encr_sd_rfs.sh) | sudo bash”.  
But it said sda is not there. So I checked and the external 64GB sd card is installed on sdb / sdb1. so I issued the command “curl -G [https://s3.amazonaws.com/zk-sw-repo/mk\_encr\_sd\_rfs.sh](https://s3.amazonaws.com/zk-sw-repo/mk_encr_sd_rfs.sh) | sudo bash -s – -x /dev/sdb” and process went well and rebooted after 1.5 hours.  
After rebooting blue led still blinking fast seems not bound. And do a sudo service zkifc stop and start and started to blink slow.  
Then I reboot without the zymkey and reboots. It supposed not to boot is that correct?  
Then I reboot the RPI with the zymkey but this time without the external sd card that the luks process temporarily put the root folder and then it does not boot as mentioned the sda or sdb not accessible. then when plugged the sd card while boot process is on going it continued to boot up until the rpi login?

---

<div class="post-metadata">

### Author: ![azkikr](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@azkikr](https://community.zymbit.com/u/azkikr)
#### Post date: [October 5, 2018, 4:04am UTC](https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202/19 "2018-10-05T04:04:14Z")

</div>

I re-download the stretch and re-installed to sd card and tried again.  
It is know working fine. Not sure what happen there. But all download and raspbian installation went well. If you got any idea what happen I will be happy to know.  
But right now it zymkey binding and LUKs are working well.

---

<div class="post-metadata">

### Author: ![Tgratier](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@Tgratier](https://community.zymbit.com/u/Tgratier)
#### Post date: [October 22, 2018, 12:35am UTC](https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202/20 "2018-10-22T00:35:18Z")

</div>

Hi

I have big troubles, now:

- I am working on a pi 0, with stretch distrib
- one of my zymkey seems to be break, it flash like this: 5 blink quite slow, and a lot of speed blinks, and again 5 slow, etc.
- on the same raspberry, same power source, another zymkey works perfectly well; each has their proper cell coin

I am becoming crazy right now. The same problem happened few month ago so I have another zymkey breaks… Maybe I made a mistake but for the price I hope I can have an answer about this.

Why can I do?? How can I check if the device is really “ok”? Is there a procedure to erase it?

By the way, you still didn’t answer to me about an offline enrolment procedure (above): should I unpackage all the .deb one by one.

I was fan of your product but now I am becoming more and more mistrustful and don’t want to try things by my own to do not break a new devices…

Thx for the (quick I hope) answer.

---

<div class="post-metadata">

### Author: ![Phil\_S\_Zymbit\_1](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@Phil\_S\_Zymbit\_1](https://community.zymbit.com/u/Phil_S_Zymbit_1)
#### Post date: [October 22, 2018, 12:59am UTC](https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202/21 "2018-10-22T00:59:57Z")

</div>

Hi ,  
Here are some suggestions for help us try and debug your issues:

- Can you confirm that the ‘problem zymkey’ is not locked (tab cut).
- If not locked, you can check if the device is working by getting accellerometer data. Read the data and tap the device, you should be able to read force and direction attributes.
- There is no ‘erase’ on the device. If not locked, it will bind to each new host it sees.
- If you have a third zymkey spare, then perhaps you can test that too, so at least narrow down the potential problem (to a specific zymkey, or something is the system).

[Next page](https://community.zymbit.com/t/getting-started-zymkey4i-with-raspberry-pi/202.md?page=2)
