Re: Thinkpad 570E and Cardbus errors

2006-04-26 Thread Sepherosa Ziehau
On 4/26/06, Andrew Thompson <[EMAIL PROTECTED]> wrote:
> On Tue, Apr 25, 2006 at 10:55:09PM -0400, Sepherosa Ziehau wrote:
> > mmm, please try the attached patch, and give me the output on console, 
> > thanks
> I guess this was my bad, I added the printf in the patch but now things are
> working fine. I guess it was one of those one-time errors. I've noticed though
> that if I have a card in the machine when I boot that it won't work with DHCP

Which card, ath(4) or dc(4)?  Can you show me what you have in
/etc/rc.conf concerning NIC?

> until I pull it out and stick it back in. Not a big deal, just odd...

Best Regards,
sephe

--
Live Free or Die



Re: Thinkpad 570E and Cardbus errors

2006-04-26 Thread Andrew Thompson
On Tue, Apr 25, 2006 at 10:55:09PM -0400, Sepherosa Ziehau wrote:
> mmm, please try the attached patch, and give me the output on console, thanks
I guess this was my bad, I added the printf in the patch but now things are
working fine. I guess it was one of those one-time errors. I've noticed though
that if I have a card in the machine when I boot that it won't work with DHCP
until I pull it out and stick it back in. Not a big deal, just odd...

Many thanks for getting me networked on this machine, and my apoligies for the
spurious bug report on the FA511.

Andrew


Re: Thinkpad 570E and Cardbus errors

2006-04-25 Thread Sepherosa Ziehau
On 4/25/06, Andrew Thompson <[EMAIL PROTECTED]> wrote:
> On Tue, Apr 25, 2006 at 08:27:32PM +0800, Sepherosa Ziehau wrote:
>
> > Please apply follow patch under sys/dev/netif/dc:
> > http://leaf.dragonflybsd.org/~sephe/if_dc_netgear.diff
>
> Well, its recognized now, but it doesn't work:
>
> dc0:  port 0x1000-0x10ff mem 0x8800-0x880003ff
> irq 11 at device 0.0 on cardbus1
> dc0: MII without any PHY!
> device_probe_and_attach: dc0 returned 6

mmm, please try the attached patch, and give me the output on console, thanks

Best Regards,
sephe

--
Live Free or Die
diff -urp dc.orig/if_dc.c dc/if_dc.c
--- dc.orig/if_dc.c 2006-04-26 10:47:00.763182272 -0400
+++ dc/if_dc.c  2006-04-26 10:48:38.480327008 -0400
@@ -44,6 +44,7 @@
  * ASIX Electronics AX88141 (www.asix.com.tw)
  * ADMtek AL981 (www.admtek.com.tw)
  * ADMtek AN985 (www.admtek.com.tw)
+ * Netgear FA511 (www.netgear.com) Appears to be rebadged ADMTek AN985
  * Davicom DM9100, DM9102, DM9102A (www.davicom8.com)
  * Accton EN1217 (www.accton.com)
  * Xircom X3201 (www.xircom.com)
@@ -152,6 +153,8 @@ static const struct dc_type dc_devs[] = 
"ADMtek AL981 10/100BaseTX" },
{ DC_VENDORID_ADMTEK, DC_DEVICEID_AN985,
"ADMtek AN985 10/100BaseTX" },
+   { DC_VENDORID_ADMTEK, DC_DEVICEID_FA511,
+   "Netgear FA511 10/100BaseTX" },
{ DC_VENDORID_ADMTEK, DC_DEVICEID_ADM9511,
"ADMtek ADM9511 10/100BaseTX" },
{ DC_VENDORID_ADMTEK, DC_DEVICEID_ADM9513,
@@ -877,6 +880,7 @@ dc_miibus_readreg(device_t dev, int phy,
if (sc->dc_type == DC_TYPE_98713)
CSR_WRITE_4(sc, DC_NETCFG, phy_reg);
 
+   device_printf(dev, "mii_data %d\n", frame.mii_data);
return(frame.mii_data);
 }
 
@@ -1916,6 +1920,7 @@ dc_attach(device_t dev)
case DC_DEVICEID_AN985:
case DC_DEVICEID_ADM9511:
case DC_DEVICEID_ADM9513:
+   case DC_DEVICEID_FA511:
case DC_DEVICEID_EN2242:
case DC_DEVICEID_3CSOHOB:
sc->dc_type = DC_TYPE_AN985;
Only in dc: if_dc_netgear.diff
diff -urp dc.orig/if_dcreg.h dc/if_dcreg.h
--- dc.orig/if_dcreg.h  2006-04-26 10:47:00.762182424 -0400
+++ dc/if_dcreg.h   2006-04-26 10:47:44.310562064 -0400
@@ -858,6 +858,7 @@ struct dc_softc {
  */
 #define DC_DEVICEID_AL981  0x0981
 #define DC_DEVICEID_AN985  0x0985
+#define DC_DEVICEID_FA511  0x1985
 #define DC_DEVICEID_ADM95110x9511
 #define DC_DEVICEID_ADM95130x9513
 


Re: Thinkpad 570E and Cardbus errors

2006-04-25 Thread Andrew Thompson
On Tue, Apr 25, 2006 at 08:27:32PM +0800, Sepherosa Ziehau wrote:
 
> Please apply follow patch under sys/dev/netif/dc:
> http://leaf.dragonflybsd.org/~sephe/if_dc_netgear.diff

Well, its recognized now, but it doesn't work:

dc0:  port 0x1000-0x10ff mem 0x8800-0x880003ff
irq 11 at device 0.0 on cardbus1
dc0: MII without any PHY!
device_probe_and_attach: dc0 returned 6

Andrew


Re: Thinkpad 570E and Cardbus errors

2006-04-25 Thread Sepherosa Ziehau
On 4/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> On Mon, Apr 24, 2006 at 08:17:07PM +0800, Sepherosa Ziehau wrote:
> > For FA511, can you give me the dmesg?
>
> when I insert the card (after kldloading cbb) I get:
>
> cardbus0: Resource not specified in CIS: id=40, size=100
> cardbus0: Resource not specified in CIS: id=14, size=400
> cardbus0:  (vendor=0x1317, dev=0x1985) at 0.0 irq 222

Please apply follow patch under sys/dev/netif/dc:
http://leaf.dragonflybsd.org/~sephe/if_dc_netgear.diff

`make quickkernel' can be less painful :-)

Hopefully your card will work.
Please let me know whether it works or not, thanks.

Best Regards,
sephe

--
Live Free or Die



Re: Thinkpad 570E and Cardbus errors

2006-04-24 Thread Sepherosa Ziehau
On 4/24/06, Alex Burke <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Just to throw a couple of things in, I too am very ineterested with
> this work because I run a WPA2-PSK wireles network at home and my
> laptop has an atheros cardbus card in it. For me,  that is one of the
> last reason that I am currently still running FreeBSD (6.0).
>
> I was also wondering about the atheros driver and how to get it,

http://leaf.dragonflybsd.org/~sephe/ath/

> including (unless I am being incredibly numb) where to put is exactly
> in the tree - src/sys/dev? And what about the contrib files, in src/ ?

You can put it _anywhere_ you want, and make the modules in ath/ath
BTW, don't forget to add 'option INVARIANTS' in you kernel config file

>
> Hopefully having that driver in the kernel will stop my machine
> hanging on startup if the cardbus card is inserted...I think its
> getting mis-deteced as an rl device because it looks like its trying

Do you have an on-board rl(4) card?

Then please apply following patch first (before the 802_11 patch), if
you stick to PREVIEW:
http://leaf.dragonflybsd.org/~sephe/cbb-apr-09.diff

If you prefer to stay on HEAD, then:
http://leaf.dragonflybsd.org/~sephe/cbb-apr-23.diff

> to attach to it and thats the last thing on the console.

Best Regards,
sephe

--
Live Free or Die



Re: Thinkpad 570E and Cardbus errors

2006-04-24 Thread Sepherosa Ziehau
On 4/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> On Mon, Apr 24, 2006 at 08:17:07PM +0800, Sepherosa Ziehau wrote:
> > For FA511, can you give me the dmesg?
>
> when I insert the card (after kldloading cbb) I get:
>
> cardbus0: Resource not specified in CIS: id=40, size=100
> cardbus0: Resource not specified in CIS: id=14, size=400
> cardbus0:  (vendor=0x1317, dev=0x1985) at 0.0 irq 222

OK, when I am back home I will give you a patch to try.

>
> I'll *try* to do your patches, I hope it won't take so long to do buildworld 
> and
> kernel this time though, its only a 500mhz machine...

Thank you for the patience and testing

Cheers,
sephe

--
Live Free or Die



Re: Thinkpad 570E and Cardbus errors

2006-04-24 Thread Andrew Thompson
On Mon, Apr 24, 2006 at 08:17:07PM +0800, Sepherosa Ziehau wrote:
> OK, then please apply following patch:
> http://leaf.dragonflybsd.org/~sephe/802_11.diff2
> NOTE: you will have to buildworld and buildkernel

Okay, it built and worked...

> For ath(4):
> http://leaf.dragonflybsd.org/~sephe/ath
> NOTE: build module in ath/ath

After some wget sorcery and data juggling with some floppies I got this to build
and it works fine. I'm using it right now...

> For WPA:
> http://leaf.dragonflybsd.org/~sephe/wpa/
> NOTE: build wpa_supplicant in wpa/wpa_supp

Don't need this but I can test if you need me to...

Many thanks,

Andrew


Re: Thinkpad 570E and Cardbus errors

2006-04-24 Thread Alex Burke
Hi,

Just to throw a couple of things in, I too am very ineterested with
this work because I run a WPA2-PSK wireles network at home and my
laptop has an atheros cardbus card in it. For me,  that is one of the
last reason that I am currently still running FreeBSD (6.0).

I was also wondering about the atheros driver and how to get it,
including (unless I am being incredibly numb) where to put is exactly
in the tree - src/sys/dev? And what about the contrib files, in src/ ?

Hopefully having that driver in the kernel will stop my machine
hanging on startup if the cardbus card is inserted...I think its
getting mis-deteced as an rl device because it looks like its trying
to attach to it and thats the last thing on the console.

Anyways, thank you for this work!

Cheers, Alex J Burke.



Re: Thinkpad 570E and Cardbus errors

2006-04-24 Thread andrew
On Mon, Apr 24, 2006 at 08:17:07PM +0800, Sepherosa Ziehau wrote:
> OK, then please apply following patch:
> http://leaf.dragonflybsd.org/~sephe/802_11.diff2
> NOTE: you will have to buildworld and buildkernel
> 
> For ath(4):
> http://leaf.dragonflybsd.org/~sephe/ath
> NOTE: build module in ath/ath
> 
> For WPA:
> http://leaf.dragonflybsd.org/~sephe/wpa/
> NOTE: build wpa_supplicant in wpa/wpa_supp

Umm, forgive me if I'm being dumb, but how can I get the contents of those
directories? do I have to resort to some nasty recursive wgetting? or is there
some ftp setup I'm unaware of?

It looks like buildworld is gonna take another age though... :( but the patch
applied cleanly, which is good.

Andrew


Re: Thinkpad 570E and Cardbus errors

2006-04-24 Thread andrew
On Mon, Apr 24, 2006 at 08:17:07PM +0800, Sepherosa Ziehau wrote:
> For FA511, can you give me the dmesg?

when I insert the card (after kldloading cbb) I get:

cardbus0: Resource not specified in CIS: id=40, size=100
cardbus0: Resource not specified in CIS: id=14, size=400
cardbus0:  (vendor=0x1317, dev=0x1985) at 0.0 irq 222

The DWL-AB650 gives:

cardbus0:  (vendor=0x168c, dev=0x0012) at 0.0 irq 222

I got a similar message on FBSD before I'd loaded the ath module, so I assume
this is OK...

I'll *try* to do your patches, I hope it won't take so long to do buildworld and
kernel this time though, its only a 500mhz machine...

Thanks for all the help so far...

Andrew


Re: Thinkpad 570E and Cardbus errors

2006-04-24 Thread Sascha Wildner

[EMAIL PROTECTED] wrote:

OK, that patch (after a LOT of compiling) worked, the cardbus now seems to
function. However, I now cannot find the equivalent of the fbsd drivers for my
cards - dc(4) and ath(4). The dc driver does exist but it doesn't seem to
support my Netgear FA511 and I can't seem to see what would support my D-Link
DWL-AB650.

Both of these cards work reasonably well under FBSD, has dragonfly not caught up
to FBSD's driver progress or have you guys moved stuff around? Is there any hope
of getting one of these cards functioning?


Regarding ath(4), check this mail:

http://leaf.dragonflybsd.org/mailarchive/submit/2006-04/msg00022.html

There's a link to an ath driver in there.

Sascha

--
http://yoyodyne.ath.cx


Re: Thinkpad 570E and Cardbus errors

2006-04-24 Thread Sepherosa Ziehau
On 4/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > >On Sat, Apr 22, 2006 at 08:17:07PM +0800, Sepherosa Ziehau wrote:
> >>Please try following patch (from joerg):
> >>http://leaf.dragonflybsd.org/~sephe/cbb-apr-09.diff
> >>
> >>It should be applied cleanly to HEAD or PREVIEW
> >>
>
> OK, that patch (after a LOT of compiling) worked, the cardbus now seems to
> function. However, I now cannot find the equivalent of the fbsd drivers for my
> cards - dc(4) and ath(4). The dc driver does exist but it doesn't seem to
> support my Netgear FA511 and I can't seem to see what would support my D-Link
> DWL-AB650.

OK, then please apply following patch:
http://leaf.dragonflybsd.org/~sephe/802_11.diff2
NOTE: you will have to buildworld and buildkernel

For ath(4):
http://leaf.dragonflybsd.org/~sephe/ath
NOTE: build module in ath/ath

For WPA:
http://leaf.dragonflybsd.org/~sephe/wpa/
NOTE: build wpa_supplicant in wpa/wpa_supp

For FA511, can you give me the dmesg?

Best Regards,
sephe

--
Live Free or Die



Re: Thinkpad 570E and Cardbus errors

2006-04-24 Thread andrew
> >On Sat, Apr 22, 2006 at 08:17:07PM +0800, Sepherosa Ziehau wrote:
>>Please try following patch (from joerg):
>>http://leaf.dragonflybsd.org/~sephe/cbb-apr-09.diff
>>
>>It should be applied cleanly to HEAD or PREVIEW
>>

OK, that patch (after a LOT of compiling) worked, the cardbus now seems to
function. However, I now cannot find the equivalent of the fbsd drivers for my
cards - dc(4) and ath(4). The dc driver does exist but it doesn't seem to
support my Netgear FA511 and I can't seem to see what would support my D-Link
DWL-AB650.

Both of these cards work reasonably well under FBSD, has dragonfly not caught up
to FBSD's driver progress or have you guys moved stuff around? Is there any hope
of getting one of these cards functioning?

Andrew


Re: Thinkpad 570E and Cardbus errors

2006-04-22 Thread Erik Wikström

On 2006-04-22 17:33, [EMAIL PROTECTED] wrote:

On Sat, Apr 22, 2006 at 08:17:07PM +0800, Sepherosa Ziehau wrote:

Please try following patch (from joerg):
http://leaf.dragonflybsd.org/~sephe/cbb-apr-09.diff

It should be applied cleanly to HEAD or PREVIEW



I'd love to, but I'm not sure how to do this with no network card (the only
network card I have attaches to the pccard device)... I'm more than willing to
*try* any suggestions - maybe download the latest PREVIEW (17apr06) iso and
install it and the kernel source and patch it that way?

Andrew


If you have access to another computer on which you can burn a disc, you 
can download a snapshot of the source, then extract the source in 
/usr/src on your laptop, apply the patch and compile.


In /usr/src:
make buildworld
make buildkernel
make installkernel
make installworld
make upgrade
reboot

A list of servers from which you can download the source:
http://www.dragonflybsd.org/main/download.cgi
the source can be found under snapshots/src/ on the servers.

Erik Wikström
--
 "I have always wished for my computer to be as easy to use as my
 telephone; my wish has come true because I can no longer figure
 out how to use my telephone" -- Bjarne Stroustrup


Re: Thinkpad 570E and Cardbus errors

2006-04-22 Thread andrew
On Sat, Apr 22, 2006 at 08:17:07PM +0800, Sepherosa Ziehau wrote:
> Please try following patch (from joerg):
> http://leaf.dragonflybsd.org/~sephe/cbb-apr-09.diff
> 
> It should be applied cleanly to HEAD or PREVIEW
>

I'd love to, but I'm not sure how to do this with no network card (the only
network card I have attaches to the pccard device)... I'm more than willing to
*try* any suggestions - maybe download the latest PREVIEW (17apr06) iso and
install it and the kernel source and patch it that way?

Andrew


Re: Thinkpad 570E and Cardbus errors

2006-04-22 Thread Sepherosa Ziehau
On 4/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hey all,
>
> I'm not entirely new to DflyBSD but I haven't kept any install of it on my PC
> for any length of time. I've been a follower of the project for some time and 
> I
> finally have a machine I think I can run dfly on full time, but.. I 
> need
> some help.
>
> I'm currently trying to get it working on my Thinkpad
> 570E(circa 2000). The problem is that the cardbus throws some errors 
> and I
> can't get any of the PCMCIA cards to load. I had a similar problem 
> with
> FBSD but I solved it by running `sysctl hw.cbb.start_32_io=0x4000` and
> re-inserting the card. I tried the same thing from the Dfly installCD 
> but it
> didn't seem to work. I'm a bit wary about wiping FBSD off this 
> machine in
> favor of dragonfly and have the cardbus not work at all.
>
> I got the idea to run that command from this page:
> http://www.ayukov.com/essays/freebsd-on-thinkpad-570.html
>
> Any assistance much appreciated.
>
> Andrew
>

Please try following patch (from joerg):
http://leaf.dragonflybsd.org/~sephe/cbb-apr-09.diff

It should be applied cleanly to HEAD or PREVIEW

Best Regards,
sephe

--
Live Free or Die



Re: Thinkpad 570E and Cardbus errors

2006-04-21 Thread Justin C. Sherrill
On Fri, April 21, 2006 6:15 pm, [EMAIL PROTECTED] wrote:
> On Fri, Apr 21, 2006 at 08:01:27AM +0200, Sascha Wildner wrote:
>> Try booting without ACPI and see if that makes a difference.
>>
> Didn't help. Throws several cardbus errors still. I can transcribe the
> errors if
> it'll help.

There's the FreeBSD Hardware Compatibility List:

http://gerda.univie.ac.at/freebsd-laptops/

Some of what's there may apply; I was able to get card slots on a IBM 600E
mostly working with some of the tips there.



Re: Thinkpad 570E and Cardbus errors

2006-04-21 Thread andrew
On Fri, Apr 21, 2006 at 08:01:27AM +0200, Sascha Wildner wrote:
> Try booting without ACPI and see if that makes a difference.
>
Didn't help. Throws several cardbus errors still. I can transcribe the errors if
it'll help.

Andrew


Re: Thinkpad 570E and Cardbus errors

2006-04-20 Thread Sascha Wildner

[EMAIL PROTECTED] wrote:

Hey all,

I'm not entirely new to DflyBSD but I haven't kept any install of it on my PC
for any length of time. I've been a follower of the project for some time and I
finally have a machine I think I can run dfly on full time, but.. I need
some help.

I'm currently trying to get it working on my Thinkpad
570E(circa 2000). The problem is that the cardbus throws some errors 
and I
can't get any of the PCMCIA cards to load. I had a similar problem with
FBSD but I solved it by running `sysctl hw.cbb.start_32_io=0x4000` and
re-inserting the card. I tried the same thing from the Dfly installCD 
but it
didn't seem to work. I'm a bit wary about wiping FBSD off this machine 
in
favor of dragonfly and have the cardbus not work at all.

I got the idea to run that command from this page:
http://www.ayukov.com/essays/freebsd-on-thinkpad-570.html

Any assistance much appreciated.


Try booting without ACPI and see if that makes a difference.

Sascha

--
http://yoyodyne.ath.cx