Sean Kennedy
2004-Nov-10 18:31 UTC
[Asterisk-Users] Zaptel module load errors under stock Fedora Core 2 (2.6.8-1.521 kernel )
Hi folks, start to finish, this is what I did: cd /usr/src/linux-2.6.8-1.521 make prepare-all cd .. wget http://www.asterisk.org/zaptel-1.0.0.tar.gz tar xfsz zaptel-1.0.0.tar.gz cd zaptel-1.0.0 less README less README.Linux26 ( see, I really did RTFM ;) ) ln -s /usr/src/linux-2.6.8-1.521 /usr/src/linux-2.6 mv /lib/modules/`uname -r`/build /lib/modules/`uname -r`/build.bak ( There was a preexisting build directory ) ln -s /usr/src/linux-2.6.8-1.521 /lib/modules/`uname -r`/build make linux26 make install modprobe wcfxo And this is what I get when I try to load the modules: WARNING: Error inserting zaptel (/lib/modules/2.6.8-1.521/misc/zaptel.ko): Invalid module format WARNING: Error inserting zaptel (/lib/modules/2.6.8-1.521/misc/zaptel.ko): Invalid module format FATAL: Error inserting wcfxo (/lib/modules/2.6.8-1.521/misc/wcfxo.ko): Invalid module format FATAL: Error running install command for wcfxo And this shows up in my /var/log/messages: Nov 10 17:25:35 firewall kernel: zaptel: version magic '2.6.8-1.521custom 686 REGPARM 4KSTACKS gcc-3.3' should be '2.6.8-1.521 686 REGPARM 4KSTACKS gcc-3.3' Nov 10 17:26:11 firewall kernel: zaptel: version magic '2.6.8-1.521custom 686 REGPARM 4KSTACKS gcc-3.3' should be '2.6.8-1.521 686 REGPARM 4KSTACKS gcc-3.3' Nov 10 17:26:11 firewall kernel: zaptel: version magic '2.6.8-1.521custom 686 REGPARM 4KSTACKS gcc-3.3' should be '2.6.8-1.521 686 REGPARM 4KSTACKS gcc-3.3' Nov 10 17:26:11 firewall kernel: wcfxo: version magic '2.6.8-1.521custom 686 REGPARM 4KSTACKS gcc-3.3' should be '2.6.8-1.521 686 REGPARM 4KSTACKS gcc-3.3' Me being me, and this being a test machine, I tried `modprobe -f wcfxo`, and this is what I got: FATAL: Error inserting wcfxo (/lib/modules/2.6.8-1.521/misc/wcfxo.ko): Invalid module format FATAL: Error running install command for wcfxo Now, as to what I am trying to do: I have a generic intel 537 card that I was hoping to use as a generic fxo(?). It works on Suse 9.1, but I am running into problems on this fc2 box. I imagine if I can just get the zaptel module to load without any brute force, I'd be ok. Any help that can be offered I greatly apprecaite. Sean Kennedy
Adam Fineberg
2004-Nov-10 18:45 UTC
[Asterisk-Users] Zaptel module load errors under stock Fedora Core 2 (2.6.8-1.521 kernel )
This appears to be a module version mismatch. Notice that the kernel is linux-2.6.8-1.521 but the modules are 2.6.8-1.521custom. This means you need to remake your modules or your kernel to get them to match. Also, you should try rebuilding the kernel with preemption turned off. It helps avoid a zaptel crash. Adam Sean Kennedy wrote:> Hi folks, start to finish, this is what I did: > cd /usr/src/linux-2.6.8-1.521 > make prepare-all > cd .. > wget http://www.asterisk.org/zaptel-1.0.0.tar.gz > tar xfsz zaptel-1.0.0.tar.gz > cd zaptel-1.0.0 > less README > less README.Linux26 ( see, I really did RTFM ;) ) > ln -s /usr/src/linux-2.6.8-1.521 /usr/src/linux-2.6 > mv /lib/modules/`uname -r`/build /lib/modules/`uname -r`/build.bak ( > There was a preexisting build directory ) > ln -s /usr/src/linux-2.6.8-1.521 /lib/modules/`uname -r`/build > make linux26 > make install > modprobe wcfxo > > And this is what I get when I try to load the modules: > WARNING: Error inserting zaptel > (/lib/modules/2.6.8-1.521/misc/zaptel.ko): Invalid module format > WARNING: Error inserting zaptel > (/lib/modules/2.6.8-1.521/misc/zaptel.ko): Invalid module format > FATAL: Error inserting wcfxo (/lib/modules/2.6.8-1.521/misc/wcfxo.ko): > Invalid module format > FATAL: Error running install command for wcfxo > > And this shows up in my /var/log/messages: > Nov 10 17:25:35 firewall kernel: zaptel: version magic > '2.6.8-1.521custom 686 REGPARM 4KSTACKS gcc-3.3' should be > '2.6.8-1.521 686 REGPARM 4KSTACKS gcc-3.3' > Nov 10 17:26:11 firewall kernel: zaptel: version magic > '2.6.8-1.521custom 686 REGPARM 4KSTACKS gcc-3.3' should be > '2.6.8-1.521 686 REGPARM 4KSTACKS gcc-3.3' > Nov 10 17:26:11 firewall kernel: zaptel: version magic > '2.6.8-1.521custom 686 REGPARM 4KSTACKS gcc-3.3' should be > '2.6.8-1.521 686 REGPARM 4KSTACKS gcc-3.3' > Nov 10 17:26:11 firewall kernel: wcfxo: version magic > '2.6.8-1.521custom 686 REGPARM 4KSTACKS gcc-3.3' should be > '2.6.8-1.521 686 REGPARM 4KSTACKS gcc-3.3' > > Me being me, and this being a test machine, I tried `modprobe -f > wcfxo`, and this is what I got: > FATAL: Error inserting wcfxo (/lib/modules/2.6.8-1.521/misc/wcfxo.ko): > Invalid module format > FATAL: Error running install command for wcfxo > > Now, as to what I am trying to do: I have a generic intel 537 card > that I was hoping to use as a generic fxo(?). It works on Suse 9.1, > but I am running into problems on this fc2 box. I imagine if I can > just get the zaptel module to load without any brute force, I'd be ok. > Any help that can be offered I greatly apprecaite. > > Sean Kennedy > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Jerry Geis
2004-Nov-11 14:24 UTC
[Asterisk-Users] Zaptel module load errors under stock Fedora Core 2 (2.6.8-1.521 kernel )
I am using stock FC3 with a T1 card from digium and have not had any problems yet... I just checked /lib/modules/XXX/build/.config and PREEMPT_VOLUNTARY=y the "service zaptel stop" and start do not work - I have to manually load modprobe wct1xxp modprobe zaptel ztcfg -vvvv It is working at this time. -- Jerry Geis MessageNet Systems 101 East Carmel Dr. Suite 105 Carmel, IN 46032 (317)566-1677 (240)282-0319 Fax
Andrew McRory
2004-Nov-11 15:06 UTC
[Asterisk-Users] Zaptel module load errors under stock Fedora Core 2 (2.6.8-1.521 kernel )
> I am using stock FC3 with a T1 card from digium and have not > had any problems yet... I just checked /lib/modules/XXX/build/.config > and PREEMPT_VOLUNTARY=y > > the "service zaptel stop" and start do not work - I have to manually load > > modprobe wct1xxp > modprobe zaptel > ztcfg -vvvv >You can fix this error by modifying the /etc/init.d/zaptel script. More details are here: ftp:/ftp.linuxsys.com/pub/releases/README Regards, -- Andrew McRory - President/CTO Linux Systems Engineers, Inc. - http://www.linuxsys.com Located in beautiful Tallahassee, Florida Office 850-224-5737 Office 850-575-7213 Mobile 850-294-7567