Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xx


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
rentorbuy at yahoo.com
Guest





PostPosted: Tue Jan 01, 2008 1:24 pm    Post subject: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xx Reply with quote

Hi,

Before I report a bug on http://bugs.digium.com, I
would like to know if someone is seeing the same error
message.

Personally I am not using wctdm24xxp but other modules
such as wcte12xp and wctdm. The latter modules load
fine and are compiled with pci_register_driver as
expected.

The only module that seems to require the deprecated
function pci_module_init is wctdm24xxp.

Is this normal?

Thanks,

Vieri

____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Back to top
tzafrir.cohen at xorco...
Guest





PostPosted: Tue Jan 01, 2008 1:33 pm    Post subject: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xx Reply with quote

On Tue, Jan 01, 2008 at 10:24:24AM -0800, Vieri wrote:
Quote:
Hi,

Before I report a bug on http://bugs.digium.com, I
would like to know if someone is seeing the same error
message.

Personally I am not using wctdm24xxp but other modules
such as wcte12xp and wctdm. The latter modules load
fine and are compiled with pci_register_driver as
expected.

The only module that seems to require the deprecated
function pci_module_init is wctdm24xxp.

Is it a custom kernel that has no PCI support?

--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Back to top
rentorbuy at yahoo.com
Guest





PostPosted: Tue Jan 01, 2008 1:49 pm    Post subject: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xx Reply with quote

--- Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:

Quote:
Is it a custom kernel that has no PCI support?

It's a custom 2.6.22 with

# grep -i pci /usr/src/linux/.config
# Bus options (PCI, PCMCIA, EISA, MCA, ISA)
CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GOMMCONFIG is not set
# CONFIG_PCI_GODIRECT is not set
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_MMCONFIG=y
CONFIG_PCIEPORTBUS=y
CONFIG_PCIEAER=y
# CONFIG_PCI_MSI is not set
CONFIG_EISA_PCI_EISA=y
# CONFIG_HOTPLUG_PCI is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_IDEPCI_PCIBUS_ORDER=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_PATA_CMD640_PCI is not set
# CONFIG_IEEE1394_PCILYNX is not set
CONFIG_NET_PCI=y
CONFIG_NE2K_PCI=m
CONFIG_TMSPCI=m
CONFIG_PCI200SYN=m
CONFIG_DSCC4_PCISYNC=y
CONFIG_DSCC4_PCI_RST=y
CONFIG_ISDN_DRV_AVMB1_B1PCI=m
CONFIG_ISDN_DRV_AVMB1_B1PCIV4=y
CONFIG_ISDN_DRV_AVMB1_T1PCI=m
CONFIG_ISDN_DIVAS_BRIPCI=y
CONFIG_ISDN_DIVAS_PRIPCI=y
CONFIG_SERIO_PCIPS2=m
CONFIG_SERIAL_8250_PCI=y

____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Back to top
rentorbuy at yahoo.com
Guest





PostPosted: Wed Jan 02, 2008 2:38 am    Post subject: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xx Reply with quote

If you have zaptel 1.2.22.1 and kernel 2.6.22 could
you please do the following and see if it does the
same for you?

# modprobe wctdm24xxp
FATAL: Error inserting wctdm24xxp
(/lib/modules/2.6.22-gentoo-r9/misc/wctdm24xxp.ko):
Unknown symbol in module, or unknown parameter (see
dmesg)

dmesg:
wctdm24xxp: Unknown symbol pci_module_init

Thanks

Vieri
--- Vieri <rentorbuy at yahoo.com> wrote:

Quote:
Hi,

Before I report a bug on http://bugs.digium.com, I
would like to know if someone is seeing the same
error
message.

Personally I am not using wctdm24xxp but other
modules
such as wcte12xp and wctdm. The latter modules load
fine and are compiled with pci_register_driver as
expected.

The only module that seems to require the deprecated
function pci_module_init is wctdm24xxp.

Is this normal?

Thanks,

Vieri

____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
Back to top
asterisk01 at in-put.de
Guest





PostPosted: Wed Jan 02, 2008 4:31 am    Post subject: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xx Reply with quote

Hi,

Quote:

The only module that seems to require the deprecated
function pci_module_init is wctdm24xxp.

I had the same problem, when I tried to compile the driver for an
EICON/DIALOGIC card.
I'm not a kernel expert, but with a number of other postings I found
out, that with kernel version 2.6.22 that following had changed:

