From owner-freebsd-mobile@FreeBSD.ORG Thu Nov 8 19:53:55 2007 Return-Path: Delivered-To: mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C437C16A419 for ; Thu, 8 Nov 2007 19:53:55 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 6910713C4B9 for ; Thu, 8 Nov 2007 19:53:50 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id lA8JQDUs072938; Thu, 8 Nov 2007 20:26:13 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id lA8JQ73J016672 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 8 Nov 2007 20:26:08 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id lA8JQ7DI018105; Thu, 8 Nov 2007 20:26:07 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id lA8JQ4lL018104; Thu, 8 Nov 2007 20:26:04 +0100 (CET) (envelope-from ticso) Date: Thu, 8 Nov 2007 20:26:04 +0100 From: Bernd Walter To: Rene Ladan Message-ID: <20071108192604.GG13508@cicely12.cicely.de> References: <200711071056.13466.root@solink.ru> <47322A66.9050505@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47322A66.9050505@gmail.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, AWL=0.039, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: Bachilo Dmitry , current@freebsd.org, mobile@freebsd.org Subject: Re: PCI Cardreader X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 19:53:55 -0000 On Wed, Nov 07, 2007 at 10:13:10PM +0100, Rene Ladan wrote: > Bachilo Dmitry schreef: > > Hello all. > > I always used USB cardreaders and had no problem with it, but now in my > > notebook I have a cardreader, that appears to be onboard PCI device. And so > > FreeBSD sees it as this: > > pci6: at device 4.1 (no driver attached) > > pci6: at device 4.2 (no driver attached) > > pci6: at device 4.3 (no driver attached) > > pci6: at device 4.4 (no driver attached) > > > > > > That's even more odd because three are recognized as flash and one is not. > > pciconf -lv shows this: > > > > none13@pci6:4:1: class=0x050100 card=0x009f1025 chip=0x05301524 > > rev=0x01 hdr=0x00 > > vendor = 'ENE Technology Inc' > > device = 'PCI Memory Stick Card Reader Controller' > > class = memory > > subclass = flash > > > > Well, in 7.0-CURRENT it showed all four devices and now in BETA-2 only this > > one. > > > On my 8.0-CURRENT box (20071105) it shows all four devices: > > cbb0@pci0:4:1:0: class=0x060700 card=0x14371043 chip=0x04761180 rev=0xb3 hdr=0x02 > vendor = 'Ricoh Company, Ltd.' > device = 'unknown Ricoh R/RL/5C476(II)' > class = bridge > subclass = PCI-CardBus > fwohci0@pci0:4:1:1: class=0x0c0010 card=0x14371043 chip=0x05521180 rev=0x08 hdr=0x00 > vendor = 'Ricoh Company, Ltd.' > device = 'RL5c552 IEEE-1394 Controller' > class = serial bus > subclass = FireWire > none0@pci0:4:1:2: class=0x080500 card=0x14371043 chip=0x08221180 rev=0x17 hdr=0x00 > vendor = 'Ricoh Company, Ltd.' > device = 'R5C832, R5C843 SDA Standard Compliant SD Host Controller' > class = base peripheral > none1@pci0:4:1:3: class=0x088000 card=0x14371043 chip=0x05921180 rev=0x08 hdr=0x00 > vendor = 'Ricoh Company, Ltd.' > device = '13871043 Ricoh Memory Stick Host Controller' > class = base peripheral > > > Is there any way I can make them work? > > > You can add these lines to your kernel configuration: > > device mmc > device mmcsd > > But don't expect any magic. mmc(4) and mmcsd(4) tell that nothing currently works, > which seems to be true on my Asus A6JE (using a Kingston micro-SD card with adapter). It can't work this way. mmc is the bus support and mmcsd is the support for SD memory cards. You still need a driver for the controller itself, such as the at91_mci driver for AT91RM9200 controller, for which everything works fine. This is similar to SCSI, where you need scbus and sd, but also a driver for the bus controller, such as ahc, sym, etc... That said - even if you have this driver for your controller this is only for SD cards so far, not MMC cards, which are quite similar to SD and of course not memory stick or any other of the large number of flash card types. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de