Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jul 2002 10:52:51 +0200
From:      "Mauritz Sundell" <mauritz.sundell@telia.com>
To:        <pschmied@selway.umt.edu>, "M. Warner Losh" <imp@village.org>
Cc:        <freebsd-mobile@FreeBSD.ORG>
Subject:   Re: Netgear 802.11 PCMCIA
Message-ID:  <002c01c22726$021f6e50$0e81a8c0@gilgamesh>
References:  <Pine.OSF.4.21.0207072159260.9456-100000@selway.umt.edu> <20020707.234212.32717353.imp@village.org>

next in thread | previous in thread | raw e-mail | index | archive | help
What are correct values for machdep.pccard.mem_{start,end} ?

I have a similar problem for the same pccard (MA401) but under
FreeBSD-CURRENT (OLDCARD) and a Compaq Evo N160 laptop with
128MB RAM.
> : pccardd[49]: No card in database for "(null)"("(null)")
after I had done 'pccardc power 0 1'

I had an FreeBSD-4.6 installation that did work fine with the card.

What have changed from 4.6-RELEASE to CURRENT?

In CURRENT the file
FreeBSD/src/sys/pccard/pcic_pci.c included:
#define CARDBUS_SYS_RES_MEMORY_START  0x88000000
sysctl:
machdep.pccard.mem_start: 655360 (0xA0000)
machdep.pccard.mem_end: 1048576 (0x100000)

In 4.6 the file FreeBSD/src/sys/pccard/pcic_pci.c included:
#define CARDBUS_SYS_RES_MEMORY_START  0x44000000

But in CURRENT it does not seems to be used (0xd0200000 instead), and it to
me also look as 0xd0200000 is allocated twice for pcic0 and fxp0!.
Extract of dmesg:
...
FreeBSD 5.0-CURRENT #10: Mon Jul 8 16:27:58 CEST 2002
...
pcib2: <PCI-PCI bridge> at device 30.0 on pci0
pci2: <PCI bus> on pcib2
pci2: <simple comms> at device 4.0 (no driver attached)
pci2: <serial bus, FireWire> at device 5.0 (no driver attached)
pcic0: <TI PCI-1410 PCI-CardBus Bridge> irq 10 at device 6.0 on pci2
pcic0: PCI Memory allocated: 0xd0200000
pcic0: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][CSC
serial isa irq]
pccard0: <PC Card bus (classic)> on pcic0
fxp0: <Intel PRO/100 Ethernet> port 0x3000-0x303f mem 0xd0200000-0xd0200fff
irq 9 at device 8.0 on pci2

In RELEASE I had:
...
FreeBSD 4.6-RELEASE #0: Tue Jun 11 06:14:12 GMT 2002
...
pcib2: <PCI-PCI bridge (vendor ...)> at device 30.0 on pci0
pci2: <PCI bus> on pcib2
pci2: <unknown card> (vendor ... ) at device 4.0
pci2: <unknown card> (vendor ... ) at device 5.0
pcic0: <TI PCI-1410 PCI-CardBus Bridge> irq 10 at device 6.0 on pci2
pcic0: PCI Memory allocated: 0x44000000
pcic0: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][CSC
serial isa irq]
pccard0: <PC Card bus (classic)> on pcic0
fxp0: <Intel PRO/100 Ethernet> port 0x3000-0x303f mem 0xd0200000-0xd0200fff
irq 9 at device 8.0 on pci2

In 4.6 the card is recognized as:
pccard[50]: Card "NETGEAR MA401 Wireless PC"("Card") [Version 01.00] []
matched ...
wi0 at port 0x240-0x27f irq 10 flags 0x10000 slot 0 on pccard0

----- Original Message -----
From: "M. Warner Losh" <imp@village.org>
To: <pschmied@selway.umt.edu>
Cc: <freebsd-mobile@FreeBSD.ORG>
Sent: Monday, July 08, 2002 7:42 AM
Subject: Re: Netgear 802.11 PCMCIA


> In message: <Pine.OSF.4.21.0207072159260.9456-100000@selway.umt.edu>
>             Peter W Schmiedeskamp <pschmied@selway.umt.edu> writes:
> : pccardd[49]: No card in database for "(null)"("(null)")
> ...
> : Any ideas on how to get this to work?
>
> There's two causes for this problem.  First, you've not set
> machdep.pccard.mem_start and/or machdpe.pccard.mem_end correctly.
> This can be set in /etc/sysctl.conf.  However, that's become a less
> likely problem in newer versions of the system.
>
> The second is that you have a laptop with a lot of RAM, and the
> address that we're picking conflicts with the RAM.  You'll have to
> hack FreeBSD/src/sys/pccard/pcic_pci.c and change the #define
> CARDBUS_SYS_RES_MEMORY_START to be something like 0x88000000.  This is
> a bug FreeBSD has in assigning PCI resources.
>
> Warner
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-mobile" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002c01c22726$021f6e50$0e81a8c0>