From owner-freebsd-mobile@FreeBSD.ORG Thu Jul 14 11:20:34 2005 Return-Path: X-Original-To: freebsd-mobile@freebsd.org 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 8998616A41C for ; Thu, 14 Jul 2005 11:20:34 +0000 (GMT) (envelope-from giuseppe.argentieri@trotzky.fisica.unipd.it) Received: from trotzky.fisica.unipd.it (spiro.fisica.unipd.it [147.162.55.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B2D143D45 for ; Thu, 14 Jul 2005 11:20:33 +0000 (GMT) (envelope-from giuseppe.argentieri@trotzky.fisica.unipd.it) Received: from gauss.fisica.unipd.it (gauss.fisica.unipd.it [192.168.1.24]) by trotzky.fisica.unipd.it (8.11.6/8.9.3) with ESMTP id j6EBKTe12073; Thu, 14 Jul 2005 13:20:31 +0200 Received: from gauss.fisica.unipd.it (localhost.localdomain [127.0.0.1]) by gauss.fisica.unipd.it (8.12.11/8.12.11) with ESMTP id j6EBKTWH022049; Thu, 14 Jul 2005 13:20:29 +0200 Received: (from argentie@localhost) by gauss.fisica.unipd.it (8.12.11/8.12.11/Submit) id j6EBKShM022047; Thu, 14 Jul 2005 13:20:28 +0200 Date: Thu, 14 Jul 2005 13:20:28 +0200 From: Giuseppe Argentieri To: Stefan Bauer Message-ID: <20050714112028.GA21631@gauss.fisica.unipd.it> References: <20050705142127.GA4186@gauss.fisica.unipd.it> <42D4F6A5.5080708@splatterworld.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42D4F6A5.5080708@splatterworld.de> User-Agent: Mutt/1.4.1i X-Operating-System: Linux gauss.fisica.unipd.it 2.4.21-15.0.2.EL Cc: freebsd-mobile@freebsd.org Subject: Re: PCMCIA issues X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Giuseppe Argentieri List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2005 11:20:34 -0000 On Wed, Jul 13, 2005 at 01:10:29PM +0200, Stefan Bauer wrote: > as hint: > if its a 16bit pcmcia card u have to map the space to _right_ position. > a good value would be at least > sysctl -w hw.cbb.start_memory="0x21000000" This is a good point but... how can I find the _right_ position? There must be a better method than trying all possible offsets rebooting hundreds of times. > next step i would recomend is to set the debug level higher and then > remove & plugin the wi card again: > do a > sysctl hw.wi.debug=1 > and have a look if there is any output. No output. I built a kernel.debug, too. Booting in verbose mode, with hw.cbb.debug=1 hw.pccard.debug=1 hw.cardbus.debug=1 hw.pccard.cis_debug=1 hw.cardbus.cis_debug=1 hw.wi.debug=1 I have the same messages. Well, not exactly the same: this time there is not the "Bad Vcc request" error but the pcmcia slot still not works. I think there is no way to increase the debug level. I peeked at the sources in dev/pccard/pccard.c dev/cardbus/cardbus.c dev/pccbb/pccbb.c but those TUNABLES seem to be only flags. I mean: putting hw.pccard.debug=1 or hw.pccard.debug=3 doesn't change anything. In pccbb.c there are two o2micro_power_hack() functions. Maybe O2Micro Controllers are not well supported at the present time. I'm going to put some printf around in order to have more information about those variables and structs, but honestly I have no idea of what they mean. > in case nothing happend, reboot the machine without acpi and see if you > get the same behaviors. Disabling ACPI the machine goes in kernel panic while booting. According to acpi(4) it's possible to disable only some acpi sub-drivers via "debug.acpi.disabled" environment variable. I'll try these tricks. -- http://swpat.ffii.org/ Giuseppe