Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port of libmosquitto for genode #12

Closed
wants to merge 11 commits into from
Closed

Port of libmosquitto for genode #12

wants to merge 11 commits into from

Conversation

irgendwie
Copy link
Member

@irgendwie irgendwie commented May 2, 2017

Make sure a vde switch is running before executing the example, otherwise it won't work!

  • You can test compiling and linking the lib by executing make test/libports/libmosquitto in the build directory
  • repos/mpct is a small example, using libmosquitto.
    It connects to a mosquitto server running on 192.168.100.254:1883 and publishes "Hello World" with an increasing iterator, which can be read by connecting another client (sample client provided by mosquitto) and subscribing on "mpct".
  • You can run the small example with make run/mpct or just compile it by using make mpct (don't forget to adapt the INC_DIR path in the target.mk file)

Open points:

  • the sample example blocks after publishing a few messages (approx. 300 for me)
  • random lwip error:
    ... [init -> mpct] Assertion "tcp_write: pbufs on queue => at least one queue non-empty" failed at /home/alex/Projects/genode/contrib/lwip-136ee70f33ffced072262d589c24ab3252d15eff/src/lib/lwip/src/core/tcp_out.c:340 [init -> mpct] void lwip_sleep_forever(): thread 2 ...
  • [init -> mpct] int socketpair(int, int, int, int*): socketpair not implemented
    Maybe we can use the workaround used for windows builds
  • [init -> mpct] int _sigaction(int, const sigaction*, sigaction*): _sigaction not implemented
    The only signal used is SIGPIPE, which is ignored for windows builds
  • [init -> mpct] read_rtc: rtc not configured, returning 0
    rtc is not available on pbxa9 builds 馃啒

@irgendwie
Copy link
Member Author

irgendwie commented May 29, 2017

Everything fixed so far and it is runable both with pbxa9 in qemu and on real pandaboard. The freezes are fixed by removing the tcpip_init function (06d4dc1)

  • The sigaction error can be fixed by simply removing it -> seems to not be needed by mosquitto (left it in place since the lib is functional with the "broken" signal call)
  • rtc, still no idea what to do 馃檲

@irgendwie irgendwie mentioned this pull request May 29, 2017
@irgendwie irgendwie changed the title WIP: Port of libmosquitto for genode Port of libmosquitto for genode May 29, 2017
@irgendwie
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants