summaryrefslogtreecommitdiff
path: root/xpp/xpp_fxloader
AgeCommit message (Collapse)Author
2010-05-03xpp_fxloader: make sure 1163 is not missed.Tzafrir Cohen
Merged revisions 8589 via svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/branches/2.2@8591 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-10xpp_fxloader: adapt to newer kernelsTzafrir Cohen
This commit prepares xpp_fxloader to get hotplug envirnment from newer kernel versions: * DEVICE will eventually be replaced with DEVNAME. Accept both (and look at DEVNAME first). * If we get DEVICE, we'll probably get an invalid path based at /proc/bus/usb . Fix it to use /dev/bus/usb . * While we're at it, allow using PRODUCT from the envirnment instead of from the command-line. This should allow fixing udev rules but will also work with existing rules in DAHDI-linux from trunk (for systems where they are valid). Merged revisions 7752 via svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/branches/2.2@7814 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-10xpp: Comment-only changes: copyright, keywordsTzafrir Cohen
Merged revisions 7463 via svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/branches/2.2@7813 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-19xpp: support loading USB firmware into 1163 devices as wellTzafrir Cohen
Demote some messages to debug while we're at it. Merged revisions 7596 via svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/branches/2.2@7611 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-04Add optional "hotplug mode" to init scriptsTzafrir Cohen
The hotplug mode is only used in XPP_HOTPLUG_DAHDI=yes is set in /etc/dahdi/init.conf . If it is set and the system actually has Astribanks, most of the init script will actually be run from the context of a udev event. Merged revisions 6987,7014,7334-7335,7409,7476 via svnmerge from https://origsvn.digium.com/svn/dahdi/tools/trunk ........ r6987 | tzafrir | 2009-08-13 18:15:49 +0300 (Thu, 13 Aug 2009) | 9 lines xpp: Add astribank_is_starting: astribank_is_running is used to tell when we may have an Astribank that is initializing (and may be re-enumerating and thus not listed as a device). It uses a semaphore as we can always write to one and we can't always write to a file. ........ r7014 | tzafrir | 2009-08-16 19:05:11 +0300 (Sun, 16 Aug 2009) | 4 lines xpp: A man page for astribank_is_starting xpp rev: 7321 ........ r7334 | tzafrir | 2009-10-04 15:35:51 +0200 (Sun, 04 Oct 2009) | 7 lines dahdi.init: move module loading to a separate function Move the module loading parts of the dahdi init script to a seperate function - load_modules. To be used by a later commit. There is not functional change here (but the diff is confusing). ........ r7335 | tzafrir | 2009-10-04 15:53:01 +0200 (Sun, 04 Oct 2009) | 16 lines Add XPP_HOTPLUG_DAHDI mode: cfg initiated mostly from hotplug If XPP_HOTPLUG_DAHDI=yes is set in /etc/dahdi/init.conf (which is not the default), the normal run of the 'start' operation of the dahdi init script will only be responsible for loading modules. The rest will be done (if there are indeed Astribanks on the system) by a second call to the init script once all of them have connected. The astribank_hook has also been mostly rewritten. Most of the functionality of twinstar_hook moved to it. The current twinstar_hook is a simple example script. XPP_HOTPLUG_DAHDI mode assumes that all Astribanks on the system are listed in /etc/dahdi/xpp_order (which can be generated using, e.g. 'dahdi_genconf xpporder') ........ r7409 | tzafrir | 2009-10-21 16:30:32 +0200 (Wed, 21 Oct 2009) | 21 lines Fix XPP_HOTPLUG_DAHDI: logic; end of init.d script 'Hotplug mode' was introduced in r7335. * The logic in the script was broken. - Negative logic is not such a grand idea to start with. * Interactive invocation of init.d ends when expected and not sooner. This change makes waitfor_xpds wait longer. Rather than waiting for all the Astribanks to load, it will now wait until the initialization of dahdi from the Astribanks hook script is run. This allows running e.g.: /etc/init.d/dahdi start; /etc/init.d/asterisk start It also means that 'astribank_is_starting' is actually used as a semaphore and not only as stamp file. As before, those changes have no effect if hotplug mode is not explicitly enabled (setting 'XPP_HOTPLUG_DAHDI=yes' in init.conf). ........ r7476 | tzafrir | 2009-11-04 22:12:35 +0200 (Wed, 04 Nov 2009) | 6 lines xpp: make astribank_is_starting build without warnings. autoconfig.h is needed as semtimedop() requires _GNU_SOURCE. xpp rev: 7471 ........ git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/branches/2.2@7477 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-04xpp: reduce the clutter of firmware loadingTzafrir Cohen
Make the new XPP tools much less verbose: * demote messages to be debug * Convert multi-line messages to be single-line messages Making xpp_fxloader run in debug mode can be done by setting DEBUG=yes in /etc/dahdi/init.conf Merged revisions 7221 via svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/branches/2.2@7474 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-16xpp_fxloader: exit properly when run with incorrect argumentTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6375 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-02Support for Astribanks 116x: tools partTzafrir Cohen
* New USB firmware loading mechanism. - Incompatible with previous one: upgrade using fxload or hard reset - astribank_hexload is the new low-level loading tool - fpga_load remains for backward compatibility. - xpp/astribank_upgrade: automate upgrading using fxload * Much enhanced control protocol ("MPP") - astribank_tool is the low-level tool for that. * Support for the TwinStar (dual USB port) - Managed through astribank_tool - Wrapper perl modules and scripts provided * Allow explicit ordering of Astribanks - /etc/dahdi/xpp_order - explicit order of Astribanks on the system - The default sorter is now to use those and fall back to connectors (previous default). - An option to dahdi_registration to change sorting. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6313 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-24Add some missing copyright statements in the xpp/ directory as well.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5379 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-12* xpp_fxloader: shows USB firmware version.Tzafrir Cohen
* Update PCI IDs database. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4765 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-10Well, make this a bashism formally.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4600 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-06-29dahdi_genconf configuration separated from the kernel config.Tzafrir Cohen
* Using /etc/dahdi/genconf_parameters. * A shiny new format (sample file included). * xpp_fxloader is configured from /etc/dahdi/init.conf (like the init.d script). * Yet some more string cleanups. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4484 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-06-19XPP tools rename: part 2.Tzafrir Cohen
Removed obsolete astribank_hook (not needed) and print_modes (moved to kernel). git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4416 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-06-17Move the xpp utilities to the tools side.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4374 a0bf4364-ded3-4de4-8d8a-66a801d63aff