Instead of "pci_module_init" the driver has to use
"pci_register_driver". Kernel 2.6.22 obviously doesn't use
"pci_module_init" anymore.
Well I suggest you either use kernel version 2.6.20 or you replace
"pci_module_init" with "pci_register_driver" in wctdm24xxp.

Stefan
--

********************************************
in-put GbR - Das Linux-Systemhaus
Stefan-Michael Guenther
Geschaeftsfuehrer
Moltkestrasse 49 D-76133 Karlsruhe
Tel./Fax : +49 (0)721 / 83044 - 98/93
http://www.in-put.de
********************************************
Schulungen Installationen
Beratung Support
Voice-over-IP-Loesungen
********************************************
Back to top
tzafrir.cohen at xorco...
Guest





PostPosted: Wed Jan 02, 2008 5:02 am    Post subject: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xx Reply with quote

On Wed, Jan 02, 2008 at 10:31:17AM +0100, Stefan Guenther wrote:
Quote:
Hi,

Quote:

The only module that seems to require the deprecated
function pci_module_init is wctdm24xxp.

I had the same problem, when I tried to compile the driver for an
EICON/DIALOGIC card.
I'm not a kernel expert, but with a number of other postings I found
out, that with kernel version 2.6.22 that following had changed:

Instead of "pci_module_init" the driver has to use
"pci_register_driver". Kernel 2.6.22 obviously doesn't use
"pci_module_init" anymore.
Well I suggest you either use kernel version 2.6.20 or you replace
"pci_module_init" with "pci_register_driver" in wctdm24xxp.

But zaptel has fixed this in around zaptel 1.2.20 / 1.4.5, IIRC.

Check for the macro zap_pci_module . Maybe it is incorrectly defined for
your kernel for some reason.

--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Back to top
rentorbuy at yahoo.com
Guest





PostPosted: Wed Jan 02, 2008 5:19 am    Post subject: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xx Reply with quote

--- Stefan Guenther <asterisk01 at in-put.de> wrote:

Quote:
Hi,

Quote:

The only module that seems to require the
deprecated
Quote:
function pci_module_init is wctdm24xxp.

I had the same problem, when I tried to compile the
driver for an
EICON/DIALOGIC card.
I'm not a kernel expert, but with a number of other
postings I found
out, that with kernel version 2.6.22 that following
had changed:

Instead of "pci_module_init" the driver has to use
"pci_register_driver". Kernel 2.6.22 obviously
doesn't use
"pci_module_init" anymore.
Well I suggest you either use kernel version 2.6.20
or you replace
"pci_module_init" with "pci_register_driver" in
wctdm24xxp.

Thanks but I "suppose" that it's zaptel.h's job to do
that, ie.:
File: zaptel.h

#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)
#define zap_pci_module pci_register_driver
#else
#define zap_pci_module pci_module_init
#endif

and all C files seem to call it right:

./pciradio.c: res =
zap_pci_module(&pciradio_driver);
./tor2.c: res = zap_pci_module(&tor2_driver);
./wcfxo.c: res = zap_pci_module(&wcfxo_driver);
./wct1xxp.c: res = zap_pci_module(&t1xxp_driver);
./wct4xxp/base.c: res =
zap_pci_module(&t4_driver);
./wctc4xxp/base.c: res =
zap_pci_module(&wcdte_driver);
./wctdm.c: res = zap_pci_module(&wctdm_driver);
./wctdm24xxp/base.c: res =
zap_pci_module(&wctdm_driver);
./wcte11xp.c: res = zap_pci_module(&t1xxp_driver);
./wcte12xp.c: res = zap_pci_module(&te12xp_driver);

So at compile time, something screws up ("if"
conditional in zaptel.h?) and wctdm24xxp.ko calls
pci_module_init instead of pci_register_driver.

Looks like a bug in the zaptel build/make process.

____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Back to top
rentorbuy at yahoo.com
Guest





PostPosted: Wed Jan 02, 2008 5:26 am    Post subject: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xx Reply with quote

--- Vieri <rentorbuy at yahoo.com> wrote:
Quote:
--- Stefan Guenther <asterisk01 at in-put.de> wrote:

Quote:
Hi,

Quote:

