[Home]

Summary:DAHLIN-00047: /dev/dahdi/1: Inappropriate ioctl for device
Reporter:Erik Smith (eeman)Labels:
Date Opened:2008-09-25 15:17:57Date Closed:2008-09-26 15:23:19
Priority:MajorRegression?No
Status:Closed/CompleteComponents:wcte12xp
Versions:2.0.0-rc5 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Centos 5.2
asterisk 1.4.22-rc5
dahdi-linux 2.0.0-rc6
dahdi-tools 2.0.0-rc3
Wildcard TE121 w/ HW Echo can

originally began TE121E testing with dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2.tar.gz . This worked perfectly with a TDM808E, replaced with a TE121+VPMADT032 and dahdi fails on startup. Upgraded dahdi-linux to rc6 and dahdi-tools to rc3 but still resulted in same problem.

[root@beta 1.4.22]# service dahdi start
Loading DAHDI hardware modules:
 wcte12xp:                                                [  OK  ]

Running dahdi_cfg:                                         [  OK  ]
/dev/dahdi/1: Inappropriate ioctl for device

dadhi commands missing from asterisk on startup (dahdi show channels, pri show spans etc)




****** ADDITIONAL INFORMATION ******

dmesg output

dahdi: Telephony Interface Registered on major 196
dahdi: Version: 2.0.0-rc6
PCI: Enabling device 0000:0f:03.0 (0310 -> 0313)
ACPI: PCI Interrupt 0000:0f:03.0[A] -> GSI 23 (level, low) -> IRQ 225
wcte12xp0: Missed interrupt. Increasing latency to 4 ms in order to compensate.
wcte12xp0: Missed interrupt. Increasing latency to 5 ms in order to compensate.
wcte12xp: VPMADT032 Loading firmware... <6>wcte12xp: Success
wcte12xp: VPM present and operational (Firmware version 107)
wcte12xp: Setting up global serial parameters for T1
wcte12xp0: Restarting board initialization after increasing latency.
wcte12xp0: Missed interrupt. Increasing latency to 6 ms in order to compensate.
ACPI: PCI interrupt for device 0000:0f:03.0 disabled
PCI: Enabling device 0000:0f:03.0 (0310 -> 0313)
ACPI: PCI Interrupt 0000:0f:03.0[A] -> GSI 23 (level, low) -> IRQ 225
wcte12xp: VPMADT032 Loading firmware... <6>wcte12xp: Success
wcte12xp: VPM present and operational (Firmware version 107)
wcte12xp: Setting up global serial parameters for T1
wcte12xp: Found a Wildcard TE121
dahdi: Registered tone zone 0 (United States / North America)
wcte12xp: Span configured for ESF/B8ZS
wcte12xp: Setting yellow alarm
wcte12xp: Clearing yellow alarm

====== dahdi_cfg -vv ============

[root@beta 1.4.22]# dahdi_cfg -vv
DAHDI Tools Version - 2.0.0-rc3

DAHDI Version: 2.0.0-rc6
Echo Canceller(s):
Configuration
======================

SPAN 1: ESF/B8ZS Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)
Channel 05: Clear channel (Default) (Slaves: 05)
Channel 06: Clear channel (Default) (Slaves: 06)
Channel 07: Clear channel (Default) (Slaves: 07)
Channel 08: Clear channel (Default) (Slaves: 08)
Channel 09: Clear channel (Default) (Slaves: 09)
Channel 10: Clear channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)
Channel 12: Clear channel (Default) (Slaves: 12)
Channel 13: Clear channel (Default) (Slaves: 13)
Channel 14: Clear channel (Default) (Slaves: 14)
Channel 15: Clear channel (Default) (Slaves: 15)
Channel 16: Clear channel (Default) (Slaves: 16)
Channel 17: Clear channel (Default) (Slaves: 17)
Channel 18: Clear channel (Default) (Slaves: 18)
Channel 19: Clear channel (Default) (Slaves: 19)
Channel 20: Clear channel (Default) (Slaves: 20)
Channel 21: Clear channel (Default) (Slaves: 21)
Channel 22: Clear channel (Default) (Slaves: 22)
Channel 23: Clear channel (Default) (Slaves: 23)
Channel 24: D-channel (Default) (Slaves: 24)

24 channels to configure.

======= /etc/dahdi/modules =======
# Contains the list of modules to be loaded / unloaded by /etc/init.d/dahdi.
#
# NOTE:  Please add/edit /etc/modprobe.d/dahdi or /etc/modprobe.conf if you
#        would like to add any module parameters.
#
# Format of this file: list of modules, each in its own line.
# Anything after a '#' is ignore, likewise trailing and leading
# whitespaces and empty lines.

# TE405P - Quad Span T1/E1 Card (5v version)
# TE410P - Quad Span T1/E1 Card (3.3v version)
#wct4xxp

# * TE120P - Single Span T1/E1 Card
wcte12xp

# T100P - Single Span T1 Card
# E100P - Single Span E1 Card
#wct1xxp

# TE110P - Single Span T1/E1 Card
#wcte11xp

# TDM2400P - Modular FXS/FXO interface (1-24 ports)
# TDM410P  - Modular FXS/FXO interface (4 ports)
# TDM800P  - Modular FXS/FXO interface (8 ports)
#wctdm24xxp

# X100P - Single port FXO interface
# X101P - Single port FXO interface
#wcfxo

# TDM400P - Modular FXS/FXO interface (1-4 ports)
#wctdm

# DAHDI timing only interface. Disabled by default, as it will be loaded
# by the init.d script in case no hardware is found.
#
# If you have no hardware, enable it and disable others.
#dahdi_dummy

# Xorcom Astribank Device
#xpp_usb

======= /etc/dahdi/system.conf =======
loadzone        = us
defaultzone     = us

span=1,1,0,esf,b8zs
bchan=1-23
dchan=24
Comments:By: Erik Smith (eeman) 2008-09-25 20:46:52

this can be closed out, it was fxotune causing the error. The /etc/fxotune.conf was left over from the TDM800 testing. Considered a way to add another check to the init script to see if wctdm or wctdm24xxp modules were loaded, but seemed more trouble than its worth.

By: Jason Parker (jparker) 2008-09-26 15:23:18

Per reporter.