Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: atrpms: devel

madwifi package for RHEL5

 

 

atrpms devel RSS feed   Index | Next | Previous | View Threaded


martind1111 at gmail

Jul 30, 2008, 7:28 AM

Post #1 of 3 (1447 views)
Permalink
madwifi package for RHEL5

I would like to build the madwifi RPM for a custom version of a RHEL5-based
kernel (CentOS). I have tried the madwifi RPMs that I could find on ATrpms
against a stock kernel and they work as expected. However, I can't load the
RPMs that I build on my build box. When I perform the modprobe ath_pci, I
get the following errors:

WARNING: Error inserting ath_hal
(/lib/modules/2.6.18-92.1.6.20080721.el5/updates/net/ath_hal.ko): Invalid
module format
WARNING: Error inserting wlan
(/lib/modules/2.6.18-92.1.6.20080721.el5/updates/net/wlan.ko): Invalid
module format
FATAL: Error inserting ath_pci
(/lib/modules/2.6.18-92.1.6.20080721.el5/updates/net/ath_pci.ko): Invalid
module format

I can also see the following error messages in /var/log/messages:
Jul 30 13:39:39 localhost kernel: ath_hal: disagrees about version of symbol
struct_module
Jul 30 13:39:39 localhost kernel: wlan: disagrees about version of symbol
struct_module
Jul 30 13:39:39 localhost kernel: ath_pci: disagrees about version of symbol
struct_module

This is the command I am using to build the madwifi RPMs:

rpmbuild --bb --target=i686 --define "kmdl_kernelsrcdir
/root/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.i686" --define "_kernel
2.6.18-92.1.6.20080721.el5" --define 'kmdl_userland 0' --define "dist .el5"
/root/rpmbuild/SPECS/madwifi.spec

Martin


Axel.Thimm at ATrpms

Jul 30, 2008, 7:54 AM

Post #2 of 3 (1328 views)
Permalink
Re: madwifi package for RHEL5 [In reply to]

On Wed, Jul 30, 2008 at 10:28:51AM -0400, Martin Dubuc wrote:
> I would like to build the madwifi RPM for a custom version of a RHEL5-based
> kernel (CentOS). I have tried the madwifi RPMs that I could find on ATrpms
> against a stock kernel and they work as expected. However, I can't load the
> RPMs that I build on my build box. When I perform the modprobe ath_pci, I
> get the following errors:
>
> WARNING: Error inserting ath_hal
> (/lib/modules/2.6.18-92.1.6.20080721.el5/updates/net/ath_hal.ko): Invalid
> module format
> WARNING: Error inserting wlan
> (/lib/modules/2.6.18-92.1.6.20080721.el5/updates/net/wlan.ko): Invalid
> module format
> FATAL: Error inserting ath_pci
> (/lib/modules/2.6.18-92.1.6.20080721.el5/updates/net/ath_pci.ko): Invalid
> module format

This sounds like the modules having been built aginst headers of a
different kernel than the one you are running. This can be for example
the old i586 vs i686 issue. Usually the more verbose error is given in
dmesg.

> I can also see the following error messages in /var/log/messages:
> Jul 30 13:39:39 localhost kernel: ath_hal: disagrees about version of symbol
> struct_module
> Jul 30 13:39:39 localhost kernel: wlan: disagrees about version of symbol
> struct_module
> Jul 30 13:39:39 localhost kernel: ath_pci: disagrees about version of symbol
> struct_module
>
> This is the command I am using to build the madwifi RPMs:
>
> rpmbuild --bb --target=i686 --define "kmdl_kernelsrcdir
> /root/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.i686" --define "_kernel
> 2.6.18-92.1.6.20080721.el5" --define 'kmdl_userland 0' --define "dist .el5"
> /root/rpmbuild/SPECS/madwifi.spec

The command looks OK. Is the build host an i686 system? If it is
x86_64, then the above is not enough.

And why not build against your kernel-devel package? Is your custom
kernel rpm'ized?
--
Axel.Thimm at ATrpms.net


martind1111 at gmail

Jul 30, 2008, 9:17 AM

Post #3 of 3 (1336 views)
Permalink
Re: madwifi package for RHEL5 [In reply to]

Thanks for the advice. I was building the RPM on a server that used a
different architecture. This probably was the source of the problem. I
rebuilt the RPM on a machine that used the same architecture as my target
machine and I also used kernel-devel and I am now able to load the madwifi
RPMs for my custom kernel.

Martin

On Wed, Jul 30, 2008 at 10:54 AM, Axel Thimm <Axel.Thimm [at] atrpms> wrote:

> On Wed, Jul 30, 2008 at 10:28:51AM -0400, Martin Dubuc wrote:
> > I would like to build the madwifi RPM for a custom version of a
> RHEL5-based
> > kernel (CentOS). I have tried the madwifi RPMs that I could find on
> ATrpms
> > against a stock kernel and they work as expected. However, I can't load
> the
> > RPMs that I build on my build box. When I perform the modprobe ath_pci, I
> > get the following errors:
> >
> > WARNING: Error inserting ath_hal
> > (/lib/modules/2.6.18-92.1.6.20080721.el5/updates/net/ath_hal.ko): Invalid
> > module format
> > WARNING: Error inserting wlan
> > (/lib/modules/2.6.18-92.1.6.20080721.el5/updates/net/wlan.ko): Invalid
> > module format
> > FATAL: Error inserting ath_pci
> > (/lib/modules/2.6.18-92.1.6.20080721.el5/updates/net/ath_pci.ko): Invalid
> > module format
>
> This sounds like the modules having been built aginst headers of a
> different kernel than the one you are running. This can be for example
> the old i586 vs i686 issue. Usually the more verbose error is given in
> dmesg.
>
> > I can also see the following error messages in /var/log/messages:
> > Jul 30 13:39:39 localhost kernel: ath_hal: disagrees about version of
> symbol
> > struct_module
> > Jul 30 13:39:39 localhost kernel: wlan: disagrees about version of symbol
> > struct_module
> > Jul 30 13:39:39 localhost kernel: ath_pci: disagrees about version of
> symbol
> > struct_module
> >
> > This is the command I am using to build the madwifi RPMs:
> >
> > rpmbuild --bb --target=i686 --define "kmdl_kernelsrcdir
> > /root/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.i686" --define "_kernel
> > 2.6.18-92.1.6.20080721.el5" --define 'kmdl_userland 0' --define "dist
> .el5"
> > /root/rpmbuild/SPECS/madwifi.spec
>
> The command looks OK. Is the build host an i686 system? If it is
> x86_64, then the above is not enough.
>
> And why not build against your kernel-devel package? Is your custom
> kernel rpm'ized?
> --
> Axel.Thimm at ATrpms.net
>

atrpms devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.