DragonFly BSD
DragonFly submit List (threaded) for 2005-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: new 'beta' version of 'ath' driver available on leaf.


From: Andrew Atrens <atrens@xxxxxxxxxxxxxxxxxx>
Date: Mon, 11 Apr 2005 12:33:49 -0400

Erik Wikström wrote:

> 
> "Andrew Atrens" <atrens@xxxxxxxxxxxxxxxxxx> wrote in message
> news:4258b569$0$719$415eb37d@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>
>> At the moment I'm only building it as a module.
>>
>> I'm thinking that perhaps the problem has to do with ah.h.
>>
>> Try extracting to tmp as you did, but before you start your build add a
>> symbol link ...
>>
>> ln -s /tmp/ath-dragonfly-1.4.2/src/sys/contrib/dev/ath
> /usr/src/sys/contrib/dev
>>
>> hopefully that should fix it.
>>
>> Cheers,
>>
>> Andrew.
> 
> Hmm, while I can build my kernel now I still can't build the driver. I'm

It seems to me that you've done a lot more here than you had to ..
you should not have had to change anything in the kernel sources, with the
possible exception of adding the symlink I mentioned.

The purpose of the symlink was to allow the ath module to compile, and
should have no effect on any part of the kernel.

> not sure what you hoped the symlink would do, as far as I can tell the
> Makefiles only make relative references.

The Makefiles are subtle. In the Fall when I first started building this
I found that the symlink was necessary. Now (just tried with a fresh _stable
kernel), it is not.  Since you didn't say what you were running I thought
perhaps you may have been running on an older _stable tag.

:)

All you should have needed to do here is -

1. untar ath-dragonfly-1.4.2.tar.gz into /tmp.

tar -C /tmp -zxf ath-dragonfly-1.4.2.tar.gz 

2. build the driver

cd /tmp/ath-dragonfly-1.4.2; make


3. install the driver, the hal, and a rate module

cd src/sys/dev/netif/ath ; make install
cd ../ath_hal ; make install
cd ../ath_rate_sample ; make install


4. install the tools (this is optional)

cd ../../../tools; make install



At this point you'll want to try manually kldload'ing the modules (order
is important)

kldload ath_hal
kldload ath_rate
kldload if_ath

If one of these won't load (unresolved symbols) then you also need the
wlan module - I have 'device wlan' built into my kernel config, but
you should also be able to manually load it with -

kldload wlan

Once the modules are loaded you should be able to ifconfig and up the
interface.

Good luck :) :)

Andrew.




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]