Problems with Quicknet PhoneCARD on Linux 2.6.6

Fritz Reichmann fritz at reichmann.tv
Mon May 24 07:33:17 EDT 2004


Hello everyone,

I am trying to make my Quicknet Phonecard run on Linux 2.6.6, and do not
succeed. My attempts:

At first I was trying to use the Kernel drivers.

Kernel configuration:
> grep PHONE .config

CONFIG_PHONE=m
CONFIG_PHONE_IXJ=m
CONFIG_PHONE_IXJ_PCMCIA=m

pcmcia-cs-3.2.7 configuration:
> cat /etc/pcmcia/quicknet.conf

   device "ixj_pcmcia"
       module "phonedev","ixj_pcmcia"
   card "Internet PhoneCARD"
       version "Quicknet"
       bind "ixj_pcmcia"

modprobe.conf configuration:
> cat /etc/modprobe.conf | grep ixj

alias char-major-100-0 ixj_pcmcia
alias char-major-100-1 ixj_pcmcia
alias char-major-100-2 ixj_pcmcia
alias char-major-100-3 ixj_pcmcia
alias char-major-100-4 ixj_pcmcia

/var/log/messages when I insert the card:
May 24 11:48:13 linux cardmgr[1281]: socket 0: Internet PhoneCARD
May 24 11:48:13 linux kernel: Linux telephony interface: v1.00
May 24 11:48:13 linux kernel: $Id: ixj.c,v 4.7 2001/08/13 06:19:33 craigs Exp
$
May 24 11:48:13 linux cardmgr[1281]: bind 'ixj_pcmcia' to socket 0 failed:
Invalid argument

The tail of dmesg:
Linux telephony interface: v1.00
$Id: ixj.c,v 4.7 2001/08/13 06:19:33 craigs Exp $

When I try to read the device:
# cat /dev/phone0
cat: /dev/phone0: No such device

The device is the following:
# ls -l /dev/phone0
crw-rw----    1 root     users    100,   0 Jan 26 15:18 /dev/phone0

At second I tried the ixj-3.1.0-src.tar.gz package, which was the latest
release available from www.openh323.org today. I untarred it, ran "configure"
and started "make". I appended the output of the config command and the make
to this mail. It fails with, after a bunch of warnings:
telephony/ixj.c:9608: error: structure has no member named `driver_data'
make: *** [ixj.o] Error 1
The README file indicates that the driver is not really prepared to run on
 2.6 but rather on 2.4. So I think using the kernel drivers of 2.6 is the
 correct way. I just cannot get it to run.

=> I am stuck. I cannot get a running driver with neither the 2.6 kernel nor
the ixj package. Can somebody help me ?

FYI: Also posted on openh323 at openh323.org.

Thank you for any advice,

Fritz
-------------- next part --------------
checking for rmmod... /sbin/rmmod
checking for lsmod... /bin/lsmod
checking for depmod... /sbin/depmod
checking for gawk... gawk
checking for a BSD-compatible install... /usr/bin/install -c
checking for driver version... version is 3.1.0
checking running kernel version... ok (2.6.6)
checking for kernel source directory... checking for configured kernel... Found a kernel configuration file.(/usr/src/linux-2.6.6/.config)
checking for complete kernel source... yes
checking for kernel includes directory... yes (/usr/src/linux-2.6.6/include)
checking that running and kernel source versions match... yes
checking for kernel compiled with modules... yes
checking "kernel modules directory"... yes (/lib/modules/2.6.6)
checking "version symbols enabled"... No versions enabled
checking "if kernel compiled with phone module"... yes
checking "for Quicknet telephony code in kernel"... yes found phone_ixj as a module
checking "pcmcia module directory"... /lib/modules/2.6.6/pcmcia
checking "for auto ISAPNP support"... enabled
checking "for existance of pcmcia include directory"... /usr/src/linux-2.6.6/include
checking "for pcmcia card services module support"... Found pcmcia support in kernel
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ixj-config.h

Kernel include file..........:n
.............................:
Kernel source version .......:2.6.6
Kernel include dir ..........:/usr/src/linux-2.6.6/include
Kernel module dir ...........:/lib/modules/2.6.6/kernel/drivers/telephony
Kernel root module dir ......:/lib/modules/2.6.6
.............................:
Pcmcia include dir ..........:/usr/src/linux-2.6.6/include
Pcmcia module dir ...........:/lib/modules/2.6.6/pcmcia
.............................:
Has ISAPNP support in module.:y
Optional compiler flags......:
Build custom ISAPNP module...:No

-------------- next part --------------
cc  -D__KERNEL__ -DMODULE -Wall  -Werror -I. -Itelephony -I/usr/src/linux-2.6.6/include -O2 -o ixj.o -c telephony/ixj.c  -DIXJ_STANDALONE
In file included from /usr/src/linux-2.6.6/include/asm/processor.h:18,
                 from /usr/src/linux-2.6.6/include/asm/thread_info.h:16,
                 from /usr/src/linux-2.6.6/include/linux/thread_info.h:21,
                 from /usr/src/linux-2.6.6/include/linux/spinlock.h:12,
                 from /usr/src/linux-2.6.6/include/linux/capability.h:45,
                 from /usr/src/linux-2.6.6/include/linux/sched.h:7,
                 from /usr/src/linux-2.6.6/include/linux/module.h:10,
                 from telephony/ixj.c:656:
/usr/src/linux-2.6.6/include/asm/system.h: In function `__set_64bit_var':
/usr/src/linux-2.6.6/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/linux-2.6.6/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from /usr/src/linux-2.6.6/include/asm/smp.h:18,
                 from /usr/src/linux-2.6.6/include/linux/smp.h:17,
                 from /usr/src/linux-2.6.6/include/linux/sched.h:23,
                 from /usr/src/linux-2.6.6/include/linux/module.h:10,
                 from telephony/ixj.c:656:
/usr/src/linux-2.6.6/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
In file included from /usr/src/linux-2.6.6/include/asm/smp.h:18,
                 from /usr/src/linux-2.6.6/include/linux/smp.h:17,
                 from /usr/src/linux-2.6.6/include/linux/sched.h:23,
                 from /usr/src/linux-2.6.6/include/linux/module.h:10,
                 from telephony/ixj.c:656:
/usr/src/linux-2.6.6/include/asm/mpspec.h: At top level:
/usr/src/linux-2.6.6/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux-2.6.6/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux-2.6.6/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux-2.6.6/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux-2.6.6/include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not in a function)
/usr/src/linux-2.6.6/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux-2.6.6/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type'
/usr/src/linux-2.6.6/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type'
/usr/src/linux-2.6.6/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/src/linux-2.6.6/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux-2.6.6/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus'
/usr/src/linux-2.6.6/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus'
/usr/src/linux-2.6.6/include/asm/mpspec.h:43: error: `MAX_APICS' undeclared here (not in a function)
In file included from /usr/src/linux-2.6.6/include/asm/smp.h:20,
                 from /usr/src/linux-2.6.6/include/linux/smp.h:17,
                 from /usr/src/linux-2.6.6/include/linux/sched.h:23,
                 from /usr/src/linux-2.6.6/include/linux/module.h:10,
                 from telephony/ixj.c:656:
/usr/src/linux-2.6.6/include/asm/io_apic.h:160: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/src/linux-2.6.6/include/asm/io_apic.h:160: error: conflicting types for `mp_irqs'
/usr/src/linux-2.6.6/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs'
In file included from /usr/src/linux-2.6.6/include/linux/smp.h:17,
                 from /usr/src/linux-2.6.6/include/linux/sched.h:23,
                 from /usr/src/linux-2.6.6/include/linux/module.h:10,
                 from telephony/ixj.c:656:
/usr/src/linux-2.6.6/include/asm/smp.h:71:26: mach_apicdef.h: No such file or directory
In file included from /usr/src/linux-2.6.6/include/linux/smp.h:17,
                 from /usr/src/linux-2.6.6/include/linux/sched.h:23,
                 from /usr/src/linux-2.6.6/include/linux/module.h:10,
                 from telephony/ixj.c:656:
/usr/src/linux-2.6.6/include/asm/smp.h: In function `hard_smp_processor_id':
/usr/src/linux-2.6.6/include/asm/smp.h:75: warning: implicit declaration of function `GET_APIC_ID'
In file included from /usr/src/linux-2.6.6/include/linux/irq.h:20,
                 from /usr/src/linux-2.6.6/include/asm/hardirq.h:6,
                 from /usr/src/linux-2.6.6/include/linux/interrupt.h:11,
                 from telephony/ixj.c:674:
/usr/src/linux-2.6.6/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /usr/src/linux-2.6.6/include/asm/hardirq.h:6,
                 from /usr/src/linux-2.6.6/include/linux/interrupt.h:11,
                 from telephony/ixj.c:674:
/usr/src/linux-2.6.6/include/linux/irq.h: At top level:
/usr/src/linux-2.6.6/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/src/linux-2.6.6/include/linux/irq.h:72,
                 from /usr/src/linux-2.6.6/include/asm/hardirq.h:6,
                 from /usr/src/linux-2.6.6/include/linux/interrupt.h:11,
                 from telephony/ixj.c:674:
/usr/src/linux-2.6.6/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
/usr/src/linux-2.6.6/include/asm/hw_irq.h:32: error: `NR_IRQS' undeclared here (not in a function)
telephony/ixj.c: In function `ixj_kernel_safe_sleep_for':
telephony/ixj.c:1357: warning: comparison of distinct pointer types lacks a cast
telephony/ixj.c: In function `ixj_handle_sop_pu_ringing':
telephony/ixj.c:1640: warning: comparison of distinct pointer types lacks a cast
telephony/ixj.c:1650: warning: comparison of distinct pointer types lacks a cast
telephony/ixj.c: In function `ixj_hookstate':
telephony/ixj.c:2395: warning: comparison of distinct pointer types lacks a cast
telephony/ixj.c: In function `ixj_open':
telephony/ixj.c:2576: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/src/linux-2.6.6/include/linux/module.h:501)
telephony/ixj.c: In function `ixj_release':
telephony/ixj.c:2699: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/src/linux-2.6.6/include/linux/module.h:513)
telephony/ixj.c: In function `ixj_cleanup':
telephony/ixj.c:7836: error: structure has no member named `deactivate'
telephony/ixj.c: In function `ixj_probe_isapnp':
telephony/ixj.c:8042: warning: implicit declaration of function `isapnp_find_dev'
telephony/ixj.c:8042: warning: assignment makes pointer from integer without a cast
telephony/ixj.c:8048: error: structure has no member named `prepare'
telephony/ixj.c:8069: error: structure has no member named `activate'
telephony/ixj.c:8136: error: structure has no member named `serial'
telephony/ixj.c: In function `ixj_probe_pci':
telephony/ixj.c:8246: warning: `check_region' is deprecated (declared at /usr/src/linux-2.6.6/include/linux/ioport.h:121)
telephony/ixj.c: In function `ixj_init':
telephony/ixj.c:8346: warning: implicit declaration of function `pci_present'
telephony/ixj.c: In function `ixj_probe_pci_for_tigerjet':
telephony/ixj.c:9568: warning: `check_region' is deprecated (declared at /usr/src/linux-2.6.6/include/linux/ioport.h:121)
telephony/ixj.c:9608: error: structure has no member named `driver_data'
make: *** [ixj.o] Error 1


More information about the linux-pcmcia mailing list