Re: Use PCMCIA instead of CardBus?

2005-05-12 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Kirk Strauser [EMAIL PROTECTED] writes:
: On Tuesday 10 May 2005 04:15 pm, Warner Losh wrote:
: 
:  On Monday 09 May 2005 09:42, Kirk Strauser wrote:
: 
:  Anyone?  I've just re-installed NetBSD 2.0.2 for the sake of having a BSD
:  on it until I can possibly make FreeBSD to work, but that's certainly not
:  my ideal solution.
: 
:  I have no idea what you are asking for.
: 
: Basically, for a magic formula to make my non-Cardbus PCMCIA card work under 
: FreeBSD (without throwing CIS is too long errors) just like it does under 
: OpenBSD, NetBSD, and Linux.

They work fine for me on my laptop :-).

However, there's a known issue, that's hard to resolve, on some
laptops.  If you aren't using ACPI, then you may have to specify the
host bridge's starting memory address as a tunable (in
/boot/loader.conf).  hw.pci.host_mem_start defaults to 0x8000.
Some systems require a higher address.  Try using 0xc000,
0xd000, or 0xf000.  If that's not the problem, then I'll need
a more complete dmesg.

Warner
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Use PCMCIA instead of CardBus?

2005-05-12 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Matthias Buelow [EMAIL PROTECTED] writes:
: Kirk Strauser wrote:
: 
:  Basically, for a magic formula to make my non-Cardbus PCMCIA card work 
under 
:  FreeBSD (without throwing CIS is too long errors) just like it does under 
:  OpenBSD, NetBSD, and Linux.
: 
: I'm trying to do similar things.. I'm trying to get a wi0 wi-fi card
: working on non-cardbus pcmcia.  It worked mostly (with acpi disabled) on
: 5.3.  With 5.4 now I just get device timeout.  Plus, the sysinstall for
: several iterations of the same manual procedure set the interface down
: (and kept it down) after I manually configured it in the fixit shell
: (providing the same options in sysinstall's network dialog wouldn't
: work).  Ah.. the pain...  I think I'll switch back to NetBSD on that box
: aswell, which ran fine. *sigh*

Sounds like a PCI routing issue, if you are getting device timeouts.

Warner
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Use PCMCIA instead of CardBus?

2005-05-12 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Kirk Strauser [EMAIL PROTECTED] writes:
: On Tuesday 10 May 2005 16:15, Warner Losh wrote:
: 
:  I have no idea what you are asking for.
: 
: Let me restate my original dilemma.  My laptop can only use my WLAN card 
: when it's configured as a 16-bit PCMCIA device and not as a 32-bit CardBus 
: device.

I have several such devices.

: In NetBSD, this can be accomplished by typing boot -c at its loader prompt 
: and typing disable cbb* to disable the cbb (CardBus) drivers, which 
: leaves the pcic (PCMCIA) drivers to correctly configure the card.  After 
: doing this, the card works exactly as hoped.

Why do you need to disable CardBus.  The bridge should automatically
detect that it is a R2 card (16-bit) and do the right thing.

: However, commenting out device cbb in my FreeBSD kernel results in a 
: non-working setup.  By that, I mean that the card's lights never flicker as 
: it's being inserted (as it would do under NetBSD and Linux when it's being 
: probed).  In fact, I get no debugging information at all, whether 
: from /var/log/messages or via dmesg. 
: 
: Any ideas where I could go from here?

In addition to my earlier suggestion, you can enable 'hw.cbb.debug=1'
and 'hw.cardbus.debug=1' and 'hw.pccard.debug=1' and
'hw.pccard.cis_debug=1' for a much more chatty boot.  This won't solve
your problem, but will give me a clue about what might be going on.

Warner
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Use PCMCIA instead of CardBus?

2005-05-12 Thread Matthias Buelow
M. Warner Losh wrote:

 : I'm trying to do similar things.. I'm trying to get a wi0 wi-fi card
 : working on non-cardbus pcmcia.  It worked mostly (with acpi disabled) on
 : 5.3.  With 5.4 now I just get device timeout.  Plus, the sysinstall for

 Sounds like a PCI routing issue, if you are getting device timeouts.

