Comments (9)
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.
from gensio.
from gensio.
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.
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.
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?
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.
from gensio.
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.
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)
- tcp,::1,portnum only listens on IPv6 HOT 5
- Feature Request: echo filter HOT 8
- example for hot ssl certificate reload HOT 2
- Session end on failing TIOCCBRK HOT 5
- Fail to build on gentoo x86_64 and arm HOT 3
- spelling error in manpage HOT 1
- manual pages installed as copy? HOT 4
- tools/greflector.1 HOT 1
- symbol visibility in C++ HOT 3
- libtool files installed to package? HOT 2
- Let's talk stdio! HOT 2
- Feature request: Send winch when receiving telnet IAC NAWS commands (RFC 1073) HOT 6
- Using gensio to transfer a file via xmodem. HOT 5
- Fails to build with "Error: Unable to find 'gensio_base.i'" HOT 3
- gtlsshd is calling setuid and setgid without setgroups or initgroups HOT 2
- Build system issues (pkgconfig files, overlinking) HOT 6
- Details of serial port locking / UUCP locking HOT 2
- Looking for an example "drop in" application code to replace an existing "real" serial port. HOT 5
- gensio_os_funcs_wake() not waiking up the waiter in another thread. HOT 4
- Packets sent to network in bursts with long delay HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gensio.