Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Atheros WIFI is not recognized on FreeBSD 8.0-RC1

25 views
Skip to first unread message

Eugene Dzhurinsky

unread,
Oct 3, 2009, 7:40:50 AM10/3/09
to freebsd...@freebsd.org
Hi there!

I am facing some strange issue with recognizing the wifi card on my ASUS K40IN
laptop.

pciconf -lv shows me the following:

none5@pci0:5:0:0: class=0x028000 card=0x10891a3b chip=0x002b168c rev=0x01 hdr=0x00
vendor = 'Atheros Communications Inc.'
class = network

On wiki page http://wiki.freebsd.org/AsusEee#head-47f2e69f1dd87ec8920929cef682552933095ce6

there is the statement:

Wireless Atheros 9285 (supported in 8.0 only?) class=0x028000 card=0x10891a3b chip=0x002b168c rev=0xc0 hdr=0x00

the only difference is in "rev" property - 0x01 != 0xc0

The question is - is it possible to change something in the sources of kernel
so the card will be recognized? And can somebody please explain what I should
to try out?

Thank you in advance!

--
Eugene N Dzhurinsky

Gary Jennejohn

unread,
Oct 3, 2009, 11:10:35 AM10/3/09
to Eugene Dzhurinsky, freebsd...@freebsd.org

I'm no expert on Atheros. In /sys/dev/ath/ath_hal/ah_devid.h there's a
#define AR9285_DEVID_PCIE 0x002b /* AR9285 PCI-E Kite */
but it isn't used in any C source file.

Note that the entry in the Wiki isn't claiming that this chip works.
The poster is merely wondering whether it might be supported in 8.0
and later FreeBSD versions.

Looks like it isn't.

---
Gary Jennejohn
_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"

Eugene Dzhurinsky

unread,
Oct 3, 2009, 12:41:59 PM10/3/09
to freebsd...@freebsd.org
On Sat, Oct 03, 2009 at 05:09:55PM +0200, Gary Jennejohn wrote:
> On Sat, 3 Oct 2009 14:09:14 +0300
> Eugene Dzhurinsky <bo...@redwerk.com> wrote:
>
> I'm no expert on Atheros. In /sys/dev/ath/ath_hal/ah_devid.h there's a
> #define AR9285_DEVID_PCIE 0x002b /* AR9285 PCI-E Kite */
> but it isn't used in any C source file.
>
> Note that the entry in the Wiki isn't claiming that this chip works.
> The poster is merely wondering whether it might be supported in 8.0
> and later FreeBSD versions.
>
> Looks like it isn't.

That's too bad. Allright, than I'll wait until this chip will get support for
FreeBSD.

Thank you for the quick and prompt response!

--
Eugene N Dzhurinsky

Eugene Dzhurinsky

unread,
Dec 16, 2009, 1:04:27 PM12/16/09
to freebsd...@freebsd.org