Interestingly, today a similar procedure worked.. without device
timeouts.  This time I dropped right into the fixit shell and configured
the card without first letting sysinstall attempt its stuff.  I also
used dhclient right from start (instead of first fumbling a static
address onto the card).  Sysinstall still complained and presented me
with the network dialog (why is there no way to skip this?  There should
be an option network already configured) but it apparently didn't
clobber the settings.  Perhaps I'll try another reinstall later and see
if I was just lucky (or unlucky the last one) or if it's more reliable
that way.

mkb.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Use PCMCIA instead of CardBus?

2005-05-11 Thread Kirk Strauser
On Tuesday 10 May 2005 16:15, Warner Losh wrote:

 I have no idea what you are asking for.

Let me restate my original dilemma.  My laptop can only use my WLAN card 
when it's configured as a 16-bit PCMCIA device and not as a 32-bit CardBus 
device.

In NetBSD, this can be accomplished by typing boot -c at its loader prompt 
and typing disable cbb* to disable the cbb (CardBus) drivers, which 
leaves the pcic (PCMCIA) drivers to correctly configure the card.  After 
doing this, the card works exactly as hoped.

Similarly, I can get the same effect under Linux by disabling the 32-bit 
CardBus support option; the end result is a happily working WLAN card.

However, commenting out device cbb in my FreeBSD kernel results in a 
non-working setup.  By that, I mean that the card's lights never flicker as 
it's being inserted (as it would do under NetBSD and Linux when it's being 
probed).  In fact, I get no debugging information at all, whether 
from /var/log/messages or via dmesg. 

Any ideas where I could go from here?
-- 
Kirk Strauser


pgpzjrRmiDCkK.pgp
Description: PGP signature


Re: Use PCMCIA instead of CardBus?

2005-05-11 Thread Joerg Pulz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Wed, 11 May 2005, Kirk Strauser wrote:
On Tuesday 10 May 2005 16:15, Warner Losh wrote:
I have no idea what you are asking for.
Let me restate my original dilemma.  My laptop can only use my WLAN card
when it's configured as a 16-bit PCMCIA device and not as a 32-bit CardBus
device.
In NetBSD, this can be accomplished by typing boot -c at its loader prompt
and typing disable cbb* to disable the cbb (CardBus) drivers, which
leaves the pcic (PCMCIA) drivers to correctly configure the card.  After
doing this, the card works exactly as hoped.
Similarly, I can get the same effect under Linux by disabling the 32-bit
CardBus support option; the end result is a happily working WLAN card.
However, commenting out device cbb in my FreeBSD kernel results in a
non-working setup.  By that, I mean that the card's lights never flicker as
it's being inserted (as it would do under NetBSD and Linux when it's being
probed).  In fact, I get no debugging information at all, whether
from /var/log/messages or via dmesg.
Any ideas where I could go from here?
You should take a look into src/sys/i386/conf/OLDCARD
change the appropriate lines in you kernel configuration and rebuild your 
kernel.

Hope that is what you are searching for..
Joerg
- -- 
The beginning is the most important part of the work.
-Plato
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQFCghaJSPOsGF+KA+MRAuoDAJ0UcPuJJaCjm2ATNM4n/5tS1lKorwCfeDvA
6Xin6+TqW0pK8GQ6rlD3sTk=
=2oKa
-END PGP SIGNATURE-
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Use PCMCIA instead of CardBus?

2005-05-11 Thread Kirk Strauser
On Wednesday 11 May 2005 09:28, Joerg Pulz wrote:

 You should take a look into src/sys/i386/conf/OLDCARD
 change the appropriate lines in you kernel configuration and rebuild your
 kernel.

I appreciate the suggestion, but pcic(4) includes this less-than-promising 
statement:

BUGS
 This does not work at all at the moment.

I'll give it a shot anyway, though, and pray for out-of-date man pages.  :-)
-- 
Kirk Strauser


