Greetings, I have a server I'm working on here with two tdm cards in it. 4 FXS and 4FX0. Both cards work fine on their own. The problem lies with using both in the system at once. I have verified the IRQ's are fine. I have tried switching the slots the cards reside in, no luck though. I am using ACPI but not APM. I am using gentoo latest, with vanilla 2.6(.10) kernel and udev. CVS as of CVS-HEAD-03/02/05-03:42:41. The problem is as follows: If I power up the system from system off, the cards both get detected If I reboot the system with reset button, ctrl alt del, or 'reboot' the TDM04P does not get detected. If I then reboot, then hit the power button, and let it turn off, then turn it back on again and boot, it detects both cards fine. I have tried searchign the list archives, but I have not had much luck. One person on IRC mentioned he's seen this before, but didn't have any solutions. Does anyone here know what might be the problem? or have a fix/work around? I know I shouldnt be rebooting servers, but I have to make sure it works upon reboot as it is going to be installed in a power-outtage happy part of the world :) TIA, Matts
> If I reboot the system with reset button, ctrl alt del, or 'reboot'> the TDM04P does not get detected. To completely "reset" the TDM cards before they can be reliably detected again, you may have to completely power down the machine - even to the extent of pulling out the power plug and replacing it, then booting up. Regards, Gerald.
> I have a server I'm working on here with two tdm cards in it. > 4 FXS and 4FX0. Both cards work fine on their own. The problem > lies with using both in the system at once. I have verified the > IRQ's are fine. I have tried switching the slots the cards reside in, no > luck though. I am using ACPI but not APM. I am using gentoo latest, with > vanilla 2.6(.10) kernel and udev. CVS as of CVS-HEAD-03/02/05-03:42:41. > > The problem is as follows: > > If I power up the system from system off, the cards both get detected > > If I reboot the system with reset button, ctrl alt del, or 'reboot' > the TDM04P does not get detected. > > If I then reboot, then hit the power button, and let it turn off, then > turn it back on again and boot, it detects both cards fine. > > I have tried searchign the list archives, but I have not had much luck. > One person on IRC mentioned he's seen this before, but didn't have any > solutions. > > Does anyone here know what might be the problem? or have a fix/work > around? I know I shouldnt be rebooting servers, but I have to make sure > it works upon reboot as it is going to be installed in a power-outtage > happy part of the world :)I'm not having any problems like that with RHv9 (2.4 kernel), so I'd have to guess the issue is 'timing' related in whatever script that loads your tdm-zaptel drivers. As I recall (as a non-v2.6 user), there was an issue with timing and someone added a sleep/wait statement in the startup script to bypass the problem. Might consider finding your startup and add some additional time to that sleep/wait. Another approach to isolating the problem is to load the drivers by hand paying close attention to error messages, delays, etc. If your not sure how to do that, read your startup script and simply do those steps manually. Someone mentioned unplugging power and/or removing the card. That approach is totally BS. The same startup process is run regardless of whether one is rebooting or starting from power-on. There is nothing on the tdm card that stores values (no flash, no battery backup mem, etc). If the startup script operates "one time" from any startup mode, it is setting the tdm registers, etc, correctly. I'm away from the office this week, but I recall there was a readme shipped with the zaptel source that discusses kernel 2.6 timing issues. Might look for that in your src directory.
Miguel Ruiz Velasco Sobrino
2005-Mar-02 10:02 UTC
[Asterisk-Users] Re: wctdm and two tdm cards
>> I have a server I'm working on here with two tdm cards in it. >> 4 FXS and 4FX0. Both cards work fine on their own. The problem >> lies with using both in the system at once. I have verified the >> IRQ's are fine. I have tried switching the slots the cards reside in, no >> luck though. I am using ACPI but not APM. I am using gentoo latest, with >> vanilla 2.6(.10) kernel and udev. CVS as of CVS-HEAD-03/02/05-03:42:41. >> >> The problem is as follows: >> >> If I power up the system from system off, the cards both get detected >> >> If I reboot the system with reset button, ctrl alt del, or 'reboot' >> the TDM04P does not get detected. >> >> If I then reboot, then hit the power button, and let it turn off, then >> turn it back on again and boot, it detects both cards fine. >> >> I have tried searchign the list archives, but I have not had much luck. >> One person on IRC mentioned he's seen this before, but didn't have any >> solutions. >> >> Does anyone here know what might be the problem? or have a fix/work >> around? I know I shouldnt be rebooting servers, but I have to make sure >> it works upon reboot as it is going to be installed in a power-outtage >> happy part of the world :) > >I'm not having any problems like that with RHv9 (2.4 kernel), so I'd have >to guess the issue is 'timing' related in whatever script that loads your >tdm-zaptel drivers. > >As I recall (as a non-v2.6 user), there was an issue with timing and >someone added a sleep/wait statement in the startup script to bypass the >problem. Might consider finding your startup and add some additional time >to that sleep/wait. > >Another approach to isolating the problem is to load the drivers by hand >paying close attention to error messages, delays, etc. If your not sure >how to do that, read your startup script and simply do those steps manually. > >Someone mentioned unplugging power and/or removing the card. That approach >is totally BS. The same startup process is run regardless of whether one >is rebooting or starting from power-on. There is nothing on the tdm card >that stores values (no flash, no battery backup mem, etc). If the startup >script operates "one time" from any startup mode, it is setting the tdm >registers, etc, correctly. > >I'm away from the office this week, but I recall there was a readme shipped >with the zaptel source that discusses kernel 2.6 timing issues. Might look >for that in your src directory.The approach of non-rebooting but power off and then power on (cold reboot), is NOT BS. For me had been the only way to "reboot" the server with the TDM cards. If you make a hot reboot (al least with my cards) the modprobe will have fatal errors and won't load the cards. I think it's MoBo related, maybe some kind of IRQ assignment not released. ====Miguel Ruiz Velasco Version: OpenKeyServer v1.2 Comment: Extracted from belgium.keyserver.net Signature: 0x59831109 __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/
Matt Gibson wrote:> Greetings, > > I have a server I'm working on here with two tdm cards in it. > 4 FXS and 4FX0. Both cards work fine on their own. The problem > lies with using both in the system at once. I have verified the > IRQ's are fine. I have tried switching the slots the cards reside in, > no luck though. I am using ACPI but not APM. I am using gentoo latest, > with vanilla 2.6(.10) kernel and udev. CVS as of > CVS-HEAD-03/02/05-03:42:41. > > The problem is as follows: > > If I power up the system from system off, the cards both get detected > > If I reboot the system with reset button, ctrl alt del, or 'reboot' > the TDM04P does not get detected. > > If I then reboot, then hit the power button, and let it turn off, then > turn it back on again and boot, it detects both cards fine. > > I have tried searchign the list archives, but I have not had much > luck. One person on IRC mentioned he's seen this before, but didn't > have any > solutions. > > Does anyone here know what might be the problem? or have a fix/work > around? I know I shouldnt be rebooting servers, but I have to make > sure it works upon reboot as it is going to be installed in a > power-outtage happy part of the world :) > > TIA, > Matts > >Sounds like you would be fine if the power completely drops out. but there are 2 things I can think of. In zconfig.h (in the zaptel directory) there is a line at the bottom (at least in my cvs version) /* * Uncomment if you happen have an early TDM400P Rev H which * sometimes forgets its PCI ID to have wcfxs match essentially all * subvendor ID's */ #define TDM_REVH_MATCHALL The other is a bit more involved and can be found here: http://lists.digium.com/pipermail/asterisk-users/2004-October/070000.html This might be a bit different with the newer software, but the basic idea is the same Regards Greg
Maybe Matching Threads
- issue with ivtv & wctdm zaptel drivers (TDM PCI Master abort)
- ethernet interface shares interrupts with tdm card
- module load order for Junghanns qozap and TDM card
- TDM Card loses Dialtone and Battery
- Problem installing FXS module in old digium 4 channel tdm card