Hi again! I updated to 8.0 stable - but the Atheros card still not recognized
:(

Can somebody please elucidate - are there any plans for supporting this device
in FreeBSD?

Paul G Webster

unread,
Dec 16, 2009, 1:10:18 PM12/16/09
to Eugene Dzhurinsky, freebsd...@freebsd.org
Hi same problem here as well, I tried fixing it in devid.h but doing so
causes a compilation error, I have no idea where to go from here either,
its a shame that the card seems to be supported but the driver does not
notice it. sorry about the double reply by the way Eugene I replied
directly to you by accident in the first mail

On Wed, 16 Dec 2009 18:03:38 -0000, Eugene Dzhurinsky <bo...@redwerk.com>
wrote:


--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Paul G Webster

unread,
Dec 16, 2009, 1:18:45 PM12/16/09
to Paul G Webster, Eugene Dzhurinsky, freebsd...@freebsd.org
Would also like to say, 8.0-RELEASE. it seems that setting the correct
'rev' in the devid.h somehow conflicts with another AR card..

Rui Paulo

unread,
Dec 21, 2009, 12:05:07 PM12/21/09
to Eugene Dzhurinsky, freebsd...@freebsd.org

Have you tried using if_ndis?

--
Rui Paulo

Eugene Dzhurinsky

unread,
Dec 25, 2009, 3:44:19 AM12/25/09
to freebsd...@freebsd.org
On Mon, Dec 21, 2009 at 04:38:26PM +0000, Rui Paulo wrote:
> Have you tried using if_ndis?

The kernel module I've created just hangs once loaded :(

--
Eugene Dzhurinsky

Paul B Mahol

unread,
Dec 25, 2009, 5:55:41 AM12/25/09
to Eugene Dzhurinsky, freebsd...@freebsd.org
On 12/25/09, Eugene Dzhurinsky <bo...@redwerk.com> wrote:
> On Mon, Dec 21, 2009 at 04:38:26PM +0000, Rui Paulo wrote:
>> Have you tried using if_ndis?
>
> The kernel module I've created just hangs once loaded :(

This is on amd64?

--
Paul B Mahol

Eugene Dzhurinsky

unread,
Jan 3, 2010, 5:37:48 AM1/3/10
to freebsd...@freebsd.org
On Fri, Dec 25, 2009 at 11:54:55AM +0100, Paul B Mahol wrote:
> On 12/25/09, Eugene Dzhurinsky <bo...@redwerk.com> wrote:
> > On Mon, Dec 21, 2009 at 04:38:26PM +0000, Rui Paulo wrote:
> >> Have you tried using if_ndis?
> > The kernel module I've created just hangs once loaded :(
> This is on amd64?

No, i386

--
Eugene N Dzhurinsky

Paul B Mahol

unread,
Jan 3, 2010, 6:04:14 AM1/3/10
to freebsd...@freebsd.org

Is anything displayed on console? Are you sure you are using
5.1 driveres (for XP) and not newer ones?

Could you please test code from here:

http://gitorious.org/ndisulator

Eugene Dzhurinsky

unread,
Jan 4, 2010, 2:08:05 PM1/4/10
to freebsd...@freebsd.org
On Sun, Jan 03, 2010 at 12:01:15PM +0100, Paul B Mahol wrote:
> On 1/3/10, Eugene Dzhurinsky <bo...@redwerk.com> wrote:
> > On Fri, Dec 25, 2009 at 11:54:55AM +0100, Paul B Mahol wrote:
> >> On 12/25/09, Eugene Dzhurinsky <bo...@redwerk.com> wrote:
> >> > On Mon, Dec 21, 2009 at 04:38:26PM +0000, Rui Paulo wrote:
> >> >> Have you tried using if_ndis?
> >> > The kernel module I've created just hangs once loaded :(
> >> This is on amd64?
> >
> > No, i386
>
> Is anything displayed on console? Are you sure you are using
> 5.1 driveres (for XP) and not newer ones?

I am using xp3264-7.7.0.329-whql.zip file from Atheros.

When trying to convert the ones athwx.sys and netathwx.inf I am getting the
error:

ndiscvt: line 5117: : syntax error.
CONVERSION FAILED

same for

netathw.inf athw.sys

I'm sure that worked for me earlier.

> Could you please test code from here:
> http://gitorious.org/ndisulator

Sorry, I'm not sure that I understand how to use that. Should I copy the
folders to /usr/src and rebuild world and kernel?

--
Eugene N Dzhurinsky

Paul B Mahol

unread,
Jan 4, 2010, 2:14:53 PM1/4/10
to freebsd...@freebsd.org

Just use mount_nullfs, no need to change files.

Paul B Mahol

unread,
Jan 5, 2010, 9:26:34 AM1/5/10
to freebsd...@freebsd.org
On 1/4/10, Eugene Dzhurinsky <bo...@redwerk.com> wrote:
> On Sun, Jan 03, 2010 at 12:01:15PM +0100, Paul B Mahol wrote:
>> On 1/3/10, Eugene Dzhurinsky <bo...@redwerk.com> wrote:
>> > On Fri, Dec 25, 2009 at 11:54:55AM +0100, Paul B Mahol wrote:
>> >> On 12/25/09, Eugene Dzhurinsky <bo...@redwerk.com> wrote:
>> >> > On Mon, Dec 21, 2009 at 04:38:26PM +0000, Rui Paulo wrote:
>> >> >> Have you tried using if_ndis?
>> >> > The kernel module I've created just hangs once loaded :(
>> >> This is on amd64?
>> >
>> > No, i386
>>
>> Is anything displayed on console? Are you sure you are using
>> 5.1 driveres (for XP) and not newer ones?
>
> I am using xp3264-7.7.0.329-whql.zip file from Atheros.
>
> When trying to convert the ones athwx.sys and netathwx.inf I am getting the
> error:
>
> ndiscvt: line 5117: : syntax error.
> CONVERSION FAILED

Inf file appears to not end with EOL, I opened it with vim and just used :wq

Rui Paulo

unread,
Jan 5, 2010, 5:30:19 PM1/5/10
to Paul B Mahol, freebsd...@freebsd.org
On 5 Jan 2010, at 14:25, Paul B Mahol wrote:

> On 1/4/10, Eugene Dzhurinsky <bo...@redwerk.com> wrote:
>> On Sun, Jan 03, 2010 at 12:01:15PM +0100, Paul B Mahol wrote:
>>> On 1/3/10, Eugene Dzhurinsky <bo...@redwerk.com> wrote:
>>>> On Fri, Dec 25, 2009 at 11:54:55AM +0100, Paul B Mahol wrote:
>>>>> On 12/25/09, Eugene Dzhurinsky <bo...@redwerk.com> wrote:
>>>>>> On Mon, Dec 21, 2009 at 04:38:26PM +0000, Rui Paulo wrote:
>>>>>>> Have you tried using if_ndis?
>>>>>> The kernel module I've created just hangs once loaded :(
>>>>> This is on amd64?
>>>>
>>>> No, i386
>>>
>>> Is anything displayed on console? Are you sure you are using
>>> 5.1 driveres (for XP) and not newer ones?
>>
>> I am using xp3264-7.7.0.329-whql.zip file from Atheros.
>>
>> When trying to convert the ones athwx.sys and netathwx.inf I am getting the
>> error:
>>
>> ndiscvt: line 5117: : syntax error.
>> CONVERSION FAILED
>
> Inf file appears to not end with EOL, I opened it with vim and just used :wq
>

Maybe we should change ndiscvt to handle that.

--
Rui Paulo

Paul B Mahol

unread,
Jan 5, 2010, 5:50:29 PM1/5/10
to Rui Paulo, freebsd...@freebsd.org
On 1/5/10, Rui Paulo <rpa...@gmail.com> wrote:
> On 5 Jan 2010, at 14:25, Paul B Mahol wrote:
>
>> On 1/4/10, Eugene Dzhurinsky <bo...@redwerk.com> wrote:
>>> On Sun, Jan 03, 2010 at 12:01:15PM +0100, Paul B Mahol wrote:
>>>> On 1/3/10, Eugene Dzhurinsky <bo...@redwerk.com> wrote:
>>>>> On Fri, Dec 25, 2009 at 11:54:55AM +0100, Paul B Mahol wrote:
>>>>>> On 12/25/09, Eugene Dzhurinsky <bo...@redwerk.com> wrote:
>>>>>>> On Mon, Dec 21, 2009 at 04:38:26PM +0000, Rui Paulo wrote:
>>>>>>>> Have you tried using if_ndis?
>>>>>>> The kernel module I've created just hangs once loaded :(
>>>>>> This is on amd64?
>>>>>
>>>>> No, i386
>>>>
>>>> Is anything displayed on console? Are you sure you are using
>>>> 5.1 driveres (for XP) and not newer ones?
>>>
>>> I am using xp3264-7.7.0.329-whql.zip file from Atheros.
>>>
>>> When trying to convert the ones athwx.sys and netathwx.inf I am getting
>>> the
>>> error:
>>>
>>> ndiscvt: line 5117: : syntax error.
>>> CONVERSION FAILED
>>
>> Inf file appears to not end with EOL, I opened it with vim and just used
>> :wq
>>
>
> Maybe we should change ndiscvt to handle that.

Or just ndisgen.sh:

echo "" >> netathw.inf

--
Paul B Mahol

Paul B Mahol

unread,
Jan 5, 2010, 5:52:18 PM1/5/10
to freebsd...@freebsd.org
On 1/4/10, Eugene Dzhurinsky <bo...@redwerk.com> wrote:
> On Sun, Jan 03, 2010 at 12:01:15PM +0100, Paul B Mahol wrote:
>> On 1/3/10, Eugene Dzhurinsky <bo...@redwerk.com> wrote:
>> > On Fri, Dec 25, 2009 at 11:54:55AM +0100, Paul B Mahol wrote:
>> >> On 12/25/09, Eugene Dzhurinsky <bo...@redwerk.com> wrote:
>> >> > On Mon, Dec 21, 2009 at 04:38:26PM +0000, Rui Paulo wrote:
>> >> >> Have you tried using if_ndis?
>> >> > The kernel module I've created just hangs once loaded :(
>> >> This is on amd64?
>> >
>> > No, i386
>>
>> Is anything displayed on console? Are you sure you are using
>> 5.1 driveres (for XP) and not newer ones?
>
> I am using xp3264-7.7.0.329-whql.zip file from Atheros.
>
> When trying to convert the ones athwx.sys and netathwx.inf I am getting the
> error:

That files are for amd64.

Paul B Mahol

unread,
Jan 7, 2010, 2:15:11 PM1/7/10
to freebsd...@freebsd.org
On 1/5/10, Paul B Mahol <one...@gmail.com> wrote:
> On 1/4/10, Eugene Dzhurinsky <bo...@redwerk.com> wrote:
>> On Sun, Jan 03, 2010 at 12:01:15PM +0100, Paul B Mahol wrote:
>>> On 1/3/10, Eugene Dzhurinsky <bo...@redwerk.com> wrote:
>>> > On Fri, Dec 25, 2009 at 11:54:55AM +0100, Paul B Mahol wrote:
>>> >> On 12/25/09, Eugene Dzhurinsky <bo...@redwerk.com> wrote:
>>> >> > On Mon, Dec 21, 2009 at 04:38:26PM +0000, Rui Paulo wrote:
>>> >> >> Have you tried using if_ndis?
>>> >> > The kernel module I've created just hangs once loaded :(
>>> >> This is on amd64?
>>> >
>>> > No, i386
>>>
>>> Is anything displayed on console? Are you sure you are using
>>> 5.1 driveres (for XP) and not newer ones?
>>
>> I am using xp3264-7.7.0.329-whql.zip file from Atheros.
>>
>> When trying to convert the ones athwx.sys and netathwx.inf I am getting
>> the
>> error:
>
> That files are for amd64.

And NDISulator from git should no more panic if user used wrong files with
ndisgen(8)

Eugene Dzhurinsky

unread,
Jan 8, 2010, 6:30:04 PM1/8/10
to freebsd...@freebsd.org
On Tue, Jan 05, 2010 at 11:51:01PM +0100, Paul B Mahol wrote:
> >> Is anything displayed on console? Are you sure you are using
> >> 5.1 driveres (for XP) and not newer ones?
> >
> > I am using xp3264-7.7.0.329-whql.zip file from Atheros.
> >
> > When trying to convert the ones athwx.sys and netathwx.inf I am getting the
> > error:
>
> That files are for amd64.

Okay, I've added newlines to sys files - and kernel modules were generated
just fine. However both of them are leading to kernel panic once loaded, after
ndis0 device is created. I don't know, how can I dump these logs. If it is
possible - can you please explain the steps?

Thank you in advance.

--
Eugene N Dzhurinsky

Eugene Dzhurinsky

unread,
Jan 8, 2010, 6:49:15 PM1/8/10
to freebsd...@freebsd.org
On Mon, Jan 04, 2010 at 08:13:57PM +0100, Paul B Mahol wrote:
> >> Could you please test code from here:
> >> http://gitorious.org/ndisulator
> >
> > Sorry, I'm not sure that I understand how to use that. Should I copy the
> > folders to /usr/src and rebuild world and kernel?
>
> Just use mount_nullfs, no need to change files.

Hello, Paul!

I've got the chance to play with the sources. What I've done:

1) copied folders into appropriate places of /usr/src
2) built and installed ndis module
3) built and installed if_ndis module
4) built and installed ndiscvt executable
5) generated athw_sys.ko module
6) copied athw_sys.ko module into /boot/kernel
7) rebooted
8) manually loaded ndis and if_ndis module (the latter was loaded
automatically by ndis as I realized)
9) loaded athw_sys
10) booted

and on initializing of ndis device kernel panic was detected on page read at
some address.

If I did something wrong, or I can provide you with some more information -
please let me know, what would you like me to send you (and how to get it).

Paul B Mahol

unread,
Jan 9, 2010, 5:12:34 AM1/9/10
to freebsd...@freebsd.org
On 1/9/10, Eugene Dzhurinsky <bo...@redwerk.com> wrote:
> On Mon, Jan 04, 2010 at 08:13:57PM +0100, Paul B Mahol wrote:
>> >> Could you please test code from here:
>> >> http://gitorious.org/ndisulator
>> >
>> > Sorry, I'm not sure that I understand how to use that. Should I copy the
>> > folders to /usr/src and rebuild world and kernel?
>>
>> Just use mount_nullfs, no need to change files.
>
> Hello, Paul!
>
> I've got the chance to play with the sources. What I've done:
>
> 1) copied folders into appropriate places of /usr/src

Please do not copy, use mount_nullfs.

> 2) built and installed ndis module
> 3) built and installed if_ndis module
> 4) built and installed ndiscvt executable
> 5) generated athw_sys.ko module
> 6) copied athw_sys.ko module into /boot/kernel

Copy athw_sys.ko to /boot/modules instead, and run `kldxref /boot/modules`.

> 7) rebooted

Not really required.

> 8) manually loaded ndis and if_ndis module (the latter was loaded
> automatically by ndis as I realized)
> 9) loaded athw_sys

Use kldload instead. Loading module during boot have some unresolved problems.

> 10) booted

Not really required if you use kldload/kldunload.


>
> and on initializing of ndis device kernel panic was detected on page read at
> some address.

What address, and where it happens.

If your kernel have debug support then type bt at ddb prompt. And send output
(in format you prefer: picture, textdump, output from `kgdb
/boot/kernel /var/crash/vmcore`)

On GENERIC kernels vmcore.X file should be generated.
Do you have dupdev and dumpdir defined in rc.conf and is dumpdev swap device?

You really need kernel with DDB, GDB ...

> If I did something wrong, or I can provide you with some more information -
> please let me know, what would you like me to send you (and how to get it).

I really need more information to help you.

0 new messages