Koozali.org: home of the SME Server

AsteriskPBX

duncan

AsteriskPBX
« Reply #75 on: July 19, 2004, 01:10:48 PM »
I have updated the Asterisk rpm to smeserver-asterisk-1.0-RC1.i686.rpm.

You can grab it here

Back up your config files before installing. Enjoy - let me know of any problems.

Regards Duncan

jonvee

Help with drivers
« Reply #76 on: July 20, 2004, 04:47:48 PM »
Duncan,

Great job on the Asterisk rpm. Works great. Am having trouble compling the drivers (zaptel, libpri, zapata).

Can you help?

JV

Offline charlien

  • ****
  • 88
  • +0/-0
    • http://www.rn-computing.com
AsteriskPBX
« Reply #77 on: July 20, 2004, 09:25:50 PM »
Quote from: "duncan"
I have updated the Asterisk rpm to smeserver-asterisk-1.0-RC1.i686.rpm.

You can grab it here

Back up your config files before installing. Enjoy - let me know of any problems.

Regards Duncan


Will this rpm work with Athlon processors? I just installed Asterisk on another computer but want to run it on my SME server (which is an Athlon).

Charlie
...

jonvee

Asterisk on Athlon
« Reply #78 on: July 20, 2004, 11:40:06 PM »
Charlie,

I am running it on an Athlon XP1800.

Just download Duncan's rpm and install. Works great.

Would be even more wonderful if I could compile the drivers for the cards I bought from Digium!

JV

duncan

AsteriskPBX
« Reply #79 on: July 21, 2004, 12:37:28 AM »
I will have a go at compiling the drivers this afternoon and see whats what.

This build contains the firmware for Digiums IAXy unit. Unfortunatly we cant get them yet down here, but they look like being a good option for remote users.

jonvee

AsteriskPBX
« Reply #80 on: July 21, 2004, 02:39:32 AM »
Duncan,

Got through all the complie stuff, but...

the drivers won't load with modprobe. Something about the version of the kernel not matching the version of the modules.

Am sure it's something I'm doing wrong but am not a whiz on this yet.

JV

duncan

AsteriskPBX
« Reply #81 on: July 21, 2004, 02:48:23 AM »
Where did you get the drivers from ?

jonvee

Driver Compile
« Reply #82 on: July 21, 2004, 03:53:43 AM »
Duncan,

Driver from Digium CVS

cd /usr/src
export CVSROOT=:pserver:anoncvs@cvs.digium.com:/usr/cvsroot
cvs login

Then:

cvs checkout zaptel libpri

Here's what I've done so far.

1. Installed kernel source rpm from the 6.0 release. This puts a bunch of patch files
and a tar.bz2 file in /usr/src/redhat/SOURCES.

2. Uncompressed the bz2 file with bunzip2.

3. Extracted tar file. Puts files in /usr/src/redhat/SOURCES/linux-2.4.20

4. Digium "make" script needs soft link to kernel sources. So, "cd to /usr/src".
Then "ln -s /usr/src/redhat/SOURCES/linux-2.4.20 linux".

5. Check soft link with "ls -ld /usr/src/linux". Should see the link.

6. Create the kernel config file. "cd /usr/src/linux" then "make menuconfig".
At the bottom of the menu is Load alternate configuration file. Select that option
and enter "/boot/config-2.4.20-18.7". Then back to main menu and select Save alternate
configuration file. (Note: I think this may be the problem with the mismatch error
message when I try to modprobe the driver). Enter "/arch/i386/defconfig" then OK to
save. Exit menu.

7. Enter "make dep". Bunch of stuff flashes by for a minute or so. This is suppose to
create the modversions.h file that zaptel needs.

8. Then "cd /usr/src/zaptel". "make clean" then "make install" (Note: this is where
things go south on me. Get error messages about unresolved symbols)

See Digium FAQ -
http://digium.com/index.php?menu=faq#Installation_0

JV

duncan

AsteriskPBX
« Reply #83 on: July 21, 2004, 06:27:59 AM »
You are making things a bit hard for yourself. I will do a zaptel howto (just did a quick install on a test machine) and add it to my contribs directory.

duncan

AsteriskPBX
« Reply #84 on: July 21, 2004, 10:47:22 AM »

jonvee

Zaptel Drivers
« Reply #85 on: July 21, 2004, 12:03:28 PM »
Duncan,

Thanks for the great howto. Much easier than what I struggled with and more complete.

Still end up at the same spot though. Here's what I get when I try to load the driver with modprobe:

# modprobe wcfxo
/lib/modules/2.4.20-18.7/misc/zaptel.o: kernel-module version mismatch
        /lib/modules/2.4.20-18.7/misc/zaptel.o was compiled for kernel version 2.4.20-18.7custom
        while this kernel is version 2.4.20-18.7.
/lib/modules/2.4.20-18.7/misc/zaptel.o: insmod /lib/modules/2.4.20-18.7/misc/zaptel.o failed
/lib/modules/2.4.20-18.7/misc/zaptel.o: insmod wcfxo failed

Also when I run depmod:

# depmod -a
depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.7-e-smith/kernel/drivers/net/ppp_generic.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.7/misc/tor2.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.7/misc/torisa.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.7/misc/wcfxo.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.7/misc/wcfxs.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.7/misc/wct1xxp.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.7/misc/wct4xxp.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.7/misc/wcusb.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.7/misc/zaptel.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.7/misc/ztd-eth.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.7/misc/ztdynamic.o

