summaryrefslogtreecommitdiff
path: root/xpp/waitfor_xpds
AgeCommit message (Collapse)Author
2012-11-22xpp: improved waitfor_xpdssvn_2.6Tzafrir Cohen
* Fix an issue due to long firmware load time: - When one Astribank has an echo canceler (long firmware loading) and and another one does not. - The EC-less Astribank finishes initialization before the Astribank with EC is detected. - Thus waitfor_xpds terminates too early. * We now iteratively build two sets of serial numbers: - One from wha we see in all Xorcom (e4e4:11[3456]x) USB devices. - The other is those that were detected in the driver. - Only when the two sets are equal (and > 0) we know we are done. - This is resilient to many problems (e.g: disconnect/reconnect of same device during initialization). * The progress output was also improved: Now each detected AB show the total number so far. * The timeout was also increased to 100sec * Woraround for an Astribank with no serial (but just a single one on the system). Signed-off-by: Oron Peled <oron.peled@xorcom.com> Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10465 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/branches/2.6@10737 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-09-05xpp: waitfor_xpds: higher and configurable timeoutTzafrir Cohen
On several pathological cases we may need to wait more than 40 seconds. Make that timeout configurable. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10177 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-07-10xpp: support loading Octasic EC firmwareTzafrir Cohen
Echo Cancellation firmware is loaded by xpp/stribank_hexload (Using the oct612x code). * astribank_hexload: options -O/-o/-A for handling the Octasic echo cancellation firmware. * astribank_tool: report that. * xpp_fxloader: Run astribank_hexload, if needed. * dahdi_perl: The EC module is an extra XPD, but not a "telephony device" and hence not a span. Deal with that. * waitfor_xpds: may need to wait a bit longer for firmware loading. Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10032 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-05-17Fix bashism (Raphael Geissert, checkbashism)Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8638 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-04xpp: Comment-only changes: copyright, keywordsTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7463 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-10-21Fix XPP_HOTPLUG_DAHDI: logic; end of init.d scriptTzafrir Cohen
'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). git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7409 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-17xpp: waitfor_xpds: Bugfix: '$((' produces a command. Ignore it.Tzafrir Cohen
Fixes a regression from the bashism fix of r6829 . xpp rev: 7323 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7021 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-13xpp: Add astribank_is_starting:Tzafrir Cohen
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. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6987 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-05Fix bashism in waitfor_xpdsTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6829 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-28xpp: if $dahdi_hardware is empty, don't use it in an error messageTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6668 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-25Properly fix usage of waitfor_xpds in non-standard settings.Tzafrir Cohen
From xpp rev. 7137. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6655 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-19dahdi.init: moved test for astribanks into waitfor_xpdsTzafrir Cohen
If the system starts with an Astribank with no firmware, the firmware loading may take a while and the Astribank only becomes ready some time after the DAHDI init script starts. This means that the test at the beginning of xpp_startup() in dahdi.init fails to find an Astribank, and the init script simply continues ignoring this. This changeset moves the testing inside the script waitfor_xpds. The script now: 1. Tests for an Astribank using dahdi_hardware and exists immediately if none found. 2. A loop (of maximum 10 seconds) waits for the first Astribank to be detected by the driver. 3. Waiting for the initialization of all the Astribanks to complete (The original waitfor_xpds) The support for the old procfs iinterface has been removed, as it has never been used with DAHDI. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6646 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-10-16xpp: userspace support for sysfx migration.Tzafrir Cohen
The userspace side of dahdi-linux r5097. * Perl modules default to using xpp sysfs but will fallback (with warning) to procfs interface. * An additional /usr/share/dahdi/waitfor_xpds to replace the line in the init.d script. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5099 a0bf4364-ded3-4de4-8d8a-66a801d63aff