Michal Sojka [Wed, 21 Sep 2016 14:33:23 +0000 (16:33 +0200)]
Compile with debug information and strip them during install
Debian automatically creates debug symbol package of the binary is
compiled with debug information. If it is compiled without -g, lintian
warns about empty debug symbols.
Michal Sojka [Wed, 19 Aug 2015 22:00:28 +0000 (00:00 +0200)]
Add command mode
This mode is entered before serial line begins. Currently implemented
commands are: dtr, rst and go. "dtr" and "rst" are the same as -d and -r
options, "go" ends command mode and enters serial line interaction.
This is intended for use by novaboot in this way: Novaboot connects to
the serial line to be sure that the target is not occupied. Then it
copies the images, which can take long time, and after that it sends
reset command to reset the target. Without this, the target is reset (by
-d or -r) before copying the images and after that it may be too late to
communicate with the bootloader.
Michal Sojka [Tue, 27 Jan 2015 09:29:55 +0000 (10:29 +0100)]
Disable flow control
RTS/CTS lines may be used for something else than flow control so disable
it. If it turns out that we need it for some hardware, we will add an
command line option to enable it.
Michal Sojka [Tue, 27 Jan 2015 09:19:22 +0000 (10:19 +0100)]
Never block when opening the port
Whether blocking happens depends on the value of CDC signal and previously
set CLOCAL settings. Since we cannot influence CLOCAL settings before
opening the port, we have to use O_NONBLOCK.
Michal Sojka [Wed, 23 Jul 2014 16:49:03 +0000 (18:49 +0200)]
Use liblockdev to lock the tty device
This is simpler and it should also be compatible with systemd initiated
change of /var/lock permissions. See
http://lists.freedesktop.org/archives/systemd-devel/2011-March/001823.html