Tried to force insmod to load the driver with same result.

Suggestions?

JV

duncan

AsteriskPBX
« Reply #86 on: July 21, 2004, 12:33:58 PM »
You probably need to look in the Kernel Makefile and get rid of the "custom" bit at the top.

Duncan

jonvee

AsteriskPBX
« Reply #87 on: July 21, 2004, 02:07:30 PM »
Duncan,

Removing the custom bit in the Makefile solved that problem.

Now it down to this:

/sbin/depmod -a
depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.7-e-smith/kernel/drivers/net/ppp_generic.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.7/misc/tor2.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.7/misc/torisa.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.7/misc/wcfxo.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.7/misc/wcfxs.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.7/misc/wct1xxp.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.7/misc/wct4xxp.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.7/misc/wcusb.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.7/misc/zaptel.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.7/misc/ztd-eth.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-18.7/misc/ztdynamic.o
[ -f /etc/zaptel.conf ] || install -m 644 zaptel.conf.sample /etc/zaptel.conf
[root@zythian2 zaptel]# modprobe wcfxo
/lib/modules/2.4.20-18.7/misc/zaptel.o: unresolved symbol proc_mkdir_Rsmp_caa5a36f
/lib/modules/2.4.20-18.7/misc/zaptel.o: unresolved symbol create_proc_entry_Rsmp_43b0d544
/lib/modules/2.4.20-18.7/misc/zaptel.o: unresolved symbol __write_lock_failed
/lib/modules/2.4.20-18.7/misc/zaptel.o: unresolved symbol register_chrdev_Rsmp_d52e100f
/lib/modules/2.4.20-18.7/misc/zaptel.o: unresolved symbol request_module_Rsmp_27e4dc04
/lib/modules/2.4.20-18.7/misc/zaptel.o: unresolved symbol remove_wait_queue_Rsmp_c3bb9b34
/lib/modules/2.4.20-18.7/misc/zaptel.o: unresolved symbol add_wait_queue_Rsmp_51c5cc8e
/lib/modules/2.4.20-18.7/misc/zaptel.o: unresolved symbol __generic_copy_to_user_Rsmp_d523fdd3
/lib/modules/2.4.20-18.7/misc/zaptel.o: unresolved symbol unregister_chrdev_Rsmp_c192d491
/lib/modules/2.4.20-18.7/misc/zaptel.o: unresolved symbol sprintf_Rsmp_1d26aa98
/lib/modules/2.4.20-18.7/misc/zaptel.o: unresolved symbol __read_lock_failed
/lib/modules/2.4.20-18.7/misc/zaptel.o: unresolved symbol __wake_up_Rsmp_127fda83
/lib/modules/2.4.20-18.7/misc/zaptel.o: unresolved symbol printk_Rsmp_1b7d4074
/lib/modules/2.4.20-18.7/misc/zaptel.o: unresolved symbol kfree_Rsmp_037a0cba
/lib/modules/2.4.20-18.7/misc/zaptel.o: unresolved symbol kmalloc_Rsmp_93d4cfe6
/lib/modules/2.4.20-18.7/misc/zaptel.o: unresolved symbol remove_proc_entry_Rsmp_5607dea6
/lib/modules/2.4.20-18.7/misc/zaptel.o: unresolved symbol schedule_Rsmp_4292364c
/lib/modules/2.4.20-18.7/misc/zaptel.o: unresolved symbol __generic_copy_from_user_Rsmp_116166aa
/lib/modules/2.4.20-18.7/misc/zaptel.o: unresolved symbol __pollwait_Rsmp_c50c8dc7
/lib/modules/2.4.20-18.7/misc/zaptel.o: insmod /lib/modules/2.4.20-18.7/misc/zaptel.o failed
/lib/modules/2.4.20-18.7/misc/zaptel.o: insmod wcfxo failed

When I run the make oldconfig, am I suppose to hit enter or do I have to enter 'y' each time?

JV

jonvee

More Zaptel Stuff
« Reply #88 on: July 21, 2004, 02:13:02 PM »
Duncan,

Found this in the Digium lists:

Oliver,

Thanks. That was the problem. I removed the linux and asm include
directories and linked them to the kernel source directories.

Gregg

On Sun, 2003-05-11 at 06:45, The Traveller wrote:
> Yo Gregg,
>
> Did you recently upgrade your kernel?
> You might be building against the wrong kernel-headers.  Check if the
> kernel you're running was actually built from the sources you have
> in "/usr/src/linux/" and if "/usr/include/linux" and "/usr/include/asm"
> are symlinks to the appropriate places in this source-tree.  Some
> distributions place the files there directly instead of symlinking, which
> goes wrong when you choose to compile your own kernel.
>
>
>
>     Grtz,
>
>       Oliver
>
> On Fri, May 09, 2003 at 22:30:04 -0400, Gregg Lebovitz wrote:
>
> > I am building asterisk in the same way I have done it in the past.
> > Recently, I started seeing errors when the zaptel 'make install' does a
> > depmod -a.

Tried it but no go.

JV

jonvee

When all else fails...
« Reply #89 on: July 21, 2004, 10:24:09 PM »
Duncan,

I've learned over the years that sometimes you have to start at the beginning, so I did a fresh install of 6.01 and used your directions.

I now have green lights on the Digium cards!

Thanks again. Send me an email as I would like to get you something for your help.

JV