3 Replies Latest reply on Jul 12, 2016 8:25 PM by ABJoseph

    How to install Intel Iot Gateway Developer Hub with rpm packages

    mohamedshaharris_intel

      1) First of all you need to download the rpm packages.
      You can goto https://download.01.org/iotgateway/

      2) Here the list for download for every rpm packages and dependencies

          Be reminded of the link with "rcpl15". This guide is for RCPL0015. Please goto to other rcpl version as your IDP RCPL version.

      https://download.01.org/iotgateway/rcpl15/x86_64/iot-developer-hub-1.0.1-r1.0.0.corei7_64.rpm
      https://download.01.org/iotgateway/rcpl15/x86_64/dh-rfs-0.1-r1.0.0.corei7_64.rpm
      https://download.01.org/iotgateway/rcpl15/x86_64/python-uptime-3.0.1-r0.0.corei7_64.rpm
      https://download.01.org/iotgateway/x86_64/pexpect-3.3-r1.0.0.corei7_64.rpm
      https://download.01.org/iotgateway/x86_64/cherrypy-3.7.0-r1.0.0.corei7_64.rpm
      https://download.01.org/iotgateway/x86_64/simplejson-3.7.3-r1.0.0.corei7_64.rpm
      https://download.01.org/iotgateway/x86_64/python-netifaces-0.10.4-r0.0.corei7_64.rpm
      https://download.01.org/iotgateway/x86_64/routes-2.1-r1.0.0.corei7_64.rpm/
      https://download.01.org/iotgateway/x86_64/python-lxml-3.4.4-r2.0.corei7_64.rpm
      https://download.01.org/iotgateway/x86_64/python-setuptools-17.1.1-ml5.0.corei7_64.rpm
      https://download.01.org/iotgateway/x86_64/libxslt-1.1.28-r0.0.corei7_64.rpm

      3) You can create a folder dev_hub in your project's folder for building MI IDP image.
      You can use any name for that folder.
      Here we use dev_hub as the folder's name.

      4) After you have downloaded all the rpm packages, you need to sign the key to every each rpm packages.
      RPM packages need to be signed to allowed to be installed on system with SRM and IMA enabled

      5) You need to go to your project's folder.
      Example here we use project's folder's named PROJECT_DEV_HUB.

      6) By using linux command, you "cd" to PROJECT_DEV_HUB.

          In this folder, you can find SST file. This SST file is soft linked to PROJECT_DEV_HUB/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/SST

          You can sign the key simulatneously to all rpm packages in the folder dev_hub.

           For this case, we are using default key provided by wr-srm folder, layers/wr-idp/wr-srm/files/keys/owner-private.pem

           Please sign with your own key if you are not using the default key.

      7) Now, run this command to sign all the rpm packages with the key.

          ./SST sign-rpm --mode=dir --verbose=no --kernel-pkg=no --priv-key=./layers/wr-idp/wr-srm/files/keys/owner-private.pem ./dev_hub/

      This is the output:

      ############################################################
      ## ##
      ## This is SRM Signing Tool! ##
      ## ##
      ############################################################

      build@build:~/PROJECT_DEV_HUB

      8) After finish signed the rpm packages, you can copy all your rpm packages to your target.

      9) From your target, you can install the rpm packages.
           For this example case, we copy the whole folder dev_hub to target.
           Once in the target, we "cd" to dev_hub folder.

           Run the command rpm -ivh *.rpm, it will install all the rpm packages.
           This is example of output:

      root@WR-IDP:~/dev_hub# rpm -ivh *.rpm
      Preparing... ########################################### [100%]
      1:simplejson ########################################### [ 9%]
      Import IMA signatures successfully
      Update IMA signatures successfully
      2:python-uptime ########################################### [ 18%]
      Import IMA signatures successfully
      Update IMA signatures successfully
      3:python-setuptools ########################################### [ 27%]
      Import IMA signatures successfully
      Update IMA signatures successfully
      4:python-netifaces ########################################### [ 36%]
      Import IMA signatures successfully
      Update IMA signatures successfully
      5:pexpect ########################################### [ 45%]
      Import IMA signatures successfully
      Update IMA signatures successfully
      6:libxslt ########################################### [ 55%]
      Import IMA signatures successfully
      Update IMA signatures successfully
      7:dh-rfs ########################################### [ 64%]
      Import IMA signatures successfully
      Update IMA signatures successfully
      8:cherrypy ########################################### [ 73%]
      Import IMA signatures successfully
      Update IMA signatures successfully
      9:routes ########################################### [ 82%]
      Import IMA signatures successfully
      Update IMA signatures successfully
      10:python-lxml ########################################### [ 91%]
      Import IMA signatures successfully
      Update IMA signatures successfully
      11:iot-developer-hub ########################################### [100%]
      Import IMA signatures successfully

      10) After finish installing rpm packages, symlink for the IoT Dev Hub service will be created and run

             "Created symlink from /etc/systemd/system/multi-user.target.wants/iot-dev-hub.service to /lib/systemd/system/iot-dev-hub.service."

      11) You can verify the service is running by running this command:

             systemctl status iot-dev-hub

      You will see this output:

      ? iot-dev-hub.service - CherryPy Web Server for package repository
      Loaded: loaded (/lib/systemd/system/iot-dev-hub.service; enabled)
      Active: active (running) since Wed 2016-06-08 16:43:44 UTC; 17s ago
      Main PID: 3949 (python)
      CGroup: /system.slice/iot-dev-hub.service
      +-3949 /usr/bin/python /var/www/www-repo-gui/python/server.py

      Jun 08 16:43:44 WR-IDP systemd[1]: Started CherryPy Web Server for package repository.

      12) Connect to your IDP wireless network.

      13) Open your browser and type url http://192.168.1.1
            Now you are at the Intel Iot Gateway Developer Hub web page.

       

       

      Last Validated Info
      IDP3.1
      RCPL0015
      DeviceDK300