The only module that seems to require the
deprecated
Quote:
function pci_module_init is wctdm24xxp.

I had the same problem, when I tried to compile
the
Quote:
driver for an
EICON/DIALOGIC card.
I'm not a kernel expert, but with a number of
other
Quote:
postings I found
out, that with kernel version 2.6.22 that
following
Quote:
had changed:

Instead of "pci_module_init" the driver has to use

Quote:
"pci_register_driver". Kernel 2.6.22 obviously
doesn't use
"pci_module_init" anymore.
Well I suggest you either use kernel version
2.6.20
Quote:
or you replace
"pci_module_init" with "pci_register_driver" in
wctdm24xxp.

Thanks but I "suppose" that it's zaptel.h's job to
do
that, ie.:
File: zaptel.h

#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)
#define zap_pci_module pci_register_driver
#else
#define zap_pci_module pci_module_init
#endif

and all C files seem to call it right:

./pciradio.c: res =
zap_pci_module(&pciradio_driver);
./tor2.c: res = zap_pci_module(&tor2_driver);
./wcfxo.c: res = zap_pci_module(&wcfxo_driver);
./wct1xxp.c: res = zap_pci_module(&t1xxp_driver);
./wct4xxp/base.c: res =
zap_pci_module(&t4_driver);
./wctc4xxp/base.c: res =
zap_pci_module(&wcdte_driver);
./wctdm.c: res = zap_pci_module(&wctdm_driver);
./wctdm24xxp/base.c: res =
zap_pci_module(&wctdm_driver);
./wcte11xp.c: res = zap_pci_module(&t1xxp_driver);
./wcte12xp.c: res =
zap_pci_module(&te12xp_driver);

So at compile time, something screws up ("if"
conditional in zaptel.h?) and wctdm24xxp.ko calls
pci_module_init instead of pci_register_driver.

Looks like a bug in the zaptel build/make process.

Also, /usr/src/linux/include/linux/version.h has:

#define LINUX_VERSION_CODE 132630
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) <<
Cool + (c))

____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Back to top
tzafrir.cohen at xorco...
Guest





PostPosted: Wed Jan 02, 2008 6:32 am    Post subject: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xx Reply with quote

On Wed, Jan 02, 2008 at 02:19:08AM -0800, Vieri wrote:
Quote:

--- Stefan Guenther <asterisk01 at in-put.de> wrote:

Quote:
Hi,

Quote:

The only module that seems to require the
deprecated
Quote:
function pci_module_init is wctdm24xxp.

I had the same problem, when I tried to compile the
driver for an
EICON/DIALOGIC card.
I'm not a kernel expert, but with a number of other
postings I found
out, that with kernel version 2.6.22 that following
had changed:

Instead of "pci_module_init" the driver has to use
"pci_register_driver". Kernel 2.6.22 obviously
doesn't use
"pci_module_init" anymore.
Well I suggest you either use kernel version 2.6.20
or you replace
"pci_module_init" with "pci_register_driver" in
wctdm24xxp.

Thanks but I "suppose" that it's zaptel.h's job to do
that, ie.:
File: zaptel.h

#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)
#define zap_pci_module pci_register_driver
#else
#define zap_pci_module pci_module_init
#endif

and all C files seem to call it right:

./pciradio.c: res =
zap_pci_module(&pciradio_driver);
./tor2.c: res = zap_pci_module(&tor2_driver);
./wcfxo.c: res = zap_pci_module(&wcfxo_driver);
./wct1xxp.c: res = zap_pci_module(&t1xxp_driver);
./wct4xxp/base.c: res =
zap_pci_module(&t4_driver);
./wctc4xxp/base.c: res =
zap_pci_module(&wcdte_driver);
./wctdm.c: res = zap_pci_module(&wctdm_driver);
./wctdm24xxp/base.c: res =
zap_pci_module(&wctdm_driver);
./wcte11xp.c: res = zap_pci_module(&t1xxp_driver);
./wcte12xp.c: res = zap_pci_module(&te12xp_driver);

So at compile time, something screws up ("if"
conditional in zaptel.h?) and wctdm24xxp.ko calls
pci_module_init instead of pci_register_driver.

Looks like a bug in the zaptel build/make process.

Fine. So let's trace it.

(that said, I'd appreciate it if someone more familiar with the driver
would step in. I might be doing something silly)

