Fedora Linux Support Community & Resources Center
  #1  
Old 28th June 2006, 07:22 AM
littlebigfred Offline
Registered User
 
Join Date: Jun 2006
Posts: 20
[FC5] Upgrading kernel and sources safely?

Hello

I'm about to install FC5 using the first CD and download the rest of the stuff from the Net.

Problem is, it appears that FC5 has a bug when trying to compile the Zaptel module that is used by the open-source PBX Asterisk to use an FXO card to connect it to the phone network:

Quote:
Fedora Core 5 - Zaptel will not compile against the stock FC5 kernel, due to a bug in the kernel. You will get an error message like "module format invalid" when you try to modprobe the zaptel modules.

To make zaptel work with FC5, download an updated kernel. (As of 27 March 2006, the updated kernel has not yet been released, but can be downloaded from http://download.fedora.redhat.com/pu...tes/testing/5/.

You'll want the get both the kernel and kernel-devel RPMs for your particular architecture.) -jsmith
Does it mean that I can just download the two RPM's (kernel-devel-2.6.17-1.2139 and kernel-2.6.17-1.2139) from Fedora's site, do the usual rpm -Uvh, reboot, and choose the new kernel in the bootloader... or is it more involved?

Thank you.
Reply With Quote
  #2  
Old 28th June 2006, 10:15 AM
d3viant Offline
Registered User
 
Join Date: Jul 2004
Location: Edinburgh
Posts: 205
if you are connected to the internet, you can update the kernel and kernel-devel by typing
Code:
yum update kernel
as root. If you arent net connected then yes, just download the rpms. Although that may cause dependency errors which means you will need updated rpms of everything that conflicts. Yum handles that for you, so do it that way if you can
__________________
d3viant
Reply With Quote
  #3  
Old 28th June 2006, 02:56 PM
littlebigfred Offline
Registered User
 
Join Date: Jun 2006
Posts: 20
Quote:
Originally Posted by d3viant
if you are connected to the internet, you can update the kernel and kernel-devel by typing
Code:
yum update kernel
as root
Thx for the tip!
Reply With Quote
  #4  
Old 28th June 2006, 10:02 PM
littlebigfred Offline
Registered User
 
Join Date: Jun 2006
Posts: 20
"yum update kernel" and "yum update kernel-dev" seem to have installed OK (from 2.6.15 to 2.6.17), but I get an error when compiling the zaptel source:

Code:
[root@localhost asterisk]# ls -al
total 11132
drwxr-xr-x 4 root root     4096 Jun 28 22:22 .
drwxr-xr-x 5 root root     4096 Jun 28 22:20 ..
-rw-r--r-- 1 root root 10568287 Jun 28 22:16 asterisk-1.2.9.1.tar.gz
drwxr-xr-x 2 1000 1000     4096 Jun 28 22:21 libpri-1.2.3
-rw-r--r-- 1 root root    76348 Jun 28 22:17 libpri-1.2.3.tar.gz
drwxr-xr-x 5 1000 1000     4096 May 31 00:20 zaptel-1.2.6
-rw-r--r-- 1 root root   676658 Jun 28 22:16 zaptel-1.2.6.tar.gz

[root@localhost asterisk]# cd zaptel-1.2.6

[root@localhost zaptel-1.2.6]# make clean
rm -f torisatool makefw tor2fw.h radfw.h
rm -f ztcfg torisatool makefw ztmonitor ztspeed zttool zttest fxotune
rm -f *.o ztcfg tzdriver sethdlc sethdlc-new
rm -f zonedata.lo tonezone.lo libtonezone.so *.lo
make -C /lib/modules/2.6.15-1.2054_FC5/build SUBDIRS=/usr/src/asterisk/zaptel-1. 2.6 clean
make: *** /lib/modules/2.6.15-1.2054_FC5/build: No such file or directory.  Stop .
make: *** [clean] Error 2
[root@localhost zaptel-1.2.6]#
Anybody knows what I need to do? Do I need to reboot and choose the 2.6.17 kernel that I assume yum added to Grub?

Thank you.
Reply With Quote
  #5  
Old 28th June 2006, 10:29 PM
SHtRO Offline
Registered User
 
Join Date: Jul 2005
Posts: 178
Reboot to the new kernel before building.
__________________
Imagination is more important than knowledge.
--Albert Einstein
Reply With Quote
  #6  
Old 1st July 2006, 05:21 PM
littlebigfred Offline
Registered User
 
Join Date: Jun 2006
Posts: 20
Quote:
Originally Posted by SHtRO
Reboot to the new kernel before building.
Thx, that helped. There was also a bug in the "build" symlink iunder /lib/modules which prevented from compiling zaptel.

Unfortunately, I can't load the module:

Code:
[root@localhost asterisk]# modprobe wcfxo
WARNING: Error inserting zaptel (/lib/modules/2.6.17-1.2139_FC5/misc/zaptel.ko): Invalid module format
WARNING: Error inserting zaptel (/lib/modules/2.6.17-1.2139_FC5/misc/zaptel.ko): Invalid module format
FATAL: Error inserting wcfxo (/lib/modules/2.6.17-1.2139_FC5/misc/wcfxo.ko): Invalid module format
FATAL: Error running install command for wcfxo

[root@localhost asterisk]# modprobe zaptel
FATAL: Error inserting zaptel (/lib/modules/2.6.17-1.2139_FC5/misc/zaptel.ko): Invalid module format

[root@localhost asterisk]# dmesg | tail
zaptel: disagrees about version of symbol struct_module
wcfxo: disagrees about version of symbol struct_module
zaptel: disagrees about version of symbol struct_module
zaptel: disagrees about version of symbol struct_module
wcfxo: disagrees about version of symbol struct_module
zaptel: disagrees about version of symbol struct_module
zaptel: disagrees about version of symbol struct_module
zaptel: disagrees about version of symbol struct_module
wcfxo: disagrees about version of symbol struct_module
zaptel: disagrees about version of symbol struct_module
Any idea?
Thx.
Reply With Quote
  #7  
Old 1st July 2006, 11:53 PM
littlebigfred Offline
Registered User
 
Join Date: Jun 2006
Posts: 20
Found it: Kernel was for i686 and kernel-devel was for i586. Removed, downloaded the right version, compiled, loaded driver, done.
Reply With Quote
Reply

Tags
fc5, kernel, safely, sources, upgrading

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
after upgrading kernel, how to safely remove the old one FedorLinu Installation, Upgrades and Live Media 5 29th September 2008 07:02 PM
How can I safely remove the old kernel? xploder Alpha - Beta (Fedora 9 Only) 6 13th July 2008 10:58 PM
kernel 2.6.12-1.1372_FC3 upgrade has bad kernel sources RussellEast EOL (End Of Life) Versions 1 18th July 2005 02:27 AM
FC4 ATI/kernel sources installation. Where are the sources? Bear Knuckle EOL (End Of Life) Versions 5 18th June 2005 09:49 PM


Current GMT-time: 12:54 (Wednesday, 27-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat