Requesting a howto a kmod / akmod

Orcan Ogetbil oget.fedora at gmail.com
Thu Sep 23 08:53:51 CEST 2010


On Sun, Sep 19, 2010 at 4:39 AM, Eli Wapniarski wrote:
> On Wednesday 01 September 2010 09:19:32 Orcan Ogetbil wrote:
>> On Wed, Sep 1, 2010 at 1:54 AM, Eli Wapniarski wrote:
>> > Hi
>> >
>> > I was just wondering if anyone knows of where I can find descent docs on
>> > howto build an kmod / akmod.
>> >
>> > Realtek provides drivers for the wifi 8129se but I need to rebuild the
>> > driver everytime my kernel is updated.
>> >
>> > Any advise on how to build a kmod / akmod be greatly appreciated.
>>
>> There is a page in wiki that I once used to build my first package
>> (rt2870-kmod) for RPMFusion:
>> http://rpmfusion.org/Packaging/KernelModules/Kmods2
>>
>> It should be pretty informative. Also, check the existing kmod
>> packages for examples.
>>
>> Orcan
>
>
> Trying to create the kmods. I ran into a couple of problems
>
> 1) I had to modify the line from (--repo %{repo}):
>
>   kmodtool  --target %{_target_cpu}  --repo %{repo} --kmodname %{name} %{?buildforkernels:--%{buildforkernels}} %{?kernels:--for-kernels "%{?kernels}"} 2>/dev/null
>
> to:
>
>   kmodtool  --target %{_target_cpu}  --repo rpmfusion --kmodname %{name} %{?buildforkernels:--%{buildforkernels}} %{?kernels:--for-kernels "%{?kernels}"} 2>/dev/null
>
>
> 2) It would seem that the driver was compiled, but then it would not "make install" If I were to do this manually, of course make install works
>
>
> + rm -rf /home/eli/rpmbuild/BUILDROOT/rlt8129se-kmod-2.6.0017.0525.2010-1.fc13.1.x86_64
> + for kernel_version in 2.6.34.6-54.fc13.x86_64___/usr/src/kernels/2.6.34.6-54.fc13.x86_64
> + make install DESTDIR=/home/eli/rpmbuild/BUILDROOT/rlt8129se-kmod-2.6.0017.0525.2010-1.fc13.1.x86_64 KMODPATH=/lib/modules//2.6.34.6-54.fc13.x86_64//extra/rlt8129se/
> make: *** No rule to make target `install'.  Stop.
> error: Bad exit status from /var/tmp/rpm-tmp.PYAMQs (%install)
>
>
> Thanks for any insight
>

The guidelines are like recipes. If you don't have the right
ingredient you need to come up with a replacement. Not all Makefiles
are written the same. You may need to tweak your lines a little until
things work. It is hard to say what you need to do without looking at
your specfile. Do you have an SRPM uploaded somewhere?

Orcan


More information about the rpmfusion-developers mailing list