[Asterisk-bugs] [Zaptel 0010182]: Bug in zaptel driver with wctdm24xxp in linux with serial console at 9600 bauds

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Jul 20 08:14:00 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10182 
====================================================================== 
Reported By:                nito
Assigned To:                mattf
====================================================================== 
Project:                    Zaptel
Issue ID:                   10182
Category:                   wctdm24xxp
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Zaptel Version:             1.4.4 
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        No 
Request Review:              
====================================================================== 
Date Submitted:             07-11-2007 11:44 CDT
Last Modified:              07-20-2007 08:14 CDT
====================================================================== 
Summary:                    Bug in zaptel driver with wctdm24xxp in linux with
serial console at 9600 bauds
Description: 
When you specify the console as a serial port at 9600 bauds the wctdm24xxp
driver does not load the FXS or the FXO modules.

The exact way to reproduce this is to connect via serial console to linux
and boot the kernel with the following kernel argument (console=ttyS0)

An example grub entry would be:

title           Debian GNU/Linux, kernel 2.6.18
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.18 root=/dev/sda1 ro console=ttyS0
initrd          /boot/initrd.img-2.6.18
savedefault

Tested also with versions 1.2.21 and 1.4.3.
====================================================================== 

---------------------------------------------------------------------- 
 nito - 07-20-07 08:14  
---------------------------------------------------------------------- 
Answer to Mattf:

I have tried the change you suggested. This is the line (2752 of
wctdm24xxp.c of:

if (request_irq(pdev->irq, wctdm_interrupt, SA_SHIRQ | SA_INTERRUPT,
"wctdm24xxp", wc)) {

before it was:

if (request_irq(pdev->irq, wctdm_interrupt, SA_SHIRQ, "wctdm24xxp", wc))
{

But no luck, the driver loads correctly and it works if the console is the
screen (console=tty0), but if I use the serial console (console=ttyS0) the
driver loads, but no tone on the FXS ports and when you call the external
line asterisk doesn't detect the call (that is as if the driver was not
detecting the signal).

I rebooted several times, the output was always the same, but once I got a
timeout and the error that appeared was the following (not sure if it can
give any hints):

BUG: scheduling while atomic: asterisk/0x00000001/4146
 [<c02ea8a7>] schedule+0x43/0x8f9
 [<c0136c8d>] generic_file_aio_write+0x6a/0xb3
 [<c017e9d2>] ext3_file_write+0x26/0x92
 [<f88b54dd>] schluffen+0x5d/0xa0 [wctdm24xxp]
 [<c0112810>] default_wake_function+0x0/0x15
 [<f88bd0b7>] wctdm_echocan+0x97/0x1b0 [wctdm24xxp]
 [<f88879d6>] close_channel+0x206/0x280 [zaptel]
 [<f8887a8a>] zt_specchan_release+0x3a/0x70 [zaptel]
 [<c014ebf3>] __fput+0x3d/0xf5
 [<c014c809>] filp_close+0x50/0x59
 [<c014da01>] sys_close+0x71/0x86
 [<c0102969>] sysenter_past_esp+0x56/0x79


I attach the full output on console-output.txt 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-20-07 08:14  nito           Note Added: 0067624                          
======================================================================




More information about the asterisk-bugs mailing list