pgphrMwiFdebe.pgp
Description: PGP signature


Re: Use PCMCIA instead of CardBus?

2005-05-10 Thread Kirk Strauser
On Monday 09 May 2005 09:42, Kirk Strauser wrote:

 The same setup can boot NetBSD and Linux to get full use of the card by
 disabling the Cardbus drivers in favor of the PCMCIA ones (ie, by running
 config on NetBSD and typing disable cbb, or by building a custom
 Linux kernel with the appropriate settings).  I can't seem to get the
 same results from FreeBSD, though.

Anyone?  I've just re-installed NetBSD 2.0.2 for the sake of having a BSD on 
it until I can possibly make FreeBSD to work, but that's certainly not my 
ideal solution.
-- 
Kirk Strauser


pgpEKWUgDKbp1.pgp
Description: PGP signature


Re: Use PCMCIA instead of CardBus?

2005-05-10 Thread Warner Losh
 On Monday 09 May 2005 09:42, Kirk Strauser wrote:
 
  The same setup can boot NetBSD and Linux to get full use of the card by
  disabling the Cardbus drivers in favor of the PCMCIA ones (ie, by running
  config on NetBSD and typing disable cbb, or by building a custom
  Linux kernel with the appropriate settings).  I can't seem to get the
  same results from FreeBSD, though.
 
 Anyone?  I've just re-installed NetBSD 2.0.2 for the sake of having a BSD on 
 it until I can possibly make FreeBSD to work, but that's certainly not my 
 ideal solution.

I have no idea what you are asking for.

Warner
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Use PCMCIA instead of CardBus?

2005-05-10 Thread Kirk Strauser
On Tuesday 10 May 2005 04:15 pm, Warner Losh wrote:

 On Monday 09 May 2005 09:42, Kirk Strauser wrote:

 Anyone?  I've just re-installed NetBSD 2.0.2 for the sake of having a BSD
 on it until I can possibly make FreeBSD to work, but that's certainly not
 my ideal solution.

 I have no idea what you are asking for.

Basically, for a magic formula to make my non-Cardbus PCMCIA card work under 
FreeBSD (without throwing CIS is too long errors) just like it does under 
OpenBSD, NetBSD, and Linux.
-- 
Kirk Strauser


pgpvl9UXJmQ2O.pgp
Description: PGP signature


Re: Use PCMCIA instead of CardBus?

2005-05-10 Thread Matthias Buelow
Kirk Strauser wrote:

 Basically, for a magic formula to make my non-Cardbus PCMCIA card work under 
 FreeBSD (without throwing CIS is too long errors) just like it does under 
 OpenBSD, NetBSD, and Linux.

I'm trying to do similar things.. I'm trying to get a wi0 wi-fi card
working on non-cardbus pcmcia.  It worked mostly (with acpi disabled) on
5.3.  With 5.4 now I just get device timeout.  Plus, the sysinstall for
several iterations of the same manual procedure set the interface down
(and kept it down) after I manually configured it in the fixit shell
(providing the same options in sysinstall's network dialog wouldn't
work).  Ah.. the pain...  I think I'll switch back to NetBSD on that box
aswell, which ran fine. *sigh*

mkb.

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Use PCMCIA instead of CardBus?

2005-05-09 Thread Kirk Strauser
I have an older laptop (AMS TravelTech w/ K6-3+/333) and a Microsoft MN-520 
WLAN adapter.  I want to put FreeBSD on it, but I'm having a lot of trouble 
with the card not being recognized after the infamous errors:

CIS is too long -- truncating
pccard0: Card has no functions!
cbb0: PC Card card activation failed

The same setup can boot NetBSD and Linux to get full use of the card by 
disabling the Cardbus drivers in favor of the PCMCIA ones (ie, by running 
config on NetBSD and typing disable cbb, or by building a custom Linux 
kernel with the appropriate settings).  I can't seem to get the same 
results from FreeBSD, though.  Any suggestions?
-- 
Kirk Strauser


pgpIP7IKFd6uL.pgp
Description: PGP signature