FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [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:

    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.

  2. #2
    d3viant Guest
    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

  3. #3
    Join Date
    Jun 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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!

  4. #4
    Join Date
    Jun 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "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.

  5. #5
    SHtRO Guest
    Reboot to the new kernel before building.

  6. #6
    Join Date
    Jun 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  7. #7
    Join Date
    Jun 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Found it: Kernel was for i686 and kernel-devel was for i586. Removed, downloaded the right version, compiled, loaded driver, done.

Similar Threads

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •