debian/0000775000000000000000000000000012317363764007204 5ustar debian/changelog0000664000000000000000000000551512317363667011066 0ustar amtterm (1.3-1ubuntu1) trusty; urgency=low * amtterm disconnects with the following error. amtterm: RUN_SOL -> ERROR (failure) amtterm: ERROR: redir_data: unknown r->buf 0x29 6d5a429a and 0ece513 provide support for 0x29 message, to avoid errant disconnects. (LP: #1301692) -- Dave Chiluk Wed, 02 Apr 2014 21:03:32 -0500 amtterm (1.3-1) unstable; urgency=low * New upstream version. - drop debian/patches/40_fix_argument_order.diff, applied upstream * update copyright_hints for new upstream version * bump standards version * switch to source format 3.0 * switch to short-form debhelper 7 style -- Reinhard Tartler Sat, 03 Sep 2011 19:31:33 +0200 amtterm (1.2-1) unstable; urgency=low [ Frank Lin PIAT ] * New Upstream Version + amttool: possibility to specify the boot device (for reboot...) + gamt: add logging, font selector and terminal reset. * Bump Standards-Version to 3.8.1 [ Michael Gernoth ] * Change SOAP parameter order for OEM special commands [ Reinhard Tartler ] * added gbp.conf -- Reinhard Tartler Tue, 24 Nov 2009 11:16:08 +0100 amtterm (1.1-2) unstable; urgency=low * Franklin's new email address (bigfoot.com -> klabs.be) -- Frank Lin PIAT Sat, 06 Dec 2008 00:16:26 +0100 amtterm (1.1-1) unstable; urgency=low [ Frank Lin PIAT ] * New Upstream Version * Drop patches merged upstream (gamt_desktop, amt-howto_whatis manpage_escape_hyphen, manpage_fix_url, send_correct_enter enable_bios_over_sol) [ Reinhard Tartler ] * remove debian/patches/40_autoconf_lib64.diff -- Reinhard Tartler Thu, 04 Dec 2008 22:03:06 +0100 amtterm (1.0-2) unstable; urgency=low [ Franklin Piat ] * Fix debian/patch copyright * Drop patch 10_destdir.dpatch. * Improve configuration options. * Drop Homepage field (ftp folder). * Cleanup sample files [ Reinhard Tartler ] * Further cleanups in debian/rules * move git branch to collab-maint repository * Taking over package on Franklin's wish. He agrees to stay as Co-Maintainer! * convert dpatches to quilt * added patch by Michael Gernoth to fix the "enter" key in some BIOS implementations * split package in amtterm (with little dependencies) and gamt (which is more heavyweight and depends on various GTK libraries) * weaken package dependency on libsoap-lite-perl to recommends. [ Michael Gernoth ] * add patch for BIOS over SOL -- Reinhard Tartler Tue, 28 Oct 2008 09:55:26 +0100 amtterm (1.0-1) unstable; urgency=low * Initial release (Closes: #448208). * Adjusted the Variables.mk to fix $DESTDIR problems. * adapt example in amt-howto to Debian. * Fix lib64 detection bug -- Franklin Piat Sat, 27 Oct 2007 14:08:28 +0200 debian/README.source0000664000000000000000000000350711630461465011362 0ustar This package uses quilt to manage all modifications to the upstream source. Changes are stored in the source package as diffs in debian/patches and applied during the build. To configure quilt to use debian/patches instead of patches, you want either to export QUILT_PATCHES=debian/patches in your environment or use this snippet in your ~/.quiltrc: for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then export QUILT_PATCHES=debian/patches fi done To get the fully patched source after unpacking the source package, cd to the root level of the source package and run: quilt push -a The last patch listed in debian/patches/series will become the current patch. To add a new set of changes, first run quilt push -a, and then run: quilt new where is a descriptive name for the patch, used as the filename in debian/patches. Then, for every file that will be modified by this patch, run: quilt add before editing those files. You must tell quilt with quilt add what files will be part of the patch before making changes or quilt will not work properly. After editing the files, run: quilt refresh to save the results as a patch. Alternately, if you already have an external patch and you just want to add it to the build system, run quilt push -a and then: quilt import -P /path/to/patch quilt push -a (add -p 0 to quilt import if needed). as above is the filename to use in debian/patches. The last quilt push -a will apply the patch to make sure it works properly. To remove an existing patch from the list of patches that will be applied, run: quilt delete You may need to run quilt pop -a to unapply patches first before running this command. debian/control0000664000000000000000000000356412317363705010612 0ustar Source: amtterm Section: net Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Reinhard Tartler Uploaders: Frank Lin PIAT , Michael Gernoth Build-Depends: debhelper (>= 7.0.50~), libgtk2.0-dev, libvte-dev Standards-Version: 3.9.2 Vcs-Browser: http://git.debian.org/?p=collab-maint/amtterm.git Vcs-Git: git://git.debian.org/git/collab-maint/amtterm.git Package: amtterm Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, xdg-utils Recommends: libsoap-lite-perl Description: Serial-over-lan (sol) client for Intel AMT, console version AMT (included in Intel vPro and Centrino Pro) provides out-of-band (OOB) management for Desktops and Laptops, using an agent integrated in the network adapter and in the motherboard. . Serial-over-lan provides a secure way to connect a remote computer, through a pseudo serial interface. . amtterm and gamt are two terminal tools to connect to that pseudo serial interface from a remote computer. . amttool is a perl script to gather information about and remotely control AMT managed computers. In order to use it you need to have the package libsoap-lite-perl installed. Package: gamt Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Serial-over-lan (sol) client for Intel AMT, gtk version AMT (included in Intel vPro and Centrino Pro) provides out-of-band (OOB) management for Desktops and Laptops, using an agent integrated in the network adapter and in the motherboard. . Serial-over-lan provides a secure way to connect a remote computer, through a pseudo serial interface. . amtterm and gamt are two terminal tools to connect to that pseudo serial interface from a remote computer. amttool is a perl script to gather information about and remotely control AMT managed computers. debian/copyright_hints0000664000000000000000000000115511630464173012337 0ustar ./tcp.c: GPL (v2 or later) [Copyright: 2007 Gerd Hoffmann debian/copyright_newhints cmp debian/copyright_hints debian/copyright_newhints && rm debian/copyright_newhints override_dh_clean: $(MAKE) distclean dh_clean build-stamp mk/*.dep Make.config override_dh_auto_install: $(MAKE) DESTDIR=$(CURDIR)/debian/tmp prefix=/usr install %: dh $@ debian/menu0000664000000000000000000000017711630461465010072 0ustar ?package(amtterm):needs="text" section="Applications/Network/Communication"\ title="Amt Terminal" command="/usr/bin/amtterm" debian/gbp.conf0000664000000000000000000000022411630461465010613 0ustar [DEFAULT] upstream-branch = upstream debian-branch = master upstream-tag = upstream/%(version)s debian-tag = debian/%(version)s pristine-tar = True debian/watch0000664000000000000000000000011011630461465010217 0ustar version=3 http://dl.bytesex.org/releases/amtterm/amtterm-(.*)\.tar\.gz debian/amtterm.install0000664000000000000000000000017111630461465012236 0ustar usr/bin/amttool usr/bin/amtterm usr/share/man/man7/amt-howto.7 usr/share/man/man1/amttool.1 usr/share/man/man1/amtterm.1 debian/copyright0000664000000000000000000000234211630461465011132 0ustar This package was debianized by Frank Lin PIAT on Fri, 26 Oct 2007 01:26:17 +0200. It was downloaded from http://dl.bytesex.org/releases/amtterm/ Upstream Author: Gerd Hoffmann Copyright: Copyright (C) 2007,2008 Gerd Hoffmann License: This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. The Debian packaging is (C) 2007-2010, Frank Lin PIAT and is licensed under the GPL, see above. debian/compat0000664000000000000000000000000211630464173010373 0ustar 7 debian/README.Debian0000664000000000000000000000031611630461465011237 0ustar amtterm for Debian ------------------ Some hints on using AMT (vPro / Centrino Pro) should be available at http://wiki.debian.org/AMT -- Frank Lin PIAT Fri, 26 Oct 2007 20:27:57 +0200 debian/patches/0000775000000000000000000000000012317363667010635 5ustar debian/patches/series0000664000000000000000000000005712317363667012054 0ustar 30_manpage_getty.diff fixSOLdisconnects.patch debian/patches/fixSOLdisconnects.patch0000664000000000000000000001127212317363667015262 0ustar Description: fix SOL disconnects due to 0x29 message amtterm disconnects with the following error. amtterm: RUN_SOL -> ERROR (failure) amtterm: ERROR: redir_data: unknown r->buf 0x29 This has already been resolved upstream via 6d5a429a and 0ece513 which provide support for 0x29 message, to avoid errant disconnects. Author: Dave Chiluk --- Origin: upstream, https://www.kraxel.org/cgit/amtterm/commit/?h=0ece5135fef56dbd0d94957c334655a57adb7212 Origin: upstream, https://www.kraxel.org/cgit/amtterm/commit/?h=6d5a429ab96363aeeb9a91a5ab8fddddf14e2aaa Bug-Debian: http://bugs.debian.org/681210 Bug-Ubuntu: https://launchpad.net/bugs/1301692 --- amtterm-1.3.orig/RedirectionConstants.h +++ amtterm-1.3/RedirectionConstants.h @@ -24,6 +24,8 @@ #define SOL_KEEP_ALIVE_PING 0x24 //Console to Host #define SOL_KEEP_ALIVE_PONG 0x25 //Host to Console #define SOL_DATA_TO_HOST 0x28 //Console to host +#define SOL_CONTROLS_FROM_HOST 0x29 //Host to Console + #define SOL_DATA_FROM_HOST 0x2A //Host to Console #define SOL_HEARTBEAT 0x2B @@ -33,6 +35,19 @@ #define END_SOL_REDIRECTION_LENGTH 8 #define END_SOL_REDIRECTION_REPLY_LENGTH 8 +// Control message control bits (message 0x29) +#define RTS_CONTROL 1 +#define DTR_CONTROL 2 +#define BREAK_CONTROL 4 + +// Control message status bits (message 0x29) +#define TX_OVERFLOW 1 +#define LOOPBACK_ACTIVE 2 +#define SYSTEM_POWER_STATE 4 +#define RX_FLUSH_TIMEOUT 8 +#define TESTMODE_ACTIVE 16 + + //IDER Messages Formats #define START_IDER_REDIRECTION 0x40 #define START_IDER_REDIRECTION_REPLY 0x41 --- amtterm-1.3.orig/redir.c +++ amtterm-1.3/redir.c @@ -298,6 +298,9 @@ int redir_sol_recv(struct redir *r) return bshift; } +static int in_loopback_mode = 0; +static int powered_off = 0; + int redir_data(struct redir *r) { int rc, bshift; @@ -382,6 +385,55 @@ int redir_data(struct redir *r) goto again; redir_stop(r); break; + case SOL_CONTROLS_FROM_HOST: { + bshift = r->blen; /* FIXME */ + if (r->blen < bshift) + goto again; + + /* Host sends this message to the Management Console when + * the host has changed its COM port control lines. This + * message is likely to be one of the first messages that + * the Host sends to the Console after it starts SOL + * redirection. + */ + struct controls_from_host_message *msg = (struct controls_from_host_message *) r->buf; + //printf("Type %x, control %d, status %d\n", msg->type, msg->control, msg->status); + if (msg->status & LOOPBACK_ACTIVE) { + if (r->verbose) + fprintf (stderr, "Warning, SOL device is running in loopback mode. Text input may not be accepted\n"); + in_loopback_mode = 1; + } else if (in_loopback_mode) { + if (r->verbose) + fprintf (stderr, "SOL device is no longer running in loopback mode\n"); + in_loopback_mode = 0; + } + + if (0 == (msg->status & SYSTEM_POWER_STATE)) { + if (r->verbose) + fprintf (stderr, "The system is powered off.\n"); + powered_off = 1; + } else if (powered_off) { + if (r->verbose) + fprintf (stderr, "The system is powered on.\n"); + powered_off = 0; + } + + if (r->verbose) { + if (msg->status & (TX_OVERFLOW|RX_FLUSH_TIMEOUT|TESTMODE_ACTIVE)) + fprintf (stderr, "Other unhandled status condition\n"); + + if (msg->control & RTS_CONTROL) + fprintf (stderr, "RTS is asserted on the COM Port\n"); + + if (msg->control & DTR_CONTROL) + fprintf (stderr, "DTR is asserted on the COM Port\n"); + + if (msg->control & BREAK_CONTROL) + fprintf (stderr, "BREAK is asserted on the COM Port\n"); + } + + break; + } default: snprintf(r->err, sizeof(r->err), "%s: unknown r->buf 0x%02x", __FUNCTION__, r->buf[0]); --- amtterm-1.3.orig/redir.h +++ amtterm-1.3/redir.h @@ -1,4 +1,5 @@ #include "RedirectionConstants.h" +#include enum redir_state { REDIR_NONE = 0, @@ -38,6 +39,14 @@ struct redir { int (*cb_recv)(void *cb_data, unsigned char *buf, int len); }; +struct __attribute__ ((__packed__)) controls_from_host_message { + unsigned char type; // 0x29 + unsigned char reserved[3]; + uint32_t host_sequence_number; + unsigned char control; + unsigned char status; +}; + const char *redir_state_name(enum redir_state state); const char *redir_state_desc(enum redir_state state); debian/patches/30_manpage_getty.diff0000664000000000000000000000062111630461465014604 0ustar patch by Frank Lin PIAT adapt examples to debian. --- a/amt-howto.man +++ b/amt-howto.man @@ -80,7 +80,7 @@ additional serial port, like this on my Edit initab, add a line like this: .P .nf - S2:2345:respawn:/sbin/agetty ttyS2 115200 vt100-nav + T2:2345:respawn:/sbin/getty ttyS2 115200 vt100-nav .fi .P You should add the serial port to /etc/securetty too so you are able debian/source/0000775000000000000000000000000011630464173010475 5ustar debian/source/format0000664000000000000000000000001411630464173011703 0ustar 3.0 (quilt) debian/gamt.install0000664000000000000000000000011311630461465011511 0ustar usr/bin/gamt usr/share/applications/gamt.desktop usr/share/man/man1/gamt.1