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
Eli
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.