Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Failed to enable prov client and custom HSM module on IoT Edge SDK #657

Closed
jeevannagvekar opened this issue Oct 29, 2018 · 2 comments
Closed

Comments

@jeevannagvekar
Copy link

jeevannagvekar commented Oct 29, 2018

  • OS and version used: Ubuntu 18.04.1 LTS

  • SDK version used: - Pulled from Git Hub Master branch

  • Description of the issue: -

Hello,

I am trying to use IoT Edge Gateway source code. I have following differences with respect to IoT C SDK if downloaded independently from master branch,

  1. The IoT C SDK which gets downloaded along with IoT Edge is not from the master branch.

  2. Folders, umqtt and uamqp are outside \iot-edge-v1\v1\deps while they are brought inside \azure-iot-sdk-c folder

  3. In IoT edge package, if I want to change code inside \iot-edge-v1\v1\deps\iot-sdk-c, I can build using option ./tools/build.sh --rebuild-deps. However, it is not clear how to pass compiler options like use_prov_client:BOOL=ON -Dhsm_custom_lib= to iot-sdk-c,

  4. I have implemented custom HSM module and made it work on C IoT SDK. But now I wanted to upgrade to IoT Edge SDK. However I am not able to do provisioning due to previous point.

  5. I tried to enable the flag by hard coding it in CMakefile. When the compilation commenced, it failed. After investigation it was found that utpm folder is emplty.

  • Console log of the issue:

CMake Error at provisioning_client/deps/CMakeLists.txt:76 (add_subdirectory):
The source directory

/home/jeevan/edge/iot-edge/v1/deps/iot-sdk-c/provisioning_client/deps/utpm

does not contain a CMakeLists.txt file.

CMake Error: File /home/jeevan/edge/iot-edge/v1/deps/iot-sdk-c/provisioning_client/configs/azure_iot_sdksConfig.cmake does not exist.
CMake Error at provisioning_client/CMakeLists.txt:289 (configure_file):
configure_file Problem configuring file

-- Configuring incomplete, errors occurred!
See also "/home/jeevan/edge/iot-edge/v1/deps/iot-sdk-c/build/CMakeFiles/CMakeOutput.log".
CMake Error at gatewayFunctions.cmake:159 (message):
Error running cmake for azure_iot_sdks: 1
Call Stack (most recent call first):
modules/dependencies.cmake:39 (findAndInstall)
modules/CMakeLists.txt:6 (include)

-- Configuring incomplete, errors occurred!
See also "/home/jeevan/edge/iot-edge/v1/build/CMakeFiles/CMakeOutput.log".

Please guide me in enabling provisioning client and integrating custom HSM module in IoT Edge SDK. Also I want latest IoT C SDK to be part of IoT Edge SDK. I have not tried and I doubt whether mere copying of IoT SDK code to deps/ folder would work.

@damonbarry
Copy link
Member

IoT Edge v1 currently takes a dependency on an older version of the C SDK. We'd like to upgrade it (not to master, but to the LTS release), however there were some breaking changes in the SDK that make that difficult. And because most of our effort has been focused on the current generation of IoT Edge (v2, at https://github.com/Azure/iotedge), we don't have a timeline right now for upgrading our SDK dependency in v1.

@jeevannagvekar Are you able to use IoT Edge v2? It has better support for HSMs...

@damonbarry
Copy link
Member

Closing, no activity.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants