Giter VIP home page Giter VIP logo

Comments (9)

jameshilliard avatar jameshilliard commented on July 17, 2024

I added a gensio package to buildroot here. It appears that gensio doesn't have any required dependencies other than a toolchain with fork() support.

from gensio.

cminyard avatar cminyard commented on July 17, 2024

from gensio.

cminyard avatar cminyard commented on July 17, 2024

from gensio.

jameshilliard avatar jameshilliard commented on July 17, 2024

To run a program in the debugger or in valgrind, or something like that,
the format is:

Embedded build systems usually have a cross debug setup that can be used, for example with buildroot you can use the gdbserver setup for debugging remote processes running on a target board.

from gensio.

matswebjorn avatar matswebjorn commented on July 17, 2024

I just changed i tool/Makefile.am

-gensiot_LDADD = libgensiotool.a $(top_builddir)/lib/libgensio.la \
-	$(OPENSSL_LIBS)
+gensiom_LDADD = libgensiotool.a $(top_builddir)/lib/.libs/libgensio.a \
+	$(OPENSSL_LIBS)

And now I get a statically linked app which can be executed/debugged directly

from gensio.

matswebjorn avatar matswebjorn commented on July 17, 2024

This is my POC design which once it is running should be ported to my ucLinux embedded target.

  putty(1)   putty(2)     putty(3)   putty(4)
      |        |              |        |
/dev/tnt2   /dev/tnt4   /dev/tnt6   /dev/tnt8
      |        |              |        |
/dev/tnt3   /dev/tnt5   /dev/tnt7   /dev/tnt9
      |        |              |        |
      gensio-mux              gensio-mux
          |                      |
  gensio-serialdev       gensio-serialdev
          |                      |
      /dev/tnt0              /dev/tnt1
          |                      |
          +------- tty0tty ------+

I’ve taken gensiot.c and modified it (as I believe is how it should be done) to a gensiomux.c which only handles serialdev’s (to simplify the case).

But I quickly end up inside gensio with runtime errors due which seems to be caused by an incorrect setup.

  • Am I totally wrong in setting up the mux?
  • Should there also be serialdev’s on each upstream port of the mux?

gensiomux.c.tar.gz

Gensiotool.c has on line 459 the following lines

    userdata1.user_io = userdata1.io;
    userdata2.user_io = userdata1.io;

which seems to link upstream serialdev with downstream serialdev, but I don’t know if this is required in the mux case, and how to do it.

from gensio.

cminyard avatar cminyard commented on July 17, 2024

from gensio.

cminyard avatar cminyard commented on July 17, 2024

Also, the complete lack of detailed documentation of functions and datastructures makes the package literally unusable to anything else than to use the predefined tools as is which is unfortunate since there is a great need for a usable package with this functionality.

Just to comment on this: everything is extensively documented in the man pages. That may not be how you are wanting to read it (and indeed, it's not my favorite way to document things) but that's standard on unix type systems. I really don't want to document things in multiple places; that's a recipe for inconsistency and confusion.

If you build gensio on your host and install it (installing in /usr/local works fine for me, but I'm not sure about other distros) then you can do "man gensio_open" to see documentation on that function.

The package is new, so it's going to have some rough edges. I covet any specific comments people have on improving it. Especially documentation.

from gensio.

cminyard avatar cminyard commented on July 17, 2024

Note that gensios exist that can do reliable transport over a serial port, and you could run the mux on top of that. Anyway, I think this discussion is complete.

from gensio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.