[ATrpms-users] kernel modules for 2.6.22.14-72.fc6
Kevin J. Cummings
cummings at kjchome.homeip.net
Thu Dec 13 20:36:42 CET 2007
Axel Thimm wrote:
>>> Well, you need at the very least atrpms-rpm-config and
>>> kernel-header. For some kmdls you need a full kernel source tree which
>>> is outlined in Paulo's docs. But try first with kernel-headers.
>> Already done by now. I just gotta figure out how to build the modules
>> for a kernel that's installed but not yet running. I'll RTFM and give
>> it a try.
>
> Read /etc/rpm/macros.kmdl, you need to use
>
> --define '_kernel 2.6.foo-bar'
>
> and *maybe* also
>
> --define 'kmdl_kernelsrcdir /where/I/put/my/sources'
>
> (you don't need it if /lib/modules/_kernel/build already points to the
> right place.)
OK, I was able to build ieee80211 and mac80211 via the following command
lines:
> rpmbuild ieee80211-1.2.18-20.src.rpm --rebuild --target i686 --define "kmdl_userland 0" --define "_kernel 2.6.22.14-72_1.cubbi_suspend2.fc6"
> rpmbuild mac80211-9.0.4-15.src.rpm --rebuild --target i686 --define "kmdl_userland 0" --define "_kernel 2.6.22.14-72_1.cubbi_suspend2.fc6"
using rpm to install the resulting kmdls went OK, except that
mac80211-kmdl complained about:
> WARNING: /lib/modules/2.6.22.14-72_1.cubbi_suspend2.fc6/updates/net/mac80211/mac80211.ko needs unknown symbol ieee80211_led_rx
> WARNING: /lib/modules/2.6.22.14-72_1.cubbi_suspend2.fc6/updates/net/mac80211/mac80211.ko needs unknown symbol ieee80211_led_exit
> WARNING: /lib/modules/2.6.22.14-72_1.cubbi_suspend2.fc6/updates/net/mac80211/mac80211.ko needs unknown symbol ieee80211_led_init
> WARNING: /lib/modules/2.6.22.14-72_1.cubbi_suspend2.fc6/updates/net/mac80211/mac80211.ko needs unknown symbol ieee80211_led_tx
However, I can't:
> rpmbuild ipw3945-1.2.2-21.src.rpm --rebuild --target i686 --define "kmdl_userland 0" --define "_kernel 2.6.22.14-72_1.cubbi_suspend2.fc6"
here are the important lines from the build output:
> + make KSRC=/lib/modules/2.6.22.14-72_1.cubbi_suspend2.fc6/build IEEE80211_INC=/usr/include/ieee80211 'CC=gcc -I/usr/include/ieee80211'
>
> WARNING: Your kernel contains ieee80211 symbol definitions and you
> are not using the kernel's default ieee80211 subsystem. (Perhaps you
> used the out-of-tree ieee80211 subsystem's 'make install' or have
> provided a path to the ieee80211 subsystem via IEEE80211_INC.)
>
> If you wish to use the out-of-tree ieee80211 subsystem then it is
> recommended to use that projects' "make patch_kernel" facility
> and rebuild your kernel to update the Module symbol version information.
>
> Failure to do this may result in build warnings and unexpected
> behavior when running modules which rely on the ieee80211 subsystem.
>
>
> Aborting the build. You can force the build to continue by adding:
>
> IEEE80211_IGNORE_DUPLICATE=y
>
> to your make command line.
>
>
> make: *** [check_inc] Error 1
> error: Bad exit status from /home/cummings/rpmbuild/tmp/rpm-tmp.20460 (%build)
>
>
> RPM build errors:
> Bad exit status from /home/cummings/rpmbuild/tmp/rpm-tmp.20460 (%build)
So, I gather that there's something else I need to add to the command
line? Or do I need to modify the .spec file?
--
Kevin J. Cummings
kjchome at rcn.com
cummings at kjchome.homeip.net
cummings at kjc386.framingham.ma.us
Registered Linux User #1232 (http://counter.li.org)
More information about the atrpms-users
mailing list