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

Mailing List Archive: atrpms: devel

Help nedeed - madwifi drivers for AR5007* cards for CentOS 5 prepared

 

 

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


office at plcomputers

Apr 25, 2009, 3:27 PM

Post #1 of 9 (2343 views)
Permalink
Help nedeed - madwifi drivers for AR5007* cards for CentOS 5 prepared

Hi Axel.

I created madwifi package for AR5007* Atheros radios for CentOS 5.x
using your scep file for madwifi-0.9.4.1 and I need your help to finish
it. Or better said, I have almost everything prepared and I would like
you to download the source I prepared, check it for errors, fix the
issue with 2 unpacked files (scripts) I had to comment-out from spec
file, build it and publish it at ATrpms.

Source1 and Source2 I took from mainstream madwifi, they are needed for
proper functioning, but since I am very new in rpm building, could not
understand why compiling stops (I added error message inside spec file.

I produced rpm's for 2.6.18-128.1.6 kernel (i386) and tried them (I
first uninstalled ones I build from source) and they work like the charm
several days now, so I think they are ready for deployment.

Download location for src file:
http://www.plcomputers.net/download/plc-centos5-custom/SRPMS/madwifi-0.10.5.6-1_r4003_AR5007.el5.src.rpm

I have set change log to initial build, but you are welcome to edit it
to reflect your spec file policy, but please leave my name since this is
first package I submit to any repository. until now I have rebuild
some 75 (+50 untested) rpms from various Fedora repository's
(http://www.plcomputers.net/download/plc-centos5-custom) but I have
never build from source archive.

I use your stable repository as first addition (just after the EPEL
repository) and I am very happy with it. I must say I was irritated with
all the macros (I tried to compile also for other kernels I have devel
packages for and could not find the way for it) but I know you have good
reasons for doing so.

For those liking my rebuilds, I am planing to also make public the
src.rpm's very shortly.

Thanks,
Ljubomir Ljubojevic
PL Computers
Serbia

_______________________________________________
atrpms-devel mailing list
atrpms-devel [at] atrpms
http://lists.atrpms.net/mailman/listinfo/atrpms-devel


Axel.Thimm at ATrpms

Apr 25, 2009, 4:06 PM

Post #2 of 9 (2247 views)
Permalink
Re: Help nedeed - madwifi drivers for AR5007* cards for CentOS 5 prepared [In reply to]

Hi Ljubomir,

On Sun, Apr 26, 2009 at 12:27:56AM +0200, Ljubomir Ljubojevic wrote:
> I created madwifi package for AR5007* Atheros radios for CentOS 5.x
> using your scep file for madwifi-0.9.4.1 and I need your help to finish
> it. Or better said, I have almost everything prepared and I would like
> you to download the source I prepared, check it for errors, fix the
> issue with 2 unpacked files (scripts) I had to comment-out from spec
> file, build it and publish it at ATrpms.

Usually you should post the diff and also any output errors you may
have gotten.

> Source1 and Source2 I took from mainstream madwifi, they are needed for
> proper functioning,

Then they should have a full URL pointing to the upstream sources,
otherwise no one will be able to check whether the sources are really
from madwifi.

> but since I am very new in rpm building, could not understand why
> compiling stops (I added error message inside spec file.
>
> I produced rpm's for 2.6.18-128.1.6 kernel (i386) and tried them (I
> first uninstalled ones I build from source) and they work like the
> charm several days now, so I think they are ready for deployment.

I don't quite understand, the first paragraph says you could build
them, but then you go on writing that you have been using them for
several days?

> I have set change log to initial build, but you are welcome to edit it
> to reflect your spec file policy, but please leave my name since this is
> first package I submit to any repository. until now I have rebuild
> some 75 (+50 untested) rpms from various Fedora repository's
> (http://www.plcomputers.net/download/plc-centos5-custom) but I have
> never build from source archive.

Well, the general policy for all repos, or open source projects on
general is to feed easily understandable small differences to the
source. It doesn't serve much is you change all spaces to tabs and
vice versa or any other cosmetic changes, so a diff yields half the
file. The file you sent is 238 lines long, but it has "42
insertions(+), 106 deletions(-)".

Also I think you must have used the madwifi-hal-0.10.5.6 branch. But
AFAIK this branch has been deemed dead by madwifi upstream:

http://madwifi-project.org/ticket/1192#comment:395

* status changed from assigned to closed.
* resolution set to wontfix.

HAL 0.10.5.6 won't be used in any future MadWifi release. Firstly,
it has been superseded by other HAL releases. Secondly, future
releases of MadWifi with significant changes are unlikely, because
we don't have another manpower for that. Finally, this ticket has
become a soapbox full of issues that are unrelated to the original
problem. The ticket is now closed. Please refrain from adding more
comments. For support questions please use our regular support
channels.
--
Axel.Thimm at ATrpms.net


Axel.Thimm at ATrpms

Apr 25, 2009, 4:21 PM

Post #3 of 9 (2252 views)
Permalink
Re: Help nedeed - madwifi drivers for AR5007* cards for CentOS 5 prepared [In reply to]

On Sun, Apr 26, 2009 at 02:06:55AM +0300, Axel Thimm wrote:
> On Sun, Apr 26, 2009 at 12:27:56AM +0200, Ljubomir Ljubojevic wrote:
> > I created madwifi package for AR5007* Atheros radios [...]

> Also I think you must have used the madwifi-hal-0.10.5.6 branch. But
> AFAIK this branch has been deemed dead by madwifi upstream:

It looks like AR5007* is supported in madwifi's trunk branch:

http://madwifi-project.org/changeset/3989

So please try to use the packages at

http://atrpms.net/dist/el5/madwifi-free/

They may already work for you.
--
Axel.Thimm at ATrpms.net


office at plcomputers

Apr 25, 2009, 5:09 PM

Post #4 of 9 (2237 views)
Permalink
Re: Help nedeed - madwifi drivers for AR5007* cards for CentOS 5 prepared [In reply to]

Ah, yes, I managed to get this all messy.

Axel Thimm wrote:
> Hi Ljubomir,
>
> On Sun, Apr 26, 2009 at 12:27:56AM +0200, Ljubomir Ljubojevic wrote:
>> I created madwifi package for AR5007* Atheros radios for CentOS 5.x
>> using your scep file for madwifi-0.9.4.1 and I need your help to finish
>> it. Or better said, I have almost everything prepared and I would like
>> you to download the source I prepared, check it for errors, fix the
>> issue with 2 unpacked files (scripts) I had to comment-out from spec
>> file, build it and publish it at ATrpms.
>
> Usually you should post the diff and also any output errors you may
> have gotten.
>
>> Source1 and Source2 I took from mainstream madwifi, they are needed for
>> proper functioning,
>
> Then they should have a full URL pointing to the upstream sources,
> otherwise no one will be able to check whether the sources are really
> from madwifi.
Point taken. Trouble is I had much problems with folder names in BUILD
directory so I had to shorten the name of the tarball.
I just understood what you meant, if I continue with this version, I
will add appropriate link and comment it out.

>
>> but since I am very new in rpm building, could not understand why
>> compiling stops (I added error message inside spec file.
>>
>> I produced rpm's for 2.6.18-128.1.6 kernel (i386) and tried them (I
>> first uninstalled ones I build from source) and they work like the
>> charm several days now, so I think they are ready for deployment.
>
> I don't quite understand, the first paragraph says you could build
> them, but then you go on writing that you have been using them for
> several days?
I can compile the binary rpm's for any kernel I am running currently if
I comment out installation of those 2 scripts that are needed to tell
the kernel to disable ath5k driver. So what I did was to comment it out,
compile for my current kernel and then I manually copied those 2 scripts
and rebooted.
Basically binary rpm's exist, but they need manual intervention and
explanation how to make them work so they are not ready to be published.

I am unable to compile binary rpm's for the rest of the kernels. I have
4 kernel-devel packages for 2.6.18-128.1.6, 2.6.18-128.1.6.centos.plus,
2.6.18-92.1.22.el5 and 2.6.18-92.1.22.el5.centos.plus. When I was
recompiling kvm-kmod from lfarkas repository (lacked the i386 version at
that time), I was able to pass kernel version to rpmbuild command, and I
would get kmod for given kernel. I was not able to figure out how to do
that with your macros.

>
>> I have set change log to initial build, but you are welcome to edit it
>> to reflect your spec file policy, but please leave my name since this is
>> first package I submit to any repository. until now I have rebuild
>> some 75 (+50 untested) rpms from various Fedora repository's
>> (http://www.plcomputers.net/download/plc-centos5-custom) but I have
>> never build from source archive.
>
> Well, the general policy for all repos, or open source projects on
> general is to feed easily understandable small differences to the
> source. It doesn't serve much is you change all spaces to tabs and
> vice versa or any other cosmetic changes, so a diff yields half the
> file. The file you sent is 238 lines long, but it has "42
> insertions(+), 106 deletions(-)".
>
> Also I think you must have used the madwifi-hal-0.10.5.6 branch. But
> AFAIK this branch has been deemed dead by madwifi upstream:
>
> http://madwifi-project.org/ticket/1192#comment:395
>
> * status changed from assigned to closed.
> * resolution set to wontfix.
>
> HAL 0.10.5.6 won't be used in any future MadWifi release. Firstly,
> it has been superseded by other HAL releases. Secondly, future
> releases of MadWifi with significant changes are unlikely, because
> we don't have another manpower for that. Finally, this ticket has
> become a soapbox full of issues that are unrelated to the original
> problem. The ticket is now closed. Please refrain from adding more
> comments. For support questions please use our regular support
> channels.
Yes, I have used madwifi-hal-0.10.5.6 branch, I failed to mention this.
Explanation about closed status is also true, but they are only stable
working AR5007* drivers available. They are fully functional, and I am
happy how they work.

I have received your reply about trunk version supporting AR5007*, and
that is good news, but that is work in progress. I am WISP and having
stable driver for wireless is very important. I am going to take a look
at it though.


Thanks,
Ljubomir Ljubojevic

_______________________________________________
atrpms-devel mailing list
atrpms-devel [at] atrpms
http://lists.atrpms.net/mailman/listinfo/atrpms-devel


office at plcomputers

Apr 25, 2009, 5:58 PM

Post #5 of 9 (2239 views)
Permalink
Re: Help nedeed - madwifi drivers for AR5007* cards for CentOS 5 prepared [In reply to]

Axel Thimm wrote:
> On Sun, Apr 26, 2009 at 02:06:55AM +0300, Axel Thimm wrote:
>> On Sun, Apr 26, 2009 at 12:27:56AM +0200, Ljubomir Ljubojevic wrote:
>>> I created madwifi package for AR5007* Atheros radios [...]
>
>> Also I think you must have used the madwifi-hal-0.10.5.6 branch. But
>> AFAIK this branch has been deemed dead by madwifi upstream:
>
> It looks like AR5007* is supported in madwifi's trunk branch:
>
> http://madwifi-project.org/changeset/3989
>
> So please try to use the packages at
>
> http://atrpms.net/dist/el5/madwifi-free/
>
> They may already work for you.

I am reluctant to go with the trunc version. That is beta version in
heavy progress, so who knows what they are changing and how long it will
take until stable 0.9.5 is out. It would be nice to also have this
version available, as this is the last version for AR5007 with
proprietary (and stable) HAL. If you are now willing to host it, I would
just keep it in my repository for those who decide to use that version
or need version for older kernel.

My intention was not to just add diff to existing madwifi drivers but to
create package properly marked for AR5007* owners guaranteeing them
stability.

Also, there is an problem with active ath5k driver already in current
kernel. ath5k driver tries to load on AR5007* and fails, but in the
process it prevents ath_pci driver to load the card. That is why
ath5k_blacklist-modprobe.d script is needed. Without it madwifi from rpm
will not work. I am not sure if madwifi-modprobe.d is necessary, but it
can not hurt to have it.

Can you please check and tell me how I am to add those 2 files to binary
rpm? I will need this for few more rpm's I want to build, and I am most
definitely going to need it if I even need to produce newer version of
the trunk.

I would also appreciate if you could tell me if there is the way to
compile modules for different kernels without the need to reboot with
another kernel and then compile so I can produce also rpm's for last 5.2
kernels. Until 5.3 came out I used kernel 2.6.18-92.1.13 not wanting
to disturb working unit. I also noticed problem with 2.6.18-128.x
kernels and AMD RS780 motherboards forcing me to stay with
2.6.18-92.1.22 on 2 such PC's. It is nice to have fall back version and
without wireless drivers on notebook can be very inconvenient. I spent 1
month a year ago plugged to LAN cable until I found/waited for driver
that works.


I hope I am not being difficult, and I hope you will help me in my quest
for knowledge.


Thanks,
Ljubomir


_______________________________________________
atrpms-devel mailing list
atrpms-devel [at] atrpms
http://lists.atrpms.net/mailman/listinfo/atrpms-devel


Axel.Thimm at ATrpms

Apr 26, 2009, 1:28 AM

Post #6 of 9 (2238 views)
Permalink
Re: Help nedeed - madwifi drivers for AR5007* cards for CentOS 5 prepared [In reply to]

On Sun, Apr 26, 2009 at 02:58:31AM +0200, Ljubomir Ljubojevic wrote:
> Axel Thimm wrote:
> > On Sun, Apr 26, 2009 at 02:06:55AM +0300, Axel Thimm wrote:
> >> On Sun, Apr 26, 2009 at 12:27:56AM +0200, Ljubomir Ljubojevic wrote:
> >>> I created madwifi package for AR5007* Atheros radios [...]
> >
> >> Also I think you must have used the madwifi-hal-0.10.5.6 branch. But
> >> AFAIK this branch has been deemed dead by madwifi upstream:
> >
> > It looks like AR5007* is supported in madwifi's trunk branch:
> >
> > http://madwifi-project.org/changeset/3989
> >
> > So please try to use the packages at
> >
> > http://atrpms.net/dist/el5/madwifi-free/
> >
> > They may already work for you.
>
> I am reluctant to go with the trunc version. That is beta version in
> heavy progress, so who knows what they are changing and how long it will
> take until stable 0.9.5 is out.

Well, could you at least try and and report if it works? I think that
trunk will get more attention if soemthing breaks than the old
madwifi-hal-0.10.5.6 branch, where active tickets are closed with the
comment that the developers have not time to focus on both trunk and
this branch.

> It would be nice to also have this version available, as this is the
> last version for AR5007 with proprietary (and stable) HAL. If you
> are now willing to host it, I would just keep it in my repository
> for those who decide to use that version or need version for older
> kernel.

I have no problem hosting it, I was just pointing out that it may
already be considered outdated. We can host it under bleeding.

> My intention was not to just add diff to existing madwifi drivers but to
> create package properly marked for AR5007* owners guaranteeing them
> stability.

OK, I would just call the packages something like 0.9.4 with ar2425
added to the release field. The 0.10.5.6 isn't the actual version of
the sources, but the subversion of the hal component.

> Also, there is an problem with active ath5k driver already in current
> kernel. ath5k driver tries to load on AR5007* and fails, but in the
> process it prevents ath_pci driver to load the card. That is why
> ath5k_blacklist-modprobe.d script is needed. Without it madwifi from rpm
> will not work. I am not sure if madwifi-modprobe.d is necessary, but it
> can not hurt to have it.
>
> Can you please check and tell me how I am to add those 2 files to binary
> rpm? I will need this for few more rpm's I want to build, and I am most
> definitely going to need it if I even need to produce newer version of
> the trunk.

In general, if you want to add files to an rpm (or better said the
build process already adds some new files and you need to tell the
specfile), you just add them to the %files section, e.g.

%files
/some/other/files/here
...
...
/new/file/path
/new/file/path2

You should try to replace some path elements like /usr/bin,
/usr/share/data etc. with macros like %{_bindir}, %{_datadir},
although for the first tests it doesn't make a difference, we can fix
these later.

> I would also appreciate if you could tell me if there is the way to
> compile modules for different kernels without the need to reboot with
> another kernel and then compile so I can produce also rpm's for last 5.2
> kernels.

You mean with kmdls? It's just

rpmbuild --define "kmdl_kernelsrcdir /path/to/kernel/source" ...

> Until 5.3 came out I used kernel 2.6.18-92.1.13 not wanting to
> disturb working unit. I also noticed problem with 2.6.18-128.x
> kernels and AMD RS780 motherboards forcing me to stay with
> 2.6.18-92.1.22 on 2 such PC's. It is nice to have fall back version
> and without wireless drivers on notebook can be very inconvenient. I
> spent 1 month a year ago plugged to LAN cable until I found/waited
> for driver that works.
>
> I hope I am not being difficult, and I hope you will help me in my quest
> for knowledge.

No problem. If you want to dive more into rpm mechanics, there is

http://www.rpm.org/wiki/Docs#PackagerDocumentation

--
Axel.Thimm at ATrpms.net


office at plcomputers

Apr 26, 2009, 3:35 AM

Post #7 of 9 (2237 views)
Permalink
Re: Help nedeed - madwifi drivers for AR5007* cards for CentOS 5 prepared [In reply to]

Axel Thimm wrote:
> On Sun, Apr 26, 2009 at 02:58:31AM +0200, Ljubomir Ljubojevic wrote:
>> Axel Thimm wrote:
>>> On Sun, Apr 26, 2009 at 02:06:55AM +0300, Axel Thimm wrote:
>>>> On Sun, Apr 26, 2009 at 12:27:56AM +0200, Ljubomir Ljubojevic wrote:
>>>>> I created madwifi package for AR5007* Atheros radios [...]
>>>> Also I think you must have used the madwifi-hal-0.10.5.6 branch. But
>>>> AFAIK this branch has been deemed dead by madwifi upstream:
>>> It looks like AR5007* is supported in madwifi's trunk branch:
>>>
>>> http://madwifi-project.org/changeset/3989
>>>
>>> So please try to use the packages at
>>>
>>> http://atrpms.net/dist/el5/madwifi-free/
>>>
>>> They may already work for you.
>> I am reluctant to go with the trunc version. That is beta version in
>> heavy progress, so who knows what they are changing and how long it will
>> take until stable 0.9.5 is out.
>
> Well, could you at least try and and report if it works? I think that
> trunk will get more attention if soemthing breaks than the old
> madwifi-hal-0.10.5.6 branch, where active tickets are closed with the
> comment that the developers have not time to focus on both trunk and
> this branch.
I will try it, that is for sure.
>
>> It would be nice to also have this version available, as this is the
>> last version for AR5007 with proprietary (and stable) HAL. If you
>> are now willing to host it, I would just keep it in my repository
>> for those who decide to use that version or need version for older
>> kernel.
>
> I have no problem hosting it, I was just pointing out that it may
> already be considered outdated. We can host it under bleeding.
>
>> My intention was not to just add diff to existing madwifi drivers but to
>> create package properly marked for AR5007* owners guaranteeing them
>> stability.
>
> OK, I would just call the packages something like 0.9.4 with ar2425
> added to the release field. The 0.10.5.6 isn't the actual version of
> the sources, but the subversion of the hal component.
>
>> Also, there is an problem with active ath5k driver already in current
>> kernel. ath5k driver tries to load on AR5007* and fails, but in the
>> process it prevents ath_pci driver to load the card. That is why
>> ath5k_blacklist-modprobe.d script is needed. Without it madwifi from rpm
>> will not work. I am not sure if madwifi-modprobe.d is necessary, but it
>> can not hurt to have it.
>>
>> Can you please check and tell me how I am to add those 2 files to binary
>> rpm? I will need this for few more rpm's I want to build, and I am most
>> definitely going to need it if I even need to produce newer version of
>> the trunk.
>
> In general, if you want to add files to an rpm (or better said the
> build process already adds some new files and you need to tell the
> specfile), you just add them to the %files section, e.g.
>
> %files
> /some/other/files/here
> ...
> ...
> /new/file/path
> /new/file/path2
>
> You should try to replace some path elements like /usr/bin,
> /usr/share/data etc. with macros like %{_bindir}, %{_datadir},
> although for the first tests it doesn't make a difference, we can fix
> these later.
>
I thought using "Install" section like used in official Fedoras package
and would be easiest/safest to implement. I saw %files section in some
spec file but could not find it at the moment.

>> I would also appreciate if you could tell me if there is the way to
>> compile modules for different kernels without the need to reboot with
>> another kernel and then compile so I can produce also rpm's for last 5.2
>> kernels.
>
> You mean with kmdls? It's just
>
> rpmbuild --define "kmdl_kernelsrcdir /path/to/kernel/source" ...
>
In your /etc/rpm/macros.kmdl you used:
%kmdl_kernelsrcdir /lib/modules/%(uname -r)/build
so I tried yust replacing %(uname -r) with kernel version like:

pmbuild -ba --define "kmdl_kernelsrcdir
/lib/modules/2.6.18-92.1.22.el5/build" madwifi.spec

but I ws getting error:
make: *** /lib/module/2.6.18-92.1.22.el5/build: No such file or
directory. Stop.

My inital thought was I was doing something wrong, but now I figured it
out. There is a need for actual kernel to be installed, not just
kernel-devel. So far, only kernel module I have rebuild was kvm-kmod
that uses weak-updates technique and that kernel module is symlinked to
all installed modules. Even when I was passing him desired kernel
version I only needed kernel-devel package, not the kernel package also.

I just installed nedded kernel package and now passing kmdl_kernelsrcdir
works like expected.

>> Until 5.3 came out I used kernel 2.6.18-92.1.13 not wanting to
>> disturb working unit. I also noticed problem with 2.6.18-128.x
>> kernels and AMD RS780 motherboards forcing me to stay with
>> 2.6.18-92.1.22 on 2 such PC's. It is nice to have fall back version
>> and without wireless drivers on notebook can be very inconvenient. I
>> spent 1 month a year ago plugged to LAN cable until I found/waited
>> for driver that works.
>>
>> I hope I am not being difficult, and I hope you will help me in my quest
>> for knowledge.
>
> No problem. If you want to dive more into rpm mechanics, there is
>
> http://www.rpm.org/wiki/Docs#PackagerDocumentation
>

I will have to print that and read it, but so far I am finding my way
around nicely (meaning I manage to find 90% of the problems on my own by
google-ing). I worked for several years as a Windows software developer,
last 8 years I am network admin and PC servicer.
Last 4 years I am using Linux (CentOS i386) more and more, I am almost
free of Windows now, and last month I decided to go all the way, give
back something to the community and start building and rebuilding all
necessary missing packages for CentOS, like freeworld (mp3,..) decoder
plugins for amarok, xine, then freeradius, etc...


Anyway, thanks for all the help. I will correct spec file, make it work
and test the trunk version.

Ljubomir

_______________________________________________
atrpms-devel mailing list
atrpms-devel [at] atrpms
http://lists.atrpms.net/mailman/listinfo/atrpms-devel


Axel.Thimm at ATrpms

Apr 26, 2009, 9:46 AM

Post #8 of 9 (2248 views)
Permalink
Re: Help nedeed - madwifi drivers for AR5007* cards for CentOS 5 prepared [In reply to]

On Sun, Apr 26, 2009 at 12:35:51PM +0200, Ljubomir Ljubojevic wrote:
> > In general, if you want to add files to an rpm (or better said the
> > build process already adds some new files and you need to tell the
> > specfile), you just add them to the %files section, e.g.
> >
> > %files
> > /some/other/files/here
> > ...
> > ...
> > /new/file/path
> > /new/file/path2
> >
> > You should try to replace some path elements like /usr/bin,
> > /usr/share/data etc. with macros like %{_bindir}, %{_datadir},
> > although for the first tests it doesn't make a difference, we can fix
> > these later.
> >
> I thought using "Install" section like used in official Fedoras package
> and would be easiest/safest to implement. I saw %files section in some
> spec file but could not find it at the moment.

You need both. Every specfile has a %files section. %install contains
the commands to create the files and %files lists them.

> > rpmbuild --define "kmdl_kernelsrcdir /path/to/kernel/source" ...
> >
> In your /etc/rpm/macros.kmdl you used:
> %kmdl_kernelsrcdir /lib/modules/%(uname -r)/build
> so I tried yust replacing %(uname -r) with kernel version like:
>
> pmbuild -ba --define "kmdl_kernelsrcdir
> /lib/modules/2.6.18-92.1.22.el5/build" madwifi.spec
>
> but I ws getting error:
> make: *** /lib/module/2.6.18-92.1.22.el5/build: No such file or
> directory. Stop.

This means that the link /lib/module/2.6.18-92.1.22.el5/build to the
sources is missing. Use the direct patch to the sources. I setup the
default that way, so the rpmbuild command would guess from the running
kernel what kmdls to build.

> My inital thought was I was doing something wrong, but now I figured it
> out. There is a need for actual kernel to be installed, not just
> kernel-devel.

No, you don't need the whole kernel. All that install did was to give
you the /build symlink. You could also use

rpmbuild --define "kmdl_kernelsrcdir /usr/src/kernels/abc"

w/o installing the full kernel.
--
Axel.Thimm at ATrpms.net


office at plcomputers

Apr 26, 2009, 2:18 PM

Post #9 of 9 (2250 views)
Permalink
Re: Help nedeed - madwifi drivers for AR5007* cards for CentOS 5 prepared [In reply to]

Axel Thimm wrote:
> On Sun, Apr 26, 2009 at 12:35:51PM +0200, Ljubomir Ljubojevic wrote:
>>> In general, if you want to add files to an rpm (or better said the
>>> build process already adds some new files and you need to tell the
>>> specfile), you just add them to the %files section, e.g.
>>>
>>> %files
>>> /some/other/files/here
>>> ...
>>> ...
>>> /new/file/path
>>> /new/file/path2
>>>
>>> You should try to replace some path elements like /usr/bin,
>>> /usr/share/data etc. with macros like %{_bindir}, %{_datadir},
>>> although for the first tests it doesn't make a difference, we can fix
>>> these later.
>>>
>> I thought using "Install" section like used in official Fedoras package
>> and would be easiest/safest to implement. I saw %files section in some
>> spec file but could not find it at the moment.
>
> You need both. Every specfile has a %files section. %install contains
> the commands to create the files and %files lists them.

I already guessed it. In last 2 days I mixed 5-6 madwifi spec files so
no wonder I was confused. New src rpm is already done.
Download link:
http://www.plcomputers.net/download/plc-centos5-custom/SRPMS/madwifi-ar2425-0.9.4.1-1_r4003.el5.src.rpm

I changed name from madwifi to madwifi-ar2425 to separate the two
versions. There is definite need for blacklisting ath5k driver that came
with kernel. Even in madwifi-0.9.5 driver you compiled. It works, but
after I added blacklisting of ath5k and rebooting.
>
>>> rpmbuild --define "kmdl_kernelsrcdir /path/to/kernel/source" ...
>>>
>> In your /etc/rpm/macros.kmdl you used:
>> %kmdl_kernelsrcdir /lib/modules/%(uname -r)/build
>> so I tried yust replacing %(uname -r) with kernel version like:
>>
>> pmbuild -ba --define "kmdl_kernelsrcdir
>> /lib/modules/2.6.18-92.1.22.el5/build" madwifi.spec
>>
>> but I ws getting error:
>> make: *** /lib/module/2.6.18-92.1.22.el5/build: No such file or
>> directory. Stop.
>
> This means that the link /lib/module/2.6.18-92.1.22.el5/build to the
> sources is missing. Use the direct patch to the sources. I setup the
> default that way, so the rpmbuild command would guess from the running
> kernel what kmdls to build.
>
>> My inital thought was I was doing something wrong, but now I figured it
>> out. There is a need for actual kernel to be installed, not just
>> kernel-devel.
>
> No, you don't need the whole kernel. All that install did was to give
> you the /build symlink. You could also use
>
> rpmbuild --define "kmdl_kernelsrcdir /usr/src/kernels/abc"
>
> w/o installing the full kernel.

Ahh. OK, I got it. I will remember this.

Please check if I done spec right. There is instruction in description
that informs people of new versions in 0.9.5 and higher versions.

I have few questions in connection to 0.9.5 version.

1) Can you add blacklist script in so ath5k driver is disabled when
madwifi-0.9.5 is instaled?

2) Can madwifi be transformed to use weak-updates module system so
constant install of new madwifi-kmdl is not needed when new kernel is
instaled? kvm (at least from lfarkas repository, it's also in my
repository) use them. If module for current kernel is installed, it will
override weak-update one, and there is no need to recompile them for
each kernel (if that is possible with madwifi driver).

Thanks for your help and patience,
Ljubomir


_______________________________________________
atrpms-devel mailing list
atrpms-devel [at] atrpms
http://lists.atrpms.net/mailman/listinfo/atrpms-devel

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.