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:[email protected]] 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<mailto: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<mailto:[email protected]>] Sent: Saturday, December 10, 2016 12:07 AM To: Vishnu Bemre <vishnu.bemre at hcl.com<mailto:vishnu.bemre at hcl.com>> Cc: Philippe Coval <philippe.coval at osg.samsung.com<mailto:philippe.coval at osg.samsung.com>>; iotivity-dev at lists.iotivity.org<mailto: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<mailto: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<mailto: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/1a926568/attachment.html>
