From owner-freebsd-mobile Sun Jul 11 21:55: 1 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id A34C614BCE; Sun, 11 Jul 1999 21:54:55 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id OAA04220; Mon, 12 Jul 1999 14:24:53 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id OAA29216; Mon, 12 Jul 1999 14:24:52 +0930 (CST) Date: Mon, 12 Jul 1999 14:24:52 +0930 From: Greg Lehey To: FreeBSD mobile Mailing List , FreeBSD current users Subject: When will -CURRENT support PCMCIA modems again? Message-ID: <19990712142452.F21403@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I've just updated my laptop from 3.2-RELEASE to 4.0-CURRENT, and I find that PCMCIA modems (sio) are no longer supported. I'm playing around with it to get it to work, but so far I've just managed to get panics out of sioprobe. Before I continue with this: is anybody else working on it? If so, I'll get out of your way. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Mon Jul 12 10:49:12 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from gratis.grondar.za (gratis.grondar.za [196.7.18.65]) by hub.freebsd.org (Postfix) with ESMTP id B1384150BE; Mon, 12 Jul 1999 10:48:49 -0700 (PDT) (envelope-from mark@grondar.za) Received: from grondar.za (localhost [127.0.0.1]) by gratis.grondar.za (8.9.3/8.9.3) with ESMTP id TAA63538; Mon, 12 Jul 1999 19:47:46 +0200 (SAST) (envelope-from mark@grondar.za) Message-Id: <199907121747.TAA63538@gratis.grondar.za> To: Greg Lehey Cc: FreeBSD mobile Mailing List , FreeBSD current users Subject: Re: When will -CURRENT support PCMCIA modems again? Date: Mon, 12 Jul 1999 19:47:44 +0200 From: Mark Murray Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I've just updated my laptop from 3.2-RELEASE to 4.0-CURRENT, and I > find that PCMCIA modems (sio) are no longer supported. I'm playing > around with it to get it to work, but so far I've just managed to get > panics out of sioprobe. Before I continue with this: is anybody else > working on it? If so, I'll get out of your way. Warner Losh is working on this, but he has the bad taste to let his day job take priority, so this will take a bit of time ;-) M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Mon Jul 12 17:49:39 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from mail.cybcon.com (mail.cybcon.com [216.190.188.5]) by hub.freebsd.org (Postfix) with ESMTP id 3C78015270 for ; Mon, 12 Jul 1999 17:49:29 -0700 (PDT) (envelope-from wwoods@cybcon.com) Received: from william (usr1-0.cybcon.com [205.147.75.1]) by mail.cybcon.com (8.9.0/8.9.0) with SMTP id RAA12012; Mon, 12 Jul 1999 17:22:17 -0700 (PDT) From: "William Woods" To: "Greg Lehey" Cc: "Freebsd Mobile" Subject: RE: When will -CURRENT support PCMCIA modems again? Date: Mon, 12 Jul 1999 16:22:23 -0700 Message-ID: <000301beccbd$65254860$014b93cd@william> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: <19990712142452.F21403@freebie.lemis.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Well, glad I saw this.....I was gonna go current after I got off work today..... Sorry for the hard luck Greg, but thanks for the warning. William > -----Original Message----- > From: owner-freebsd-mobile@FreeBSD.ORG > [mailto:owner-freebsd-mobile@FreeBSD.ORG]On Behalf Of Greg Lehey > Sent: Sunday, July 11, 1999 9:55 PM > To: FreeBSD mobile Mailing List; FreeBSD current users > Subject: When will -CURRENT support PCMCIA modems again? > > > I've just updated my laptop from 3.2-RELEASE to 4.0-CURRENT, and I > find that PCMCIA modems (sio) are no longer supported. I'm playing > around with it to get it to work, but so far I've just managed to get > panics out of sioprobe. Before I continue with this: is anybody else > working on it? If so, I'll get out of your way. > > Greg > -- > See complete headers for address, home page and phone numbers > finger grog@lemis.com for PGP public key > > > 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 From owner-freebsd-mobile Tue Jul 13 1:30:30 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id 1FA33152C1 for ; Tue, 13 Jul 1999 01:30:27 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by relay.nuxi.com (8.9.3/8.9.3) id BAA51912 for freebsd-mobile@FreeBSD.ORG; Tue, 13 Jul 1999 01:29:56 -0700 (PDT) (envelope-from obrien) Message-ID: <19990713012956.A51899@nuxi.com> Date: Tue, 13 Jul 1999 01:29:56 -0700 From: "David O'Brien" To: freebsd-mobile@FreeBSD.ORG Subject: pccardd delays Reply-To: obrien@FreeBSD.ORG Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org For some reason pccardd is taking a long time to initialize my PCIMCA network card. rc.pccard is run before rc.network, yet when I try to initialize ``ep0'' the interface does not exist until about the time the "login:" prompt appears. (ie, " pccardd[60]: pccard started" message) Does anybody know why this is happening? -- -- David (obrien@NUXI.com -or- obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 13 4:33: 0 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from mtiwmhc01.worldnet.att.net (mtiwmhc01.worldnet.att.net [204.127.131.36]) by hub.freebsd.org (Postfix) with ESMTP id D5A9114FD6; Tue, 13 Jul 1999 04:32:52 -0700 (PDT) (envelope-from jedgar@fxp.org) Received: from earth.fxp ([12.77.176.151]) by mtiwmhc01.worldnet.att.net (InterMail v03.02.07.07 118-134) with ESMTP id <19990713113244.YFJN2808@earth.fxp>; Tue, 13 Jul 1999 11:32:44 +0000 Received: by earth.fxp (Postfix, from userid 1000) id 162BB37D3; Tue, 13 Jul 1999 07:32:40 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by earth.fxp (Postfix) with ESMTP id C67DE8B0A; Tue, 13 Jul 1999 07:32:40 -0400 (EDT) Date: Tue, 13 Jul 1999 07:32:38 -0400 (EDT) From: "Chris D. Faulhaber" X-Sender: jedgar@earth.fxp To: David O'Brien Cc: freebsd-mobile@FreeBSD.ORG Subject: Re: pccardd delays In-Reply-To: <19990713012956.A51899@nuxi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, 13 Jul 1999, David O'Brien wrote: > For some reason pccardd is taking a long time to initialize my PCIMCA > network card. rc.pccard is run before rc.network, yet when I try to > initialize ``ep0'' the interface does not exist until about the time the > "login:" prompt appears. (ie, " pccardd[60]: pccard > started" message) > > Does anybody know why this is happening? > Looking at the pccardd source, 5 second delays are found in both setup_slot() and card_inserted() which may explain 10 seconds of the initialization. BTW, same thing happens here with my pccard NIC and modem. ----- Chris D. Faulhaber | All the true gurus I've met never System/Network Administrator, | claimed they were one and always Reality Check Information, Inc. | pointed to someone better. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 13 15:16:53 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id DCFC1152F7; Tue, 13 Jul 1999 15:16:28 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id QAA21557; Tue, 13 Jul 1999 16:15:43 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id QAA50028; Tue, 13 Jul 1999 16:14:33 -0600 (MDT) Message-Id: <199907132214.QAA50028@harmony.village.org> To: Greg Lehey Subject: Re: When will -CURRENT support PCMCIA modems again? Cc: FreeBSD mobile Mailing List , FreeBSD current users In-reply-to: Your message of "Mon, 12 Jul 1999 14:24:52 +0930." <19990712142452.F21403@freebie.lemis.com> References: <19990712142452.F21403@freebie.lemis.com> Date: Tue, 13 Jul 1999 16:14:33 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <19990712142452.F21403@freebie.lemis.com> Greg Lehey writes: : I've just updated my laptop from 3.2-RELEASE to 4.0-CURRENT, and I : find that PCMCIA modems (sio) are no longer supported. I'm playing : around with it to get it to work, but so far I've just managed to get : panics out of sioprobe. Before I continue with this: is anybody else : working on it? If so, I'll get out of your way. I think I have an idea on how to make this work, but have not had the time to make it work. I've taken the day off (mostly because my brother was in town through today) and am trying to get my system working again with the current pccard code.... Once that happens, it should be a couple hours to maybe having an interesting kludge to make new-bus drivers have pccard attachments.... if I'm lucky... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 13 15:21:26 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id B875115148 for ; Tue, 13 Jul 1999 15:21:13 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id QAA21591 for ; Tue, 13 Jul 1999 16:21:12 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id QAA50120 for ; Tue, 13 Jul 1999 16:20:02 -0600 (MDT) Message-Id: <199907132220.QAA50120@harmony.village.org> To: mobile@freebsd.org Subject: pccard and -current Date: Tue, 13 Jul 1999 16:20:02 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm trying to find out what, exactly, the status of pccard is on -current. Since I've had my head in some experimental code for a long time, I no longer have a good feel for these things. Since this experimental code is going to take a while, I'd like to try to address whatever issues are currently present in the code. I've spent the better part of 4 hours this afternoon getting a good tree together. I have a good kernel, but need to do a build world, I think. My guess is that old drivers are working, but new-bus drivers (fdc and sio) are not. Is that the case? Also, are there any objections to my placing more explicit error messages for failure modes in pccardd/pccard,pcic drivers? I have added some locally (which got me to the point of realizing I needed a make buildworld). pccardd's error reporting on plain old FreeBSD has always been too oracular ("yes" or "no" w/o explaination) for my tastes. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 13 15:23:15 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id D08411512E for ; Tue, 13 Jul 1999 15:23:07 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id QAA21601 for ; Tue, 13 Jul 1999 16:22:44 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id QAA50148 for ; Tue, 13 Jul 1999 16:21:34 -0600 (MDT) Message-Id: <199907132221.QAA50148@harmony.village.org> To: mobile@freebsd.org Subject: pcic module Date: Tue, 13 Jul 1999 16:21:34 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Why is pcic even a module? It is intimately related to pccard.c, and all the drivers have #ifdefs based on pccard.c (actually NCARD, but that turns out to be the same thing). Any objections to simply deleting the Makefile and directory? Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 13 15:37: 2 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (Postfix) with ESMTP id A07A815134 for ; Tue, 13 Jul 1999 15:36:58 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.3/8.8.8) with ESMTP id PAA01546; Tue, 13 Jul 1999 15:31:56 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199907132231.PAA01546@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Warner Losh Cc: mobile@freebsd.org Subject: Re: pcic module In-reply-to: Your message of "Tue, 13 Jul 1999 16:21:34 MDT." <199907132221.QAA50148@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 13 Jul 1999 15:31:56 -0700 From: Mike Smith Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > Why is pcic even a module? It is intimately related to pccard.c, and > all the drivers have #ifdefs based on pccard.c (actually NCARD, but > that turns out to be the same thing). Any objections to simply > deleting the Makefile and directory? It was a half-complete idea. Ideally it should be a loadable bus type, but it's not useful in its current form. -- \\ The mind's the standard \\ Mike Smith \\ of the man. \\ msmith@freebsd.org \\ -- Joseph Merrick \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 13 15:51:26 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 3ED941524A for ; Tue, 13 Jul 1999 15:50:30 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id QAA21699; Tue, 13 Jul 1999 16:49:00 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id QAA50546; Tue, 13 Jul 1999 16:47:50 -0600 (MDT) Message-Id: <199907132247.QAA50546@harmony.village.org> To: Mike Smith Subject: Re: pcic module Cc: mobile@freebsd.org In-reply-to: Your message of "Tue, 13 Jul 1999 15:31:56 PDT." <199907132231.PAA01546@dingo.cdrom.com> References: <199907132231.PAA01546@dingo.cdrom.com> Date: Tue, 13 Jul 1999 16:47:50 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907132231.PAA01546@dingo.cdrom.com> Mike Smith writes: : It was a half-complete idea. Ideally it should be a loadable bus type, : but it's not useful in its current form. Right, but in order to be useful, the loadable bus type should also make it possible to have loadable bus attachments to that bus... I agree that someday this stuff should be loadable, and that it should be possible to load the pccard/card bus module, any support code for drivers (eg if_ep) and things should just work. For the moment, too many things are desided at compile time to make pcic a viable module. We may also need to convince new-bus driver writers to allow for this as well (eg for each driver foo, there should be a foo_pccard.c and/or foo_cardbus.c that can be loaded so that the foo device can be attached to the newly loaded device). Right now the bus attachment code tends to be intermingled with the bus independent code... But this is starting to drift back to the "how to organize the driver tree" thread, which might be dangerous :-). I guess it boils down to how fine a granularity we want to have in loading/unloading drivers... How much RAM is wasted by having all possible attachment drivers present in each driver vs the complexity of just loading the cardbus attachment code and not the pci attachment code. My guess is that the complexity would be higher with only a minimal savings in RAM space. Some mechanism does need to exist to map the pccard card and cardbus card information to a specific driver in FreeBSD. If we have a userland daemon, which I'd like to avoid, we can just do a table lookup in some config file, load the module and then attempt to probe/attach it. However, if it is all kernel based, I'm not sure how we can accomplish that since I don't think that the kernel can initiate a module load.... Unless there are some plans for doing this in the future that I've not heard of. In the discussions so far, I've always seen some external agent initiate the loading (eg kldload or the boot loader). A similar mechanism would be needed if we wanted to have some way to only load those devices that are detected at boot time, and unload the rest. pccard and cardbus cards make this problem potentially harder since they come and go at any time... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 13 16: 6:33 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (Postfix) with ESMTP id 3C89D1533B for ; Tue, 13 Jul 1999 16:06:30 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.3/8.8.8) with ESMTP id QAA01742; Tue, 13 Jul 1999 16:01:23 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199907132301.QAA01742@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Warner Losh Cc: mobile@freebsd.org Subject: Re: pcic module In-reply-to: Your message of "Tue, 13 Jul 1999 16:47:50 MDT." <199907132247.QAA50546@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 13 Jul 1999 16:01:23 -0700 From: Mike Smith Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > In message <199907132231.PAA01546@dingo.cdrom.com> Mike Smith writes: > : It was a half-complete idea. Ideally it should be a loadable bus type, > : but it's not useful in its current form. > > Right, but in order to be useful, the loadable bus type should also > make it possible to have loadable bus attachments to that bus... Hmm. Ideally, the driver should contain all the bus methods that are supported, and should be loadable even if the bus support isn't present in the kernel. This all harks back to the most-general-module-possible concept. Perhaps a halfway approach would be to aggregate all of the bus interface modules into the same object file as the driver, but only actually connect the modules that are required at load time. > We may also need to convince new-bus driver writers to allow for this > as well (eg for each driver foo, there should be a foo_pccard.c and/or > foo_cardbus.c that can be loaded so that the foo device can be > attached to the newly loaded device). Right now the bus attachment > code tends to be intermingled with the bus independent code... But > this is starting to drift back to the "how to organize the driver > tree" thread, which might be dangerous :-). Not at all. Now is the time to lay this down, and I think you're right on the money. Each bus:driver pair probably needs to be its own module, ie. for the 'ed' driver you have: Module File ------------------------------- if_ed if_ed.c if_ed_isa if_ed_isa.c if_ed_pci if_ed_pci.c if_ed_pccard if_ed_pccard.c ad nauseam. In each case, the bus-specific modules all depend on the if_ed module. > I guess it boils down to > how fine a granularity we want to have in loading/unloading > drivers... How much RAM is wasted by having all possible attachment > drivers present in each driver vs the complexity of just loading the > cardbus attachment code and not the pci attachment code. My guess is > that the complexity would be higher with only a minimal savings in RAM > space. We can reduce the complexity by aggregating them all into one object, which keeps the dependancy stuff out of the way for now (until we fix that), plus it lets people tweak the module size down by leaving parts out if they want to roll their own. > Some mechanism does need to exist to map the pccard card and cardbus > card information to a specific driver in FreeBSD. If we have a > userland daemon, which I'd like to avoid, we can just do a table > lookup in some config file, load the module and then attempt to > probe/attach it. However, if it is all kernel based, I'm not sure how > we can accomplish that since I don't think that the kernel can > initiate a module load.... Yes, it can. > A similar mechanism would be needed if we wanted to > have some way to only load those devices that are detected at boot > time, and unload the rest. pccard and cardbus cards make this problem > potentially harder since they come and go at any time... They're also virtually impossible to detect from the loader, which will ideally be able to deal with auto-preloading drivers for detected hardware. Just as an aside, I suspect this is why NT won't let you hotswap pccards; they do their pccard detection in their loader, but don't have any support for it in the kernel proper. -- \\ The mind's the standard \\ Mike Smith \\ of the man. \\ msmith@freebsd.org \\ -- Joseph Merrick \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 13 18:24:43 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id 3425D15373; Tue, 13 Jul 1999 18:24:36 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by relay.nuxi.com (8.9.3/8.9.3) id SAA68410; Tue, 13 Jul 1999 18:22:03 -0700 (PDT) (envelope-from obrien) Message-ID: <19990713182203.A68393@nuxi.com> Date: Tue, 13 Jul 1999 18:22:03 -0700 From: "David O'Brien" To: Scott Mitchell , freebsd-xircom@lovett.com Cc: hackers@FreeBSD.ORG, mobile@FreeBSD.ORG Subject: Re: Reading CIS from kernel? Reply-To: obrien@NUXI.com References: <19990710162730.60563@goatsucker.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <19990710162730.60563@goatsucker.org>; from Scott Mitchell on Sat, Jul 10, 1999 at 04:27:30PM +0100 X-Operating-System: FreeBSD 3.2-STABLE Organization: The NUXI BSD group X-PGP-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Keyid: 34F9F9D5 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > The Xircom ethernet driver needs to read/write PCCARD attribute memory from > its probe routine, in order to identify the type of card and to beat ... > then making crdread() and crdwrite() (in /sys/pccard/pccard.c) > non-static and calling them directly from the driver code would be an > easy workaround. Since no one has repsonded to this querry, I will be un-staticizing these so they will be available to drivers. -- -- David (obrien@NUXI.com -or- obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 13 19: 5: 6 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from xerxes.lovett.com (xerxes.lovett.com [216.60.121.164]) by hub.freebsd.org (Postfix) with ESMTP id 9474615378; Tue, 13 Jul 1999 19:05:03 -0700 (PDT) (envelope-from ade@lovett.com) Received: from ade by xerxes.lovett.com with local (Exim 3.02 #1) id 114EOX-000Oa3-00; Tue, 13 Jul 1999 21:03:37 -0500 Date: Tue, 13 Jul 1999 21:03:37 -0500 From: Ade Lovett To: freebsd-xircom@lovett.com Cc: hackers@FreeBSD.ORG, mobile@FreeBSD.ORG Subject: Re: Reading CIS from kernel? Message-ID: <19990713210337.H85742@remarq.com> References: <19990710162730.60563@goatsucker.org> <19990713182203.A68393@nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <19990713182203.A68393@nuxi.com>; from David O'Brien on Tue, Jul 13, 1999 at 06:22:03PM -0700 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Jul 13, 1999 at 06:22:03PM -0700, David O'Brien wrote: > [about cdread()/cdwrite() in /sys/pccard/pcccard.c] > > Since no one has repsonded to this querry, I will be un-staticizing these > so they will be available to drivers. This is going to be for both -current and MFC'd back into -stable, yes? -aDe -- Ade Lovett, Austin, TX. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 13 19:10:55 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with ESMTP id D57E015372 for ; Tue, 13 Jul 1999 19:10:45 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta6-ntc_mailserver1.03) id LAA19089; Wed, 14 Jul 1999 11:10:10 +0900 (JST) Date: Wed, 14 Jul 1999 11:10:10 +0900 (JST) Message-Id: <199907140210.LAA19089@afs.ntc.mita.keio.ac.jp> To: mobile@freebsd.org Cc: hosokawa@itc.keio.ac.jp Subject: wd (Flash ATA, etc.) single window patch on PAO3 From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi. I've committed the wd single I/O window patch into PAO3 repository in jp.FreeBSD.org (and I'll commit it to RELENG_3_2_PAO3 branch later). It uses only one I/O window to enable wd PCCARD and I think it's far easier to merge to -current, because, as I wrote it, multiple I/O window suppot implementation in PAO3 is very dirty, and I don't want to merge it to -current. This patch will help merging ATA PCCARD support into -current. BTW, I remember that somebody was working on PCCARD support for -current (maybe Warner?). I want to read the code before merging PAO3 wd code into -current. -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 13 19:21:52 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with ESMTP id 7C7CC14D2A for ; Tue, 13 Jul 1999 19:21:48 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta6-ntc_mailserver1.03) id LAA19191; Wed, 14 Jul 1999 11:21:44 +0900 (JST) Date: Wed, 14 Jul 1999 11:21:44 +0900 (JST) Message-Id: <199907140221.LAA19191@afs.ntc.mita.keio.ac.jp> To: mobile@freebsd.org Cc: hosokawa@itc.keio.ac.jp Subject: Re: wd (Flash ATA, etc.) single window patch on PAO3 In-Reply-To: Your message of "Wed, 14 Jul 1999 11:10:10 JST". <199907140210.LAA19089@afs.ntc.mita.keio.ac.jp> From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article <199907140210.LAA19089@afs.ntc.mita.keio.ac.jp> hosokawa@itc.keio.ac.jp writes: >> This patch will help merging ATA PCCARD support into -current. BTW, I >> remember that somebody was working on PCCARD support for -current ~~~~~~~~~~~~~~ It means PCCARD wd support for -current. >> (maybe Warner?). I want to read the code before merging PAO3 wd code >> into -current. -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 13 20:14:44 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 89F4C14E7F for ; Tue, 13 Jul 1999 20:14:35 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id VAA22439; Tue, 13 Jul 1999 21:11:24 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id VAA52021; Tue, 13 Jul 1999 21:10:17 -0600 (MDT) Message-Id: <199907140310.VAA52021@harmony.village.org> To: Michael Robinson Subject: Re: pccard and -current Cc: mobile@FreeBSD.ORG In-reply-to: Your message of "Wed, 14 Jul 1999 10:14:45 +0800." <199907140214.KAA03686@netrinsics.com> References: <199907140214.KAA03686@netrinsics.com> Date: Tue, 13 Jul 1999 21:10:17 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907140214.KAA03686@netrinsics.com> Michael Robinson writes: : As it is, for debugging any non-trivial problem, a user has to put those : messages in manually anyway. Yes. : I'd particularly encourage a printout of all the relevant IRQ masks when a : conflict is discovered or an allocation fails. Agreed. that's in there. I'm having problems even getting pccardd to compile in make world. I don't think I've broken anything... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 13 23:38: 2 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id D7FC114E02 for ; Tue, 13 Jul 1999 23:37:48 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id AAA23137 for ; Wed, 14 Jul 1999 00:37:46 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id AAA53085 for ; Wed, 14 Jul 1999 00:36:41 -0600 (MDT) Message-Id: <199907140636.AAA53085@harmony.village.org> To: mobile@freebsd.org Subject: pccardd patches for review Date: Wed, 14 Jul 1999 00:36:41 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I've spent some time hacking pccardd to not have that frustrating delay in it, as well as to have some better error reporting. All the patches aren't perfect, but I thought I'd post them here for review and testing. I've introduced a new #define. PCCARDD_PESSIMAL restores the old behavior of waiting for three days before bringing the card up. I'm not sure why these huge delays were in there. I've also tweaked a couple of if statements to either get around compiler warnings or as prelude to other code that I'll add at a later date. Comments? Warner Index: cardd.c =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/usr.sbin/pccard/pccardd/cardd.c,v retrieving revision 1.34 diff -u -r1.34 cardd.c --- cardd.c 1999/02/05 16:00:17 1.34 +++ cardd.c 1999/07/14 06:33:06 @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include "cardd.h" @@ -197,8 +198,11 @@ card_inserted(struct slot *sp) { struct card *cp; - +#ifdef PCCARDD_PESSIMAL sleep(5); +#else + usleep(500); +#endif sp->cis = readcis(sp->fd); if (sp->cis == 0) { logmsg("Error reading CIS on %s\n", sp->name); @@ -348,8 +352,11 @@ for (cisconf = cis->conf; cisconf; cisconf = cisconf->next) if (cisconf->id == sp->config->index) break; - if (cisconf == 0) + if (cisconf == 0) { + logmsg("Config id %d not present in this card", + sp->config->index); return (-1); + } sp->card_config = cisconf; /* @@ -480,7 +487,9 @@ logmsg("Setting config reg at offs 0x%lx to 0x%x, Reset time = %d ms\n", (unsigned long)offs, c, sp->card->reset_time); #endif +#ifdef PCCARDD_PESSIMAL sleep(5); +#endif usleep(sp->card->reset_time * 1000); /* If other config registers exist, set them up. */ @@ -541,14 +550,16 @@ drv.mem = 0; drv.memsize = 0; } - if (sp->io.size) + if (sp->io.size) { drv.iobase = sp->io.addr; - else + } else { drv.iobase = 0; -#ifdef DEBUG - logmsg("Assign %s%d, io 0x%x, mem 0x%lx, %d bytes, irq %d, flags %x\n", - drv.name, drv.unit, drv.iobase, drv.mem, drv.memsize, sp->irq, drv.flags); -#endif + } + if (dodebug) { + logmsg("Assign %s%d, io 0x%x, mem 0x%lx, %d bytes, irq %d, " + "flags %x\n", drv.name, drv.unit, drv.iobase, drv.mem, + drv.memsize, sp->irq, drv.flags); + } /* * If the driver fails to be connected to the device, @@ -556,7 +567,8 @@ */ memcpy(drv.misc, sp->eaddr, 6); if (ioctl(sp->fd, PIOCSDRV, &drv)) { - logmsg("driver allocation failed for %s", sp->card->manuf); + logmsg("driver allocation failed for %s(%s): %s", + sp->card->manuf, sp->card->version, strerror(errno)); return (0); } return (1); Index: file.c =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/usr.sbin/pccard/pccardd/file.c,v retrieving revision 1.17 diff -u -r1.17 file.c --- file.c 1999/06/17 21:07:58 1.17 +++ file.c 1999/07/13 21:21:09 @@ -336,7 +336,7 @@ struct allocblk *mem; int i, j; - if ((i = num_tok()) >= 0) + if ((i = num_tok()) >= 0) { if ((j = num_tok()) < 0) error("illegal memory block"); else { @@ -353,6 +353,7 @@ } return (mem); } + } if (force) error("illegal or missing memory block spec"); return (0); Index: util.c =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/usr.sbin/pccard/pccardd/util.c,v retrieving revision 1.12 diff -u -r1.12 util.c --- util.c 1998/03/09 05:18:59 1.12 +++ util.c 1999/07/14 06:20:48 @@ -202,7 +202,11 @@ lseek(sp->fd, offs, SEEK_SET); c = 0x80; write(sp->fd, &c, sizeof(c)); +#ifdef PCCARDD_PESSIMAL usleep(10 * 1000); +#else + usleep(1000); +#endif c = 0; lseek(sp->fd, offs, SEEK_SET); write(sp->fd, &c, sizeof(c)); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 13 23:55:35 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 5499E15396; Tue, 13 Jul 1999 23:55:15 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id AAA23163; Wed, 14 Jul 1999 00:53:44 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id AAA53151; Wed, 14 Jul 1999 00:52:38 -0600 (MDT) Message-Id: <199907140652.AAA53151@harmony.village.org> To: obrien@NUXI.com Subject: Re: Reading CIS from kernel? Cc: Scott Mitchell , freebsd-xircom@lovett.com, hackers@FreeBSD.ORG, mobile@FreeBSD.ORG In-reply-to: Your message of "Tue, 13 Jul 1999 18:22:03 PDT." <19990713182203.A68393@nuxi.com> References: <19990713182203.A68393@nuxi.com> <19990710162730.60563@goatsucker.org> Date: Wed, 14 Jul 1999 00:52:38 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <19990713182203.A68393@nuxi.com> "David O'Brien" writes: : Since no one has repsonded to this querry, I will be un-staticizing these : so they will be available to drivers. No. Please don't. This is the first I've seen this. There will be another cis reading interface as part of the newbusification of pccard stuff and I'd rather not have to fix any more drivers than I have to. I wish I had seen it sooner. The Xircom driver is one of the ones that my first attempt at newbusification would have broken... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 13 23:55:38 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 0B11B1539B; Tue, 13 Jul 1999 23:55:28 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id AAA23167; Wed, 14 Jul 1999 00:54:29 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id AAA53164; Wed, 14 Jul 1999 00:53:24 -0600 (MDT) Message-Id: <199907140653.AAA53164@harmony.village.org> To: Ade Lovett Subject: Re: Reading CIS from kernel? Cc: freebsd-xircom@lovett.com, hackers@FreeBSD.ORG, mobile@FreeBSD.ORG In-reply-to: Your message of "Tue, 13 Jul 1999 21:03:37 CDT." <19990713210337.H85742@remarq.com> References: <19990713210337.H85742@remarq.com> <19990710162730.60563@goatsucker.org> <19990713182203.A68393@nuxi.com> Date: Wed, 14 Jul 1999 00:53:24 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <19990713210337.H85742@remarq.com> Ade Lovett writes: : This is going to be for both -current and MFC'd back into -stable, yes? The interface for doing this I'll be merging back into -stable. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 13 23:55:56 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 697F2153C9 for ; Tue, 13 Jul 1999 23:55:42 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id AAA23174; Wed, 14 Jul 1999 00:55:25 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id AAA53177; Wed, 14 Jul 1999 00:54:20 -0600 (MDT) Message-Id: <199907140654.AAA53177@harmony.village.org> To: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) Subject: Re: wd (Flash ATA, etc.) single window patch on PAO3 Cc: mobile@FreeBSD.ORG In-reply-to: Your message of "Wed, 14 Jul 1999 11:10:10 +0900." <199907140210.LAA19089@afs.ntc.mita.keio.ac.jp> References: <199907140210.LAA19089@afs.ntc.mita.keio.ac.jp> Date: Wed, 14 Jul 1999 00:54:20 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907140210.LAA19089@afs.ntc.mita.keio.ac.jp> HOSOKAWA Tatsumi writes: : This patch will help merging ATA PCCARD support into -current. BTW, I : remember that somebody was working on PCCARD support for -current : (maybe Warner?). I want to read the code before merging PAO3 wd code : into -current. Yes. That was me. I'll be happy to look at it. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 0: 3:21 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from darwin.ntu.edu.au (darwin.ntu.edu.au [138.80.128.3]) by hub.freebsd.org (Postfix) with ESMTP id 5806D1506D for ; Wed, 14 Jul 1999 00:03:10 -0700 (PDT) (envelope-from grog@lemis.com) Received: from mojave.lemis.com ([138.80.54.116]) by darwin.ntu.edu.au (8.8.8/8.8.8) with ESMTP id QAA21102; Wed, 14 Jul 1999 16:31:46 +0930 (CST) Received: (grog@localhost) by mojave.lemis.com (8.9.3/8.6.12) id QAA02221; Wed, 14 Jul 1999 16:23:08 +0930 (CST) Message-ID: <19990714162303.48297@mojave.lemis.com> Date: Wed, 14 Jul 1999 16:23:03 +0930 From: Greg Lehey To: Warner Losh , mobile@FreeBSD.ORG Subject: Re: pccard and -current References: <199907132220.QAA50120@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: <199907132220.QAA50120@harmony.village.org>; from Warner Losh on Tue, Jul 13, 1999 at 04:20:02PM -0600 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tuesday, 13 July 1999 at 16:20:02 -0600, Warner Losh wrote: > > I'm trying to find out what, exactly, the status of pccard is on > -current. Since I've had my head in some experimental code for a long > time, I no longer have a good feel for these things. Since this > experimental code is going to take a while, I'd like to try to address > whatever issues are currently present in the code. I've spent the > better part of 4 hours this afternoon getting a good tree together. I > have a good kernel, but need to do a build world, I think. > > My guess is that old drivers are working, but new-bus drivers (fdc and > sio) are not. Is that the case? > > Also, are there any objections to my placing more explicit error > messages for failure modes in pccardd/pccard,pcic drivers? None whatsoever! > I have added some locally (which got me to the point of realizing I > needed a make buildworld). Yes, I've done that too. I'll dig them out and send them to you. > pccardd's error reporting on plain old FreeBSD has > always been too oracular ("yes" or "no" w/o explaination) for my > tastes. Agreed. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 0: 9:47 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from gratis.grondar.za (gratis.grondar.za [196.7.18.65]) by hub.freebsd.org (Postfix) with ESMTP id AFBF714D13 for ; Wed, 14 Jul 1999 00:09:26 -0700 (PDT) (envelope-from mark@grondar.za) Received: from grondar.za (localhost [127.0.0.1]) by gratis.grondar.za (8.9.3/8.9.3) with ESMTP id JAA10739; Wed, 14 Jul 1999 09:06:38 +0200 (SAST) (envelope-from mark@grondar.za) Message-Id: <199907140706.JAA10739@gratis.grondar.za> To: Warner Losh Cc: mobile@FreeBSD.ORG Subject: Re: pccard and -current Date: Wed, 14 Jul 1999 09:06:38 +0200 From: Mark Murray Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > My guess is that old drivers are working, but new-bus drivers (fdc and > sio) are not. Is that the case? Correct. > Also, are there any objections to my placing more explicit error > messages for failure modes in pccardd/pccard,pcic drivers? I have > added some locally (which got me to the point of realizing I needed a > make buildworld). pccardd's error reporting on plain old FreeBSD has > always been too oracular ("yes" or "no" w/o explaination) for my > tastes. None from me. M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 0: 9:58 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from gratis.grondar.za (gratis.grondar.za [196.7.18.65]) by hub.freebsd.org (Postfix) with ESMTP id 274C1150B7 for ; Wed, 14 Jul 1999 00:09:46 -0700 (PDT) (envelope-from mark@grondar.za) Received: from grondar.za (localhost [127.0.0.1]) by gratis.grondar.za (8.9.3/8.9.3) with ESMTP id JAA10765; Wed, 14 Jul 1999 09:07:34 +0200 (SAST) (envelope-from mark@grondar.za) Message-Id: <199907140707.JAA10765@gratis.grondar.za> To: Warner Losh Cc: mobile@FreeBSD.ORG Subject: Re: pcic module Date: Wed, 14 Jul 1999 09:07:33 +0200 From: Mark Murray Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Why is pcic even a module? It is intimately related to pccard.c, and > all the drivers have #ifdefs based on pccard.c (actually NCARD, but > that turns out to be the same thing). Any objections to simply > deleting the Makefile and directory? No objections from me. M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 0:26:10 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 8430114EBA for ; Wed, 14 Jul 1999 00:26:03 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id BAA23276 for ; Wed, 14 Jul 1999 01:25:25 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id BAA53478 for ; Wed, 14 Jul 1999 01:24:20 -0600 (MDT) Message-Id: <199907140724.BAA53478@harmony.village.org> To: mobile@freebsd.org Subject: More verbose errors from pccard Date: Wed, 14 Jul 1999 01:24:20 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Here are some preliminary patches to improve the error reporting when things go wrong. I've added error messages as well as changing the return value for unknown ioctls from EINVAL to ENOTTY. What comments do people have? Warner Index: pccard.c =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/sys/pccard/pccard.c,v retrieving revision 1.80 diff -u -r1.80 pccard.c --- pccard.c 1999/05/31 11:28:48 1.80 +++ pccard.c 1999/07/14 07:19:48 @@ -590,11 +590,19 @@ * against the slot interrupt (if one has been allocated). */ if (desc->irqmask && drv->imask) { - if ((slt->ctrl->irqs & desc->irqmask) == 0) + if ((slt->ctrl->irqs & desc->irqmask) == 0) { + printf("pccard: PIOCSDRV requested irq (mask 0x%x) is " + "not free (available mask 0x%x)\n", desc->irqmask, + slt->ctrl->irqs); return(EINVAL); + } if (slt->irq) { - if (((1 << slt->irq) & desc->irqmask) == 0) + if (((1 << slt->irq) & desc->irqmask) == 0) { + printf("pccard: PIOSCDRIV irq %d not in " + "available mask 0x%x\n", slt->irq, + desc->irqmask); return(EINVAL); + } slt->irqref++; irq = slt->irq; } else { @@ -606,8 +614,11 @@ irq = pccard_alloc_intr(desc->irqmask, slot_irq_handler, (int)slt, drv->imask, slt->ctrl->imask); - if (irq < 0) + if (irq < 0) { + printf("pccard_alloc_intr failed for irq %d\n", + irq); return(EINVAL); + } slt->irq = irq; slt->irqref = 1; slt->ctrl->mapirq(slt, slt->irq); @@ -650,8 +661,10 @@ * the error. We assume that when we free the device, * it will also set 'running' to off. */ - if (err) + if (err) { + printf("Enable failed %d\n", err); remove_device(devi); + } return(err); } @@ -926,7 +939,7 @@ default: if (slt->ctrl->ioctl) return(slt->ctrl->ioctl(slt, cmd, data)); - return(EINVAL); + return(ENOTTY); /* * Get slot state. */ Index: pcic.c =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/sys/pccard/pcic.c,v retrieving revision 1.72 diff -u -r1.72 pcic.c --- pcic.c 1999/05/02 21:45:31 1.72 +++ pcic.c 1999/07/13 22:01:36 @@ -854,7 +858,7 @@ switch(cmd) { default: - return(EINVAL); + return(ENOTTY); /* * Get/set PCIC registers */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 1: 6:27 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from darwin.ntu.edu.au (darwin.ntu.edu.au [138.80.128.3]) by hub.freebsd.org (Postfix) with ESMTP id 3D40C14D5F for ; Wed, 14 Jul 1999 01:06:22 -0700 (PDT) (envelope-from grog@lemis.com) Received: from mojave.lemis.com ([138.80.54.116]) by darwin.ntu.edu.au (8.8.8/8.8.8) with ESMTP id RAA22498 for ; Wed, 14 Jul 1999 17:34:45 +0930 (CST) Received: (grog@localhost) by mojave.lemis.com (8.9.3/8.6.12) id RAA02359; Wed, 14 Jul 1999 17:16:14 +0930 (CST) Message-ID: <19990714171614.09487@mojave.lemis.com> Date: Wed, 14 Jul 1999 17:16:14 +0930 From: Greg Lehey To: Warner Losh , mobile@FreeBSD.ORG Subject: Re: More verbose errors from pccard References: <199907140724.BAA53478@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: <199907140724.BAA53478@harmony.village.org>; from Warner Losh on Wed, Jul 14, 1999 at 01:24:20AM -0600 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wednesday, 14 July 1999 at 1:24:20 -0600, Warner Losh wrote: > > Here are some preliminary patches to improve the error reporting when > things go wrong. I've added error messages as well as changing the > return value for unknown ioctls from EINVAL to ENOTTY. What comments > do people have? This is similar to some of the stuff I've been doing. I'm not in a position to test at the moment (I'm in Darwin NT about to deliver a workshop, and I need the machine in a known state :-), but here are a few comments: > Index: pccard.c > =================================================================== > RCS file: /home/imp/FreeBSD/CVS/src/sys/pccard/pccard.c,v > retrieving revision 1.80 > diff -u -r1.80 pccard.c > --- pccard.c 1999/05/31 11:28:48 1.80 > +++ pccard.c 1999/07/14 07:19:48 > @@ -590,11 +590,19 @@ Immediately before this code, I have: /* * If an instance of this driver is already installed, * but not running, then remove it. If it is running, * then reject the request. */ for (devi = slt->devices; devi; devi = devi->next) if (devi->drv == drv && devi->isahd.id_unit == desc->unit) { if (devi->running) { printf ("Driver for %s already active\n", desc->name); return(EBUSY); } remove_device(devi); break; } > * against the slot interrupt (if one has been allocated). > */ > if (desc->irqmask && drv->imask) { > - if ((slt->ctrl->irqs & desc->irqmask) == 0) > + if ((slt->ctrl->irqs & desc->irqmask) == 0) { > + printf("pccard: PIOCSDRV requested irq (mask 0x%x) is " > + "not free (available mask 0x%x)\n", desc->irqmask, Is this message going to pass the Bruce test? It could easily exceed 80 chars :-) Also, here I have the name of the device. How about the following: printf("pccard: can't allocate requested irq (mask 0x%x) to %s " " (available: 0x%x)\n", desc->name, desc->irqmask, > + slt->ctrl->irqs); > return(EINVAL); Again, maybe an EBUSY? > + } > if (slt->irq) { > - if (((1 << slt->irq) & desc->irqmask) == 0) > + if (((1 << slt->irq) & desc->irqmask) == 0) { > + printf("pccard: PIOSCDRIV irq %d not in " > + "available mask 0x%x\n", slt->irq, > + desc->irqmask); A similar comment to the last one. I find the name of use in all of these messages. The same applies to the other changes, which look pretty much right to me apart from that. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 1:44:10 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from mauibuilt.com (mauibuilt.com [205.166.249.50]) by hub.freebsd.org (Postfix) with ESMTP id B2C1315069 for ; Wed, 14 Jul 1999 01:44:07 -0700 (PDT) (envelope-from freebsd@mauibuilt.com) Received: (from freebsd@localhost) by mauibuilt.com (8.8.8/8.8.7) id WAA11429 for freebsd-mobile@freebsd.org; Tue, 13 Jul 1999 22:48:52 -1000 (HST) (envelope-from freebsd) From: FreeBSD MAIL Message-Id: <199907140848.WAA11429@mauibuilt.com> Subject: WaveLAN broken To: freebsd-mobile@freebsd.org Date: Tue, 13 Jul 1999 22:48:52 -1000 (HST) X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have a WaveLAN ISA adaptor. I am trying to run it in a machine equiped with an AMD K6-2 350 processor running at 66mhz bus speed. I am getting the following error while ifconfiging the card. ifconfig wl0 192.168.10.1 wl0: diag() failed; status = 0, inw = 0, outw = e0a0 wl0: diag() failed; status = 0, inw = 0, outw = e0a0 scb_status a000 scb_status a000 scb_command 0 scb_command 0 scb_cbl ffc0 scb_cbl ffc0 cu_cmd 8007 cu_cmd 8007 wl0 init(): trouble resetting board. wl0 init(): trouble resetting board. I belive the issure is some kind of timeing problem because the dos drivers and ptpdiag work and the card works with freebsd in other machines. I have tried about everything I can think of I have set machdep.wl_xmit_delay: up and down as well as played with clock speeds of the CPU and motherboard as well as bios wait states, pnp settings ect. and differant wavelan cards. I even reset the factory setting off 0x300 irq 10 to other ones just to be sure.. I have tried the drivers in 3.0 3.1 and 4.0 current they all do the same thing.. thease are the current dmesg settings wl0 at 0x390-0x39f irq 5 on isa wl0: address 08:00:6a:2b:e3:30, NWID 0x5262, Freq 2422 MHz and the wlconfig info... cray100 /root 6% wlconfig wl0 Board type : ISA Base address options : 0x300, 0x390, 0x3c0, 0x3e0 Waitstates : 0 Bus mode : ISA IRQ : 5 Default MAC address : 08:00:6a:2b:e3:30 Soft MAC address : 00:00:00:00:00:00 Current MAC address : Default Adapter compatability : PCCARD or 1/2 size AT, 915MHz or 2.4GHz Threshold preset : 1 Call code required : NO Subband : 915MHz/see WaveModem Quality threshold : 3 Hardware version : 1 (Rel3) Network ID enable : YES NWID : 0x5262 Datalink security : NO Databus width : 16 (variable) Configuration state : unconfigured CRC-16 : 0xaba1 CRC status : OK If anyone can help in any way or point me to someone who might I would greatly apreciate it. Thanks in advance Richard Puga puga@mauibuilt.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 5:41:11 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from avatar.lisp.com.au (mail.lisp.com.au [203.21.133.7]) by hub.freebsd.org (Postfix) with SMTP id F162D1506D for ; Wed, 14 Jul 1999 05:41:05 -0700 (PDT) (envelope-from virustorm@bigfoot.com) Received: (qmail 114 invoked from network); 14 Jul 1999 12:40:54 -0000 Received: from tig02-ppp1.lithgow.lisp.com.au (HELO p6200) (203.21.133.73) by mail.lisp.com.au with SMTP; 14 Jul 1999 12:40:54 -0000 Message-ID: <007501becdf5$5b80c580$498515cb@p6200> Reply-To: "Peter Hoskin" From: "Peter Hoskin" To: Subject: Date: Wed, 14 Jul 1999 21:57:43 +1000 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0029_01BECE43.E64BA380" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. ------=_NextPart_000_0029_01BECE43.E64BA380 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable subscribe freebsd-mobile virustorm@bigfoot.com ------=_NextPart_000_0029_01BECE43.E64BA380 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
subscribe freebsd-mobile=20 virustorm@bigfoot.com
------=_NextPart_000_0029_01BECE43.E64BA380-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 5:47:56 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from firewall2.lehman.com (firewall.Lehman.COM [192.147.65.99]) by hub.freebsd.org (Postfix) with ESMTP id 4160A14D13 for ; Wed, 14 Jul 1999 05:47:53 -0700 (PDT) (envelope-from nclayton@lehman.com) Received: from relay3.messaging-svcs5.lehman.com by firewall2.lehman.com (8.8.6/8.8.6) id IAA07452; Wed, 14 Jul 1999 08:47:50 -0400 (EDT) Message-ID: <19990714134711.X2353@lehman.com> Date: Wed, 14 Jul 1999 13:47:11 +0100 From: Nik Clayton To: mobile@freebsd.org Subject: Sony VAIO Z505SX and 3.2 or -current Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i Organization: Lehman Brothers Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi folks, Has anyone got any success stories about running FreeBSD 3.2 -stable or -current on a Sony VAIO Z505SX? This is the 366MHz PII with built in ethernet. I've done some searching, and have seen pages like http://www.cse.ucsc.edu/~dkulp/fbsd/laptop.html http://psg.com/~randy/vaio/ http://www.webweaving.org/vaio/ but they either don't mention the make/model, or deal with the TX, which (apparently) works fine with FreeBSD. I'd expect the SX to work fine as well, but thought the built-in ethernet might be a stumbling block. This http://www.mnsinc.com/js/Neomagic.html implies that Linux works OK, so I don't expect problems. I'd just be more comfortable with a confirmed report. N -- --+==[ Systems Administrator, Year 2000 Test Lab, Lehman Brothers, Inc. ]==+-- --+==[ 1 Broadgate, London, EC2M 7HA 0171-601-0011 x5514 ]==+-- --+==[ Year 2000 Testing: It's about time. . . ]==+-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 7:29:17 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from lily.ezo.net (lily.ezo.net [206.102.130.13]) by hub.freebsd.org (Postfix) with ESMTP id 78A2814CC9 for ; Wed, 14 Jul 1999 07:29:14 -0700 (PDT) (envelope-from jflowers@ezo.net) Received: from lily.ezo.net (jflowers@localhost.ezo.net [127.0.0.1]) by lily.ezo.net (8.8.7/8.8.7) with SMTP id KAA07110; Wed, 14 Jul 1999 10:29:00 -0400 (EDT) Date: Wed, 14 Jul 1999 10:29:00 -0400 (EDT) From: Jim Flowers To: FreeBSD MAIL Cc: freebsd-mobile@FreeBSD.ORG Subject: Re: WaveLAN broken In-Reply-To: <199907140848.WAA11429@mauibuilt.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Don't know whether it will make you feel better or not but it definitely sounds like a timing problem. I had to solve this for something around 2.2.7 by hacking the if_wl.c driver. I believe I reported this in a post to freebsd-mobile. It had to do with setting up buffers in the modem. Later versions did not have this problem with the computers I use. Jim Flowers #4 ISP on C|NET, #1 in Ohio On Tue, 13 Jul 1999, FreeBSD MAIL wrote: > I have a WaveLAN ISA adaptor. > > I am trying to run it in a machine equiped with an AMD K6-2 350 > processor running at 66mhz bus speed. > I am getting the following error while ifconfiging the card. > > ifconfig wl0 192.168.10.1 > wl0: diag() failed; status = 0, inw = 0, outw = e0a0 > wl0: diag() failed; status = 0, inw = 0, outw = e0a0 > scb_status a000 > scb_status a000 > scb_command 0 > scb_command 0 > scb_cbl ffc0 > scb_cbl ffc0 > cu_cmd 8007 > cu_cmd 8007 > wl0 init(): trouble resetting board. > wl0 init(): trouble resetting board. > > > I belive the issure is some kind of timeing problem because the dos > drivers and ptpdiag work and the card works with freebsd in other > machines. > > I have tried about everything I can think of I have set > machdep.wl_xmit_delay: up and down > as well as played with clock speeds of the CPU and motherboard as well > as bios wait states, pnp settings ect. and differant wavelan cards. > > I even reset the factory setting off 0x300 irq 10 to other ones just to > > be sure.. I have tried the > drivers in 3.0 3.1 and 4.0 current they all do the same thing.. > > thease are the current dmesg settings > > wl0 at 0x390-0x39f irq 5 on isa > wl0: address 08:00:6a:2b:e3:30, NWID 0x5262, Freq 2422 MHz > > and the wlconfig info... > cray100 /root 6% wlconfig wl0 > Board type : ISA > Base address options : 0x300, 0x390, 0x3c0, 0x3e0 > Waitstates : 0 > Bus mode : ISA > IRQ : 5 > Default MAC address : 08:00:6a:2b:e3:30 > Soft MAC address : 00:00:00:00:00:00 > Current MAC address : Default > Adapter compatability : PCCARD or 1/2 size AT, 915MHz or 2.4GHz > Threshold preset : 1 > Call code required : NO > Subband : 915MHz/see WaveModem > Quality threshold : 3 > Hardware version : 1 (Rel3) > Network ID enable : YES > NWID : 0x5262 > Datalink security : NO > Databus width : 16 (variable) > Configuration state : unconfigured > CRC-16 : 0xaba1 > CRC status : OK > > If anyone can help in any way or point me to someone who might > I would greatly apreciate it. > > Thanks in advance > > Richard Puga > puga@mauibuilt.com > > > 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 From owner-freebsd-mobile Wed Jul 14 8:42:39 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 6FF1614F58 for ; Wed, 14 Jul 1999 08:42:36 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id JAA24274; Wed, 14 Jul 1999 09:42:16 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id JAA55689; Wed, 14 Jul 1999 09:41:16 -0600 (MDT) Message-Id: <199907141541.JAA55689@harmony.village.org> To: Nik Clayton Subject: Re: Sony VAIO Z505SX and 3.2 or -current Cc: mobile@FreeBSD.ORG In-reply-to: Your message of "Wed, 14 Jul 1999 13:47:11 BST." <19990714134711.X2353@lehman.com> References: <19990714134711.X2353@lehman.com> Date: Wed, 14 Jul 1999 09:41:16 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <19990714134711.X2353@lehman.com> Nik Clayton writes: : Has anyone got any success stories about running FreeBSD 3.2 -stable or : -current on a Sony VAIO Z505SX? This is the 366MHz PII with built in : ethernet. There were people talking in the Sony 505 mailing list that they had, indeed, gotten FreeBSD to work on the Z505SX. They even were saying that the builtin ethernet was driven just fine with the fxp driver. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 8:48:48 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 7C7A314F58 for ; Wed, 14 Jul 1999 08:48:45 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id JAA24284; Wed, 14 Jul 1999 09:48:20 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id JAA55786; Wed, 14 Jul 1999 09:47:20 -0600 (MDT) Message-Id: <199907141547.JAA55786@harmony.village.org> To: Greg Lehey Subject: Re: More verbose errors from pccard Cc: mobile@FreeBSD.ORG In-reply-to: Your message of "Wed, 14 Jul 1999 17:16:14 +0930." <19990714171614.09487@mojave.lemis.com> References: <19990714171614.09487@mojave.lemis.com> <199907140724.BAA53478@harmony.village.org> Date: Wed, 14 Jul 1999 09:47:20 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <19990714171614.09487@mojave.lemis.com> Greg Lehey writes: : Immediately before this code, I have: I thought that there was other code to do this... : > + slt->ctrl->irqs); : > return(EINVAL); : : Again, maybe an EBUSY? But it has found that you requested a interrupt that it can't use. This could be because the pcic chip doesn't have a irq8 line, or that the interrupt is in use by something else. The whole idea of keeping a mask is really ugly, but that's what we have. I'd like to keep EBUSY for places where the driver itself is already in use. I do agree that the text of the messages could be improved... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 9:25: 8 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from panix.com (panix.com [166.84.1.66]) by hub.freebsd.org (Postfix) with ESMTP id 1E9B2153E1 for ; Wed, 14 Jul 1999 09:25:01 -0700 (PDT) (envelope-from ziggy@panix.com) Received: (from ziggy@localhost) by panix.com (8.8.5/8.8.8/PanixU1.4) id MAA19534; Wed, 14 Jul 1999 12:22:05 -0400 (EDT) From: Adam Turoff Message-Id: <199907141622.MAA19534@panix.com> Subject: Re: Sony VAIO Z505SX and 3.2 or -current To: nclayton@lehman.com (Nik Clayton) Date: Wed, 14 Jul 1999 12:22:04 -0400 (EDT) Cc: mobile@FreeBSD.ORG In-Reply-To: <19990714134711.X2353@lehman.com> from "Nik Clayton" at Jul 14, 99 01:47:11 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > This > > http://www.mnsinc.com/js/Neomagic.html > > implies that Linux works OK, so I don't expect problems. I'd just be more > comfortable with a confirmed report. I don't know if it's the same neomagic chipset, but X 3.3.3 is working fine on the neomagic chipset that comes with a Dell Inspiron 3500. I've gotten it to do 1024x768 at 24-bit (IIRC). Looks great. One of the commercial X vendors notes that the XSVGA serer in 3.3.3 wastes about 75% of the performance of the video hardware on neomagic chips. So don't plan on playing DVD's on a stock FreeBSD 3.2 config. :-) Accelerated servers are supposed to be available for FreeBSD. Z. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 9:48: 0 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252]) by hub.freebsd.org (Postfix) with ESMTP id BBECE14C97 for ; Wed, 14 Jul 1999 09:47:52 -0700 (PDT) (envelope-from roberto@keltia.freenix.fr) Received: (from uucp@localhost) by frmug.org (8.9.1/frmug-2.3/nospam) with UUCP id SAA28983 for mobile@freebsd.org; Wed, 14 Jul 1999 18:46:49 +0200 (CEST) (envelope-from roberto@keltia.freenix.fr) Received: by keltia.freenix.fr (Postfix, from userid 101) id 8B49D8838; Wed, 14 Jul 1999 17:14:36 +0200 (CEST) (envelope-from roberto) Date: Wed, 14 Jul 1999 17:14:36 +0200 From: Ollivier Robert To: mobile@freebsd.org Subject: Re: Sony VAIO Z505SX and 3.2 or -current Message-ID: <19990714171436.A25295@keltia.freenix.fr> Mail-Followup-To: mobile@freebsd.org References: <19990714134711.X2353@lehman.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/0.95.5i In-Reply-To: <19990714134711.X2353@lehman.com>; from Nik Clayton on Wed, Jul 14, 1999 at 01:47:11PM +0100 X-Operating-System: FreeBSD 4.0-CURRENT/ELF ctm#5468 AMD-K6 MMX @ 200 MHz Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org According to Nik Clayton: > Has anyone got any success stories about running FreeBSD 3.2 -stable or > -current on a Sony VAIO Z505SX? This is the 366MHz PII with built in > ethernet. I'm also interested (although I plan to buy the Z505S with the Celeron). If someone has an address where to buy it in London (nearer for me poor frenchy than California), I'd be grateful :) -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 4.0-CURRENT #72: Mon Jul 12 08:26:43 CEST 1999 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 11:30:40 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from gratis.grondar.za (gratis.grondar.za [196.7.18.65]) by hub.freebsd.org (Postfix) with ESMTP id 9D6BE1540F for ; Wed, 14 Jul 1999 11:30:04 -0700 (PDT) (envelope-from mark@grondar.za) Received: from grondar.za (localhost [127.0.0.1]) by gratis.grondar.za (8.9.3/8.9.3) with ESMTP id UAA12773; Wed, 14 Jul 1999 20:28:35 +0200 (SAST) (envelope-from mark@grondar.za) Message-Id: <199907141828.UAA12773@gratis.grondar.za> To: Warner Losh Cc: mobile@FreeBSD.ORG Subject: Re: pccardd patches for review Date: Wed, 14 Jul 1999 20:28:34 +0200 From: Mark Murray Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I've spent some time hacking pccardd to not have that frustrating > delay in it, as well as to have some better error reporting. All the > patches aren't perfect, but I thought I'd post them here for review > and testing. Seems to work for my Libretto 110! > I've introduced a new #define. PCCARDD_PESSIMAL restores the old > behavior of waiting for three days before bringing the card up. I'm > not sure why these huge delays were in there. Me neither. They piss me off. > I've also tweaked a couple of if statements to either get around > compiler warnings or as prelude to other code that I'll add at a later > date. > > Comments? Looks good! M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 12:38:36 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from mail5.svr.pol.co.uk (mail5.svr.pol.co.uk [195.92.193.20]) by hub.freebsd.org (Postfix) with ESMTP id C72F815434; Wed, 14 Jul 1999 12:38:25 -0700 (PDT) (envelope-from s.mitchell@computer.org) Received: from modem-22.neodymium.dialup.pol.co.uk ([62.136.29.150] helo=valis.goatsucker.org) by mail5.svr.pol.co.uk with esmtp (Exim 2.12 #1) id 114UrH-0005UR-00; Wed, 14 Jul 1999 20:38:23 +0100 Received: (from scott@localhost) by valis.goatsucker.org (8.8.8/8.8.7) id SAA04692; Wed, 14 Jul 1999 18:51:01 +0100 (BST) (envelope-from scott) Message-ID: <19990714185101.09845@goatsucker.org> Date: Wed, 14 Jul 1999 18:51:01 +0100 From: Scott Mitchell To: obrien@NUXI.com, imp@village.org, ade@lovett.com, phk@freebsd.org Cc: freebsd-xircom@lovett.com, hackers@FreeBSD.ORG, mobile@FreeBSD.ORG Subject: Re: Reading CIS from kernel? References: <19990713182203.A68393@nuxi.com> <19990710162730.60563@goatsucker.org> <19990713182203.A68393@nuxi.com> <199907140652.AAA53151@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: <199907140652.AAA53151@harmony.village.org>; from Warner Losh on Wed, Jul 14, 1999 at 12:52:38AM -0600 X-Operating-System: FreeBSD 2.2.6-RELEASE i386 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Jul 14, 1999 at 12:52:38AM -0600, Warner Losh wrote: > In message <19990713182203.A68393@nuxi.com> "David O'Brien" writes: > : Since no one has repsonded to this querry, I will be un-staticizing these > : so they will be available to drivers. > > No. Please don't. This is the first I've seen this. There will be > another cis reading interface as part of the newbusification of pccard > stuff and I'd rather not have to fix any more drivers than I have to. > I wish I had seen it sooner. The Xircom driver is one of the ones > that my first attempt at newbusification would have broken... > > Warner > Ugh. In that case, can someone back out Poul-Henning's changes to the if_xe.c in the -STABLE tree? That's (I hope) the only thing stopping it from working. At least that way only my code will be bogus :-) Believe me, I know it's ugly, but there's no getting around the fact that the driver needs to read the CIS, and right now there's no clean way to do that in -STABLE (is there?). Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels London, England | 0x54B171B9 | don't get sucked into jet engines" s.mitchell@computer.org | 0xAA775B8B | -- Anon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 12:49:57 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id AF9A214D13; Wed, 14 Jul 1999 12:49:53 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.2) with ESMTP id VAA30374; Wed, 14 Jul 1999 21:47:48 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Scott Mitchell Cc: obrien@NUXI.com, imp@village.org, ade@lovett.com, freebsd-xircom@lovett.com, hackers@freebsd.org, mobile@freebsd.org Subject: Re: Reading CIS from kernel? In-reply-to: Your message of "Wed, 14 Jul 1999 18:51:01 BST." <19990714185101.09845@goatsucker.org> Date: Wed, 14 Jul 1999 21:47:48 +0200 Message-ID: <30372.931981668@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <19990714185101.09845@goatsucker.org>, Scott Mitchell writes: >Ugh. In that case, can someone back out Poul-Henning's changes to the >if_xe.c in the -STABLE tree? Uhm my change has not been applied to STABLE, but the 3.2-PAO import references current rather than stable. -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 15: 9:18 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id B4A3114E1C for ; Wed, 14 Jul 1999 15:08:57 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id QAA25670; Wed, 14 Jul 1999 16:08:54 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id QAA58781; Wed, 14 Jul 1999 16:08:53 -0600 (MDT) Message-Id: <199907142208.QAA58781@harmony.village.org> To: Randy Bush Cc: mobile@freebsd.org Subject: Re: Sony VAIO Z505SX and 3.2 or -current In-reply-to: Your message of "Wed, 14 Jul 1999 13:00:22 PDT." References: <19990714134711.X2353@lehman.com> <199907141541.JAA55689@harmony.village.org> Date: Wed, 14 Jul 1999 16:08:53 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org : > There were people talking in the Sony 505 mailing list sony505@onelist.com Subscribe at www.onelist.com Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 15:21: 7 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id CBF6414EFD; Wed, 14 Jul 1999 15:20:41 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id QAA25702; Wed, 14 Jul 1999 16:19:44 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id QAA58852; Wed, 14 Jul 1999 16:19:39 -0600 (MDT) Message-Id: <199907142219.QAA58852@harmony.village.org> To: Scott Mitchell Subject: Re: Reading CIS from kernel? Cc: obrien@NUXI.com, ade@lovett.com, phk@freebsd.org, freebsd-xircom@lovett.com, hackers@freebsd.org, mobile@freebsd.org In-reply-to: Your message of "Wed, 14 Jul 1999 18:51:01 BST." <19990714185101.09845@goatsucker.org> References: <19990714185101.09845@goatsucker.org> <19990713182203.A68393@nuxi.com> <19990710162730.60563@goatsucker.org> <19990713182203.A68393@nuxi.com> <199907140652.AAA53151@harmony.village.org> Date: Wed, 14 Jul 1999 16:19:39 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <19990714185101.09845@goatsucker.org> Scott Mitchell writes: : Ugh. In that case, can someone back out Poul-Henning's changes to the : if_xe.c in the -STABLE tree? That's (I hope) the only thing stopping it : from working. At least that way only my code will be bogus :-) Believe : me, I know it's ugly, but there's no getting around the fact that the : driver needs to read the CIS, and right now there's no clean way to do that : in -STABLE (is there?). Can I get your comments on the following interface? int pccard_map_cis(int slot) Maps the slot's cis into memory. You must call the before any of the following. It returns 0 on success, or an error from /usr/include/sys/errno.h (most likely EBUSY if there are no memory windows available). int pccard_unmap_cis(int slot) Unmaps the CIS. This frees any resource used by the slot to map its CIS. It returns 0 on success, and an errno value if not. vaddr_t pccard_cis_addr(int slot) Return the virtual address of the CIS. The CIS must be mapped before call this function. Drivers may read/write this memory. Reading this memory will get the CIS entries. Drivers are responsible for interpreting the CIS. Writing to CIS locations generally is used to configure the card and does not change the CIS stored on the card. If the card is not mapped, then 0 will be returned. It is not valid to access memory returned by this call after a call to pccard_unmap_cis. Future interfaces may ease the burdon on driver writers, but this interface will be supported for a while. Does this fill your needs? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 17: 5:14 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id EFE9915402 for ; Wed, 14 Jul 1999 17:05:11 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id SAA12463; Wed, 14 Jul 1999 18:03:24 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id SAA29941; Wed, 14 Jul 1999 18:03:22 -0600 Date: Wed, 14 Jul 1999 18:03:22 -0600 Message-Id: <199907150003.SAA29941@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Warner Losh Cc: mobile@FreeBSD.ORG Subject: Re: pccard and -current In-Reply-To: <199907132220.QAA50120@harmony.village.org> References: <199907132220.QAA50120@harmony.village.org> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Also, are there any objections to my placing more explicit error > messages for failure modes in pccardd/pccard,pcic drivers? Please do. I've been meaning to for a very long time, but never got around to making the patches against a version of FreeBSD that was committable. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 17:18:47 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id DDD2B14E90 for ; Wed, 14 Jul 1999 17:18:43 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id SAA12636; Wed, 14 Jul 1999 18:18:00 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id SAA00008; Wed, 14 Jul 1999 18:17:59 -0600 Date: Wed, 14 Jul 1999 18:17:59 -0600 Message-Id: <199907150017.SAA00008@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Warner Losh Cc: mobile@FreeBSD.ORG Subject: Re: pccardd patches for review In-Reply-To: <199907140636.AAA53085@harmony.village.org> References: <199907140636.AAA53085@harmony.village.org> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Comments? You asked. The addition of block paren's were they are un-necessary violates style(9), which is the format of the code. (I know because I was forced to re-indent the whole base as it had so many different style formats that it was difficult to follow.) Should logerr be used instead of logmsg when an error occurs? Hosokawa-san should be asked about the delays, as many of them came from PAO vi him. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 17:51:33 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id DE4A714E90 for ; Wed, 14 Jul 1999 17:51:30 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id SAA26158; Wed, 14 Jul 1999 18:51:21 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id SAA59773; Wed, 14 Jul 1999 18:51:21 -0600 (MDT) Message-Id: <199907150051.SAA59773@harmony.village.org> To: Nate Williams Subject: Re: pccardd patches for review Cc: mobile@FreeBSD.ORG In-reply-to: Your message of "Wed, 14 Jul 1999 18:17:59 MDT." <199907150017.SAA00008@mt.sri.com> References: <199907150017.SAA00008@mt.sri.com> <199907140636.AAA53085@harmony.village.org> Date: Wed, 14 Jul 1999 18:51:21 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907150017.SAA00008@mt.sri.com> Nate Williams writes: : You asked. The addition of block paren's were they are un-necessary : violates style(9), which is the format of the code. (I know because I : was forced to re-indent the whole base as it had so many different style : formats that it was difficult to follow.) Those specific {} are allowed by style(9), speficically: Closing and opening braces go on the same line as the else. Braces that aren't necessary *may* be left out. (I highlighed may). It doesn't say that they must be omitted. I have plans for those specific if/else clauses. Bruce would likely point out it a gratuitous change, which is correct, to a point. Since I'll be adding more code in those specific if/else clauses, I wanted to minimize the number of diffs between that extremely green code and the code I'm trying to commit. At the moment, that is more important to me. There will also be much code movement from PAO in the near future if things go well. : Should logerr be used instead of logmsg when an error occurs? Likely... I just found one and used it. : Hosokawa-san should be asked about the delays, as many of them came from : PAO vi him. I plan to ask him about it. In the interrum, I've made the value a command line tunable option (rather than a compile time constant). For most of the cards I have, 500uS is a good value. However, I have one modem card that needs 1.5s in order to work reliably (or actually to keep from hanging the system). I think I may change the default to 2s rather than 5s with the suggestion that the install disk raise it back to 5s to be sure. In looking at the spec, there are signals that need to be waited for which might be implemented as ioctls if we were going to keep pccardd in userland long term. Since my plans are to move to an in-kernel configuration of pccards, I'm going to not do that in this round of cleanups.... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 18: 1: 8 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with ESMTP id BCDF414E1C for ; Wed, 14 Jul 1999 18:01:04 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta6-ntc_mailserver1.03) id JAA00865; Thu, 15 Jul 1999 09:59:05 +0900 (JST) Date: Thu, 15 Jul 1999 09:59:05 +0900 (JST) Message-Id: <199907150059.JAA00865@afs.ntc.mita.keio.ac.jp> To: nate@mt.sri.com Cc: imp@village.org, mobile@FreeBSD.ORG, hosokawa@itc.keio.ac.jp Subject: Re: pccardd patches for review In-Reply-To: Your message of "Thu, 15 Jul 1999 09:17:59 JST". <199907150017.SAA00008@mt.sri.com> From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article <199907150017.SAA00008@mt.sri.com> nate@mt.sri.com writes: >> Hosokawa-san should be asked about the delays, as many of them came from >> PAO vi him. These delays existed on Andrew McRae's original PCMCIA patch for FreeBSD that PAO based on. I'll test this code later. -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 18:49:47 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id B98DC14D9D for ; Wed, 14 Jul 1999 18:49:38 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id TAA26344; Wed, 14 Jul 1999 19:47:39 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id TAA60204; Wed, 14 Jul 1999 19:47:39 -0600 (MDT) Message-Id: <199907150147.TAA60204@harmony.village.org> To: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) Subject: Re: pccardd patches for review Cc: nate@mt.sri.com, mobile@FreeBSD.ORG In-reply-to: Your message of "Thu, 15 Jul 1999 09:59:05 +0900." <199907150059.JAA00865@afs.ntc.mita.keio.ac.jp> References: <199907150059.JAA00865@afs.ntc.mita.keio.ac.jp> Date: Wed, 14 Jul 1999 19:47:39 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907150059.JAA00865@afs.ntc.mita.keio.ac.jp> HOSOKAWA Tatsumi writes: : These delays existed on Andrew McRae's original PCMCIA patch for : FreeBSD that PAO based on. I'll test this code later. I'll post a new version of the patches later tonight. I've improved them a little. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 19:20:58 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 0265B15477 for ; Wed, 14 Jul 1999 19:20:51 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id UAA26417 for ; Wed, 14 Jul 1999 20:20:51 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id UAA60407 for ; Wed, 14 Jul 1999 20:20:50 -0600 (MDT) Message-Id: <199907150220.UAA60407@harmony.village.org> To: mobile@freebsd.org Subject: That sleeze idea I had... Date: Wed, 14 Jul 1999 20:20:50 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org ... won't work :-(. I had thought there would be a nice, small trivial way to make new drivers work with the old system.... So it will be a little longer before I have the patches... So I think I'll try to wrap up this current set of tweaks, commit them and then plunge back into the frey... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 20: 6:56 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from inetfw.sonycsl.co.jp (inetfw.sonycsl.co.jp [203.137.129.4]) by hub.freebsd.org (Postfix) with ESMTP id 5F2D814FE6 for ; Wed, 14 Jul 1999 20:06:53 -0700 (PDT) (envelope-from kjc@csl.sony.co.jp) Received: from hotaka.csl.sony.co.jp (root@hotaka.csl.sony.co.jp [43.27.98.57]) by inetfw.sonycsl.co.jp (8.9.3+3.2W/3.7Ws3/99060216/smtpfeed 1.01) with ESMTP id MAA51919; Thu, 15 Jul 1999 12:06:17 +0900 (JST) Received: from localhost (kjc@[127.0.0.1]) by hotaka.csl.sony.co.jp (8.8.8/3.6W/hotaka/98122515) with ESMTP id MAA01656; Thu, 15 Jul 1999 12:06:16 +0900 (JST) Message-Id: <199907150306.MAA01656@hotaka.csl.sony.co.jp> To: Nik Clayton Cc: mobile@freebsd.org Subject: Re: Sony VAIO Z505SX and 3.2 or -current In-reply-to: Your message of "Wed, 14 Jul 1999 13:47:11 +0100." <19990714134711.X2353@lehman.com> Date: Thu, 15 Jul 1999 12:06:15 +0900 From: Kenjiro Cho Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >> Has anyone got any success stories about running FreeBSD 3.2 -stable or >> -current on a Sony VAIO Z505SX? This is the 366MHz PII with built in >> ethernet. I got Z505FX (japanese version) this week and installed 3.2R + PAO3. * Processor - MobilePentiumII 366 MHz * 64 MB SDRAM, expandable to 192 MB * Hard disk size - 6.4 GB Fixed working items: * LCD - 12.1 XGA Active Matrix (1024 x 768) * Graphics - NeoMagic MagicMediaTM 256AV with 2.5 MB video RAM and 128-bit Accelerator; -> works fine with XFree86 (1024x768) * Integrated Ethernet interface - 10Base-T/100Base-TX -> works fine with the fxp driver * PC Card slots - Supports one Type II Card; CardBus Support -> seems to be working with PAO3 (got CD-ROM (PCGA-CD51) working) not-working items: * Modem - Integrated V.90 Modem * Digital Audio - 16-bit playback and record (In Z505, these are gone from the bios setup menu...) * Floppy disk drive - External USB 1.44 MB, 3.5" -> but used to boot the FreeBSD installer haven't tried: * Built-in Sony Memory Stick media slot -> disabled * i.LINK$(D"n(B (IEEE-1394) interface for DV still capture I had to disable the memory stick slot in the bios setup to install FreeBSD. -Kenjiro To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 20:39:54 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id EACBF150AA for ; Wed, 14 Jul 1999 20:39:40 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id VAA26540 for ; Wed, 14 Jul 1999 21:38:26 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id VAA60906 for ; Wed, 14 Jul 1999 21:38:26 -0600 (MDT) Message-Id: <199907150338.VAA60906@harmony.village.org> To: mobile@freebsd.org Subject: pccardd changes Date: Wed, 14 Jul 1999 21:38:26 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Here's my latest pccardd changes. I've changed the default back to sleeping 5 seconds. I think it does this 4-6 times per card insertion, which is why there is about a 30 second pause. Instead, I've added a -s switch which specifies the number of microseconds to sleep there instead. I've also tied -d to a bunch more diagnostic messages. I've updated the man page as well... I've already committed the one compiler warning tweak... Since I'd like to move forward with some other work in this area, I'd like to commit these changes soon. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 20:40:12 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 1C17B154DC for ; Wed, 14 Jul 1999 20:39:51 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id VAA26544 for ; Wed, 14 Jul 1999 21:39:19 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id VAA60917 for ; Wed, 14 Jul 1999 21:39:19 -0600 (MDT) Message-Id: <199907150339.VAA60917@harmony.village.org> To: mobile@freebsd.org Subject: Oooppsss Date: Wed, 14 Jul 1999 21:39:19 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org to comment on my patches, alluded to in the last message, you'll need to see the patches. Warner Index: cardd.c =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/usr.sbin/pccard/pccardd/cardd.c,v retrieving revision 1.34 diff -u -r1.34 cardd.c --- cardd.c 1999/02/05 16:00:17 1.34 +++ cardd.c 1999/07/15 02:47:12 @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include "cardd.h" @@ -114,7 +115,8 @@ if (mem == 0) { mem = alloc_memory(4 * 1024); if (mem == 0) - die("can't allocate memory for controller access"); + die("can't allocate memory for " + "controller access"); if (ioctl(fd, PIOCRWMEM, &mem)) logerr("ioctl (PIOCRWMEM)"); } @@ -198,7 +200,7 @@ { struct card *cp; - sleep(5); + usleep(pccard_init_sleep); sp->cis = readcis(sp->fd); if (sp->cis == 0) { logmsg("Error reading CIS on %s\n", sp->name); @@ -281,10 +283,10 @@ if (conf->inuse == 0 && conf->driver->card == cp && conf->driver->config == conf && conf->driver->inuse == 0) { -#ifdef DEBUG - logmsg("Found existing driver (%s) for %s\n", - conf->driver->name, cp->manuf); -#endif + if (dodebug) { + logmsg("Found existing driver (%s) for %s\n", + conf->driver->name, cp->manuf); + } conf->driver->inuse = 1; conf->inuse = 1; return (conf); @@ -348,8 +350,11 @@ for (cisconf = cis->conf; cisconf; cisconf = cisconf->next) if (cisconf->id == sp->config->index) break; - if (cisconf == 0) + if (cisconf == 0) { + logmsg("Config id %d not present in this card", + sp->config->index); return (-1); + } sp->card_config = cisconf; /* @@ -378,10 +383,10 @@ sp->config->driver->mem = sp->mem.addr; } sp->mem.cardaddr = 0x4000; -#ifdef DEBUG - logmsg("Using mem addr 0x%x, size %d, card addr 0x%x\n", - sp->mem.addr, sp->mem.size, sp->mem.cardaddr); -#endif + if (dodebug) { + logmsg("Using mem addr 0x%x, size %d, card addr 0x%x\n", + sp->mem.addr, sp->mem.size, sp->mem.cardaddr); + } } /* Now look at I/O. */ @@ -435,10 +440,10 @@ sp->io.flags = IODF_WS | IODF_CS16 | IODF_16BIT; break; } -#ifdef DEBUG - logmsg("Using I/O addr 0x%x, size %d\n", - sp->io.addr, sp->io.size); -#endif + if (dodebug) { + logmsg("Using I/O addr 0x%x, size %d\n", + sp->io.addr, sp->io.size); + } } sp->irq = sp->config->irq; return (0); @@ -476,11 +481,12 @@ c = sp->config->index; c |= 0x40; write(sp->fd, &c, sizeof(c)); -#ifdef DEBUG - logmsg("Setting config reg at offs 0x%lx to 0x%x, Reset time = %d ms\n", - (unsigned long)offs, c, sp->card->reset_time); -#endif - sleep(5); + if (dodebug) { + logmsg("Setting config reg at offs 0x%lx to 0x%x, " + "Reset time = %d ms\n", (unsigned long)offs, c, + sp->card->reset_time); + } + usleep(pccard_init_sleep); usleep(sp->card->reset_time * 1000); /* If other config registers exist, set them up. */ @@ -520,10 +526,11 @@ io.size = 0x300; } #endif -#ifdef DEBUG - logmsg("Assigning I/O window %d, start 0x%x, size 0x%x flags 0x%x\n", - io.window, io.start, io.size, io.flags); -#endif + if (dodebug) { + logmsg("Assigning I/O window %d, start 0x%x, " + "size 0x%x flags 0x%x\n", io.window, io.start, + io.size, io.flags); + } io.flags |= IODF_ACTIVE; if (ioctl(sp->fd, PIOCSIO, &io)) { logerr("ioctl (PIOCSIO)"); @@ -541,14 +548,16 @@ drv.mem = 0; drv.memsize = 0; } - if (sp->io.size) + if (sp->io.size) { drv.iobase = sp->io.addr; - else + } else { drv.iobase = 0; -#ifdef DEBUG - logmsg("Assign %s%d, io 0x%x, mem 0x%lx, %d bytes, irq %d, flags %x\n", - drv.name, drv.unit, drv.iobase, drv.mem, drv.memsize, sp->irq, drv.flags); -#endif + } + if (dodebug) { + logmsg("Assign %s%d, io 0x%x, mem 0x%lx, %d bytes, irq %d, " + "flags %x\n", drv.name, drv.unit, drv.iobase, drv.mem, + drv.memsize, sp->irq, drv.flags); + } /* * If the driver fails to be connected to the device, @@ -556,7 +565,8 @@ */ memcpy(drv.misc, sp->eaddr, 6); if (ioctl(sp->fd, PIOCSDRV, &drv)) { - logmsg("driver allocation failed for %s", sp->card->manuf); + logmsg("driver allocation failed for %s(%s): %s", + sp->card->manuf, sp->card->version, strerror(errno)); return (0); } return (1); Index: cardd.h =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/usr.sbin/pccard/pccardd/cardd.h,v retrieving revision 1.12 diff -u -r1.12 cardd.h --- cardd.h 1998/03/09 05:18:55 1.12 +++ cardd.h 1999/07/15 02:38:59 @@ -118,6 +118,8 @@ EXTERN struct card *cards; EXTERN bitstr_t *mem_avail; EXTERN bitstr_t *io_avail; +EXTERN int pccard_init_sleep; /* Time to sleep on init */ +EXTERN int dodebug; /* cardd.c functions */ void dump_config_file(void); Index: pccardd.8 =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/usr.sbin/pccard/pccardd/pccardd.8,v retrieving revision 1.14 diff -u -r1.14 pccardd.8 --- pccardd.8 1999/06/30 03:49:30 1.14 +++ pccardd.8 1999/07/15 02:54:58 @@ -38,6 +38,7 @@ .Op Fl z .Op Fl i Ar IRQ .Op Fl f Ar configfile +.Op Fl s Ar initsleeptime .Sh DESCRIPTION .Nm Pccardd is normally started at boot time, and manages the insertion @@ -121,8 +122,16 @@ .It Fl v After reading the configuration file, print out a summary of it. +.It Fl s Ar initsleep +Configures the amount of time to sleep at two different points in the +initialization process. +The time is in microseconds. +The default value is 5000000 microseconds, as that works on nearly all +pccards. +Newer pc cards may only need as little as 500 microseconds. +When set too low, the your machine may freeze. .It Fl z -Delays running as a daemon slightly. +Delays running as a daemon until after the cards have been probed and attached. .It Fl i Ar IRQ Configures an available IRQ. It overrides the "irq" line in .Pa /etc/pccard.conf . Index: pccardd.c =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/usr.sbin/pccard/pccardd/pccardd.c,v retrieving revision 1.3 diff -u -r1.3 pccardd.c --- pccardd.c 1999/06/17 21:07:59 1.3 +++ pccardd.c 1999/07/15 02:39:28 @@ -46,12 +46,14 @@ main(int argc, char *argv[]) { struct slot *slots, *sp; - int count, dodebug = 0; + int count; int doverbose = 0; int delay = 0; int i; - while ((count = getopt(argc, argv, ":dvf:i:z")) != -1) { + pccard_init_sleep = 5000000; + dodebug = 0; + while ((count = getopt(argc, argv, ":dvf:i:s:z")) != -1) { switch (count) { case 'd': setbuf(stdout, 0); @@ -71,6 +73,9 @@ exit(1); } pool_irq[i] = 1; + break; + case 's': + pccard_init_sleep = atoi(optarg); break; case 'z': delay = 1; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 20:56: 2 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from chandra.eatell.msr.prug.or.jp (dhcp418.6bone.nec.co.jp [202.247.4.18]) by hub.freebsd.org (Postfix) with ESMTP id C26B9154B1 for ; Wed, 14 Jul 1999 20:55:54 -0700 (PDT) (envelope-from y-nakaga@nwsl.mesh.ad.jp) Received: from nwsl.mesh.ad.jp (localhost.eatell.msr.prug.or.jp [127.0.0.1]) by chandra.eatell.msr.prug.or.jp (8.8.8/8.8.5) with ESMTP id DAA22017; Thu, 15 Jul 1999 03:53:46 GMT Message-Id: <199907150353.DAA22017@chandra.eatell.msr.prug.or.jp> To: Warner Losh Cc: mobile@FreeBSD.ORG Subject: Re: Oooppsss In-reply-to: Your message of "Wed, 14 Jul 1999 21:39:19 CST." <199907150339.VAA60917@harmony.village.org> Date: Thu, 15 Jul 1999 12:53:45 +0900 From: NAKAGAWA Yoshihisa Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > to comment on my patches, alluded to in the last message, you'll need > to see the patches. > +.Op Fl s Ar initsleeptime I don't like many start-up argument. New config-file's entry is better for me. For example, additional pccard.conf entry: initsleep ... io 0x150-0x180 0x240-0x2e0 0x300-0x360 memory 0xd4000 96k initsleep 1000 ... -- NAKAGAWA, Yoshihisa y-nakaga@nwsl.mesh.ad.jp nakagawa@jp.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 20:57:51 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 053FE154B1 for ; Wed, 14 Jul 1999 20:57:36 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id VAA26614; Wed, 14 Jul 1999 21:57:33 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id VAA61193; Wed, 14 Jul 1999 21:57:32 -0600 (MDT) Message-Id: <199907150357.VAA61193@harmony.village.org> To: NAKAGAWA Yoshihisa Subject: Re: Oooppsss Cc: mobile@FreeBSD.ORG In-reply-to: Your message of "Thu, 15 Jul 1999 12:53:45 +0900." <199907150353.DAA22017@chandra.eatell.msr.prug.or.jp> References: <199907150353.DAA22017@chandra.eatell.msr.prug.or.jp> Date: Wed, 14 Jul 1999 21:57:32 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907150353.DAA22017@chandra.eatell.msr.prug.or.jp> NAKAGAWA Yoshihisa writes: : I don't like many start-up argument. New config-file's entry is : better for me. I didn't even think about doing that. Now that you've suggested it, I think it is an excellent idea.... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 22:51: 1 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 2E82D14BE3 for ; Wed, 14 Jul 1999 22:50:45 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id XAA26824; Wed, 14 Jul 1999 23:49:54 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id XAA68558; Wed, 14 Jul 1999 23:49:54 -0600 (MDT) Message-Id: <199907150549.XAA68558@harmony.village.org> To: NAKAGAWA Yoshihisa Subject: Re: Oooppsss Cc: mobile@FreeBSD.ORG In-reply-to: Your message of "Thu, 15 Jul 1999 12:53:45 +0900." <199907150353.DAA22017@chandra.eatell.msr.prug.or.jp> References: <199907150353.DAA22017@chandra.eatell.msr.prug.or.jp> Date: Wed, 14 Jul 1999 23:49:54 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907150353.DAA22017@chandra.eatell.msr.prug.or.jp> NAKAGAWA Yoshihisa writes: : I don't like many start-up argument. New config-file's entry is : better for me. I've added this and debuglevel, fixed the dodebug abuse and documented it all. Warner Index: cardd.c =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/usr.sbin/pccard/pccardd/cardd.c,v retrieving revision 1.34 diff -u -r1.34 cardd.c --- cardd.c 1999/02/05 16:00:17 1.34 +++ cardd.c 1999/07/15 05:46:22 @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include "cardd.h" @@ -114,7 +115,8 @@ if (mem == 0) { mem = alloc_memory(4 * 1024); if (mem == 0) - die("can't allocate memory for controller access"); + die("can't allocate memory for " + "controller access"); if (ioctl(fd, PIOCRWMEM, &mem)) logerr("ioctl (PIOCRWMEM)"); } @@ -198,7 +200,7 @@ { struct card *cp; - sleep(5); + usleep(pccard_init_sleep); sp->cis = readcis(sp->fd); if (sp->cis == 0) { logmsg("Error reading CIS on %s\n", sp->name); @@ -281,10 +283,10 @@ if (conf->inuse == 0 && conf->driver->card == cp && conf->driver->config == conf && conf->driver->inuse == 0) { -#ifdef DEBUG - logmsg("Found existing driver (%s) for %s\n", - conf->driver->name, cp->manuf); -#endif + if (debug_level > 0) { + logmsg("Found existing driver (%s) for %s\n", + conf->driver->name, cp->manuf); + } conf->driver->inuse = 1; conf->inuse = 1; return (conf); @@ -348,8 +350,11 @@ for (cisconf = cis->conf; cisconf; cisconf = cisconf->next) if (cisconf->id == sp->config->index) break; - if (cisconf == 0) + if (cisconf == 0) { + logmsg("Config id %d not present in this card", + sp->config->index); return (-1); + } sp->card_config = cisconf; /* @@ -378,10 +383,10 @@ sp->config->driver->mem = sp->mem.addr; } sp->mem.cardaddr = 0x4000; -#ifdef DEBUG - logmsg("Using mem addr 0x%x, size %d, card addr 0x%x\n", - sp->mem.addr, sp->mem.size, sp->mem.cardaddr); -#endif + if (debug_level > 0) { + logmsg("Using mem addr 0x%x, size %d, card addr 0x%x\n", + sp->mem.addr, sp->mem.size, sp->mem.cardaddr); + } } /* Now look at I/O. */ @@ -435,10 +440,10 @@ sp->io.flags = IODF_WS | IODF_CS16 | IODF_16BIT; break; } -#ifdef DEBUG - logmsg("Using I/O addr 0x%x, size %d\n", - sp->io.addr, sp->io.size); -#endif + if (debug_level > 0) { + logmsg("Using I/O addr 0x%x, size %d\n", + sp->io.addr, sp->io.size); + } } sp->irq = sp->config->irq; return (0); @@ -476,11 +481,12 @@ c = sp->config->index; c |= 0x40; write(sp->fd, &c, sizeof(c)); -#ifdef DEBUG - logmsg("Setting config reg at offs 0x%lx to 0x%x, Reset time = %d ms\n", - (unsigned long)offs, c, sp->card->reset_time); -#endif - sleep(5); + if (debug_level > 0) { + logmsg("Setting config reg at offs 0x%lx to 0x%x, " + "Reset time = %d ms\n", (unsigned long)offs, c, + sp->card->reset_time); + } + usleep(pccard_init_sleep); usleep(sp->card->reset_time * 1000); /* If other config registers exist, set them up. */ @@ -520,10 +526,11 @@ io.size = 0x300; } #endif -#ifdef DEBUG - logmsg("Assigning I/O window %d, start 0x%x, size 0x%x flags 0x%x\n", - io.window, io.start, io.size, io.flags); -#endif + if (debug_level > 0) { + logmsg("Assigning I/O window %d, start 0x%x, " + "size 0x%x flags 0x%x\n", io.window, io.start, + io.size, io.flags); + } io.flags |= IODF_ACTIVE; if (ioctl(sp->fd, PIOCSIO, &io)) { logerr("ioctl (PIOCSIO)"); @@ -541,14 +548,16 @@ drv.mem = 0; drv.memsize = 0; } - if (sp->io.size) + if (sp->io.size) { drv.iobase = sp->io.addr; - else + } else { drv.iobase = 0; -#ifdef DEBUG - logmsg("Assign %s%d, io 0x%x, mem 0x%lx, %d bytes, irq %d, flags %x\n", - drv.name, drv.unit, drv.iobase, drv.mem, drv.memsize, sp->irq, drv.flags); -#endif + } + if (debug_level > 0) { + logmsg("Assign %s%d, io 0x%x, mem 0x%lx, %d bytes, irq %d, " + "flags %x\n", drv.name, drv.unit, drv.iobase, drv.mem, + drv.memsize, sp->irq, drv.flags); + } /* * If the driver fails to be connected to the device, @@ -556,7 +565,8 @@ */ memcpy(drv.misc, sp->eaddr, 6); if (ioctl(sp->fd, PIOCSDRV, &drv)) { - logmsg("driver allocation failed for %s", sp->card->manuf); + logmsg("driver allocation failed for %s(%s): %s", + sp->card->manuf, sp->card->version, strerror(errno)); return (0); } return (1); Index: cardd.h =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/usr.sbin/pccard/pccardd/cardd.h,v retrieving revision 1.12 diff -u -r1.12 cardd.h --- cardd.h 1998/03/09 05:18:55 1.12 +++ cardd.h 1999/07/15 05:45:38 @@ -118,6 +118,8 @@ EXTERN struct card *cards; EXTERN bitstr_t *mem_avail; EXTERN bitstr_t *io_avail; +EXTERN int pccard_init_sleep; /* Time to sleep on init */ +EXTERN int debug_level; /* cardd.c functions */ void dump_config_file(void); Index: file.c =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/usr.sbin/pccard/pccardd/file.c,v retrieving revision 1.17 diff -u -r1.17 file.c --- file.c 1999/06/17 21:07:58 1.17 +++ file.c 1999/07/15 05:45:14 @@ -52,6 +52,8 @@ "ether", /* 9 */ "insert", /* 10 */ "remove", /* 11 */ + "initsleep", /* 12 */ + "debuglevel", /* 13 */ 0 }; @@ -66,6 +68,8 @@ #define KWD_ETHER 9 #define KWD_INSERT 10 #define KWD_REMOVE 11 +#define KWD_INITSLEEP 12 +#define KWD_DEBUGLEVEL 13 struct flags { char *name; @@ -79,6 +83,8 @@ static void error(char *); static int keyword(char *); static int irq_tok(int); +static int initsleep_tok(int); +static int debuglevel_tok(int); static struct allocblk *ioblk_tok(int); static struct allocblk *memblk_tok(int); static struct driver *new_driver(char *); @@ -166,6 +172,16 @@ /* Card definition. */ parse_card(); break; + case KWD_INITSLEEP: + i = initsleep_tok(0); + if (i > 0) + pccard_init_sleep = i; + break; + case KWD_DEBUGLEVEL: + i = debuglevel_tok(0); + if (i > 0) + debug_level = i; + break; default: error("syntax error"); pusht = 0; @@ -375,6 +391,34 @@ return (i); if (force) error("illegal IRQ value"); + return (-1); +} + +/* + * initsleep token. Must be number > 500 && < 10 * 1000 * 1000. + */ +static int +initsleep_tok(int force) +{ + int i; + + i = num_tok(); + if (i > 500 && i < 10 * 1000 * 1000) + return (i); + return (-1); +} + +/* + * debuglevel token. Must be between 0 and 9. + */ +static int +debuglevel_tok(int force) +{ + int i; + + i = num_tok(); + if (i >= 0 && i <= 9) + return (i); return (-1); } Index: pccard.conf.5 =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/usr.sbin/pccard/pccardd/pccard.conf.5,v retrieving revision 1.8 diff -u -r1.8 pccard.conf.5 --- pccard.conf.5 1999/07/12 20:12:16 1.8 +++ pccard.conf.5 1999/07/15 05:42:28 @@ -116,6 +116,22 @@ blocks that can be used to allocate to drivers when they are initialized. .Pp +The syntax of the initsleep parameter: +.Pp +.Dl initsleep Ar time +.Pp +Configures the amount of time to sleep at two different points in the +initialization process. +The time is in microseconds. +The default value is 5000000 microseconds, as that works on nearly all +pccards. +Newer pc cards may only need as little as 500 microseconds. +When set too low, the your machine may freeze. +.Pp +The syntax of the debuglevel parameter: +.Pp +.Dl debuglevel Ar level +.Pp Multiple lines of any of the above statements may be present to allow separate blocks of each resource to be defined. Index: pccardd.8 =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/usr.sbin/pccard/pccardd/pccardd.8,v retrieving revision 1.14 diff -u -r1.14 pccardd.8 --- pccardd.8 1999/06/30 03:49:30 1.14 +++ pccardd.8 1999/07/15 05:40:07 @@ -122,7 +122,7 @@ After reading the configuration file, print out a summary of it. .It Fl z -Delays running as a daemon slightly. +Delays running as a daemon until after the cards have been probed and attached. .It Fl i Ar IRQ Configures an available IRQ. It overrides the "irq" line in .Pa /etc/pccard.conf . Index: pccardd.c =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/usr.sbin/pccard/pccardd/pccardd.c,v retrieving revision 1.3 diff -u -r1.3 pccardd.c --- pccardd.c 1999/06/17 21:07:59 1.3 +++ pccardd.c 1999/07/15 05:48:45 @@ -51,6 +51,8 @@ int delay = 0; int i; + pccard_init_sleep = 5000000; + debug_level = 0; while ((count = getopt(argc, argv, ":dvf:i:z")) != -1) { switch (count) { case 'd': To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 22:59:54 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252]) by hub.freebsd.org (Postfix) with ESMTP id 5C1F714CF8 for ; Wed, 14 Jul 1999 22:59:48 -0700 (PDT) (envelope-from roberto@keltia.freenix.fr) Received: (from uucp@localhost) by frmug.org (8.9.1/frmug-2.3/nospam) with UUCP id HAA01885 for mobile@freebsd.org; Thu, 15 Jul 1999 07:59:23 +0200 (CEST) (envelope-from roberto@keltia.freenix.fr) Received: by keltia.freenix.fr (Postfix, from userid 101) id A46ED8838; Thu, 15 Jul 1999 07:36:00 +0200 (CEST) (envelope-from roberto) Date: Thu, 15 Jul 1999 07:36:00 +0200 From: Ollivier Robert To: mobile@freebsd.org Subject: Re: Sony VAIO Z505SX and 3.2 or -current Message-ID: <19990715073600.A34039@keltia.freenix.fr> Mail-Followup-To: mobile@freebsd.org References: <19990714134711.X2353@lehman.com> <199907150306.MAA01656@hotaka.csl.sony.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/0.95.5i In-Reply-To: <199907150306.MAA01656@hotaka.csl.sony.co.jp>; from Kenjiro Cho on Thu, Jul 15, 1999 at 12:06:15PM +0900 X-Operating-System: FreeBSD 4.0-CURRENT/ELF ctm#5468 AMD-K6 MMX @ 200 MHz Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org According to Kenjiro Cho: > not-working items: > * Modem - Integrated V.90 Modem Why ? It is the same modem as in the other VAIO or did they switch to another brand ? Maybe it is the sio problem ? > * Digital Audio - 16-bit playback and record > (In Z505, these are gone from the bios setup menu...) Is it PCI audio ? Does the system recognised it at all ? -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 4.0-CURRENT #72: Mon Jul 12 08:26:43 CEST 1999 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 14 23:47:48 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from inetfw.sonycsl.co.jp (inetfw.sonycsl.co.jp [203.137.129.4]) by hub.freebsd.org (Postfix) with ESMTP id 546C914E4B for ; Wed, 14 Jul 1999 23:47:44 -0700 (PDT) (envelope-from kjc@csl.sony.co.jp) Received: from hotaka.csl.sony.co.jp (root@hotaka.csl.sony.co.jp [43.27.98.57]) by inetfw.sonycsl.co.jp (8.9.3+3.2W/3.7Ws3/99060216/smtpfeed 1.01) with ESMTP id PAA54584; Thu, 15 Jul 1999 15:45:42 +0900 (JST) Received: from localhost (kjc@[127.0.0.1]) by hotaka.csl.sony.co.jp (8.8.8/3.6W/hotaka/98122515) with ESMTP id PAA23927; Thu, 15 Jul 1999 15:45:41 +0900 (JST) Message-Id: <199907150645.PAA23927@hotaka.csl.sony.co.jp> To: Ollivier Robert Cc: mobile@freebsd.org Subject: Re: Sony VAIO Z505SX and 3.2 or -current In-reply-to: Your message of "Thu, 15 Jul 1999 07:36:00 +0200." <19990715073600.A34039@keltia.freenix.fr> Date: Thu, 15 Jul 1999 15:45:39 +0900 From: Kenjiro Cho Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Ollivier Robert said: > not-working items: > * Modem - Integrated V.90 Modem >> Why ? It is the same modem as in the other VAIO or did they switch to another >> brand ? Maybe it is the sio problem ? > * Digital Audio - 16-bit playback and record > (In Z505, these are gone from the bios setup menu...) >> Is it PCI audio ? Does the system recognised it at all ? I haven't spent much time to investigate the issues but - in 505 series, modem and sound devices appear in the bios setup, and you can enable/disable or assign address/irq. - in Z505 series, neither modem nor sound device entry appears in the bios setup. freebsd sio doesn't recognize the modem (irq 3 not in bitmap of probed irqs 0) and the pcm driver doesn't recognize the sound device at all. I suspect these are software controlled devices under Windows... -Kenjiro To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 15 0:32:11 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from dingo.cdrom.com (castles537.castles.com [208.214.165.101]) by hub.freebsd.org (Postfix) with ESMTP id 275C614E3A for ; Thu, 15 Jul 1999 00:32:04 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (LOCALHOST [127.0.0.1]) by dingo.cdrom.com (8.9.3/8.8.8) with ESMTP id AAA00963; Thu, 15 Jul 1999 00:27:20 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199907150727.AAA00963@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Kenjiro Cho Cc: Ollivier Robert , mobile@freebsd.org Subject: Re: Sony VAIO Z505SX and 3.2 or -current In-reply-to: Your message of "Thu, 15 Jul 1999 15:45:39 +0900." <199907150645.PAA23927@hotaka.csl.sony.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 15 Jul 1999 00:27:19 -0700 From: Mike Smith Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > I haven't spent much time to investigate the issues but > - in 505 series, modem and sound devices appear in the bios setup, > and you can enable/disable or assign address/irq. > - in Z505 series, neither modem nor sound device entry appears in the > bios setup. > freebsd sio doesn't recognize the modem (irq 3 not in bitmap of > probed irqs 0) and the pcm driver doesn't recognize the sound > device at all. > I suspect these are software controlled devices under Windows... The output of "pnpscan -v" in the loader would be useful to see here. -- \\ The mind's the standard \\ Mike Smith \\ of the man. \\ msmith@freebsd.org \\ -- Joseph Merrick \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 15 6:11:44 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from heathers.stdio.com (heathers.stdio.com [199.89.192.5]) by hub.freebsd.org (Postfix) with ESMTP id AF5A014E13 for ; Thu, 15 Jul 1999 06:11:41 -0700 (PDT) (envelope-from lile@stdio.com) Received: from heathers.stdio.com (lile@heathers.stdio.com [199.89.192.5]) by heathers.stdio.com (8.8.8/8.8.8) with ESMTP id JAA12043 for ; Thu, 15 Jul 1999 09:11:27 -0400 (EDT) (envelope-from lile@stdio.com) Date: Thu, 15 Jul 1999 09:11:27 -0400 (EDT) From: Larry Lile To: mobile@freebsd.org Subject: Thinkpad keyboard problems... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have a Thinkpad 370C with a 3COM 3C589D PCMCIA Ethernet adapter and I have had no end of problems getting FreeBSD installed on it. Finally I have gotten 2.2.8 to install, but my ethernet card doesn't work after the install :< To get 2.2.8 installed, I had to set the flags on sc0 to 0x10, there is no atkbd0 in 2.2.8. I have tried to install 3.x with the flags on sc0 to 0x10, but that doesn't help. Also I have tried setting the flags on atkbd0 to 0x4 and 0x6. I have also tried combinations of the two, sc0 -0x10 & atkbd0 -0x4, sc0 -0x0 & atkbd0 -0x4, ... I have tried the same for 4.x using the standard boot floppies and the pccard boot floppies. So are there any definitive answers on what the settings should be for 3.x or 4.x. The faq only mentions setting sc0 to 0x10 and there are messages in the archive about setting atkbd0 to 0x4. Thanks Larry Lile To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 15 7:39:12 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 40E3714F86 for ; Thu, 15 Jul 1999 07:38:07 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id IAA22519; Thu, 15 Jul 1999 08:35:01 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id IAA02139; Thu, 15 Jul 1999 08:35:00 -0600 Date: Thu, 15 Jul 1999 08:35:00 -0600 Message-Id: <199907151435.IAA02139@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Warner Losh Cc: mobile@FreeBSD.ORG Subject: Re: Oooppsss In-Reply-To: <199907150339.VAA60917@harmony.village.org> References: <199907150339.VAA60917@harmony.village.org> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > memcpy(drv.misc, sp->eaddr, 6); > if (ioctl(sp->fd, PIOCSDRV, &drv)) { > - logmsg("driver allocation failed for %s", sp->card->manuf); > + logmsg("driver allocation failed for %s(%s): %s", > + sp->card->manuf, sp->card->version, strerror(errno)); > return (0); > } > return (1); Check into logerr. It may need to be modified. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 15 7:46: 9 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 236151552B for ; Thu, 15 Jul 1999 07:46:05 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id IAA28014; Thu, 15 Jul 1999 08:45:55 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id IAA70426; Thu, 15 Jul 1999 08:45:55 -0600 (MDT) Message-Id: <199907151445.IAA70426@harmony.village.org> To: Nate Williams Subject: Re: Oooppsss Cc: mobile@FreeBSD.ORG In-reply-to: Your message of "Thu, 15 Jul 1999 08:35:00 MDT." <199907151435.IAA02139@mt.sri.com> References: <199907151435.IAA02139@mt.sri.com> <199907150339.VAA60917@harmony.village.org> Date: Thu, 15 Jul 1999 08:45:55 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907151435.IAA02139@mt.sri.com> Nate Williams writes: : Check into logerr. It may need to be modified. Yes, it would have to be. It isn't varadic.... Since I needed only once, I was feeling lazy.... I'll see if I'm feeling less lazy later today... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 15 9: 9: 2 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from firewall2.lehman.com (firewall2.Lehman.COM [192.147.65.115]) by hub.freebsd.org (Postfix) with ESMTP id F2AB51557E for ; Thu, 15 Jul 1999 09:08:50 -0700 (PDT) (envelope-from nclayton@lehman.com) Received: from relay3.messaging-svcs5.lehman.com by firewall2.lehman.com (8.8.6/8.8.6) id MAA10833; Thu, 15 Jul 1999 12:06:07 -0400 (EDT) Message-ID: <19990715170529.H2353@lehman.com> Date: Thu, 15 Jul 1999 17:05:29 +0100 From: Nik Clayton To: Kenjiro Cho Cc: mobile@freebsd.org Subject: Re: Sony VAIO Z505SX and 3.2 or -current References: <19990714134711.X2353@lehman.com> <199907150306.MAA01656@hotaka.csl.sony.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <199907150306.MAA01656@hotaka.csl.sony.co.jp>; from Kenjiro Cho on Thu, Jul 15, 1999 at 12:06:15PM +0900 Organization: Lehman Brothers Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, On Thu, Jul 15, 1999 at 12:06:15PM +0900, Kenjiro Cho wrote: > >> Has anyone got any success stories about running FreeBSD 3.2 -stable or > >> -current on a Sony VAIO Z505SX? This is the 366MHz PII with built in > >> ethernet. > > I got Z505FX (japanese version) this week and installed 3.2R + PAO3. > > * Processor - MobilePentiumII 366 MHz > * 64 MB SDRAM, expandable to 192 MB > * Hard disk size - 6.4 GB Fixed > > working items: > * LCD - 12.1 XGA Active Matrix (1024 x 768) > * Graphics - NeoMagic MagicMediaTM 256AV with 2.5 MB video RAM > and 128-bit Accelerator; > -> works fine with XFree86 (1024x768) > * Integrated Ethernet interface - 10Base-T/100Base-TX > -> works fine with the fxp driver > * PC Card slots - Supports one Type II Card; CardBus Support > -> seems to be working with PAO3 > (got CD-ROM (PCGA-CD51) working) > > not-working items: > * Modem - Integrated V.90 Modem > * Digital Audio - 16-bit playback and record > (In Z505, these are gone from the bios setup menu...) > * Floppy disk drive - External USB 1.44 MB, 3.5" > -> but used to boot the FreeBSD installer Thanks very much for this comprehensive list of things that work and don't work. The modem in particular is a bit of a pain -- obviously I could buy a PCMCIA modem as well, but that kind of defeats the object of the exercise. So I'll probably ditch the models with the internal modem, and go for another VAIO instead, and get a PCMCI modem and ethernet card (which seem to be well supported, based on the PAO reading I've been doing). So. . . does anyone have any experience using either the F160 or the F190 VAIOs with FreeBSD? Again, a web search hasn't turned up anything. I don't expect any problems with the F160, as it's fairly standard. But the F190 has a built in DVD drive, and I don't know what the state of the support for that in FreeBSD is. Many thanks, N -- --+==[ Systems Administrator, Year 2000 Test Lab, Lehman Brothers, Inc. ]==+-- --+==[ 1 Broadgate, London, EC2M 7HA 0171-601-0011 x5514 ]==+-- --+==[ Year 2000 Testing: It's about time. . . ]==+-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 15 10:12:18 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from moek.pir.net (moek.pir.net [209.192.237.190]) by hub.freebsd.org (Postfix) with ESMTP id 7C57214D13 for ; Thu, 15 Jul 1999 10:12:10 -0700 (PDT) (envelope-from pir@pir.net) Received: from pir by moek.pir.net with local (Exim) id 114p3G-0000Hw-00 for freebsd-mobile@freebsd.org; Thu, 15 Jul 1999 13:12:06 -0400 Date: Thu, 15 Jul 1999 13:12:05 -0400 From: Peter Radcliffe To: freebsd-mobile@freebsd.org Subject: Basic PAO problem. Message-ID: <19990715131205.A29196@pir.net> Mail-Followup-To: freebsd-mobile@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i X-fish: < Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is the only place I've found to ask questions about PAO in English, even though it's not strictly a 'mobile' question ... I've got a desktop PC with a fairly old ISA 4 slot pc-card controller that the price was right on ($30) which I bought to do backups of the flash card in my palmtop. I used the card in my old P133 running 2.2.8-R and it worked fine once I fiddled with it enough to make it happy (io, irqs, memory, spare IDE controller in the kernel, etc). On my new machine (BX6v2, C300A) running 3.2-S as of a couple of weeks ago the PAO3 3.2-R snapshot doesn't install cleanly but with some small fudging everything patches. Some files that were to be created already exist with equal or neweer revisions. Hopefully this isn't a problem - anyone using PAO3 with 3.2-S ? The controller is recognised: pcic0 at 0x3e0-0x3e1 irq 11 flags 0x1 on isa PC-Card ctlr(0) Intel 82365A/B (5 mem & 2 I/O windows) pcic0: slot 0 controller I/O address 0x3e0 pcic0: slot 1 controller I/O address 0x3e0 pcic0: slot 2 controller I/O address 0x3e0 pcic0: slot 3 controller I/O address 0x3e0 I tried with or without flags 0x1, on a couple of different irqs, nothing I do gets my cards recognised: pccardd[65]: No card in database for "(null)"("(null)") [(null)] [(null)] I get some things out of pccardc dumpcis for my sandisk flashcard: pir@peem# pccardc dumpcis Code 85 not found Code 85 not found code Unknown ignored Configuration data for card in slot 2 Tuple #1, code = 0x0 (Null tuple), length = 36 000: 8f 00 00 00 00 00 00 00 00 00 1e 00 00 50 49 04 010: 78 00 18 00 00 40 00 00 00 0d 42 4f 20 78 61 64 020: 18 18 18 18 Tuple #2, code = 0x18 (JEDEC descr for common memory), length = 24 000: 18 18 38 38 38 38 38 38 38 38 b6 5d 07 08 00 ff 010: ff ff ff ff ff ff ff ff Tuple #3, code = 0xff (Terminator), length = 0 4 slots found Hopefully this is just something small and stupid I've missed, but I'm stumped and searching hasn't turned up any useful information. The other thing is the machine is pure scsi, no IDE devices and the controllers are disabled in the BIOS to free up IRQs. Am I going to have problems keeping an instance of wdc available in the kernel for flash card IDE emulation ? Thanks for any clues, Peter. -- pir pir@pir.net pir@shore.net pir@net.tufts.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 15 14:35: 8 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252]) by hub.freebsd.org (Postfix) with ESMTP id AD94514DA2 for ; Thu, 15 Jul 1999 14:34:42 -0700 (PDT) (envelope-from roberto@keltia.freenix.fr) Received: (from uucp@localhost) by frmug.org (8.9.1/frmug-2.3/nospam) with UUCP id XAA11970 for mobile@freebsd.org; Thu, 15 Jul 1999 23:34:28 +0200 (CEST) (envelope-from roberto@keltia.freenix.fr) Received: by keltia.freenix.fr (Postfix, from userid 101) id 85E6C8838; Thu, 15 Jul 1999 21:42:31 +0200 (CEST) (envelope-from roberto) Date: Thu, 15 Jul 1999 21:42:31 +0200 From: Ollivier Robert To: mobile@freebsd.org Subject: Re: Sony VAIO Z505SX and 3.2 or -current Message-ID: <19990715214231.C38474@keltia.freenix.fr> Mail-Followup-To: mobile@freebsd.org References: <19990715073600.A34039@keltia.freenix.fr> <199907150645.PAA23927@hotaka.csl.sony.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/0.95.5i In-Reply-To: <199907150645.PAA23927@hotaka.csl.sony.co.jp>; from Kenjiro Cho on Thu, Jul 15, 1999 at 03:45:39PM +0900 X-Operating-System: FreeBSD 4.0-CURRENT/ELF ctm#5468 AMD-K6 MMX @ 200 MHz Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org According to Kenjiro Cho: > - in Z505 series, neither modem nor sound device entry appears in the > bios setup. > freebsd sio doesn't recognize the modem (irq 3 not in bitmap of > probed irqs 0) and the pcm driver doesn't recognize the sound > device at all. The Sony site says the audio stuff is Microsoft Sound System compatible... Have you tried with the old driver ? > I suspect these are software controlled devices under Windows... I truly hope they didn't made that mistake :-( -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 4.0-CURRENT #72: Mon Jul 12 08:26:43 CEST 1999 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 15 17:29:57 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from darwin.ntu.edu.au (darwin.ntu.edu.au [138.80.128.3]) by hub.freebsd.org (Postfix) with ESMTP id AE9391577E; Thu, 15 Jul 1999 17:29:50 -0700 (PDT) (envelope-from grog@lemis.com) Received: from mojave.lemis.com ([138.80.54.116]) by darwin.ntu.edu.au (8.8.8/8.8.8) with ESMTP id JAA21793; Fri, 16 Jul 1999 09:58:49 +0930 (CST) Received: (grog@localhost) by mojave.lemis.com (8.9.3/8.6.12) id WAA00403; Thu, 15 Jul 1999 22:55:48 +0930 (CST) Message-ID: <19990715225548.38148@mojave.lemis.com> Date: Thu, 15 Jul 1999 22:55:48 +0930 From: Greg Lehey To: Eric MASSON Cc: FreeBSD-mobile@FreeBSD.ORG Subject: Re: 3Com Megahertz LAN card? References: <19990711043648.63A7214CD1@hub.freebsd.org> <19990711153853.A89704@sr.se> <19990713164017.N21403@freebie.lemis.com> <378D0AEB.60DD4E0A@kisoft-services.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.89i In-Reply-To: <378D0AEB.60DD4E0A@kisoft-services.com>; from Eric MASSON on Thu, Jul 15, 1999 at 12:10:51AM +0200 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org [moved to -mobile] On Thursday, 15 July 1999 at 0:10:51 +0200, Eric MASSON wrote: > Greg Lehey a écrit : >> >> On Sunday, 11 July 1999 at 15:38:53 +0200, Gunnar Flygt wrote: >>> On Sat, Jul 10, 1999 at 11:37:03PM -0500, Ken Williams wrote: >>>> Hi there, >>>> >>>> I've been programming on Unix for years, and I'm finally installing my own >>>> FreeBSD system (my first). I've got a laptop (HP Omnibook XE2), and it uses >>>> the 3Com Megahertz LAN card (3CCFE574BT). I haven't been able to get this to >>>> work, though. >>>> >>>> Is it supported? If so, can anyone give me tips on how to set it up? >>> >>> Try looking at the PAO project! It's located at >>> http://www.jp.freebsd.org/PAO/ >> >> I don't think this will work either. If I understand the part number >> correctly, it's a CardBus card, and neither PAO nor the current >> releases support it. The newconfig project does, though. Check out >> http://www.jp.FreeBSD.org/newconfig/ for further details, and note >> that it's still experimental. > > 3CCFE574BT, just as 3CCFEM556B exists both in Pccard or Cardbus version, > it's written on it just like Port-Salut (Sorry about this bad pun > extract of a french TV ad upon Port Salut cheese ;-)). Well, you might describe the ad :-) > I found support for both cards in linux-pcmcia3.0.12 package. I have > the sources but no knowledge about porting it to FBSD. 3C574 support > is a patch upon 3C509 driver. Maybe somebody on the -mobile list would be interested in doing it. We had another query lately, but I don't have the reference handy. I'm moving this to the -mobile list, and maybe we can get something done. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 15 19: 9:47 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from mail.kt.rim.or.jp (mail.kt.rim.or.jp [202.247.130.53]) by hub.freebsd.org (Postfix) with ESMTP id 84C9F14BD2 for ; Thu, 15 Jul 1999 19:09:42 -0700 (PDT) (envelope-from kuriyama@sky.rim.or.jp) Received: from moon.sky.rim.or.jp (ppp524.kt.rim.or.jp [202.247.140.174]) by mail.kt.rim.or.jp (8.8.8/3.6W-RIMNET-98-06-09) with ESMTP id LAA17699 for ; Fri, 16 Jul 1999 11:09:32 +0900 (JST) Received: from sky.rim.or.jp (earth.sky.rim.or.jp [192.168.1.2]) by moon.sky.rim.or.jp (8.8.8/3.5Wpl4/moon-1.0) with ESMTP id LAA04739 for ; Fri, 16 Jul 1999 11:09:31 +0900 (JST) Message-ID: <378E940A.36C62CED@sky.rim.or.jp> Date: Fri, 16 Jul 1999 11:08:10 +0900 From: Jun Kuriyama X-Mailer: Mozilla 4.51 [ja] (Win95; I) X-Accept-Language: ja MIME-Version: 1.0 To: mobile@freebsd.org Subject: Re: Sony VAIO Z505SX and 3.2 or -current References: <199907150727.AAA00963@dingo.cdrom.com> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Mike Smith wrote: > The output of "pnpscan -v" in the loader would be useful to see here. I have Z505D which is similar to Z505SX (without onboard ethernet). Result of "pnpscan -v" is: ----- disk1s2a:> pnpscan -v Probing PnP BIOS... Probing ISA bus... Probing PCI BIOS... PNP0c02 PNP0c01 PNP0c02 PNP0200 PNP0000 PNP0100 PNP0b00 PNP0303 PNP0c04 PNP0800 PNP0a03 PNP0e03 PNP0401 PNP0501 SMCf010 PNP0f13 0x71118086 : IDE Controller 0x000510c8 : VGA display 0x2005127a : communications controller 0x8009104d : Firewire controller 0x71128086 : USB controller ----- And result of "pciconf" is here (with my comment): ----- chip0@pci0:0:0: class=0x060000 (Bridge:Host:) card=0x00000000 chip=0x71928086 rev=0x03 hdr=0x00 (Intel 82443BX host to PCI bridge (AGP disabled)) chip1@pci0:7:0: class=0x068000 (Bridge:Other:) card=0x00000000 chip=0x71108086 rev=0x02 hdr=0x00 (Intel 82371AB PCI to ISA bridge) ide_pci0@pci0:7:1: class=0x010180 (Storage:IDE:MasterDev) card=0x00000000 chip=0x71118086 rev=0x01 hdr=0x00 (Intel PIIX4 Bus-master IDE controller) none0@pci0:7:2: class=0x0c0300 (SerialBus:USB:) card=0x00000000 chip=0x71128086 rev=0x01 hdr=0x00 (Intel 82371AB/EB USB Host Controller) chip2@pci0:7:3: class=0x068000 (Bridge:Other:) card=0x00000000 chip=0x71138086 rev=0x02 hdr=0x00 (Intel 82371AB Power management controller) vga0@pci0:8:0: class=0x030000 (Display:VGA:) card=0x8051104d chip=0x000510c8 rev=0x20 hdr=0x00 (NeoMagic MagicMedia NM2200) none1@pci0:8:1: class=0x040100 (MultiMedia:Audio:) card=0x8052104d chip=0x800510c8 rev=0x20 hdr=0x00 (NeoMagic) none2@pci0:9:0: class=0x0c0000 (SerialBus:FireWire:) card=0x8054104d chip=0x8009104d rev=0x01 hdr=0x00 (SONY) pcic0@pci0:10:0: class=0x060700 (Bridge:CardBus:) card=0x8053104d chip=0x04751180 rev=0x00 hdr=0x02 (Richo RL5C475 PCI-CardBus Bridge) none3@pci0:11:0: class=0x078000 (SimpleComm:Other:) card=0x8055104d chip=0x2005127a rev=0x01 hdr=0x00 (Rockwell) ----- -- Jun Kuriyama // kuriyama@sky.rim.or.jp // kuriyama@FreeBSD.ORG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 15 21:58:32 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with ESMTP id 25EDC15654 for ; Thu, 15 Jul 1999 21:58:26 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta6-ntc_mailserver1.03) id NAA15117; Fri, 16 Jul 1999 13:58:22 +0900 (JST) Date: Fri, 16 Jul 1999 13:58:22 +0900 (JST) Message-Id: <199907160458.NAA15117@afs.ntc.mita.keio.ac.jp> To: y-nakaga@nwsl.mesh.ad.jp Cc: imp@village.org, mobile@FreeBSD.ORG, hosokawa@itc.keio.ac.jp Subject: Re: Oooppsss In-Reply-To: Your message of "Thu, 15 Jul 1999 12:53:45 JST". <199907150353.DAA22017@chandra.eatell.msr.prug.or.jp> From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article <199907150353.DAA22017@chandra.eatell.msr.prug.or.jp> y-nakaga@nwsl.mesh.ad.jp writes: >> > to comment on my patches, alluded to in the last message, you'll need >> > to see the patches. >> >> > +.Op Fl s Ar initsleeptime >> >> I don't like many start-up argument. New config-file's entry is >> better for me. Hmm, pccard.conf not configurable from /etc/rc.conf (and sysinstall). That's why I added -i option to -current pccardd. -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 15 22:20:45 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from chandra.eatell.msr.prug.or.jp (dhcp418.6bone.nec.co.jp [202.247.4.18]) by hub.freebsd.org (Postfix) with ESMTP id 7BD1514F92 for ; Thu, 15 Jul 1999 22:20:40 -0700 (PDT) (envelope-from y-nakaga@nwsl.mesh.ad.jp) Received: from nwsl.mesh.ad.jp (localhost.eatell.msr.prug.or.jp [127.0.0.1]) by chandra.eatell.msr.prug.or.jp (8.8.8/8.8.5) with ESMTP id FAA24295; Fri, 16 Jul 1999 05:18:20 GMT Message-Id: <199907160518.FAA24295@chandra.eatell.msr.prug.or.jp> To: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) Cc: imp@village.org, mobile@FreeBSD.ORG Subject: Re: Oooppsss In-reply-to: Your message of "Fri, 16 Jul 1999 13:58:22 JST." <199907160458.NAA15117@afs.ntc.mita.keio.ac.jp> Date: Fri, 16 Jul 1999 14:18:20 +0900 From: NAKAGAWA Yoshihisa Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Hmm, pccard.conf not configurable from /etc/rc.conf (and sysinstall). > That's why I added -i option to -current pccardd. Umm, argument and config-file's entry, both is best. :-) -- NAKAGAWA, Yoshihisa y-nakaga@nwsl.mesh.ad.jp nakagawa@jp.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 15 22:22:38 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 35CC114CE5 for ; Thu, 15 Jul 1999 22:22:29 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id XAA30444; Thu, 15 Jul 1999 23:22:18 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id XAA53722; Thu, 15 Jul 1999 23:22:18 -0600 (MDT) Message-Id: <199907160522.XAA53722@harmony.village.org> To: NAKAGAWA Yoshihisa Subject: Re: Oooppsss Cc: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi), mobile@FreeBSD.ORG In-reply-to: Your message of "Fri, 16 Jul 1999 14:18:20 +0900." <199907160518.FAA24295@chandra.eatell.msr.prug.or.jp> References: <199907160518.FAA24295@chandra.eatell.msr.prug.or.jp> Date: Thu, 15 Jul 1999 23:22:18 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907160518.FAA24295@chandra.eatell.msr.prug.or.jp> NAKAGAWA Yoshihisa writes: : > Hmm, pccard.conf not configurable from /etc/rc.conf (and sysinstall). : > That's why I added -i option to -current pccardd. : : Umm, argument and config-file's entry, both is best. :-) I was afraid that someone would say that :-) Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 15 22:37:46 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from dingo.cdrom.com (castles528.castles.com [208.214.165.92]) by hub.freebsd.org (Postfix) with ESMTP id 6E2A914CD1 for ; Thu, 15 Jul 1999 22:37:43 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (LOCALHOST [127.0.0.1]) by dingo.cdrom.com (8.9.3/8.8.8) with ESMTP id WAA00509; Thu, 15 Jul 1999 22:33:39 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199907160533.WAA00509@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Jun Kuriyama Cc: mobile@freebsd.org Subject: Re: Sony VAIO Z505SX and 3.2 or -current In-reply-to: Your message of "Fri, 16 Jul 1999 11:08:10 +0900." <378E940A.36C62CED@sky.rim.or.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 15 Jul 1999 22:33:39 -0700 From: Mike Smith Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > I have Z505D which is similar to Z505SX (without onboard ethernet). > Result of "pnpscan -v" is: > > ----- > disk1s2a:> pnpscan -v > Probing PnP BIOS... > Probing ISA bus... > Probing PCI BIOS... Annotations -----------------------V > PNP0c02 generic system resource > PNP0c01 motherboard > PNP0c02 generic system resource > PNP0200 DMA controller > PNP0000 interrupt controller > PNP0100 timer > PNP0b00 RTC > PNP0303 enhanced keyboard > PNP0c04 NPX > PNP0800 Old sound hardware code > PNP0a03 PCI bus > PNP0e03 Cardbus > PNP0401 ECP parallel port > PNP0501 16550 serial port > SMCf010 SMC device (probably super-IO part) > PNP0f13 PS/2 port > 0x71118086 : IDE Controller > 0x000510c8 : VGA display > 0x2005127a : communications controller > 0x8009104d : Firewire controller > 0x71128086 : USB controller > none1@pci0:8:1: class=0x040100 (MultiMedia:Audio:) card=0x8052104d > chip=0x800510c8 rev=0x20 hdr=0x00 > (NeoMagic) That one's interesting though; NeoMagic PCI audio hardware. Looks like a driver project... -- \\ The mind's the standard \\ Mike Smith \\ of the man. \\ msmith@freebsd.org \\ -- Joseph Merrick \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Fri Jul 16 9: 7:38 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from logatome.micronet.fr (logatome-2.francenet.fr [193.149.96.2]) by hub.freebsd.org (Postfix) with ESMTP id 8E4A11569B for ; Fri, 16 Jul 1999 09:07:32 -0700 (PDT) (envelope-from e-masson@kisoft-services.com) Received: from kisoft-services.com (Nantes7.francenet.net [193.149.110.71]) by logatome.micronet.fr (8.8.8/8.8.8) with ESMTP id SAA12651 for ; Fri, 16 Jul 1999 18:05:33 +0200 (CEST) Message-ID: <378F5905.BDAC6A0C@kisoft-services.com> Date: Fri, 16 Jul 1999 18:08:37 +0200 From: Eric MASSON Organization: Kisoft Services X-Mailer: Mozilla 4.51 [fr] (WinNT; I) X-Accept-Language: fr MIME-Version: 1.0 To: FreeBSD Mobile Subject: 3CCFEM556BI pccard sio setup Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello everyone here, Today is the return of the son of the revenge of the 3CCFEM556BI :). I'm trying to use the V90 modem function of this card (It is a pccard, not a cardbus). Driver for NIC function needs to make a port of a linux existing driver and I miss knowledge to succeed in this task. Back to current problem, I tried two ways to make it work : - 1 : enable a sio2 line in kernel and use the following pccard.conf # PCCARD configuration file # # # $Id: pccard.conf,v 1.0 1999/07/04 21:36:00 emss # Generally available IO ports io 0x240-0x360 # Generally available IRQs (Built-in sound-card owners remove 5) irq 10 11 13 # Available memory slots memory 0xd4000 96k # 3Com/Megahertz 3CCFEM556BI card "3Com" "Megahertz 3CCFEM556BI" config 0x1 "sio2" 10 insert echo 3Com/Megahertz 3CCFEM556BI inserted remove echo 3Com/Megahertz 3CCFEM556BI removed pccardd allocates driver sio and sio says "sio2: 8250", weird cause WNT can link to this card at 115200 bps that sounds more like a 16550 uart. When i start ppp in manual mode, i do set device = /dev/cuaa2 then term. At this point the whole machine hangs, the only way to stop it is power off. - 2 : do not enable sio2 in kernel configuration and using the same pccard.conf as before. In this case I do get the following /kernel: PC-Card VLSI 82C146 (5 mem & 2 I/O windows) /kernel: pcic: controller irq 9 /kernel: Initializing PC-card drivers: sio /kernel: Card inserted, slot 0 /kernel: NULL com in siounload /kernel: Return IRQ=10 pccardd[62]: driver allocation failed for 3Com pccardd[62]: pccardd started The dumpcis of this card is : Code 128 not found Code 128 not found code Unknown ignored Code 131 not found Code 131 not found code Unknown ignored Configuration data for card in slot 0 Tuple #1, code = 0x1 (Common memory descriptor), length = 2 000: 00 ff Common memory device information: Device number 1, type No device, WPS = OFF Speed = No speed, Memory block size = reserved, 32 units Tuple #2, code = 0x17 (Attribute memory descriptor), length = 3 000: 43 02 ff Attribute memory device information: Device number 1, type EEPROM, WPS = OFF Speed = 150nS, Memory block size = 8Kb, 1 units Tuple #3, code = 0x20 (Manufacturer ID), length = 4 000: 01 01 56 05 PCMCIA ID = 0x101, OEM ID = 0x556 Tuple #4, code = 0x21 (Functional ID), length = 2 000: 06 00 Network/LAN adapter Tuple #5, code = 0x15 (Version 1 info), length = 36 000: 04 01 33 43 6f 6d 00 4d 65 67 61 68 65 72 74 7a 010: 20 33 43 43 46 45 4d 35 35 36 42 49 00 41 00 30 020: 30 31 00 ff Version = 4.1, Manuf = [3Com],card vers = [Megahertz 3CCFEM556BI] Addit. info = [A],[001] Tuple #6, code = 0x1a (Configuration map), length = 5 000: 01 03 00 10 3f Reg len = 2, config register addr = 0x1000, last config = 0x3 Registers: XXXXXX-- Tuple #7, code = 0x1b (Configuration entry), length = 15 000: c1 01 1d 71 55 35 55 54 e0 72 5d 65 30 ff ff Config index = 0x1(default) Interface byte = 0x1 (I/O) Vcc pwr: Nominal operating supply voltage: 5 x 1V Max current average over 1 second: 3 x 10mA Max current average over 10 ms: 5 x 10mA Power down supply current: 5 x 1mA Wait scale Speed = 7.0 x 100 ns RDY/BSY scale Speed = 7.0 x 100 ns Card decodes 18 address lines, full 8/16 Bit I/O IRQ modes: Level, Pulse IRQs: IOCK 1 4 5 6 8 10 11 12 14 Tuple #8, code = 0x19 (JEDEC descr for attribute memory), length = 3 000: 00 00 ff Tuple #9, code = 0x14 (No link), length = 0 Tuple #10, code = 0x0 (Null tuple), length = 10 000: 02 01 3a 00 af 03 00 00 00 ff Tuple #11, code = 0x0 (Null tuple), length = 14 000: 30 30 30 30 30 30 30 30 30 30 30 30 00 ff Tuple #12, code = 0x10 (Checksum), length = 5 000: 8c ff 7d 00 00 Checksum from offset -116, length 125, value is 0x0 Tuple #13, code = 0xff (Terminator), length = 30 000: 7d ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff 2 slots found The kernel configuration is : #------------------------------------------------------------------------------ # THINKPAD -- Thinkpad 390 avec disque IDE #------------------------------------------------------------------------------ # Cree le 12/05/1999 # machine "i386" cpu "I686_CPU" ident THINKPAD maxusers 32 options INET #InterNETworking options FFS #Berkeley Fast Filesystem options FFS_ROOT #FFS usable as root device [keep this!] options NFS_NOSERVER #Disable the NFS server code options PROCFS #Process filesystem options "COMPAT_43" #Compatible with BSD 4.3 [KEEP THIS!] options UCONSOLE #Allow users to grab the console options FAILSAFE #Be conservative options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor config kernel root on wd0 controller isa0 controller pci0 controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 disk fd0 at fdc0 drive 0 controller wdc0 at isa? port "IO_WD1" bio irq 14 disk wd0 at wdc0 drive 0 controller wdc1 at isa? port "IO_WD2" bio irq 15 options ATAPI #Enable ATAPI support for IDE bus options ATAPI_STATIC #Don't do it as an LKM device acd0 #IDE CD-ROM controller atkbdc0 at isa? port IO_KBD tty device atkbd0 at isa? tty irq 1 device psm0 at isa? tty irq 12 device vga0 at isa? port ? conflicts pseudo-device ether pseudo-device bpfilter 1 pseudo-device splash device sc0 at isa? tty device npx0 at isa? port IO_NPX irq 13 device apm0 at isa? disable flags 0x31 # Advanced Power Management device sio0 at isa? port "IO_COM1" tty irq 4 vector siointr device sio1 at isa? port "IO_COM2" tty irq 3 #device sio2 at isa? port? tty # enabled or not as explained before device ppc0 at isa? port? net irq 7 controller ppbus0 device nlpt0 at ppbus? pseudo-device loop pseudo-device tun 1 pseudo-device pty 16 pseudo-device gzip # Exec gzipped a.out's options SYSVSHM options SYSVSEM options SYSVMSG device pcm0 at isa? port 0x530 irq 5 drq 1 flags 0x11 controller card0 device pcic0 at card? device pcic1 at card? options PCIC_RESUME_RESET options POWERFAIL_NMI # make it beep instead of panicing So, what's wrong with my configuration ? TIA Eric MASSON Ps : I'm running FreeBSD 3.2-STABLE #0: Wed Jul 14 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Fri Jul 16 9: 8:35 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from logatome.micronet.fr (logatome-2.francenet.fr [193.149.96.2]) by hub.freebsd.org (Postfix) with ESMTP id 5F25A156AC for ; Fri, 16 Jul 1999 09:08:29 -0700 (PDT) (envelope-from e-masson@kisoft-services.com) Received: from kisoft-services.com (Nantes7.francenet.net [193.149.110.71]) by logatome.micronet.fr (8.8.8/8.8.8) with ESMTP id SAA12781 for ; Fri, 16 Jul 1999 18:06:22 +0200 (CEST) Message-ID: <378F5935.523A581@kisoft-services.com> Date: Fri, 16 Jul 1999 18:09:25 +0200 From: Eric MASSON Organization: Kisoft Services X-Mailer: Mozilla 4.51 [fr] (WinNT; I) X-Accept-Language: fr MIME-Version: 1.0 To: FreeBSD Mobile Subject: NE2000 clone pccard setup Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello everyone here, I plan to buy a NIC pccard ("Trust" Brand). It claims to be NE2000 clone. This morninq, I went to the shop and plugged it into my TP390 and then fired up Bsd. Card wasn't recognised so I made a new entry in pccard.conf, matching the card parameters, shown below : # PCCARD configuration file # # # $Id: pccard.conf,v 1.0 1999/07/04 21:36:00 emss # Generally available IO ports io 0x240-0x360 # Generally available IRQs (Built-in sound-card owners remove 5) irq 10 11 13 # Available memory slots memory 0xd4000 96k # Trust Ethernet PC-CARD card "IC-CARD+" "IC-CARD+" config 0x20 "ed0" ? 0x10 insert /etc/pccard_ether ed0 link0 -link1 remove /sbin/ifconfig ed0 delete After that, i tried pccard -d and I had the messages below : /kernel: PC-Card VLSI 82C146 (5 mem & 2 I/O windows) /kernel: pcic: controller irq 9 /kernel: Initializing PC-card drivers: sio /kernel: Card inserted, slot 0 pccardd[62]: driver allocation failed for IC-CARD+ pccardd[62]: pccardd started The dumpcis of this card is : Configuration data for card in slot 0 Tuple #1, code = 0x1 (Common memory descriptor), length = 3 000: d1 0a ff Common memory device information: Device number 1, type Function specific, WPS = OFF Speed = 250nS, Memory block size = 8Kb, 2 units Tuple #2, code = 0x1c (Other conditions for common memory), length = 4 000: 01 d1 0a ff (MWAIT) Tuple #3, code = 0x17 (Attribute memory descriptor), length = 3 000: 41 00 ff Attribute memory device information: Device number 1, type EEPROM, WPS = OFF Speed = 250nS, Memory block size = 512b, 1 units Tuple #4, code = 0x20 (Manufacturer ID), length = 4 000: 49 01 1b 02 PCMCIA ID = 0x149, OEM ID = 0x21b Tuple #5, code = 0x21 (Functional ID), length = 2 000: 06 01 Network/LAN adapter - POST initialize Tuple #6, code = 0x15 (Version 1 info), length = 38 000: 04 01 49 43 2d 43 41 52 44 2b 00 49 43 2d 43 41 010: 52 44 2b 00 31 31 38 42 36 36 30 33 00 ff 00 00 020: 00 00 00 00 00 00 Version = 4.1, Manuf = [IC-CARD+],card vers = [IC-CARD+] Addit. info = [118B6603],[ÿ] Tuple #7, code = 0x1a (Configuration map), length = 5 000: 01 20 00 04 0b Reg len = 2, config register addr = 0x400, last config = 0x20 Registers: XX-X---- Tuple #8, code = 0x1b (Configuration entry), length = 7 000: e0 81 18 45 30 fc be Config index = 0x20(default) Interface byte = 0x81 (I/O) wait signal supported Card decodes 5 address lines, limited 8/16 Bit I/O IRQ modes: Pulse IRQ level = 5 Tuple #9, code = 0x14 (No link), length = 0 Tuple #10, code = 0xff (Terminator), length = 0 2 slots found The kernel configuration is : #------------------------------------------------------------------------------ # THINKPAD -- Thinkpad 390 avec disque IDE #------------------------------------------------------------------------------ # Cree le 12/05/1999 # machine "i386" cpu "I686_CPU" ident THINKPAD maxusers 32 options INET #InterNETworking options FFS #Berkeley Fast Filesystem options FFS_ROOT #FFS usable as root device [keep this!] options NFS_NOSERVER #Disable the NFS server code options PROCFS #Process filesystem options "COMPAT_43" #Compatible with BSD 4.3 [KEEP THIS!] options UCONSOLE #Allow users to grab the console options FAILSAFE #Be conservative options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor config kernel root on wd0 controller isa0 controller pci0 controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 disk fd0 at fdc0 drive 0 controller wdc0 at isa? port "IO_WD1" bio irq 14 disk wd0 at wdc0 drive 0 controller wdc1 at isa? port "IO_WD2" bio irq 15 options ATAPI #Enable ATAPI support for IDE bus options ATAPI_STATIC #Don't do it as an LKM device acd0 #IDE CD-ROM controller atkbdc0 at isa? port IO_KBD tty device atkbd0 at isa? tty irq 1 device psm0 at isa? tty irq 12 device vga0 at isa? port ? conflicts pseudo-device ether pseudo-device bpfilter 1 pseudo-device splash device sc0 at isa? tty device npx0 at isa? port IO_NPX irq 13 device apm0 at isa? disable flags 0x31 # Advanced Power Management device sio0 at isa? port "IO_COM1" tty irq 4 vector siointr device sio1 at isa? port "IO_COM2" tty irq 3 #device sio2 at isa? port? tty device ppc0 at isa? port? net irq 7 controller ppbus0 device nlpt0 at ppbus? pseudo-device loop pseudo-device tun 1 pseudo-device pty 16 pseudo-device gzip # Exec gzipped a.out's options SYSVSHM options SYSVSEM options SYSVMSG device pcm0 at isa? port 0x530 irq 5 drq 1 flags 0x11 controller card0 device pcic0 at card? device pcic1 at card? options PCIC_RESUME_RESET options POWERFAIL_NMI # make it beep instead of panicing In the pccard.conf, I created entry for this card following the rules below : - brand & version match dumpcis information - index in config line match config index in dumpcis information - driver matches claimed pccard compatibility (ed0 for NE2000) I think there's a mess in this config entry but don't know where Is there a primer or a Howto upon pccards in FBSD, man pccardd & man pccard.conf are not too verbose (I think so). TIA Eric MASSON Ps : I'm running FreeBSD 3.2-STABLE #0: Wed Jul 14 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Fri Jul 16 9:35: 8 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from mtiwmhc02.worldnet.att.net (mtiwmhc02.worldnet.att.net [204.127.131.37]) by hub.freebsd.org (Postfix) with ESMTP id B969E14C4F for ; Fri, 16 Jul 1999 09:35:06 -0700 (PDT) (envelope-from jedgar@fxp.org) Received: from earth.fxp ([12.77.192.28]) by mtiwmhc02.worldnet.att.net (InterMail v03.02.07.07 118-134) with ESMTP id <19990716163353.PAWH4651@earth.fxp>; Fri, 16 Jul 1999 16:33:53 +0000 Date: Fri, 16 Jul 1999 12:33:52 -0400 (EDT) From: "Chris D. Faulhaber" X-Sender: jedgar@earth.fxp To: Eric MASSON Cc: FreeBSD Mobile Subject: Re: NE2000 clone pccard setup In-Reply-To: <378F5935.523A581@kisoft-services.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, 16 Jul 1999, Eric MASSON wrote: > # PCCARD configuration file > # > # # $Id: pccard.conf,v 1.0 1999/07/04 21:36:00 emss > > # Generally available IO ports > io 0x240-0x360 > # Generally available IRQs (Built-in sound-card owners remove 5) > irq 10 11 13 > # Available memory slots > memory 0xd4000 96k > > # Trust Ethernet PC-CARD > card "IC-CARD+" "IC-CARD+" > config 0x20 "ed0" ? 0x10 > insert /etc/pccard_ether ed0 link0 -link1 > remove /sbin/ifconfig ed0 delete > ed0 _is_ correct for NE2000... > After that, i tried pccard -d and I had the messages below : > > /kernel: PC-Card VLSI 82C146 (5 mem & 2 I/O windows) > /kernel: pcic: controller irq 9 > /kernel: Initializing PC-card drivers: sio > /kernel: Card inserted, slot 0 > pccardd[62]: driver allocation failed for IC-CARD+ > pccardd[62]: pccardd started > You do not appear to have ed0 in you kernel config which may explain why pccardd fails to allocate the driver. ----- Chris D. Faulhaber | All the true gurus I've met never System/Network Administrator, | claimed they were one and always Reality Check Information, Inc. | pointed to someone better. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Fri Jul 16 10:48:53 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from logatome.micronet.fr (logatome-2.francenet.fr [193.149.96.2]) by hub.freebsd.org (Postfix) with ESMTP id C6A8814D80 for ; Fri, 16 Jul 1999 10:48:51 -0700 (PDT) (envelope-from e-masson@kisoft-services.com) Received: from kisoft-services.com (Nantes14.francenet.net [193.149.110.78]) by logatome.micronet.fr (8.8.8/8.8.8) with ESMTP id TAA28455; Fri, 16 Jul 1999 19:46:27 +0200 (CEST) Message-ID: <378F70AB.7B4EB1AE@kisoft-services.com> Date: Fri, 16 Jul 1999 19:49:31 +0200 From: Eric MASSON Organization: Kisoft Services X-Mailer: Mozilla 4.51 [fr] (WinNT; I) X-Accept-Language: fr MIME-Version: 1.0 To: "Chris D. Faulhaber" Cc: FreeBSD Mobile Subject: Re: NE2000 clone pccard setup References: Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello Chris, Do you mean that I need to have ed0 in the kernel conf ? I thought that ed0 could be load as a LKM, if not thanks for the advice. I'll try tomorrow morning at the shop. Regards Eric MASSON "Hiroshima 45, Tchernobyl 86... Windows 98" "Chris D. Faulhaber" a écrit : > You do not appear to have ed0 in you kernel config which may explain why > pccardd fails to allocate the driver. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Fri Jul 16 10:53:15 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from pawn.primelocation.net (pawn.primelocation.net [205.161.238.235]) by hub.freebsd.org (Postfix) with ESMTP id 73AF1156B5 for ; Fri, 16 Jul 1999 10:53:07 -0700 (PDT) (envelope-from jedgar@fxp.org) Received: by pawn.primelocation.net (Postfix, from userid 1003) id 9E80BF818; Fri, 16 Jul 1999 13:52:47 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by pawn.primelocation.net (Postfix) with ESMTP id 938EE9B15; Fri, 16 Jul 1999 13:52:47 -0400 (EDT) Date: Fri, 16 Jul 1999 13:52:47 -0400 (EDT) From: "Chris D. Faulhaber" X-Sender: jedgar@pawn.primelocation.net To: Eric MASSON Cc: FreeBSD Mobile Subject: Re: NE2000 clone pccard setup In-Reply-To: <378F70AB.7B4EB1AE@kisoft-services.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, 16 Jul 1999, Eric MASSON wrote: > Hello Chris, > > Do you mean that I need to have ed0 in the kernel conf ? I thought that > ed0 could be load as a LKM, if not thanks for the advice. I'll try > tomorrow morning at the shop. > If you look in the /modules directory, you will see that not many device drivers are modular; therefore, you must have the driver in the kernel. ----- Chris D. Faulhaber | All the true gurus I've met never System/Network Administrator, | claimed they were one, and always Reality Check Information, Inc. | pointed to someone better. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Fri Jul 16 19:38:19 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from netrinsics.com (printer.bta.net.cn [202.96.0.136]) by hub.freebsd.org (Postfix) with ESMTP id 7229514EAA for ; Fri, 16 Jul 1999 19:38:12 -0700 (PDT) (envelope-from robinson@netrinsics.com) Received: (from robinson@localhost) by netrinsics.com (8.9.3/8.8.7) id KAA03686; Wed, 14 Jul 1999 10:14:45 +0800 (CST) (envelope-from robinson) Date: Wed, 14 Jul 1999 10:14:45 +0800 (CST) From: Michael Robinson Message-Id: <199907140214.KAA03686@netrinsics.com> To: imp@village.org, mobile@FreeBSD.ORG Subject: Re: pccard and -current In-Reply-To: <199907132220.QAA50120@harmony.village.org> Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Warner Losh writes: >Also, are there any objections to my placing more explicit error >messages for failure modes in pccardd/pccard,pcic drivers? For what it's worth, I not only have no objections, I have strong encouragement for your placing more explicit error messages for failure modes in pccardd/pccard,pcic drivers. As it is, for debugging any non-trivial problem, a user has to put those messages in manually anyway. I'd particularly encourage a printout of all the relevant IRQ masks when a conflict is discovered or an allocation fails. -Michael Robinson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Sat Jul 17 5:22:58 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from logatome.micronet.fr (logatome-2.francenet.fr [193.149.96.2]) by hub.freebsd.org (Postfix) with ESMTP id 48BC114CE6 for ; Sat, 17 Jul 1999 05:22:54 -0700 (PDT) (envelope-from e-masson@kisoft-services.com) Received: from kisoft-services.com (Nantes8.francenet.net [193.149.110.72]) by logatome.micronet.fr (8.8.8/8.8.8) with ESMTP id OAA13476; Sat, 17 Jul 1999 14:19:45 +0200 (CEST) Message-ID: <379071E8.4EE8ACA1@kisoft-services.com> Date: Sat, 17 Jul 1999 14:07:04 +0200 From: Eric MASSON Organization: Kisoft Services X-Mailer: Mozilla 4.51 [fr] (WinNT; I) X-Accept-Language: fr MIME-Version: 1.0 To: "Chris D. Faulhaber" Cc: FreeBSD Mobile Subject: Re: NE2000 clone pccard setup References: Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi Chris, Thanks for the trick, the card is recognised and works now. I bought it this morning and now i can use Stable with lan support on my laptop :)). One more rule to add to my mini howto, check that required driver exists as a module, if not compile kernel with required driver in configuration file :) Maybe anyone knows if there's a central repository for cards known to work on FBSD. In that case is there a way to submit a entry for a card ? Regards Eric MASSON "Chris D. Faulhaber" a écrit : > > On Fri, 16 Jul 1999, Eric MASSON wrote: > > > Hello Chris, > > > > Do you mean that I need to have ed0 in the kernel conf ? I thought that > > ed0 could be load as a LKM, if not thanks for the advice. I'll try > > tomorrow morning at the shop. > > > > If you look in the /modules directory, you will see that not many device > drivers are modular; therefore, you must have the driver in the kernel. > > ----- > Chris D. Faulhaber | All the true gurus I've met never > System/Network Administrator, | claimed they were one, and always > Reality Check Information, Inc. | pointed to someone better. > > 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 From owner-freebsd-mobile Sat Jul 17 15:49:33 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from orbit.zepa.net (orbit.zepa.net [205.245.53.14]) by hub.freebsd.org (Postfix) with SMTP id A4D0014FAB for ; Sat, 17 Jul 1999 15:49:24 -0700 (PDT) (envelope-from bugo@orbit.zepa.net) Received: (qmail 90676 invoked by uid 1013); 17 Jul 1999 22:49:23 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 17 Jul 1999 22:49:23 -0000 Date: Sat, 17 Jul 1999 18:49:23 -0400 (EDT) From: Preston Vega To: freebsd-mobile@freebsd.org Subject: LinkSys+Toshiba problems Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have a Toshiba 4015CDS laptop with a Linksys EtherFast pcmcia ethernet and Im having the following problems: 1. I have two slots. I must re-insert a card on another slot if I remove the card for the daemon to recognize that a card has been removed and inserted. After a while, this becomes cumbersome. 2. The daemon tells me "No card in database for "Linksys"("EtherFast 10/100 PC Card (PCM")" even though it IS in pccard.conf. 3. I have a 3com Megahertz 33.6 and a 56k modem that dont work either. I did a 3.2-Release ppp install using he PAO install flop. I know the hardawre is working since I've installed OpenBSD and everything worked without trouble. If anyone could throw ideas at me or hints it would be appreciated. Thanks! Cheers, BUGO Founder BSD Users Group of Orlando: http://bugo.zepa.net --- "Linux is something for Windows haters, BSD is something for Unix lovers" (Heike S., Febr. 98) "Beneath revolution (Linux) there's also evolution (*BSD)" (Andre Oppermann, Apr. 98) "I view Linux as something that's not Microsoft-a backlash against Microsoft, no more and no less." (Ken Thompson, 99) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message