keith-cullen / FreeCoAP

An implementation of a CoAP client, a CoAP server and a HTTP/CoAP proxy with full DTLS support.
132 stars 38 forks source link

Test on Intel Galileo Gen 1 #14

Closed smnd90 closed 7 years ago

smnd90 commented 7 years ago

I want to try FreeCoAP (client only) on Intel Galileo Gen 1 (I saw that you test it). How to install GnuTLS on this board? Any other dependencies? Or is necessary a cross compilation? Thanks

keith-cullen commented 7 years ago

I downloaded the BSP: Board_Support_Package_Sources_for_Intel_Quark_v1.2.0.7z Extract, yocto from the BSP, setup and build. Use yocto to build the toolchain. Create a root filesystem on your host machine. Cross compile coap code on your host machine.

Note: do not try to cross compile the proxy. Galileo has a hardware bug called 'lock prefix' that is triggered by the pthreads library which is used by the proxy.

smnd90 commented 7 years ago

Wow. Thanks. Have you a link to online tutorial that explain this process? Anyway, thanks a lot

smnd90 commented 7 years ago

I managed to download Yocto and make a cross-compilation with a simple "Hello World" on Galileo. But if I wanted to compile FreeCoAP, how can I insert GnuTLS between the dependences? Do you have a sample Makefile? I do not understand if it's enough that I have installed GnuTLS on my PC or if I have to install it elsewhere.