Hi Vishnu,
The patch provides two binaries; only one at every compilation process( one
for the client side and one for the server side). To choice the binary to
produce, you need to go to resource/SConscript file and comment the
SConscript command of the side you don't need at this time.
*elif target_os == 'esp8266':*
*
SConscript('csdk/stack/samples/esp8266/SimpleClientServer/ocserver/SConscript')*
*
#SConscript('csdk/stack/samples/esp8266/SimpleClientServer/occlient/SConscript')*
For example, the above code will let the patch produces a binary file for
the server side.
You will find the binary files of the server side and the client side in
the csdk/stack/samples/esp8266/SimpleClientServer/ocserver/ folder and the
csdk/stack/samples/esp8266/SimpleClientServer/occlient folder
respictavility.
Regards,
Khaled
Khaled
On Tue, Dec 13, 2016 at 5:49 AM, Vishnu Bemre <vishnu.bemre at hcl.com> wrote:
> hi Philippe Coval,
>
> With Khaled?s help, I could finally build the patch successfully today.
>
> Can you please let me know where I can find the binaries to be loaded.
>
> I couldn?t locate them on my own.
>
>
>
> Thanks
>
> Vishnu
>
>
>
>
>
>
>
> *From:* Khaled Qorany [mailto:kqorany2 at gmail.com]
> *Sent:* Monday, December 12, 2016 8:14 PM
> *To:* Vishnu Bemre <vishnu.bemre at hcl.com>
> *Cc:* Philippe Coval <philippe.coval.pro at gmail.com>;
> iotivity-dev at lists.iotivity.org
>
> *Subject:* Re: [dev] ESP 8266 Support in IoTivity
>
>
>
> Hi Vishnu,
>
>
>
> Sorry for that. Simply you can apply this patch manually (It is not a
> big patch, just you have to change two files) by editing these files. The
> files you have to change are hardware/esp8266com/
> esp8266/tools/sdk/ld/eagle.app.v6.common.ld and hardware/esp8266com/
> esp8266/cores/esp8266/libc_replacements.c.
>
>
>
>
>
> Regards,
>
> Khaled
>
>
>
>
> Khaled
>
>
>
> On Mon, Dec 12, 2016 at 2:18 PM, Vishnu Bemre <vishnu.bemre at hcl.com>
> wrote:
>
> hi Philippe Coval,
>
> I have followed following steps and it is failing at step 5 with the
> error ? can?t find file to patch at input line 4?. I have copied
> esp8266.patch as mentioned in below steps.
>
> Please help
>
> Thanks
>
> Vishnu
>
> ============================================================
> ==================================
>
> STEPS to setup ESP8266 on linux machine for building CA code:
>
>
>
> 1) Going to the <PATH_TO_ESP8266_INSTALL_DIR> (any directory you want)
>
>
>
> 2) Clone the esp8266/Arduino repository into hardware/esp8266com/esp8266
> directory
>
> $ cd hardware
>
> $ mkdir esp8266com
>
> $ cd esp8266com
>
> $ git clone https://github.com/esp8266/Arduino.git esp8266
>
>
>
> 3) Download binary tools (you need Python 2.7)
>
> $ cd esp8266/tools
>
> $ python get.py
>
>
>
> 4) ONE TIME ONLY - ADDITIONAL LIBRARIES (Time)
>
> ESP8266 builds are dependent on latest Time library. Download
> it from here:
>
> I. http://playground.arduino.cc/
> uploads/Code/Time.zip
>
> Place this library in the "<PATH_TO_ESP8266_INSTALL_DIR>
> /hardware/esp8266com/esp8266/libraries/Time" folder where other libraries
> are present.
>
> [P.S - The Time library files path should be as
> follows "<PATH_TO_ESP8266_INSTALL_DIR>/hardware/esp8266com/esp8266/
> libraries/Time/{***files***}"]
>
> Some files in this library has windows style line endings, for
> patch to run properly, please execute following command:
>
> cd <PATH_TO_ESP8266_INSTALL_DIR/
> hardware/esp8266com/esp8266/>
>
> find ./libraries/Time/ -type f -exec dos2unix {} \;
>
>
>
> 5) ONE TIME ONLY - PATCH
>
> Complete patch has been provided at :
> "connectivity\lib\esp8266\esp8266_ld.patch"
>
> Copy this patch file to
> "<PATH_TO_ESP8266_INSTALL_DIR>"
>
> To apply patch give the command :
>
> patch -p1 < esp8266.patch
>
> To undo the patch give the command :
>
> patch -R -p1 < esp8266.patch
>
>
>
> 6) Building IoTivity for ESP8266
>
> $ scons TARGET_OS=esp8266 ESP8266_HOME=<PATH_TO_ESP8266_
> INSTALL_DIR>
>
> ============================================================
> ============================
>
>
>
> *From:* Philippe Coval [mailto:philippe.coval.pro at gmail.com]
> *Sent:* Saturday, December 10, 2016 12:07 AM
> *To:* Vishnu Bemre <vishnu.bemre at hcl.com>
> *Cc:* Philippe Coval <philippe.coval at osg.samsung.com>;
> iotivity-dev at lists.iotivity.org
> *Subject:* Re: [dev] ESP 8266 Support in IoTivity
>
>
>
> On Fri, Dec 9, 2016 at 4:26 AM, Vishnu Bemre <vishnu.bemre at hcl.com> wrote:
>
> hi Philippe Coval,
>
> Thanks. I will try to spend time on this.
>
>
> Great ! I can try to help if you're facing wall
>
>
>
> I could see the code but unable to download it.
>
>
> Do you see the "download" menu on right of
> https://gerrit.iotivity.org/gerrit/#/c/13315/
>
> There you can download the code on the right base :
> https://gerrit.iotivity.org/gerrit/changes/13315/revisions/
> 7ec9b1f3ea5461e92da8a7f0e8c537979034eab1/archive?format=txz
>
>
>
>
> Do I need any special permission for this?
>
>
>
> you just need a linuxfoundation account to log it, it's free !
>
>
>
>
>
> --
>
> --
> https://wiki.tizen.org/wiki/User:Pcoval
>
>
>
> ::DISCLAIMER::
> ------------------------------------------------------------
> ------------------------------------------------------------
> ----------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and
> intended for the named recipient(s) only.
> E-mail transmission is not guaranteed to be secure or error-free as
> information could be intercepted, corrupted,
> lost, destroyed, arrive late or incomplete, or may contain viruses in
> transmission. The e mail and its contents
> (with or without referred errors) shall therefore not attach any liability
> on the originator or HCL or its affiliates.
> Views or opinions, if any, presented in this email are solely those of the
> author and may not necessarily reflect the
> views or opinions of HCL or its affiliates. Any form of reproduction,
> dissemination, copying, disclosure, modification,
> distribution and / or publication of this message without the prior
> written consent of authorized representative of
> HCL is strictly prohibited. If you have received this email in error
> please delete it and notify the sender immediately.
> Before opening any email and/or attachments, please check them for viruses
> and other defects.
>
> ------------------------------------------------------------
> ------------------------------------------------------------
> ----------------------------
>
>
> _______________________________________________
> iotivity-dev mailing list
> iotivity-dev at lists.iotivity.org
> https://lists.iotivity.org/mailman/listinfo/iotivity-dev
>
>
>
> _______________________________________________
> iotivity-dev mailing list
> iotivity-dev at lists.iotivity.org
> https://lists.iotivity.org/mailman/listinfo/iotivity-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20161213/42c982f4/attachment.html>