From owner-freebsd-mobile Tue Jul 9 1:48: 3 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0F4D37B400 for ; Tue, 9 Jul 2002 01:47:56 -0700 (PDT) Received: from maile.telia.com (maile.telia.com [194.22.190.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9918E43E09 for ; Tue, 9 Jul 2002 01:47:55 -0700 (PDT) (envelope-from mauritz.sundell@telia.com) Received: from d1o89.telia.com (d1o89.telia.com [213.66.60.241]) by maile.telia.com (8.11.6/8.11.6) with ESMTP id g698lss16324; Tue, 9 Jul 2002 10:47:54 +0200 (CEST) Received: from gilgamesh (h131n1fls31o89.telia.com [213.66.60.131]) by d1o89.telia.com (8.10.2/8.10.1) with SMTP id g698lrK25183; Tue, 9 Jul 2002 10:47:53 +0200 (CEST) Message-ID: <002c01c22726$021f6e50$0e81a8c0@gilgamesh> From: "Mauritz Sundell" To: , "M. Warner Losh" Cc: References: <20020707.234212.32717353.imp@village.org> Subject: Re: Netgear 802.11 PCMCIA Date: Tue, 9 Jul 2002 10:52:51 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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: at device 30.0 on pci0 pci2: on pcib2 pci2: at device 4.0 (no driver attached) pci2: at device 5.0 (no driver attached) pcic0: 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: on pcic0 fxp0: 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: at device 30.0 on pci0 pci2: on pcib2 pci2: (vendor ... ) at device 4.0 pci2: (vendor ... ) at device 5.0 pcic0: 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: on pcic0 fxp0: 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" To: Cc: Sent: Monday, July 08, 2002 7:42 AM Subject: Re: Netgear 802.11 PCMCIA > In message: > Peter W Schmiedeskamp 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