User Tools

Site Tools


webos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
webos [2019/01/09 11:15]
Jonghen Han [Execute sample web app]
webos [2019/08/23 02:32] (current)
Seokhee Lee
Line 24: Line 24:
  
 ==== Step 1: Build and Flash the webOS OSE ==== ==== Step 1: Build and Flash the webOS OSE ====
 +lgsvl
 Set up a webOS OSE build as explained at: Set up a webOS OSE build as explained at:
   * webOS OSE build instruction:​ http://​webosose.org/​discover/​setting/​building-webos-ose   * webOS OSE build instruction:​ http://​webosose.org/​discover/​setting/​building-webos-ose
Line 424: Line 424:
 ............ ............
 ............ </​code>​ ............ </​code>​
 +
 +===== Building IoTivity-Lite for webOS =====
 +==== Step 1: Same to IoTivity build ====
 +
 +==== Step 2: Add IoTivity-Lite recipe in the webOS build layer ====
 +
 +Here is available IoTivity-Lite recipe for webOS OSE (click the link to download):
 +
 +  * https://​sourceforge.net/​projects/​iotivity-lite-recipe/​files/​iotivity-lite_git.bb/​download
 +
 +Create directory '​iotivity-lite'​ for the recipe under meta-webos/​recipes-core/​ in webOS OSE build and put the recipe in '​iotivity-lite'​.
 +
 +Check out the upstream master branch of IoTivity-Lite.
 +<​code>​$ cd ${YOUR_HOME}
 +$ git clone "​https://​gerrit.iotivity.org/​gerrit/​iotivity-lite"</​code>​
 + 
 +Fetch webOS port (https://​gerrit.iotivity.org/​gerrit/​c/​iotivity-lite/​+/​29485/​) to the upstream code.
 +<​code>​$ cd ${ROOT_PATH_OF_YOUR_IOTIVITY_LITE_LOCAL_SRC}
 +$ git fetch "​https://​gerrit.iotivity.org/​gerrit/​iotivity-lite"​ refs/​changes/​85/​29485/​22 && git cherry-pick FETCH_HEAD</​code>​
 +
 +Create webos-local.conf in your build root for building local source.
 +<​code>​$ cd {ROOT_PATH_OF_YOUR_WEBOS_BUILD}
 +$ vi webos-local.conf</​code>​
 +
 +<​code>​INHERIT += "​externalsrc"​
 + 
 +EXTERNALSRC_pn-iotivity-lite = "​${ROOT_PATH_OF_YOUR_IOTIVITY_LITE_SOURCE}/"​
 +EXTERNALSRC_BUILD_pn-iotivity-lite = "​${ROOT_PATH_OF_YOUR_IOTIVITY_LITE_SOURCE}/"</​code>​
 +
 +==== Step 3: Build IoTivity-Lite for webOS ====
 +
 +Trigger the build by executing below commands.
 +
 +<​code>​$ cd ${ROOT_PATH_OF_YOUR_WEBOS_BUILD}
 +$ source oe-init-build-env
 +$ bitbake iotivity-lite -c cleanall;​bitbake iotivity-lite </​code>​
 +
 +Upon successful execution of above commands, library and sample applications archived as ipk extension will be generated at the path below.
 +
 +<​code>​
 +<​ROOT_PATH_OF_YOUR_WEBOS_BUILD>/​BUILD/​work/​raspberrypi3-webos-linux-gnueabi/​iotivity-lite/<​version>​-<​PN>/​deploy-ipks/​raspberrypi3/​iotivity-lite_
 +<​version>​-<​PN>​_raspberrypi3.ipk
 +</​code>​
 +
 +==== Step 4: Install IoTivity-Lite to webOS device ====
 +
 +Copy the generated ipk packages to Raspberry Pi 3 device where webOS OSE is flashed.
 +
 +<​code>​$ scp iotivity-lite_<​version>​-<​PN>​_raspberrypi3.ipk root@<​IP_OF_YOUR_RASPBERRYPI_DEVICE>:/​home </​code>​
 +
 +Install the ipk packages.
 +
 +<​code>​$ ssh root@<​IP_OF_YOUR_RASPBERRYPI_DEVICE>​
 +# cd /home
 +# opkg install iotivity-lite_<​version>​-<​PN>​_raspberrypi3.ipk
 +# reboot </​code>​
 +
 +ipk will be installed under:
 +
 +  * IoTivity-Lite resource library: /usr/lib
 +  * webOS sample native application
 +    * /​usr/​palm/​services/​org.ocf.webossample.simpleserver_webos/​simpleserver_webos
 +    * /​usr/​palm/​services/​org.ocf.webossample.client_multithead_webos/​client_multithread_webos
 +  * Onboarding tool: /​usr/​sbin/​onboarding_tool
 +
  
 ===== MISC ===== ===== MISC =====
webos.1547032559.txt.gz ยท Last modified: 2019/01/09 11:15 by Jonghen Han