[Asterisk-Users] Zaptel module load errors under stock FedoraCore 2 (2.6.8-1.521 kernel )

Adam Fineberg fineberg at levanta.com
Thu Nov 11 12:53:33 MST 2004


Steve Frank wrote:

>Please clarify:
>
>Fedore Core - build with preemption off or preemption on ? 
>  
>

Preemptable Kernel and Voluntary Kernel Preemption should both be set to off

>The way you worded it, it's almost as if you're suggesting it with it
>turned on?
>  
>

Sorry that I was so unclear.  Too much cold medcine I think :-)

>Thanks!
>
>Steve
>
>
>
>  
>
>>-----Original Message-----
>>From: asterisk-users-bounces at lists.digium.com 
>>[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of 
>>Adam Fineberg
>>Sent: Thursday, November 11, 2004 11:47 AM
>>To: Asterisk Users Mailing List - Non-Commercial Discussion
>>Subject: Re: [Asterisk-Users] Zaptel module load errors under 
>>stock FedoraCore 2 (2.6.8-1.521 kernel )
>>
>>Just a reminder, if you are using the stock fedora kernel I'd 
>>recommend rebuilding it without preemption turned off as I've 
>>experience kernel panics from the zaptel driver.  Digium tech 
>>support agrees (or at least did a few weeks ago) that is was 
>>a problem.
>>
>>Adam
>>
>>Sean Kennedy wrote:
>>
>>    
>>
>>>Got it, that was it.  Thank you so much Adam.
>>>
>>>For those searching, here's the solution:
>>>
>>>vi /usr/src/linux-2.6/Makefile
>>>
>>>Remove the word 'custom' from the version information.
>>>
>>>If you've been following along at home, you'll need to 
>>>      
>>>
>>`make clean` in 
>>    
>>
>>>the kernel source directory.  Then, `make prepare-all`.  Granted, 
>>>`make clean` probably isn't really required, but I do it 
>>>      
>>>
>>too often to 
>>    
>>
>>>avoid problems.
>>>
>>>Then, go `make clean` in the zap directory, and `make 
>>>      
>>>
>>linux26`, `make 
>>    
>>
>>>install`, and we're gold.
>>>
>>>Thanks again for your help Adam.
>>>
>>>Sean
>>>
>>>Sean Kennedy wrote:
>>>
>>>      
>>>
>>>>Thank you, Adam.  I think I see how to do that ( the 
>>>>        
>>>>
>>kernel Makefile 
>>    
>>
>>>>has that version information. So either I just change that and 
>>>>recompile zap, or I have to recompile the kernel AND zap.  
>>>>        
>>>>
>>As long as 
>>    
>>
>>>>it works, I'm happy ).
>>>>
>>>>Question:  I can force the zaptel module to load, but I 
>>>>        
>>>>
>>can't force 
>>    
>>
>>>>the wcfxo module.  Would this indicate that it's not finding the 
>>>>hardware card, or would this module load regardless of the 
>>>>        
>>>>
>>hardware 
>>    
>>
>>>>in the machine?
>>>>
>>>>Thank you again.
>>>>
>>>>Sean
>>>>
>>>>Adam Fineberg wrote:
>>>>
>>>>        
>>>>
>>>>>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
>>>>>>            
>>>>>>




More information about the asterisk-users mailing list