As I cannot replicate it here, I'd like to ask you to add the following
lines to wctm24xxp/base.c right before the call to zap_pci_module():

#warning version KERNEL_VERSION.
#warning will now call function zap_pci_module().

re-run 'make' and report here what warnings you got.

--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Back to top
rentorbuy at yahoo.com
Guest





PostPosted: Wed Jan 02, 2008 7:40 am    Post subject: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xx Reply with quote

--- Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:

Quote:
As I cannot replicate it here, I'd like to ask you
to add the following
lines to wctm24xxp/base.c right before the call to
zap_pci_module():

#warning version KERNEL_VERSION.
#warning will now call function zap_pci_module().

re-run 'make' and report here what warnings you got.

I'm not familiar with the #warning syntax and don't
know why the values are not printed below:

/var/tmp/portage/net-misc/zaptel-1.2.22.1/work/zaptel-1.2.22.1/wctdm24xxp/base.c
:3627:2: warning: #warning version KERNEL_VERSION.
/var/tmp/portage/net-misc/zaptel-1.2.22.1/work/zaptel-1.2.22.1/wctdm24xxp/base.c
:3628:2: warning: #warning will now call funstion
zap_pci_module().

Maybe it's a cflags issue. I'm using:
-O2 -mtune=i686 -pipe -DSTANDALONE_ZAPATA
-DBUILDING_TONEZONE -DHOTPLUG_FIRMWARE -I. -Iinclude
-g -fPIC -Wall -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"

You may notice I use Gentoo's portage sandbox to build
(thus defined DESTDIR).
However, I did a "make" on a clean, non-patched,
directly-downloaded-from-Digium zaptel tarball and the
same thing happened.

If I write this:

#warning KERNEL_VERSION
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)
#warning Linux ver < 2.6.20
#else
#warning Linux ver >= 2.6.20
#endif

res = zap_pci_module(&wctdm_driver);

then I get this:

/var/tmp/portage/net-misc/zaptel-1.2.22.1/work/zaptel-1.2.22.1/wctdm24xxp/base.c
:3627:2: warning: #warning KERNEL_VERSION
/var/tmp/portage/net-misc/zaptel-1.2.22.1/work/zaptel-1.2.22.1/wctdm24xxp/base.c
:3631:2: warning: #warning Linux ver >= 2.6.20
If I write this:

#if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,22)
#warning kernel is 2.6.22
#else
#warning kernel is not 2.6.22
#endif
res = zap_pci_module(&wctdm_driver);

I get this:

CC [M]
/var/tmp/portage/net-misc/zaptel-1.2.22.1/work/zaptel-1.2.22.1/wctdm24xxp/base.o
/var/tmp/portage/net-misc/zaptel-1.2.22.1/work/zaptel-1.2.22.1/wctdm24xxp/base.c
:3628:2: warning: #warning kernel is 2.6.22




____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
Back to top
tzafrir.cohen at xorco...
Guest





PostPosted: Wed Jan 02, 2008 7:57 am    Post subject: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xx Reply with quote

On Tue, Jan 01, 2008 at 11:38:44PM -0800, Vieri wrote:

Quote:
# modprobe wctdm24xxp
FATAL: Error inserting wctdm24xxp
(/lib/modules/2.6.22-gentoo-r9/misc/wctdm24xxp.ko):

One other thing to check:
Maybe this one is a left-over from an older version of zaptel. It has
been moved to the subdirectory wctdm24xxp/ in versions later than 1.2.19,
I believe.

--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Back to top
rentorbuy at yahoo.com
Guest





PostPosted: Wed Jan 02, 2008 8:38 am    Post subject: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xx Reply with quote

--- Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:

Quote:
On Tue, Jan 01, 2008 at 11:38:44PM -0800, Vieri
wrote:

Quote:
# modprobe wctdm24xxp
FATAL: Error inserting wctdm24xxp

(/lib/modules/2.6.22-gentoo-r9/misc/wctdm24xxp.ko):

One other thing to check:
Maybe this one is a left-over from an older version
of zaptel. It has
been moved to the subdirectory wctdm24xxp/ in
versions later than 1.2.19,
I believe.

You're right. I have two modules, one in misc and one
in the subdir.
Thanks a lot for pointing that out.
I cleaned that up and now it loads fine.
Fortunately I didn't file a bug report.

Thanks for your help and time.

____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services