From owner-freebsd-mobile Sun Oct 26 17:13:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA03345 for mobile-outgoing; Sun, 26 Oct 1997 17:13:50 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA03340 for ; Sun, 26 Oct 1997 17:13:45 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id SAA08850 for ; Sun, 26 Oct 1997 18:13:37 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id SAA28015; Sun, 26 Oct 1997 18:13:37 -0700 (MST) Date: Sun, 26 Oct 1997 18:13:37 -0700 (MST) Message-Id: <199710270113.SAA28015@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: mobile@freebsd.org Subject: Real hackes run -current X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk To quote a famous person (hi PHK!). In any case, I made *lots* of changes this weekend, although most of them aren't *major* functionality additions (more below). Hopefully it'll pave the way to see some more funcationality additions, though. But, before that happens, I need people to test out the code. I don't anticipate many problems, but there's always someone whose computers quits working. You *MUST* re-config your kernel in order to get things working, since there are new files, and the options have changed (new filenames are generated.) What I did this last week (in no particular order): 1) Re-named a bunch of things. This of course won't make *any* difference in functionality, but it will make things easier to follow. For example the old code had pccard_drv and pccard_dev, and sometimes it was easy to get the two confused. Other misc. cleanups went in as well to make the code hopefully easier to maintain. 2) Only try to suspend/resume 'active' cards. In the past it attempted to suspend/resume any card that was ever active in the system. It does this no more, and only does operations on 'currently' active cards. 3) IRQ's are now allocated from the bottom up. I had changed it to be more like Win95, but at least one very popular laptop had problems doing it that way (the ThinkPad 560). Until we can figure out why, I reverted to the old code. 4) Gave up trying to do suspend/resume. Basically, everything I tried to get things working on my laptop at resume time *except* pretending the card was inserted from scratch. More works needs to be done here, but the code that's in place should work on at least *some* laptops (it works with mine). Pay attention to changes here. 5) pccard_beep is now a new file which contains the 'beeping' code. I liked bringing the code out like was done in PAO, but I didn't like how it was done, and where things were placed. I think this is cleaner, and affects things less. 6) Linker sets are used to register PCCARD drivers. This was taken directly from PAO, and was a *great* idea, and one that I should have used a long time ago. But, fishing season was on. :) :) 7) The aic6360 driver was updated with PCCARD support. So, the Adaptec SlimSCSI is now supported (at least the one that is distributed with my Sony CD-ROM works, other may need tweaks to /etc/pccard.conf). My todo list is: 1) Work on the suspend/resume stuff until we can get things working reliably on *all* of the systems. If suspend/resume doesn't work, I want to know about it so we can make it work. If it works, I want to know about it as well! 2) Bring in additional drivers from PAO. The current list of supported drivers is pretty weak, and I'd like to 'upgrade' our current drives (if necessary), and bring in 'safe' changes from PAO that don't affect desktop stability/functionality. 3) Look at the PAO code to see how to support PCI/CardBus machines. I now understand what's done there, and I think with some slight changes it can be brought into a maintainable state in FreeBSD. I'd like some help/feedback on this though, since I know *nothing* about PCI or CardBus. Once that is done, FreeBSD won't be as easy to setup as PAO is now, but we should have almost all of the functionality (modulo the desktop destabilizing patches). They have done lots of things to the user-land pccard code, but in the opinions of the FreeBSD developers we need to completely re-think and re-write the user-land code, so bringing in more junk into a pretty hairy piece of code will only make things more difficult in the long run. I welcome dissenting opinions though. None of the above is really too hard to do, or involves much brain power, it just takes time. If anyone has some and is willing to do the work, send me some email, or better yet reply to the list and we can get on it. Who knows how long my current 'spurt of energy' will last, so take advantage of it while you can. *grin* Nate From owner-freebsd-mobile Mon Oct 27 08:06:14 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA28815 for mobile-outgoing; Mon, 27 Oct 1997 08:06:14 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id IAA28797 for ; Mon, 27 Oct 1997 08:06:06 -0800 (PST) (envelope-from imp@village.org) Received: from harmony [10.0.0.6] by rover.village.org with esmtp (Exim 1.71 #1) id 0xPrfq-000369-00; Mon, 27 Oct 1997 09:05:50 -0700 Received: from harmony.village.org (localhost [127.0.0.1]) by harmony.village.org (8.8.7/8.8.3) with ESMTP id JAA04239 for ; Mon, 27 Oct 1997 09:05:20 -0700 (MST) Message-Id: <199710271605.JAA04239@harmony.village.org> To: freebsd-mobile@freebsd.org Subject: How do you solve... Date: Mon, 27 Oct 1997 09:05:20 -0700 From: Warner Losh Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk OK. I have a Libretto that I just purchased. A fun box. I'm in the process of shrinking the FAT partition down to put FreeBSD onto the box and have a question. I take it back and forth between home and work. I'd like it to have different IP numbers at the two location. I'd love for this to be completely automatic. Any chance of that happening? Is DHCP what I want to use? I'll be running Win95 and FreeBSD -current (after using 2.2.2R+PAO to get FreeBSD installed) on this box, but the FreeBSD side of the house is the only one that I really am worried about getting easy networking on. I have a 3COM 3C589D ethernet card, if that matters at all. Warner From owner-freebsd-mobile Mon Oct 27 08:36:54 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA00723 for mobile-outgoing; Mon, 27 Oct 1997 08:36:54 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from leopard.cs.byu.edu (leopard.cs.byu.edu [128.187.2.182]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA00709 for ; Mon, 27 Oct 1997 08:36:47 -0800 (PST) (envelope-from windley@cs.byu.edu) Received: from luwak.cs.byu.edu by leopard.cs.byu.edu with ESMTP (1.37.109.15/16.2) id AA245460201; Mon, 27 Oct 1997 09:36:41 -0700 Received: from cs.byu.edu by luwak.cs.byu.edu (8.7.1/CS-Client) id LAA18518; Mon, 27 Oct 1997 11:36:40 -0500 (EST) Message-Id: <199710271636.LAA18518@luwak.cs.byu.edu> To: freebsd-mobile@freebsd.org Cc: jlp@imall.com Subject: pccard configuration for TP560 with Megahertz XJ10BT Mime-Version: 1.0 (generated by tm-edit 7.46) Content-Type: text/plain; charset=US-ASCII Date: Mon, 27 Oct 1997 09:36:40 -0700 From: "Phil Windley" Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I'm trying to get a network running on a Thinkpad 560 using Freebsd 2.2.2-RELEASE and a Megahertz XJ10BT PC Card. I used this configurtation and the PAO boot floppy to install FreeBSD, so I know that the boot kernel can get it to work. My configuration file (/etc/pccard.conf) looks like this [with comments, etc. removed]: io 0x300-0x360 irq 10 11 memory 0xd0000 12K card "Megahertz" "CC10BT/2" config 0x1 "sn0" 10 ether 0xff0 insert /etc/pccard_ether $device remove /sbin/ifconfig $device delete I started with the pccard.conf.sample file and then tried to come up with something that made sense from a combination of looking at the man page and using the parameters that are used by the PAO boot floppy. When I run pccardd, I get the following error message (repeated 3 times): Oct 27 09:22:10 ocelot cardd[153]: driver allocation failed for Megahertz Does anyone have a pccard.conf file that will work with this PC card? Or does anyone have any suggestions what is going wrong. --phil-- From owner-freebsd-mobile Mon Oct 27 09:50:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA09419 for mobile-outgoing; Mon, 27 Oct 1997 09:50:09 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id JAA09409 for ; Mon, 27 Oct 1997 09:50:05 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id KAA14553; Mon, 27 Oct 1997 10:50:03 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id KAA00775; Mon, 27 Oct 1997 10:50:02 -0700 (MST) Date: Mon, 27 Oct 1997 10:50:02 -0700 (MST) Message-Id: <199710271750.KAA00775@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "Phil Windley" Cc: freebsd-mobile@freebsd.org, jlp@imall.com Subject: Re: pccard configuration for TP560 with Megahertz XJ10BT In-Reply-To: <199710271636.LAA18518@luwak.cs.byu.edu> References: <199710271636.LAA18518@luwak.cs.byu.edu> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I'm trying to get a network running on a Thinkpad 560 using Freebsd > 2.2.2-RELEASE and a Megahertz XJ10BT PC Card. > card "Megahertz" "CC10BT/2" > config 0x1 "sn0" 10 ^^^ The if_sn driver has not been ported over to FreeBSD (yet). However, as I pointed out in an email I sent earlier this last weekend, porting the new drivers over is on my todo list. But, if you've got the time to do it I'm willing to accept contributions. :) The driver in PAO should only require minor tweaking to work under 2.2.2 (and might work pretty much 'out-of-the-box' with -curren tnow. Nate From owner-freebsd-mobile Mon Oct 27 10:30:31 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA12536 for mobile-outgoing; Mon, 27 Oct 1997 10:30:31 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from critter.freebsd.dk (critter.freebsd.dk [195.8.129.26]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA12514 for ; Mon, 27 Oct 1997 10:30:26 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost.cybercity.dk [127.0.0.1]) by critter.freebsd.dk (8.8.7/8.8.7) with ESMTP id TAA01550; Mon, 27 Oct 1997 19:29:24 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Warner Losh cc: freebsd-mobile@freebsd.org Subject: Re: How do you solve... In-reply-to: Your message of "Mon, 27 Oct 1997 09:05:20 MST." <199710271605.JAA04239@harmony.village.org> Date: Mon, 27 Oct 1997 19:29:23 +0100 Message-ID: <1548.877976963@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In message <199710271605.JAA04239@harmony.village.org>, Warner Losh writes: > >OK. I have a Libretto that I just purchased. A fun box. I'm in the >process of shrinking the FAT partition down to put FreeBSD onto the >box and have a question. > >I take it back and forth between home and work. I'd like it to have >different IP numbers at the two location. I'd love for this to be >completely automatic. Any chance of that happening? Is DHCP what I >want to use? I have two small aliases that home (rm -f /var/tmp/@work) work (touch /var/tmp/@work) my /etc/pccard.ether (or whatever it is called today) looks for this file and decideds which IP to configure. Works great. -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." From owner-freebsd-mobile Mon Oct 27 12:19:41 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA21500 for mobile-outgoing; Mon, 27 Oct 1997 12:19:41 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from bells.cs.ucl.ac.uk (bells.cs.ucl.ac.uk [128.16.5.31]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id MAA21248; Mon, 27 Oct 1997 12:17:44 -0800 (PST) (envelope-from L.Vicisano@cs.ucl.ac.uk) Received: from thud.cs.ucl.ac.uk by bells.cs.ucl.ac.uk with local SMTP id ; Mon, 27 Oct 1997 20:17:32 +0000 To: freebsd-questions@FreeBSD.ORG, freebsd-hardware@FreeBSD.ORG, freebsd-mobile@FreeBSD.ORG cc: L.Vicisano@cs.ucl.ac.uk Subject: Hayes ACCURA 336 Date: Mon, 27 Oct 1997 20:17:30 +0000 Message-ID: <4010.877983450@cs.ucl.ac.uk> From: Lorenzo VICISANO Sender: owner-freebsd-mobile@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi, I'm trying to make an Hayes ACCURA 336 PCMCIA modem work with my laptop (it runs 2.2.2R + PAO stuff), but I'm not having any success. Looks like that the problem is in the sio driver (sioprobe fails in almost all the tests). I don't think the problem is the pcmcia stuff, and I noticed that Patrick_Gardella has had the same problems mounts ago with a k56flex internal modem (b.t.w. windows uses the same driver for both). Any suggestions? Thanks, Lorenzo Vicisano (please cc to me) *--------------------*----------------------------------------------* / Lorenzo Vicisano \ http://www.cs.ucl.ac.uk/staff/L.Vicisano / / Dept. of Computer Science \ E-mail L.Vicisano@cs.ucl.ac.uk / / University College London \ Tel +44 171 419 3670 / / Gower Street, London, WC1E 6BT, UK \ Fax +44 171 387 1397 / *----------------------------------------*--------------------------* > I searched the archives and found that one person has reportred trying to > k56flex modems. He says he hasn't found one that works yet (hasn't tried > many either). > > So I'll ask the question, does anyone have a K56flex modem working on > FreeBSD 2.2.1 or later? > > I'm looking at internal modems not external. > > My only experience is with a Hayes Accura 56. I got the probe test 3 > error I reported last week. Adding DELAY=10000 and/or commenting the > error check did not work with sio.c. From owner-freebsd-mobile Mon Oct 27 13:06:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA26343 for mobile-outgoing; Mon, 27 Oct 1997 13:06:46 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id NAA26335 for ; Mon, 27 Oct 1997 13:06:41 -0800 (PST) (envelope-from imp@village.org) Received: from harmony [10.0.0.6] by rover.village.org with esmtp (Exim 1.71 #1) id 0xPwMr-0003DT-00; Mon, 27 Oct 1997 14:06:33 -0700 Received: from harmony.village.org (localhost [127.0.0.1]) by harmony.village.org (8.8.7/8.8.3) with ESMTP id OAA05353; Mon, 27 Oct 1997 14:06:04 -0700 (MST) Message-Id: <199710272106.OAA05353@harmony.village.org> To: Poul-Henning Kamp Subject: Re: How do you solve... Cc: freebsd-mobile@freebsd.org In-reply-to: Your message of "Mon, 27 Oct 1997 19:29:23 +0100." <1548.877976963@critter.freebsd.dk> References: <1548.877976963@critter.freebsd.dk> Date: Mon, 27 Oct 1997 14:06:04 -0700 From: Warner Losh Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In message <1548.877976963@critter.freebsd.dk> Poul-Henning Kamp writes: : I have two small aliases that : : home (rm -f /var/tmp/@work) : work (touch /var/tmp/@work) : : my /etc/pccard.ether (or whatever it is called today) looks for : this file and decideds which IP to configure. Works great. So you type "home" and then plug the ethernet card in when you get home in the evenings? Then /etc/pccard.ether does its magic, no? I was thinking of doing DHCP or even a simple ifconfig ping home-host failure -> ifconfig ping work-host failure -> loop a reasonable number of times, then prompt with a Tk program or something like that. And then once I know where I am, I can wonk resolv.conf, et al to do the right thing. Any gotchas on changing IP address of an interface on the fly on FreeBSD? I wouldn't think so. Warner From owner-freebsd-mobile Mon Oct 27 14:40:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA02182 for mobile-outgoing; Mon, 27 Oct 1997 14:40:13 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from DonaldBurr.dyn.ml.org (root@206-18-115-145.la.inreach.net [206.18.115.145]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA02101 for ; Mon, 27 Oct 1997 14:39:35 -0800 (PST) (envelope-from dburr@POBoxes.com) Received: from DonaldBurr.dyn.ml.org (dburr@DonaldBurr.DonaldBurr.dyn.ml.org [192.160.60.1]) by DonaldBurr.dyn.ml.org (8.8.5/8.8.5) with SMTP id OAA09586; Mon, 27 Oct 1997 14:38:37 -0800 (PST) Message-ID: X-Mailer: XFMail 1.1 [p0] on FreeBSD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199710271605.JAA04239@harmony.village.org> Date: Mon, 27 Oct 1997 13:43:26 -0700 (PST) Organization: Starfleet Command From: Donald Burr To: Warner Losh Subject: RE: How do you solve... Cc: freebsd-mobile@FreeBSD.ORG Sender: owner-freebsd-mobile@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk -----BEGIN PGP SIGNED MESSAGE----- My secret spy satellite informs me that on 27-Oct-97, Warner Losh wrote: > about the Libretto You will probably want to talk to Tatsumi Hosokawa . He's the maintainer of the PAO (PCMCIA support) for FreeBSD, and himself owns a Libretto. He should be able to provide all the information, or pointers to it, you'll need, in setting up FreeBSD, XFree86, solving problems, etc. You might also want to Check out the PAO homepage at http://www.jp.freebsd.org/PAO/ also. - --- Donald Burr - Ask me for my PGP key | PGP: Your WWW HomePage: http://DonaldBurr.base.org/ ICQ #1347455 | right to Address: P.O. Box 91212, Santa Barbara, CA 93190-1212 | 'Net privacy. Phone: (805) 957-9666 FAX: (800) 492-5954 | USE IT. -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBNFUX6/jpixuAwagxAQED5AP+OjrC4wzU99wgDtX8O+GWIbbK/LVo+gcG nnaGx+9hkiSmyo6ImRRJYhSyph9NMzhWmOlVdDWP0yVbxwPZjgMa+4a7fNdF9GGT 9QkUyFBwliLanMS/fgtDWULOATbsPbWJPJ3SB9dzwhc6h2m3j4C4ZzmsvNIIar0x O9D0guWPAdI= =rzx6 -----END PGP SIGNATURE----- From owner-freebsd-mobile Mon Oct 27 14:54:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA03127 for mobile-outgoing; Mon, 27 Oct 1997 14:54:13 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ttfn.com ([135.197.41.30]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA03119 for ; Mon, 27 Oct 1997 14:54:09 -0800 (PST) (envelope-from davet@geoplex.com) Received: from nomad (localhost [127.0.0.1]) by ttfn.com (8.8.4/8.8.4) with ESMTP id OAA13906; Mon, 27 Oct 1997 14:52:13 -0800 (PST) X-Mailer: exmh version 2.0gamma 1/27/96 From: "Dave Truesdell" To: Warner Losh Cc: freebsd-mobile@FreeBSD.ORG Reply-To: davet@ttfn.com Subject: Re: How do you solve... In-reply-to: Your message of "Mon, 27 Oct 1997 09:05:20 MST." <199710271605.JAA04239@harmony.village.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" Content-ID: <13900.877992729.0@nomad> Date: Mon, 27 Oct 1997 14:52:09 -0800 Message-ID: <13903.877992729@nomad> Sender: owner-freebsd-mobile@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13900.877992729.1@nomad> Content-MD5: TG/OeIqtvEKKsx94a+5wqw== Content-Transfer-Encoding: quoted-printable My laptop's been using the ISC DHCP client for the past 8 months to config= ure = itself for both my home and work networks. It works great, and saves me t= he = hassle of remembering to reconfigure anything by hand. The only problems = I've = had to hack around are getting sendmail to recognize the change to resolv.= conf = so it can talk to the local nameserver, and changing the mailrelay so it c= an = route mail out past my home firewall. (Elegant idea for handling such dyn= amic = configuration issues are always welcome.) I run the DHCP server on my home fileserver, which, naturally, runs FreeBS= D. ------- =_aaaaaaaaaa0 Content-Type: message/rfc822 Received: from pop.ricochet.net by nomad (fetchmail-4.3.0 POP3 run by davet) for (single-drop); Mon Oct 27 12:23:59 1997 Received: from gw.ttfn.com (ttfn.com [204.182.16.254]) by rgate.metricom.com (8.7.6/8.7.3) with ESMTP id OAA02941 for ; Mon, 27 Oct 1997 14:22:39 -0600 (CST) Received: from pooh.ttfn.com (pooh.ttfn.com [192.168.0.34]) by gw.ttfn.com (8.8.5/8.6.9) with ESMTP id MAA10153 for ; Mon, 27 Oct 1997 12:08:16 -0800 (PST) Received: from gw.ttfn.com (gw.ttfn.com [192.168.0.33]) by pooh.ttfn.com (8.8.5/8.6.9) with ESMTP id MAA00536 for ; Mon, 27 Oct 1997 12:08:11 -0800 (PST) Received: from tdl.tdl.com (root@[204.182.16.2]) by gw.ttfn.com (8.8.5/8.6.9) with ESMTP id KAA09918 for ; Mon, 27 Oct 1997 10:02:50 -0800 (PST) Received: from ns3.harborcom.net (ns3.harborcom.net [206.158.4.7]) by tdl.tdl.com (8.8.5/8.8.5) with ESMTP id JAA03458 for ; Mon, 27 Oct 1997 09:40:29 -0800 Received: from hub.freebsd.org (hub.FreeBSD.ORG [204.216.27.18]) by ns3.harborcom.net (8.8.7/8.8.5) with ESMTP id MAA02935; Mon, 27 Oct 1997 12:39:10 -0500 (EST) Received: from localhost (daemon@localhost) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id IAA28840; Mon, 27 Oct 1997 08:06:45 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA28815 for mobile-outgoing; Mon, 27 Oct 1997 08:06:14 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id IAA28797 for ; Mon, 27 Oct 1997 08:06:06 -0800 (PST) (envelope-from imp@village.org) Received: from harmony [10.0.0.6] by rover.village.org with esmtp (Exim 1.71 #1) id 0xPrfq-000369-00; Mon, 27 Oct 1997 09:05:50 -0700 Received: from harmony.village.org (localhost [127.0.0.1]) by harmony.village.org (8.8.7/8.8.3) with ESMTP id JAA04239 for ; Mon, 27 Oct 1997 09:05:20 -0700 (MST) Message-Id: <199710271605.JAA04239@harmony.village.org> To: freebsd-mobile@FreeBSD.ORG Subject: How do you solve... Date: Mon, 27 Oct 1997 09:05:20 -0700 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Content-Type: text X-UIDL: a78cbd4dfc3cefe351a16b822dca6122 X-Filter: mailagent [version 3.0 PL53] for davet@ttfn.com OK. I have a Libretto that I just purchased. A fun box. I'm in the process of shrinking the FAT partition down to put FreeBSD onto the box and have a question. I take it back and forth between home and work. I'd like it to have different IP numbers at the two location. I'd love for this to be completely automatic. Any chance of that happening? Is DHCP what I want to use? I'll be running Win95 and FreeBSD -current (after using 2.2.2R+PAO to get FreeBSD installed) on this box, but the FreeBSD side of the house is the only one that I really am worried about getting easy networking on. I have a 3COM 3C589D ethernet card, if that matters at all. Warner ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13900.877992729.3@nomad> Content-MD5: iLZ2WltyIsLHPY+3HL+eTg== Content-Transfer-Encoding: quoted-printable -- = T.T.F.N., Dave Truesdell ------- =_aaaaaaaaaa0-- From owner-freebsd-mobile Mon Oct 27 18:12:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA15958 for mobile-outgoing; Mon, 27 Oct 1997 18:12:18 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from word.smith.net.au (vh1.gsoft.com.au [203.38.152.122]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA15952 for ; Mon, 27 Oct 1997 18:12:06 -0800 (PST) (envelope-from mike@word.smith.net.au) Received: from word.smith.net.au (localhost.gsoft.com.au [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id MAA00954; Tue, 28 Oct 1997 12:37:01 +1030 (CST) Message-Id: <199710280207.MAA00954@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: davet@ttfn.com cc: Warner Losh , freebsd-mobile@FreeBSD.ORG Subject: Re: How do you solve... In-reply-to: Your message of "Mon, 27 Oct 1997 14:52:09 -0800." <13903.877992729@nomad> Mime-Version: 1.0 Content-Type: multipart/mixed ; boundary="==_Exmh_21172141880" Date: Tue, 28 Oct 1997 12:37:00 +1030 From: Mike Smith Sender: owner-freebsd-mobile@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk This is a multipart MIME message. --==_Exmh_21172141880 Content-Type: text/plain; charset=us-ascii > ------- =_aaaaaaaaaa0 > Content-Type: text/plain; charset="us-ascii" > Content-ID: <13900.877992729.1@nomad> > Content-MD5: TG/OeIqtvEKKsx94a+5wqw== > Content-Transfer-Encoding: quoted-printable Please avoid using 'quoted-unprintable' for plain message text. Replying to it is a Real Pain. > My laptop's been using the ISC DHCP client for the past 8 months to > configureitself for both my home and work networks. It works great, > and saves me the hassle of remembering to reconfigure anything by hand. > The only problems I've had to hack around are getting sendmail to > recognize the change to resolv.conf so it can talk to the local > nameserver, and changing the mailrelay so it can route mail out > past my home firewall. (Elegant idea for handling such dynamic > configuration issues are always welcome.) Rewrite your /etc/sendmail.cf and change the O FallbackMXhost= line to point to your local firewall when you're there, and then 'killall -HUP sendmail'. It'll reread your config at that point; I'm not sure if it actually restarts proper, which is what it would take to get it to pick up changes to /etc/resolv.conf. I actually use a fairly neat tool I wrote called 'personality' for managing this (attached). Just add '/sbin/personality menu' in /etc/rc just before rc.conf is read; I use: # If the system personality system is configured, run the selector if [ -d /etc/personality ]; then /sbin/personality menu 5 fi mike --==_Exmh_21172141880 Content-Type: text/plain; name="personality"; charset=us-ascii Content-Description: personality Content-Disposition: attachment; filename="personality" #!/bin/sh ############################################################################## # # Copyright (c) 1997 Michael Smith # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # $Id$ # ############################################################################## # # This script provides functionality for manipulating collections of # configuration files which can be organised so as to alter the # personality of a system. # # Initially, the "base" personality is established. This personality # contains the "reference" copies of configuration files, and is used # when creating new personalities. The files which are currently # considered part of the system's personality are those contained in # the base personality. # # A new personality is established by making a copy of the base # personality under a new name. Each personality maintains a # separate copy of all configuration files under /etc/personality. # # To install a new personality, the files currently in place are # saved back to the current personality as indicated in # /etc/personality/current, and the files for the new personality # copied into place. The 'select' and 'menu' commands which perform # these installations are implemented in such a fashion as to only # require the tools available on the root filesystem, so that they # may be invoked at the earliest stage during system startup. # # If the current personality has become damaged, it can be restored # from the saved copy. # # Files can be added to and removed from the personality set. When # a new file is added, it is copied from the current system into all # personalities and added to the list file. When a file is removed # the current version is kept in place, but all copies are removed # from saved personalities and the file is removed from the list. # # XXX To Do : # Files can be inherited by one personality from another. This is # simply achieved by copying the relevant files under /etc/personality, # and into the current system if required. # ############################################################################## # Establish some global constants P_ROOT=/etc/personality #P_ROOT=/tmp/personality P_BASE="${P_ROOT}/_base" P_CURRENT="${P_ROOT}/current" P_FILES="${P_ROOT}/files" P_LIST="${P_ROOT}/list" scriptname="$0" ############################################################################## # pers_main # # Execution begins here after the file has been read. # pers_main() { case "$1" in menu) pers_menu $2 $3 ;; select) pers_select $2 ;; restore) pers_restore ;; save) pers_save ;; saveas) pers_saveas $2 pers_reindex ;; create) pers_create $2 pers_reindex ;; delete) pers_delete $2 pers_reindex ;; add) pers_add $2 pers_reindex ;; list) pers_list ;; remove) pers_remove $2 pers_reindex ;; init) pers_init pers_reindex ;; *) usage ;; esac } ############################################################################## # pers_menu # # Present a menu of currently-selectable personalities, assign hotkeys, # describe the default and optionally go with the default after a timeout # pers_menu() { # Look and see if there's actually anything to work with if [ ! -d "${P_ROOT}" ]; then return fi # Pick up a timeout if specified, default to 10 seconds timeout=10 if [ ! -z "$1" ]; then timeout="$1" fi # Assign a default, if suitable defpers="" defname="" if [ -f "${P_CURRENT}" ]; then defpers=`cat "${P_CURRENT}"` defname="${defpers}" fi # Loop prompting/reading input until we get a result while :; do # Print menu echo ""; echo "Select System Personality" echo "=========================" hkey=0 for pers in `cat "${P_LIST}"`; do echo " ${hkey}) ${pers}" eval index_${hkey}="${pers}" hkey=`expr ${hkey} + 1` done echo ""; echo " Default : ${defname}" read -t "${timeout}" -p " Selection : " input eval selvar=\$index_"${input}" selpers="" if [ -z "${input}" ]; then selpers="${defpers}" break elif [ -n "${selvar}" ]; then selpers="${selvar}" break elif [ -d "${P_ROOT}/_${input}" ]; then selpers="${input}" break fi done # $selpers now contains the personality we wish to select, # or is empty if we selected the default when there was none if [ -z "${selpers}" ]; then return fi # select the personality nominated pers_select "${selpers}" } ############################################################################## # pers_select # # Copy the files from the nominated personality out of the repository # into the real system. Note that this must be able to run with # nothing other than the contents of /bin available. # pers_select() { src="${P_ROOT}/_$1"; if [ ! -d "${src}" ]; then fail "no such personality '$1'" fi # Iterate over the file listing, copy them all out for file in `cat "${P_FILES}"`; do cp -p "${src}/${file}" "${file}" done # Register this personality as being current echo "$1" > "${P_CURRENT}" } ############################################################################## # pers_restore # # Reload the configuration files for the current personality, eliminating # any changes that may have been made. # pers_restore() { if [ ! -e "${P_CURRENT}" ]; then fail "no personality currently active" fi # Check that the current personality exists pers=`cat "${P_CURRENT}"` src="${P_ROOT}/_${pers}" if [ ! -d "${src}" ]; then fail "current personality '${pers}' not in the repository!" fi # Iterate over the file listing, copy them all out for file in `cat "${P_FILES}"`; do cp -p "${src}/${file}" "${file}" done } ############################################################################## # pers_save # # If a personality is current, save the current set of files to that # personality. # pers_save() { if [ ! -e "${P_CURRENT}" ]; then fail "no personality currently active" fi # Check that the current personality exists pers=`cat "${P_CURRENT}"` dest="${P_ROOT}/_${pers}" if [ ! -d "${dest}" ]; then fail "current personality '${pers}' not in the repository!" fi # OK, go ahead and save stuff. If this fails, we're # moderately stuffed, so don't worry about it. for file in `cat "${P_FILES}"`; do stub=`dirname "${file}"` mkdir -p "${dest}/${stub}" cp -p "${file}" "${dest}/${file}" done } ############################################################################## # pers_saveas # # Take the currently-active set of configuration files, and save them as # a new personality, set the new personality as current. # pers_saveas() { dest="${P_ROOT}/_$1" if [ -e "${dest}" ]; then fail "cannot create new personality '$1', name already in use" fi # Create the personality directory mkdir -p "${dest}" || pers_saveas_fail "$1" # iterate over files to save, copy them in for file in `cat "${P_FILES}"`; do stub=`dirname "${file}"` mkdir -p "${dest}/${stub}" cp -p "${file}" "${dest}/${file}" || pers_saveas_fail $1 done # new personality is current echo "$1" > "${P_CURRENT}" } ######################################## # pers_saveas_fail # # The 'save as' operation failed. Clean # up and emit a failure message. # pers_saveas_fail() { rm -Rf "${P_ROOT}/_$1" fail "could not save current personality as '$1'" } ############################################################################## # pers_create # # Create a new personality, duplicated from the current base personality # pers_create() { if [ -e "${P_ROOT}/_$1" ]; then fail "cannot create new personality '$1', name already in use" fi # Ok, duplicate it cp -Rp "${P_BASE}" "${P_ROOT}/_$1" || pers_create_fail "$1" } ######################################## # pers_create_fail # # An attempt to create a personality failed. # Clean up and exit with an error message. # pers_create_fail() { rm -Rf "${P_ROOT}/_$1" fail "'$1' could not be created" } ############################################################################## # pers_delete # # Remove a personality from the system. It is legitimate to remove # the current personality. # pers_delete() { if [ ! -e "${P_ROOT}/_$1" ]; then fail "no such personality '$1' to remove" fi if [ "$1" = _base ]; then fail "cannot remove base personality" fi # If the requested personality is current, remove the # reference. if [ -e "${P_CURRENT}" ]; then if [ `cat "${P_CURRENT}"` = "$1" ]; then rm -f "${P_CURRENT}" fi fi # Remove the repository entry rm -Rf "${P_ROOT}/_$1"; # Make sure it's gone if [ -e "${P_ROOT}/_$1" ]; then fail "failed to completely remove personality '$1'"; fi } ############################################################################## # pers_add # # Add a new file to the system; copy it from the 'real' path into # each personality directory. Check first to make sure it's not already # part of the system, and check that the path supplied is absolute. # # The file is stored with its full path relative to the repository # directory. # pers_add() { if [ ! -r "/$1" ]; then fail "cannot read '$1' to add to the Personality System" fi if [ -e "${P_BASE}/$1" ]; then fail "file '$1' already part of the Personality System" fi if [ ! -f "$1" ]; then fail "only files can be added to the Personality System" fi # looks OK, copy it in stub=`dirname "$1"` for targ in ${P_ROOT}/_*; do mkdir -p "${targ}/${stub}" cp -p "$1" "${targ}/${stub}" || pers_add_fail "$1"; done } ######################################## # pers_add_fail # # A failure occurred while adding a file to # the repository; back out any copies that # made it in and abort with an error. # pers_add_fail() { for cand in ${P_ROOT}/_*; do if [ -f "${cand}/$1" ]; then rm -f "${cand}/$1"; fi done fail "'$1' could not be added"; } ############################################################################## # pers_remove # # Remove a file from all personalities in the repository. # pers_remove() { if [ ! -f "${P_BASE}/$1" ]; then fail "'$1' is not part of the Personality System"; fi # OK, it should be there; nuke whatever we can find for cand in ${P_ROOT}/_*; do if [ -f "${cand}/$1" ]; then rm -f "${cand}/$1"; fi done } ############################################################################## # pers_list # # List all of the files that comprise the system personality. # pers_list() { echo "Current personalities:" for pers in `cat "${P_LIST}"`; do echo " ${pers}"; done echo "Files in system personality:" for file in `cat "${P_FILES}"`; do echo " ${file}" done } ############################################################################## # pers_init # # Initialise the personality collection; refuse to do so if there is # already one in place, or something else occupying the root path. # pers_init() { if [ -e "${P_ROOT}" ]; then fail "cannot initialise, '${P_ROOT}' already exists" fi # Create the repository with no files, and no current personality mkdir -p "${P_ROOT}" mkdir -p "${P_BASE}" } ############################################################################## # pers_reindex # # Clean out any empty directories in the repository. This is achieved # by silently trying to rmdir everything that looks like a directory # under any personality. # # Then rebuild the list of files that comprise the system personality, # so that the select and menu functions work. # pers_reindex() { # Remove empty directories for cand in ${P_ROOT}/_*; do find -dX "${cand}/." -type d | xargs rmdir >/dev/null 2>&1 done # Regenerate the files list find -X "${P_BASE}" -type f | sed "s%${P_BASE}%%" > "${P_FILES}" # regenerate the personalities list ls -d "${P_ROOT}/_"* | sed "s%${P_ROOT}/_%%" > "${P_LIST}" } ############################################################################## # usage # # Emit a (hopefully) helpful diagnostic and exit # usage() { echo "${scriptname}: incorrect argument(s)" echo "" echo " Usage is ${scriptname} , where valid commands are :" echo " menu [] Invoke the menu-driven personality selector" echo " select Select a specific personality" echo " restore Restore the current personality from the saved version" echo " save Save the current personality" echo " saveas Save the current personality under a new name" echo " create Create a new personality from the base" echo " delete Delete a personality" echo " add Add a new file" echo " remove Remove a file" echo " list List all files" echo " init Initialise the Personality System" echo "" exit 2; } ############################################################################## # fail # # Emit an error message to stderr and exit # fail () { echo "${scriptname}: $1"; exit 1; } ############################################################################## # Now we have parsed everything, start. pers_main $1 $2 $3 $4; exit 0; --==_Exmh_21172141880-- From owner-freebsd-mobile Mon Oct 27 20:13:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA23062 for mobile-outgoing; Mon, 27 Oct 1997 20:13:44 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id UAA23056 for ; Mon, 27 Oct 1997 20:13:41 -0800 (PST) (envelope-from imp@village.org) Received: from harmony [10.0.0.6] by rover.village.org with esmtp (Exim 1.71 #1) id 0xQ323-0003S7-00; Mon, 27 Oct 1997 21:13:31 -0700 Received: from harmony.village.org (localhost [127.0.0.1]) by harmony.village.org (8.8.7/8.8.3) with ESMTP id VAA07299; Mon, 27 Oct 1997 21:13:05 -0700 (MST) Message-Id: <199710280413.VAA07299@harmony.village.org> To: Donald Burr Subject: Re: How do you solve... Cc: freebsd-mobile@freebsd.org In-reply-to: Your message of "Mon, 27 Oct 1997 13:43:26 MST." References: Date: Mon, 27 Oct 1997 21:13:05 -0700 From: Warner Losh Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In message Donald Burr writes: : You will probably want to talk to Tatsumi Hosokawa : . He's the maintainer of the PAO (PCMCIA support) : for FreeBSD, and himself owns a Libretto. He should be able to provide : all the information, or pointers to it, you'll need, in setting up : FreeBSD, XFree86, solving problems, etc. : : You might also want to Check out the PAO homepage at : http://www.jp.freebsd.org/PAO/ also. Thanks for the pointer. I have had that bookmark on my home page for a long time. It was one of the reasons I got the Libretto, truth be told. Warner From owner-freebsd-mobile Mon Oct 27 22:44:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA01108 for mobile-outgoing; Mon, 27 Oct 1997 22:44:46 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from critter.freebsd.dk (critter.freebsd.dk [195.8.129.26]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA01100 for ; Mon, 27 Oct 1997 22:44:40 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost.cybercity.dk [127.0.0.1]) by critter.freebsd.dk (8.8.7/8.8.7) with ESMTP id HAA03180; Tue, 28 Oct 1997 07:43:36 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Warner Losh cc: freebsd-mobile@freebsd.org Subject: Re: How do you solve... In-reply-to: Your message of "Mon, 27 Oct 1997 14:06:04 MST." <199710272106.OAA05353@harmony.village.org> Date: Tue, 28 Oct 1997 07:43:27 +0100 Message-ID: <3178.878021007@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In message <199710272106.OAA05353@harmony.village.org>, Warner Losh writes: >In message <1548.877976963@critter.freebsd.dk> Poul-Henning Kamp writes: >: I have two small aliases that >: >: home (rm -f /var/tmp/@work) >: work (touch /var/tmp/@work) >: >: my /etc/pccard.ether (or whatever it is called today) looks for >: this file and decideds which IP to configure. Works great. > >So you type "home" and then plug the ethernet card in when you get >home in the evenings? Then /etc/pccard.ether does its magic, no? yes. if [ -f /var/tmp/@work ] ; ifconfig this that and something echo "bla\nbla\nbla" > /etc/resolv.conf else ifconfig something quite different echo "mumble\nmumble\nmumble" > /etc/resolv.conf fi >I was thinking of doing DHCP or even a simple ifconfig >ping home-host failure -> ifconfig ping work-host failure >-> loop a reasonable number of times, then prompt with a Tk program or >something like that. And then once I know where I am, I can wonk >resolv.conf, et al to do the right thing. Been there done that. I found out the above worked better for me. I also have some scripts for another couple of places I go occasionally. -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." From owner-freebsd-mobile Mon Oct 27 23:49:00 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA04869 for mobile-outgoing; Mon, 27 Oct 1997 23:49:00 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from hcshh.hcs.de (hcshh.hcs.de [194.49.17.1] (may be forged)) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id XAA04855 for ; Mon, 27 Oct 1997 23:48:55 -0800 (PST) (envelope-from hm@hcs.de) Received: from hcswork.hcs.de([192.76.124.5]) (2074 bytes) by hcshh.hcs.de via sendmail with P:smtp/R:inet_hosts/T:smtp (sender: ) id for ; Tue, 28 Oct 1997 08:45:04 +0100 (MET) (Smail-3.2.0.97 1997-Aug-19 #16 built 1997-Oct-22) Received: by hcswork.hcs.de (Smail3.1.29.0 #12) id m0xQ6LJ-0000dMC; Tue, 28 Oct 97 08:45 MET Message-Id: From: hm@hcs.de (Hellmuth Michaelis) Subject: Re: How do you solve... To: phk@critter.freebsd.dk (Poul-Henning Kamp) Date: Tue, 28 Oct 1997 08:45:37 +0100 (MET) Cc: imp@village.org, freebsd-mobile@FreeBSD.ORG In-Reply-To: <1548.877976963@critter.freebsd.dk> from "Poul-Henning Kamp" at "Oct 27, 97 07:29:23 pm" Reply-To: hm@hcs.de Organization: HCS Hanseatischer Computerservice GmbH X-Mailer: ELM [version 2.4ME+ PL15 (25)] Content-Type: text Sender: owner-freebsd-mobile@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >From the keyboard of Poul-Henning Kamp: > >OK. I have a Libretto that I just purchased. A fun box. I'm in the > >process of shrinking the FAT partition down to put FreeBSD onto the > >box and have a question. > > > >I take it back and forth between home and work. I'd like it to have > >different IP numbers at the two location. I'd love for this to be > >completely automatic. Any chance of that happening? Is DHCP what I > >want to use? You might want to have a look at my solution to this problem, it is available from ftp://ftp.freebsd.org/pub/FreeBSD/incoming/setnetparms.tar.gz. It consists of a simple database of network parameters (name, ipaddr, mask etc) and some scripts and a curses menu screen to select a set from the parameter database or enter a new set interactively. DHCP did not solve this problem for me, as i also work at sites where no DHCP is available and i got tired of editing all sorts of config files again and again. hellmuth -- Hellmuth Michaelis Tel +49 40 559747-70 HCS Hanseatischer Computerservice GmbH Fax +49 40 559747-77 Oldesloer Strasse 97-99 Mail hm@hcs.de 22457 Hamburg WWW http://www.hcs.de From owner-freebsd-mobile Tue Oct 28 03:11:27 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA15320 for mobile-outgoing; Tue, 28 Oct 1997 03:11:27 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from vanuata (vanuata.dcs.gla.ac.uk [130.209.240.50]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA15297 for ; Tue, 28 Oct 1997 03:11:15 -0800 (PST) (envelope-from simonm@dcs.gla.ac.uk) Received: from solander.dcs.gla.ac.uk (actually host solander) by vanuata with SMTP (MMTA) with ESMTP; Tue, 28 Oct 1997 11:10:34 +0000 Received: (from simonm@localhost) by solander.dcs.gla.ac.uk (8.8.7/8.8.7) id LAA03462; Tue, 28 Oct 1997 11:10:32 GMT To: freebsd-mobile@freebsd.org Subject: Re: How do you solve... References: <1548.877976963@critter.freebsd.dk> From: Simon Marlow Date: 28 Oct 1997 11:10:32 +0000 In-Reply-To: Poul-Henning Kamp's message of Mon, 27 Oct 1997 19:29:23 +0100 Message-ID: Lines: 28 X-Mailer: Gnus v5.3/Emacs 19.34 Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Poul-Henning Kamp writes: > >I take it back and forth between home and work. I'd like it to have > >different IP numbers at the two location. I'd love for this to be > >completely automatic. Any chance of that happening? Is DHCP what I > >want to use? > > I have two small aliases that > > home (rm -f /var/tmp/@work) > work (touch /var/tmp/@work) > > my /etc/pccard.ether (or whatever it is called today) looks for > this file and decideds which IP to configure. Works great. Alternatively, you can try to do it automatically: my pccard_ether tries each possible ifconfig in turn, pinging a known address to find out where it is. When a successful ping happens, it continues to configure the system appropriately for the location. Admittedly, this is a hack, but it works fine. Cheers, Simon -- Simon Marlow simonm@dcs.gla.ac.uk University of Glasgow http://www.dcs.gla.ac.uk/~simonm/ finger for PGP public key From owner-freebsd-mobile Tue Oct 28 04:59:22 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA21002 for mobile-outgoing; Tue, 28 Oct 1997 04:59:22 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from out1.ibm.net (out1.ibm.net [165.87.194.252]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id EAA20997 for ; Tue, 28 Oct 1997 04:59:19 -0800 (PST) (envelope-from SimsS@IBM.Net) Received: from Elvis.RatsNest.VaBeach.Va.Us (slip166-72-229-120.va.us.ibm.net [166.72.229.120]) by out1.ibm.net (8.8.5/8.6.9) with SMTP id MAA77874; Tue, 28 Oct 1997 12:58:13 GMT Received: by localhost with Microsoft MAPI; Tue, 28 Oct 1997 07:58:11 -0500 Message-ID: <01BCE377.3C374600.SimsS@IBM.Net> From: Steve Sims Reply-To: "SimsS@IBM.Net" To: "'Simon Marlow'" Cc: "'freebsd-mobile@freebsd.org'" Subject: RE: How do you solve... Date: Tue, 28 Oct 1997 07:58:09 -0500 X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4128 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk ooooOOOOOoooo! Can I see? Can I see? I've got a kind of strange situation that this approach might solve: At home, my laptop plugs into the net & DHSP weaves its magic. At work, DHCP provides the IP address, but many static routes must be configured (currently, by hand :-( Thanks! ...sjs... On Tuesday, October 28, 1997 6:11 AM, Simon Marlow [SMTP:simonm@dcs.gla.ac.uk] wrote: > Poul-Henning Kamp writes: > > > >I take it back and forth between home and work. I'd like it to have > > >different IP numbers at the two location. I'd love for this to be > > >completely automatic. Any chance of that happening? Is DHCP what I > > >want to use? > > > > I have two small aliases that > > > > home (rm -f /var/tmp/@work) > > work (touch /var/tmp/@work) > > > > my /etc/pccard.ether (or whatever it is called today) looks for > > this file and decideds which IP to configure. Works great. > > Alternatively, you can try to do it automatically: my pccard_ether > tries each possible ifconfig in turn, pinging a known address to find > out where it is. When a successful ping happens, it continues to > configure the system appropriately for the location. Admittedly, this > is a hack, but it works fine. > > Cheers, > Simon > > -- > Simon Marlow simonm@dcs.gla.ac.uk > University of Glasgow http://www.dcs.gla.ac.uk/~simonm/ > finger for PGP public key > From owner-freebsd-mobile Tue Oct 28 10:07:38 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA08739 for mobile-outgoing; Tue, 28 Oct 1997 10:07:38 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA08724; Tue, 28 Oct 1997 10:07:26 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id LAA23644; Tue, 28 Oct 1997 11:07:22 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id LAA06518; Tue, 28 Oct 1997 11:07:21 -0700 (MST) Date: Tue, 28 Oct 1997 11:07:21 -0700 (MST) Message-Id: <199710281807.LAA06518@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Nate Williams Cc: mobile@freebsd.org Subject: Announce: Working suspend/resume (was Re: cvs commit: src/usr.sbin/pccard/pccardd cardd.c) In-Reply-To: <199710281751.JAA20266@freefall.freebsd.org> References: <199710281751.JAA20266@freefall.freebsd.org> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Modified files: > usr.sbin/pccard/pccardd cardd.c > Log: > - Disable cards when doing a suspend by emulating that they have been > removed. Add a new state 'suspend' so we 'fake' insertion events at > resume time for the cards that have been suspended. > > [ > The code still works if you remove the card during suspend, switch the > card during suspend, or combinations of both. > ] > > Reviewed by: frf@xocolatl.com Thanks to Robert for sending me a bug report, things are much better. It turns out there was a *HUGE* race condition in the code after I killed the 'suspend' function. How it ever worked I'll never know, but the new code is both better and more robust, and what I had initially intended to do a couple of years ago. I'd be suprised if suspend/resume didn't work for *all* laptops now, although it may require some setup of the PCIC controller for some machines. If it doesn't work out of the box, try setting "machdep.pccard.pcic_resume_reset" to 1. root # sysctl -w machdep.pccard.pcic_resume_reset=1 You *MUST* rebuild pccardc/pccardd before you boot into the new kernel. If you don't normal card insertion/removal events won't get recognized by the card daemon (the above change is necessary), but once you've rebuilt and re-installed it everything should work great. *Please* test this code. I think it should work, and if it proves to be good I'd like to bring it into 2.2 after a shakeout period. In any case, it's much more robust than the old code in the face of cards getting switched, etc... Nate From owner-freebsd-mobile Tue Oct 28 11:28:25 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA14405 for mobile-outgoing; Tue, 28 Oct 1997 11:28:25 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA14389 for ; Tue, 28 Oct 1997 11:28:20 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id MAA24239; Tue, 28 Oct 1997 12:28:17 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id MAA07040; Tue, 28 Oct 1997 12:28:16 -0700 (MST) Date: Tue, 28 Oct 1997 12:28:16 -0700 (MST) Message-Id: <199710281928.MAA07040@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Poul-Henning Kamp Cc: Nate Williams , mobile@freebsd.org Subject: Re: Announce: Working suspend/resume (was Re: cvs commit: src/usr.sbin/pccard/pccardd cardd.c) In-Reply-To: <534.878066603@critter.freebsd.dk> References: <199710281807.LAA06518@rocky.mt.sri.com> <534.878066603@critter.freebsd.dk> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > >I'd be suprised if suspend/resume didn't work for *all* laptops > >now, although it may require some setup of the PCIC controller for some > >machines. If it doesn't work out of the box, try setting > >"machdep.pccard.pcic_resume_reset" to 1. > > > >root # sysctl -w machdep.pccard.pcic_resume_reset=1 > > Why wouldn't this be suitable as default ? Possibly, but it may not be necessary. > Do we know any machines it breaks ? No, we don't know anything, or even if it helps. It might not even be required for *any* laptop, so I'd like to know if it even does anything for any laptop, or it was just a workaround for other bugs that we no longer have. In short, we need more testing. :) Nate From owner-freebsd-mobile Tue Oct 28 11:28:53 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA14455 for mobile-outgoing; Tue, 28 Oct 1997 11:28:53 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from critter.freebsd.dk (critter.freebsd.dk [195.8.129.26]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA14445; Tue, 28 Oct 1997 11:28:43 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost.cybercity.dk [127.0.0.1]) by critter.freebsd.dk (8.8.7/8.8.7) with ESMTP id UAA00536; Tue, 28 Oct 1997 20:23:28 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Nate Williams cc: Nate Williams , mobile@FreeBSD.ORG Subject: Re: Announce: Working suspend/resume (was Re: cvs commit: src/usr.sbin/pccard/pccardd cardd.c) In-reply-to: Your message of "Tue, 28 Oct 1997 11:07:21 MST." <199710281807.LAA06518@rocky.mt.sri.com> Date: Tue, 28 Oct 1997 20:23:23 +0100 Message-ID: <534.878066603@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-mobile@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >I'd be suprised if suspend/resume didn't work for *all* laptops >now, although it may require some setup of the PCIC controller for some >machines. If it doesn't work out of the box, try setting >"machdep.pccard.pcic_resume_reset" to 1. > >root # sysctl -w machdep.pccard.pcic_resume_reset=1 Why wouldn't this be suitable as default ? Do we know any machines it breaks ? -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." From owner-freebsd-mobile Tue Oct 28 15:45:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA01271 for mobile-outgoing; Tue, 28 Oct 1997 15:45:09 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from sag.space.lockheed.com (sag.space.lockheed.com [192.68.162.134]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id PAA01265 for ; Tue, 28 Oct 1997 15:45:04 -0800 (PST) (envelope-from handy@sag.space.lockheed.com) Received: from localhost by sag.space.lockheed.com; (5.65v3.2/1.1.8.2/21Nov95-0423PM) id AA05083; Tue, 28 Oct 1997 15:44:59 -0800 Date: Tue, 28 Oct 1997 15:44:59 -0800 (PST) From: "Brian N. Handy" To: Nate Williams Cc: mobile@FreeBSD.ORG Subject: Re: Real hackers run -current In-Reply-To: <199710270113.SAA28015@rocky.mt.sri.com> Message-Id: X-Files: The truth is out there Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-mobile@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, 26 Oct 1997, Nate Williams wrote: >In any case, I made *lots* of changes this weekend, although most of >them aren't *major* functionality additions (more below). Hopefully >it'll pave the way to see some more funcationality additions, though. >But, before that happens, I need people to test out the code. I don't >anticipate many problems, but there's always someone whose computers >quits working. Hey! I just had Nate make me a set of diffs against -STABLE for this, and...drumroll please...it works! I can suspend and resume at will now. (Need I mention this worked the first time? Whoa. I think Nate's got something here.) I'm running RELENG_2_2, with the relevant bits current as of today (28 October), on a TP560C. Prior to this I've been able to almost crash my machine at will, and so far in the last hour I haven't been able to crash it at all. My tests so far have been with a 3com 3C589D and a Megahertz XJ4336, and I have an Adaptec SlimSCSI waiting in the wings. I've been fighting this suspend-resume problem for some time and for the first time it's working really well. So: get out there and TEST this stuff! If anyone wants to run this on -stable as well, Nate has diffs he may be persuaded to make available. Kudos to Nate! Everyone else...get on the suspend/resume bandwagon! Brian From owner-freebsd-mobile Tue Oct 28 15:49:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA01518 for mobile-outgoing; Tue, 28 Oct 1997 15:49:19 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA01503 for ; Tue, 28 Oct 1997 15:49:14 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id QAA26003; Tue, 28 Oct 1997 16:49:05 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id QAA08352; Tue, 28 Oct 1997 16:49:04 -0700 (MST) Date: Tue, 28 Oct 1997 16:49:04 -0700 (MST) Message-Id: <199710282349.QAA08352@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "Brian N. Handy" Cc: Nate Williams , mobile@freebsd.org Subject: Re: Real hackers run -current In-Reply-To: References: <199710270113.SAA28015@rocky.mt.sri.com> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Hey! I just had Nate make me a set of diffs against -STABLE for this, > and...drumroll please...it works! I can suspend and resume at will now. I know this already (from private email), but I wanted others to know as well. You didn't need to mess with the sysctl's or do anything else to get this to work, right? Nate From owner-freebsd-mobile Tue Oct 28 15:51:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA01642 for mobile-outgoing; Tue, 28 Oct 1997 15:51:15 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from sag.space.lockheed.com (sag.space.lockheed.com [192.68.162.134]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id PAA01637 for ; Tue, 28 Oct 1997 15:51:12 -0800 (PST) (envelope-from handy@sag.space.lockheed.com) Received: from localhost by sag.space.lockheed.com; (5.65v3.2/1.1.8.2/21Nov95-0423PM) id AA31168; Tue, 28 Oct 1997 15:51:10 -0800 Date: Tue, 28 Oct 1997 15:51:10 -0800 (PST) From: "Brian N. Handy" To: Nate Williams Cc: mobile@freebsd.org Subject: Re: Real hackers run -current In-Reply-To: <199710282349.QAA08352@rocky.mt.sri.com> Message-Id: X-Files: The truth is out there Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >I know this already (from private email), but I wanted others to know as >well. You didn't need to mess with the sysctl's or do anything else to >get this to work, right? No sysctl's required here. Brian From owner-freebsd-mobile Tue Oct 28 16:41:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA04606 for mobile-outgoing; Tue, 28 Oct 1997 16:41:47 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mexcom.net (ns.mexcom.net [206.103.64.9]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA04599 for ; Tue, 28 Oct 1997 16:41:44 -0800 (PST) (envelope-from eculp@mexcom.net) Received: from sunix (eculp@sunix.mexcom.net [206.103.64.3]) by ns.mexcom.net (8.8.7/8.8.7) with SMTP id SAA18169; Tue, 28 Oct 1997 18:38:44 -0600 (CST) Message-ID: <34568589.7C8F9639@mexcom.net> Date: Tue, 28 Oct 1997 18:38:33 -0600 From: Edwin Culp Organization: Mexico Communicates X-Mailer: Mozilla 3.01Gold (X11; I; Linux 2.0.14 i586) MIME-Version: 1.0 To: "Brian N. Handy" CC: Nate Williams , mobile@FreeBSD.ORG Subject: Re: Real hackers run -current References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Brian N. Handy wrote: > > >I know this already (from private email), but I wanted others to know as > >well. You didn't need to mess with the sysctl's or do anything else to > >get this to work, right? > > No sysctl's required here. > > Brian I came in late. What snap or version should we cvsup to test it out? TIA Ed From owner-freebsd-mobile Tue Oct 28 16:44:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA04888 for mobile-outgoing; Tue, 28 Oct 1997 16:44:44 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA04870 for ; Tue, 28 Oct 1997 16:44:39 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id RAA26332; Tue, 28 Oct 1997 17:44:35 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id RAA08579; Tue, 28 Oct 1997 17:44:33 -0700 (MST) Date: Tue, 28 Oct 1997 17:44:33 -0700 (MST) Message-Id: <199710290044.RAA08579@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Edwin Culp Cc: "Brian N. Handy" , Nate Williams , mobile@freebsd.org Subject: Re: Real hackers run -current In-Reply-To: <34568589.7C8F9639@mexcom.net> References: <34568589.7C8F9639@mexcom.net> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > >I know this already (from private email), but I wanted others to know as > > >well. You didn't need to mess with the sysctl's or do anything else to > > >get this to work, right? > > > > No sysctl's required here. > > I came in late. What snap or version should we cvsup to test it out? -current has the code, but I have patches against 2.2 I'm willing to send out to testers who *promise* to test it soon and send me the results. :) Nate From owner-freebsd-mobile Tue Oct 28 16:55:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA05812 for mobile-outgoing; Tue, 28 Oct 1997 16:55:32 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mexcom.net (ns.mexcom.net [206.103.64.9]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA05805 for ; Tue, 28 Oct 1997 16:55:27 -0800 (PST) (envelope-from eculp@mexcom.net) Received: from sunix (eculp@sunix.mexcom.net [206.103.64.3]) by ns.mexcom.net (8.8.7/8.8.7) with SMTP id SAA18773; Tue, 28 Oct 1997 18:54:07 -0600 (CST) Message-ID: <34568924.55C1DE4E@mexcom.net> Date: Tue, 28 Oct 1997 18:53:56 -0600 From: Edwin Culp Organization: Mexico Communicates X-Mailer: Mozilla 3.01Gold (X11; I; Linux 2.0.14 i586) MIME-Version: 1.0 To: Nate Williams CC: "Brian N. Handy" , mobile@freebsd.org Subject: Re: Real hackers run -current References: <34568589.7C8F9639@mexcom.net> <199710290044.RAA08579@rocky.mt.sri.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Nate Williams wrote: > > > > >I know this already (from private email), but I wanted others to know as > > > >well. You didn't need to mess with the sysctl's or do anything else to > > > >get this to work, right? > > > > > > No sysctl's required here. > > > > I came in late. What snap or version should we cvsup to test it out? > > -current has the code, but I have patches against 2.2 I'm willing to > send out to testers who *promise* to test it soon and send me the > results. :) > > Nate I'm running current, just not up to date. Only 500M on HD. I'll update this weekend and if you still want my comments, I'll be glad to cooperate. ed From owner-freebsd-mobile Tue Oct 28 17:20:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA07122 for mobile-outgoing; Tue, 28 Oct 1997 17:20:05 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA07044 for ; Tue, 28 Oct 1997 17:19:56 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id SAA26571; Tue, 28 Oct 1997 18:19:49 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id SAA08759; Tue, 28 Oct 1997 18:19:48 -0700 (MST) Date: Tue, 28 Oct 1997 18:19:48 -0700 (MST) Message-Id: <199710290119.SAA08759@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Edwin Culp Cc: Nate Williams , mobile@freebsd.org Subject: Re: Real hackers run -current In-Reply-To: <34568924.55C1DE4E@mexcom.net> References: <34568589.7C8F9639@mexcom.net> <199710290044.RAA08579@rocky.mt.sri.com> <34568924.55C1DE4E@mexcom.net> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk [ Code to make suspend/resume work reliably ] > > > I came in late. What snap or version should we cvsup to test it out? > > > > -current has the code, but I have patches against 2.2 I'm willing to > > send out to testers who *promise* to test it soon and send me the > > results. :) > > I'm running current, just not up to date. Only 500M on HD. I'll update > this weekend and if you still want my comments, I'll be glad to > cooperate. Please, I'm very interested in feedback. I'd really like to bring the code into 2.2, but it's need more testing than a couple of boxes. Nate From owner-freebsd-mobile Tue Oct 28 18:23:48 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA11198 for mobile-outgoing; Tue, 28 Oct 1997 18:23:48 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA11187 for ; Tue, 28 Oct 1997 18:23:42 -0800 (PST) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.7/8.8.7) with ESMTP id SAA25569 for ; Tue, 28 Oct 1997 18:23:41 -0800 (PST) (envelope-from jdp) Message-Id: <199710290223.SAA25569@austin.polstra.com> To: freebsd-mobile@freebsd.org Subject: Re: Real hackers run -current In-Reply-To: References: Organization: Polstra & Co., Seattle, WA Date: Tue, 28 Oct 1997 18:23:41 -0800 From: John Polstra Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In article , Brian N. Handy wrote: > On Sun, 26 Oct 1997, Nate Williams wrote: > > >In any case, I made *lots* of changes this weekend, although most of > >them aren't *major* functionality additions (more below). Hopefully > >it'll pave the way to see some more funcationality additions, though. > >But, before that happens, I need people to test out the code. I don't > >anticipate many problems, but there's always someone whose computers > >quits working. > > Hey! I just had Nate make me a set of diffs against -STABLE for this, > and...drumroll please...it works! I can suspend and resume at will now. > (Need I mention this worked the first time? Whoa. I think Nate's got > something here.) > > I'm running RELENG_2_2, with the relevant bits current as of today (28 > October), on a TP560C. Prior to this I've been able to almost crash my > machine at will, and so far in the last hour I haven't been able to crash > it at all. My tests so far have been with a 3com 3C589D and a Megahertz > XJ4336, and I have an Adaptec SlimSCSI waiting in the wings. You're having better luck than I am. My machine is also a TP560, and I'm running -current from yesterday evening (Oct 27, around 18:00 PST). Suspend/resume seems to be working OK when only my LinkSys ethernet card (ed0) is in the machine. That's modulo various messages about unfielded interrupts and "Entire system suspend failure: errcode = 96", neither of which seems to cause any actual harm. But if I put my Megahertz XJ1336 modem card into its slot and type "zzz" it's a guaranteed instant system hang, requiring a power off to recover. Here's my pccard.conf. Maybe it contains a clue. :-) # Generally available IO ports io 0x240-0x2e0 0x300-0x360 # Generally available IRQs irq 10 11 13 15 # Available memory slots memory 0xd4000 96k # Linksys Combo PCMCIA Ethernet Card card "LINKSYS" "E-CARD" config 0x20 "ed0" ? 0x10 insert echo PCMCIA ETHERNET V1.0 inserted insert /etc/pccard_ether $device insert /sbin/route add default gateway remove echo PCMCIA ETHERNET V1.0 removed remove /sbin/route delete default gateway remove /sbin/ifconfig $device delete # US Robotics/Megahertz X-Jack modem card "U.S. Robotics" "XJ/CC1336" config 0x23 "sio2" ? insert echo PCMCIA Modem inserted remove echo PCMCIA Modem removed By the way, does that 0x10 at the end of the ed0 config line actually _do_ anything? I think it originated in the PAO stuff. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth From owner-freebsd-mobile Tue Oct 28 20:09:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA17123 for mobile-outgoing; Tue, 28 Oct 1997 20:09:04 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from silvia.HIP.Berkeley.EDU (wck-ca6-01.ix.netcom.com [199.35.213.193]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id UAA17109 for ; Tue, 28 Oct 1997 20:08:58 -0800 (PST) (envelope-from asami@vader.cs.berkeley.edu) Received: (from asami@localhost) by silvia.HIP.Berkeley.EDU (8.8.7/8.6.9) id UAA12369; Tue, 28 Oct 1997 20:08:51 -0800 (PST) Date: Tue, 28 Oct 1997 20:08:51 -0800 (PST) Message-Id: <199710290408.UAA12369@silvia.HIP.Berkeley.EDU> To: jdp@polstra.com CC: freebsd-mobile@FreeBSD.ORG In-reply-to: <199710290223.SAA25569@austin.polstra.com> (message from John Polstra on Tue, 28 Oct 1997 18:23:41 -0800) Subject: Re: Real hackers run -current From: asami@cs.berkeley.edu (Satoshi Asami) Sender: owner-freebsd-mobile@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk * You're having better luck than I am. My machine is also a TP560, * and I'm running -current from yesterday evening (Oct 27, around * 18:00 PST). * * Suspend/resume seems to be working OK when only my LinkSys ethernet * card (ed0) is in the machine. That's modulo various messages about * unfielded interrupts and "Entire system suspend failure: errcode = * 96", neither of which seems to cause any actual harm. * * But if I put my Megahertz XJ1336 modem card into its slot and type * "zzz" it's a guaranteed instant system hang, requiring a power off to * recover. You're having about the same amount of luck as I am. I use 2.2-stable (of about a month ago) + PAO with a TP560E, and Alt-F12 (hybernation) works fine if I remove the 3c589D or Megahertz XJ1560. It won't hybernate with either of them in there, so I just remove them temporarily, wait for a couple of heartbeats, type "sync", then Alt-F12. Alt-F4 (suspend) seems to work with the ether but sometimes hangs with the modem. I haven't used this one much. I don't know much about "zzz", I haven't used that much either. Satoshi From owner-freebsd-mobile Tue Oct 28 20:20:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA17625 for mobile-outgoing; Tue, 28 Oct 1997 20:20:42 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id UAA17619 for ; Tue, 28 Oct 1997 20:20:36 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id VAA27764; Tue, 28 Oct 1997 21:20:34 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id VAA09646; Tue, 28 Oct 1997 21:20:31 -0700 (MST) Date: Tue, 28 Oct 1997 21:20:31 -0700 (MST) Message-Id: <199710290420.VAA09646@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: John Polstra Cc: freebsd-mobile@freebsd.org Subject: Re: Real hackers run -current In-Reply-To: <199710290223.SAA25569@austin.polstra.com> References: <199710290223.SAA25569@austin.polstra.com> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > I'm running RELENG_2_2, with the relevant bits current as of today (28 > > October), on a TP560C. Prior to this I've been able to almost crash my > > machine at will, and so far in the last hour I haven't been able to crash > > it at all. My tests so far have been with a 3com 3C589D and a Megahertz > > XJ4336, and I have an Adaptec SlimSCSI waiting in the wings. > > You're having better luck than I am. My machine is also a TP560, > and I'm running -current from yesterday evening (Oct 27, around > 18:00 PST). You need to upgrade your sources to the changes I made this morning. > # Linksys Combo PCMCIA Ethernet Card > card "LINKSYS" "E-CARD" > config 0x20 "ed0" ? 0x10 .. > > By the way, does that 0x10 at the end of the ed0 config line > actually _do_ anything? I think it originated in the PAO stuff. It's a PAO thing, and it doesn't do anything. Re-sync your sources to today's stuff. You only need to update the stuff in /sys/pccard, and usr.sbin/pccard. (Make sure that the include files are updated if your don't have symlinks by doing a make install in include though..) Nate From owner-freebsd-mobile Tue Oct 28 20:30:54 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA18209 for mobile-outgoing; Tue, 28 Oct 1997 20:30:54 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id UAA18199 for ; Tue, 28 Oct 1997 20:30:51 -0800 (PST) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.7/8.8.7) with ESMTP id UAA26607; Tue, 28 Oct 1997 20:30:40 -0800 (PST) (envelope-from jdp) Message-Id: <199710290430.UAA26607@austin.polstra.com> To: Nate Williams cc: freebsd-mobile@freebsd.org Subject: Re: Real hackers run -current In-reply-to: Your message of "Tue, 28 Oct 1997 21:20:31 MST." <199710290420.VAA09646@rocky.mt.sri.com> Date: Tue, 28 Oct 1997 20:30:39 -0800 From: John Polstra Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > You're having better luck than I am. My machine is also a TP560, > > and I'm running -current from yesterday evening (Oct 27, around > > 18:00 PST). > > You need to upgrade your sources to the changes I made this morning. Yes, you're right. Sorry for the false alarm. I'm doing a new make world overnight. (I was too lazy to do just the relevant bits.) In the morning I'll build a new kernel and report again. John From owner-freebsd-mobile Tue Oct 28 21:09:28 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA19963 for mobile-outgoing; Tue, 28 Oct 1997 21:09:28 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id VAA19956 for ; Tue, 28 Oct 1997 21:09:16 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id WAA28052; Tue, 28 Oct 1997 22:09:10 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id WAA09762; Tue, 28 Oct 1997 22:09:09 -0700 (MST) Date: Tue, 28 Oct 1997 22:09:09 -0700 (MST) Message-Id: <199710290509.WAA09762@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: asami@cs.berkeley.edu (Satoshi Asami) Cc: jdp@polstra.com, freebsd-mobile@freebsd.org Subject: Re: Real hackers run -current In-Reply-To: <199710290408.UAA12369@silvia.HIP.Berkeley.EDU> References: <199710290223.SAA25569@austin.polstra.com> <199710290408.UAA12369@silvia.HIP.Berkeley.EDU> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > You're having about the same amount of luck as I am. > > I use 2.2-stable (of about a month ago) + PAO with a TP560E, and > Alt-F12 (hybernation) works fine if I remove the 3c589D or Megahertz > XJ1560. Trust me, you *don't* need PAO if you want *really* working suspend/resume on your ThinkPad. If you can be convinced to give it up and spend the time, can I have you sync up to 2.2.5, and I'll send you some patches that make suspend/resume *really* work? I'm pretty sure it'll work reliably with your cards. :) Nate From owner-freebsd-mobile Tue Oct 28 21:32:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA20938 for mobile-outgoing; Tue, 28 Oct 1997 21:32:05 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from silvia.HIP.Berkeley.EDU (wck-ca6-01.ix.netcom.com [199.35.213.193]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id VAA20895 for ; Tue, 28 Oct 1997 21:32:00 -0800 (PST) (envelope-from asami@vader.cs.berkeley.edu) Received: (from asami@localhost) by silvia.HIP.Berkeley.EDU (8.8.7/8.6.9) id VAA17376; Tue, 28 Oct 1997 21:31:37 -0800 (PST) Date: Tue, 28 Oct 1997 21:31:37 -0800 (PST) Message-Id: <199710290531.VAA17376@silvia.HIP.Berkeley.EDU> To: nate@mt.sri.com CC: jdp@polstra.com, freebsd-mobile@freebsd.org In-reply-to: <199710290509.WAA09762@rocky.mt.sri.com> (message from Nate Williams on Tue, 28 Oct 1997 22:09:09 -0700 (MST)) Subject: Re: Real hackers run -current From: asami@cs.berkeley.edu (Satoshi Asami) Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk * Trust me, you *don't* need PAO if you want *really* working * suspend/resume on your ThinkPad. If you can be convinced to give it up * and spend the time, can I have you sync up to 2.2.5, and I'll send you * some patches that make suspend/resume *really* work? Well, my sources are past 2.2.5 now. If you send me patches against 2.2-stable, I will try. * I'm pretty sure it'll work reliably with your cards. :) Ok. However, if it doesn't, expect some nasty messages. :> Satoshi From owner-freebsd-mobile Tue Oct 28 22:21:11 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA23478 for mobile-outgoing; Tue, 28 Oct 1997 22:21:11 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA23470 for ; Tue, 28 Oct 1997 22:21:06 -0800 (PST) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.7/8.8.7) with ESMTP id WAA27221; Tue, 28 Oct 1997 22:21:00 -0800 (PST) (envelope-from jdp) Message-Id: <199710290621.WAA27221@austin.polstra.com> To: nate@mt.sri.com Subject: Re: Real hackes run -current In-Reply-To: <199710270113.SAA28015@rocky.mt.sri.com> References: <199710270113.SAA28015@rocky.mt.sri.com> Organization: Polstra & Co., Seattle, WA Cc: mobile@freebsd.org Date: Tue, 28 Oct 1997 22:21:00 -0800 From: John Polstra Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In article <199710270113.SAA28015@rocky.mt.sri.com>, Nate Williams wrote: > My todo list is: > > 1) Work on the suspend/resume stuff until we can get things working > reliably on *all* of the systems. If suspend/resume doesn't work, I > want to know about it so we can make it work. If it works, I want to > know about it as well! > > 2) Bring in additional drivers from PAO. The current list of supported > drivers is pretty weak, and I'd like to 'upgrade' our current drives > (if necessary), and bring in 'safe' changes from PAO that don't > affect desktop stability/functionality. > > 3) Look at the PAO code to see how to support PCI/CardBus machines. I > now understand what's done there, and I think with some slight > changes it can be brought into a maintainable state in FreeBSD. I'd > like some help/feedback on this though, since I know *nothing* about > PCI or CardBus. Good stuff! How about: 4) Add the necessary stuff to the GENERIC kernel so that one can boot from a standard install floppy and then do a network install using any supported PC-CARD ethernet card. Yes, I know there's a hack in the 3c589 driver that makes it work, but the rest of us still have no choice but to use the PAO install floppy. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth From owner-freebsd-mobile Tue Oct 28 22:25:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA23756 for mobile-outgoing; Tue, 28 Oct 1997 22:25:04 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from sag.space.lockheed.com (sag.space.lockheed.com [192.68.162.134]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id WAA23744 for ; Tue, 28 Oct 1997 22:25:00 -0800 (PST) (envelope-from handy@sag.space.lockheed.com) Received: from localhost by sag.space.lockheed.com; (5.65v3.2/1.1.8.2/21Nov95-0423PM) id AA08991; Tue, 28 Oct 1997 22:24:59 -0800 Date: Tue, 28 Oct 1997 22:24:59 -0800 (PST) From: "Brian N. Handy" To: Satoshi Asami Cc: freebsd-mobile@FreeBSD.ORG, Nate Williams Subject: Re: Real hackers run -current In-Reply-To: <199710290408.UAA12369@silvia.HIP.Berkeley.EDU> Message-Id: X-Files: The truth is out there Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-mobile@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, 28 Oct 1997, Satoshi Asami wrote: >I use 2.2-stable (of about a month ago) + PAO with a TP560E, and >Alt-F12 (hybernation) works fine if I remove the 3c589D or Megahertz >XJ1560. It won't hybernate with either of them in there, so I just >remove them temporarily, wait for a couple of heartbeats, type "sync", >then Alt-F12. Hmmm. I was about to cheer you on to try Nate's diffs, but instead you've got my interest up with the alt-F# stuff. Are you running X when you do this? This is sort of a sideline, but I've always used 'zzz'. I seem to have the alt-f#'s wired down to do wierd things in X. Anyway, I still maintain the latest changes seem to work pretty well. I have scored one hang -- I had my modem and enet card in, and popped them out simultaneously. This wedged the system pretty well! (Not sure if it was the combimation of the two, or if my ethernet card was in a wierd state.) The last thing I saw in the syslogs was something about slot 0 being unloaded. Slot 1 never made it before things locked up tight. (0 was the modem, 1 the ethernet card.) Brian From owner-freebsd-mobile Tue Oct 28 22:36:57 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA24266 for mobile-outgoing; Tue, 28 Oct 1997 22:36:57 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from silvia.HIP.Berkeley.EDU (wck-ca6-01.ix.netcom.com [199.35.213.193]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA24260 for ; Tue, 28 Oct 1997 22:36:53 -0800 (PST) (envelope-from asami@vader.cs.berkeley.edu) Received: (from asami@localhost) by silvia.HIP.Berkeley.EDU (8.8.7/8.6.9) id WAA00778; Tue, 28 Oct 1997 22:36:16 -0800 (PST) Date: Tue, 28 Oct 1997 22:36:16 -0800 (PST) Message-Id: <199710290636.WAA00778@silvia.HIP.Berkeley.EDU> To: handy@sag.space.lockheed.com CC: freebsd-mobile@FreeBSD.ORG, nate@sri.mt.net In-reply-to: (handy@sag.space.lockheed.com) Subject: Re: Real hackers run -current From: asami@cs.berkeley.edu (Satoshi Asami) Sender: owner-freebsd-mobile@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk * Hmmm. I was about to cheer you on to try Nate's diffs, but instead you've * got my interest up with the alt-F# stuff. Are you running X when you do * this? This is sort of a sideline, but I've always used 'zzz'. I seem to * have the alt-f#'s wired down to do wierd things in X. Really? I don't remember Alt-F12 locking up. It will either completely ignore me (when the cards are in) or work fine. Satoshi From owner-freebsd-mobile Wed Oct 29 06:12:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA17662 for mobile-outgoing; Wed, 29 Oct 1997 06:12:32 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from iglou1 (exim@iglou1.iglou.com [192.107.41.3]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id GAA17656 for ; Wed, 29 Oct 1997 06:12:27 -0800 (PST) (envelope-from patrick@cre8tivegroup.com) Received: from gateway.cre8tivegroup.com [204.255.227.125] by iglou1 with smtp (8.7.3/8.6.12) id 0xQYqm-0004AJ-00; Wed, 29 Oct 1997 09:12:01 -0500 Message-ID: X-Mailer: XFMail 1.0 [p0] on FreeBSD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit MIME-Version: 1.0 In-Reply-To: <199710290509.WAA09762@rocky.mt.sri.com> Date: Wed, 29 Oct 1997 09:10:11 -0500 (EST) Organization: The Creative Group From: Patrick Gardella To: Nate Williams Subject: Dont need PAO? Cc: freebsd-mobile@freebsd.org Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As a reasonably new user of FreeBSD on my laptop, I thought you *had* to use PAO to get the pcmcia cards to work right. Is this not the case? I'd love to get away from it, but I need my cards (ethernet and modem)! Patrick On 29-Oct-97 Nate Williams wrote: >> You're having about the same amount of luck as I am. >> >> I use 2.2-stable (of about a month ago) + PAO with a TP560E, and >> Alt-F12 (hybernation) works fine if I remove the 3c589D or Megahertz >> XJ1560. > >Trust me, you *don't* need PAO if you want *really* working >suspend/resume on your ThinkPad. If you can be convinced to give it up >and spend the time, can I have you sync up to 2.2.5, and I'll send you >some patches that make suspend/resume *really* work? > >I'm pretty sure it'll work reliably with your cards. :) > > > >Nate From owner-freebsd-mobile Wed Oct 29 06:50:24 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA19692 for mobile-outgoing; Wed, 29 Oct 1997 06:50:24 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from word.smith.net.au (ppp20.portal.net.au [202.12.71.120]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id GAA19681 for ; Wed, 29 Oct 1997 06:50:18 -0800 (PST) (envelope-from mike@word.smith.net.au) Received: from word.smith.net.au (localhost [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id BAA00996; Thu, 30 Oct 1997 01:15:57 +1030 (CST) Message-Id: <199710291445.BAA00996@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Patrick Gardella cc: Nate Williams , freebsd-mobile@freebsd.org Subject: Re: Dont need PAO? In-reply-to: Your message of "Wed, 29 Oct 1997 09:10:11 CDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 30 Oct 1997 01:15:56 +1030 From: Mike Smith Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > As a reasonably new user of FreeBSD on my laptop, I thought you *had* > to use PAO to get the pcmcia cards to work right. Is this not the case? > I'd love to get away from it, but I need my cards (ethernet and modem)! Nope. Life is just fine without it. (This is not to be taken as knocking the Nomads, who have done a lot of good stuff for the cause...) mike From owner-freebsd-mobile Wed Oct 29 07:08:27 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA20681 for mobile-outgoing; Wed, 29 Oct 1997 07:08:27 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA20676 for ; Wed, 29 Oct 1997 07:08:25 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id IAA01577; Wed, 29 Oct 1997 08:08:17 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id IAA11191; Wed, 29 Oct 1997 08:08:14 -0700 (MST) Date: Wed, 29 Oct 1997 08:08:14 -0700 (MST) Message-Id: <199710291508.IAA11191@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: John Polstra Cc: nate@mt.sri.com, mobile@freebsd.org Subject: Re: Real hackes run -current In-Reply-To: <199710290621.WAA27221@austin.polstra.com> References: <199710270113.SAA28015@rocky.mt.sri.com> <199710290621.WAA27221@austin.polstra.com> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I wrote: > > My todo list is: ... > 4) Add the necessary stuff to the GENERIC kernel so that one can > boot from a standard install floppy and then do a network install > using any supported PC-CARD ethernet card. Would be nice, but the way sysinstall is setup right now it's not really easy. And, the PAO changes to sysinstall aren't available. Nate From owner-freebsd-mobile Wed Oct 29 07:16:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA21001 for mobile-outgoing; Wed, 29 Oct 1997 07:16:15 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA20996 for ; Wed, 29 Oct 1997 07:16:12 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id IAA01624; Wed, 29 Oct 1997 08:16:09 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id IAA11236; Wed, 29 Oct 1997 08:16:06 -0700 (MST) Date: Wed, 29 Oct 1997 08:16:06 -0700 (MST) Message-Id: <199710291516.IAA11236@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "Brian N. Handy" Cc: Satoshi Asami , freebsd-mobile@freebsd.org, Nate Williams Subject: Re: Real hackers run -current In-Reply-To: References: <199710290408.UAA12369@silvia.HIP.Berkeley.EDU> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > have scored one hang -- I had my modem and enet card in, and popped them > out simultaneously. This wedged the system pretty well! (Not sure if it > was the combimation of the two, or if my ethernet card was in a wierd > state.) I'm pretty sure this is a 'known race' that can't be worked around. Simply put, if you yank the cards out from under the system, there is a chance that you can't hang your system if the kernel is talking to the hardware at this point, and it's waiting for a result. The only solution to this is to write drivers that are *very* paranoid about the results, but these tend to be slower since sanity checks are done on everything, so that's not necessarily a good solution either. In any case, I'm not *really* concerned abou this sort of thing, since I can hang my Win95 box this way as well. :) Nate From owner-freebsd-mobile Wed Oct 29 07:40:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA22613 for mobile-outgoing; Wed, 29 Oct 1997 07:40:32 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA22608 for ; Wed, 29 Oct 1997 07:40:29 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id IAA01783; Wed, 29 Oct 1997 08:40:15 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id IAA11343; Wed, 29 Oct 1997 08:40:12 -0700 (MST) Date: Wed, 29 Oct 1997 08:40:12 -0700 (MST) Message-Id: <199710291540.IAA11343@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Mike Smith Cc: Patrick Gardella , Nate Williams , freebsd-mobile@freebsd.org Subject: Re: Dont need PAO? In-Reply-To: <199710291445.BAA00996@word.smith.net.au> References: <199710291445.BAA00996@word.smith.net.au> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > As a reasonably new user of FreeBSD on my laptop, I thought you *had* > > to use PAO to get the pcmcia cards to work right. Is this not the case? > > I'd love to get away from it, but I need my cards (ethernet and modem)! > > Nope. Life is just fine without it. > > (This is not to be taken as knocking the Nomads, who have done a lot of > good stuff for the cause...) Right, most of the recent work I did was in-directly related to the Nomad work. They very often point me in the right direction of a fix, or in many cases have *really* good ideas (the Linker set one was great). We wouldn't have anywhere near the support for cards today if it wasn't for the Nomads. Nate From owner-freebsd-mobile Wed Oct 29 07:43:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA22677 for mobile-outgoing; Wed, 29 Oct 1997 07:43:09 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA22671 for ; Wed, 29 Oct 1997 07:43:06 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id IAA01801 for ; Wed, 29 Oct 1997 08:43:04 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id IAA11382; Wed, 29 Oct 1997 08:43:02 -0700 (MST) Date: Wed, 29 Oct 1997 08:43:02 -0700 (MST) Message-Id: <199710291543.IAA11382@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: mobile@freebsd.org Subject: Suspend/resume & PAO X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Thanks to those who already responded to diffs. They're 'In The Mail'. However, I need to make one thing straight. For now, the diffs only supply support for suspend/resume on PCCARD machines, and *NOT* CardBus machines. PAO has some rudimentary support for CardBus machines, so for now if you have a CardBus machines (your machine uses a PCI bus), then my changes won't help you. After we get this code tested and shaken out, then we'll start working on adding the other features in PAO, but I want to make sure we get one thing working robustly before tracking something else. Lately I've made *lots* of changes in the PCCARD code, and it needs to settle down for a bit to make sure I didn't break anything. Nate From owner-freebsd-mobile Wed Oct 29 09:05:00 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA27995 for mobile-outgoing; Wed, 29 Oct 1997 09:05:00 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id JAA27976 for ; Wed, 29 Oct 1997 09:04:54 -0800 (PST) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.7/8.8.7) with ESMTP id JAA01023 for ; Wed, 29 Oct 1997 09:04:52 -0800 (PST) (envelope-from jdp) Message-Id: <199710291704.JAA01023@austin.polstra.com> To: mobile@freebsd.org Subject: Suspend/resume in -current: still no joy Date: Wed, 29 Oct 1997 09:04:52 -0800 From: John Polstra Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk After a full make world and kernel rebuild using -current from yesterday (Oct. 28 at 18:30 PST), suspend/resume still isn't working right on my IBM ThinkPad 560. I have two PC-CARDs: a LinkSys ethernet card (ed0) and a Megahertz XJ1336 modem. Suspend/resume seems to work OK as long as the modem card isn't inserted. But if I put in the modem card and try to suspend using "zzz", it fails. The suspend light doesn't come on, but the screen goes blank briefly. Then it comes back with messages about unfielded interrupts and "Entire system suspend failure: errcode = 96". Or sometimes it just hangs. In any event, the modem is unusable after that point. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth From owner-freebsd-mobile Wed Oct 29 11:00:35 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA05396 for mobile-outgoing; Wed, 29 Oct 1997 11:00:35 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA05381 for ; Wed, 29 Oct 1997 11:00:17 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id MAA03244; Wed, 29 Oct 1997 12:00:14 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id MAA12860; Wed, 29 Oct 1997 12:00:13 -0700 (MST) Date: Wed, 29 Oct 1997 12:00:13 -0700 (MST) Message-Id: <199710291900.MAA12860@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: John Polstra Cc: mobile@freebsd.org Subject: Re: Suspend/resume in -current: still no joy In-Reply-To: <199710291704.JAA01023@austin.polstra.com> References: <199710291704.JAA01023@austin.polstra.com> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > After a full make world and kernel rebuild using -current from yesterday > (Oct. 28 at 18:30 PST), suspend/resume still isn't working right on > my IBM ThinkPad 560. *sigh* > I have two PC-CARDs: a LinkSys ethernet card (ed0) and a Megahertz > XJ1336 modem. Suspend/resume seems to work OK as long as the modem > card isn't inserted. But if I put in the modem card and try to > suspend using "zzz", it fails. The suspend light doesn't come on, > but the screen goes blank briefly. Then it comes back with messages > about unfielded interrupts and "Entire system suspend failure: > errcode = 96". Or sometimes it just hangs. In any event, the modem > is unusable after that point. Can you eject/insert the modem fine? Also, did you try enabling the sysctl mentioned earlier? Nate From owner-freebsd-mobile Wed Oct 29 11:14:40 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA06158 for mobile-outgoing; Wed, 29 Oct 1997 11:14:40 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA06153 for ; Wed, 29 Oct 1997 11:14:36 -0800 (PST) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.7/8.8.7) with ESMTP id LAA01821; Wed, 29 Oct 1997 11:13:35 -0800 (PST) (envelope-from jdp) Message-Id: <199710291913.LAA01821@austin.polstra.com> To: Nate Williams cc: mobile@freebsd.org Subject: Re: Suspend/resume in -current: still no joy In-reply-to: Your message of "Wed, 29 Oct 1997 12:00:13 MST." <199710291900.MAA12860@rocky.mt.sri.com> Date: Wed, 29 Oct 1997 11:13:35 -0800 From: John Polstra Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk [My problems with suspend/resume when Megahertz XJ1336 modem is installed.] > Can you eject/insert the modem fine? Yes, that works OK. > Also, did you try enabling the sysctl mentioned earlier? I just tried it, but it didn't make any difference. Remember, the problem manifests itself upon entering the suspended state, not when resuming. John From owner-freebsd-mobile Wed Oct 29 11:19:59 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA06497 for mobile-outgoing; Wed, 29 Oct 1997 11:19:59 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA06481 for ; Wed, 29 Oct 1997 11:19:48 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id MAA03368; Wed, 29 Oct 1997 12:19:16 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id MAA13105; Wed, 29 Oct 1997 12:19:15 -0700 (MST) Date: Wed, 29 Oct 1997 12:19:15 -0700 (MST) Message-Id: <199710291919.MAA13105@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: John Polstra Cc: Nate Williams , mobile@freebsd.org Subject: Re: Suspend/resume in -current: still no joy In-Reply-To: <199710291913.LAA01821@austin.polstra.com> References: <199710291900.MAA12860@rocky.mt.sri.com> <199710291913.LAA01821@austin.polstra.com> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > [My problems with suspend/resume when Megahertz XJ1336 modem is > installed.] > > > Can you eject/insert the modem fine? > > Yes, that works OK. Great, that helps. > > Also, did you try enabling the sysctl mentioned earlier? > > I just tried it, but it didn't make any difference. Remember, the > problem manifests itself upon entering the suspended state, not when > resuming. Ah, true. Hmm, let me think about this, OK? We do *almost* the exact same thing when ejecting a card as we do when we suspend now, except that we also power off the controller. However, there is no way it can 'fail' with the code, so I'm unsure why it's failing or hanging, since the new code doesn't have any way of denoting failure. Nate From owner-freebsd-mobile Wed Oct 29 11:50:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA08594 for mobile-outgoing; Wed, 29 Oct 1997 11:50:50 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from mailhost.yahoo.com (mailhost.yahoo.com [205.216.162.34]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA08568 for ; Wed, 29 Oct 1997 11:50:44 -0800 (PST) (envelope-from bryan@yahoo-inc.com) Received: from halitosis.yahoo.com (halitosis.yahoo.com [205.216.162.29]) by mailhost.yahoo.com (8.8.7/8.8.6) with ESMTP id LAA17588; Wed, 29 Oct 1997 11:50:08 -0800 (PST) Received: (from bryan@localhost) by halitosis.yahoo.com (8.8.5/8.8.6) id LAA13295; Wed, 29 Oct 1997 11:48:06 -0800 (PST) Date: Wed, 29 Oct 1997 11:48:06 -0800 (PST) Message-Id: <199710291948.LAA13295@halitosis.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: bryan@yahoo-inc.com (bryan d. o'connor) To: freebsd-mobile@freebsd.org Subject: my pccard now broken under 3.0-current X-Mailer: VM 6.34 under 19.15p7 XEmacs Lucid X-Local: anchored to the desk Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk hi. i have an hitachi visionbook elite, 80M, running 3.0-current (current as of last night) when i insert my 3com 3c589d (or Adaptec slim scsi for that matter), i get the following page fault: Fatal trap 12: page fault while in kernel mode fault virtual address = 0xb8f01fdb fault code = supervisor read, page not present instruction pointer = 0x8:0xf0206c7c stack pointer = 0x10:0xf01f5f30 frame pointer = 0x10:0xf01f5f90 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL=0 current process = Idle interrupt mask = trap number = 12 panic: page fault the machine has the TI cardbus that also works as pcmcia emulation or whatever. and this setup did work under 2.2.5. any ideas where to begin looking? thanks! ...bryan From owner-freebsd-mobile Wed Oct 29 12:37:29 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA12152 for mobile-outgoing; Wed, 29 Oct 1997 12:37:29 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from cise.ufl.edu (root@fireant.cise.ufl.edu [128.227.205.210]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA12113 for ; Wed, 29 Oct 1997 12:36:50 -0800 (PST) (envelope-from jfh@cise.ufl.edu) Received: from cise.ufl.edu (ns0.cise.ufl.edu [128.227.224.2]) by cise.ufl.edu (8.8.5/8.7.1) with ESMTP id PAA25065; Wed, 29 Oct 1997 15:35:45 -0500 (EST) Message-Id: <199710292035.PAA25065@cise.ufl.edu> To: Nate Williams cc: freebsd-mobile@freebsd.org Subject: Re: Dont need PAO? In-reply-to: Your message of "Wed, 29 Oct 1997 08:40:12 EST." <199710291540.IAA11343@rocky.mt.sri.com> Date: Wed, 29 Oct 1997 15:35:42 -0500 From: "James F. Hranicky" Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Nate Williams wrote: > > We wouldn't have anywhere near the support for cards today if it wasn't > for the Nomads. Is the SMC EliteCard supported yet? ---------------------------------------------------------------------- | Jim Hranicky, Senior SysAdmin UF/CISE Department | | E314E CSE Building Phone (904) 392-1499 | | jfh@cise.ufl.edu http://www.cis.ufl.edu/~jfh | ---------------------------------------------------------------------- From owner-freebsd-mobile Wed Oct 29 13:08:38 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA14627 for mobile-outgoing; Wed, 29 Oct 1997 13:08:38 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from tnt.isi.edu (tnt.isi.edu [128.9.128.128]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA14615 for ; Wed, 29 Oct 1997 13:08:34 -0800 (PST) (envelope-from faber@ISI.EDU) Received: from ISI.EDU (vex-s.isi.edu [128.9.192.240]) by tnt.isi.edu (8.8.7/8.8.6) with ESMTP id NAA11932; Wed, 29 Oct 1997 13:07:08 -0800 (PST) Message-Id: <199710292107.NAA11932@tnt.isi.edu> To: "James F. Hranicky" Cc: Nate Williams , freebsd-mobile@FreeBSD.ORG Subject: Re: Dont need PAO? In-Reply-To: Your message of "Wed, 29 Oct 1997 15:35:42 EST." <199710292035.PAA25065@cise.ufl.edu> X-Url: http://www.isi.edu/~faber Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 29 Oct 1997 13:07:07 -0800 From: Ted Faber Sender: owner-freebsd-mobile@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk -----BEGIN PGP SIGNED MESSAGE----- "James F. Hranicky" wrote: >Nate Williams wrote: >> >> We wouldn't have anywhere near the support for cards today if it wasn't >> for the Nomads. > >Is the SMC EliteCard supported yet? Is there a list of supported cards somewhere? That would be easier... - ---------------------------------------------------------------------- Ted Faber faber@isi.edu USC/ISI Computer Scientist http://www.isi.edu/~faber (310) 822-1511 x190 PGP Key: http://www.isi.edu/~faber/pubkey.asc -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBNFeleob4eisfQ5rpAQEUugP+Pg2AKTlCa2IRa33DUNm9Xm/vidQfUMHZ HvNwiAHFyok5mNv79hUo7tNg2ilVafuCNhkzE1oUTH6qlzPSiFAKMckxTf6u5vqp Zw8b/ON+O8XS/liek1yB+9Ui0oMFYGOnXbSdX17xjr7mooU1GU+2GKanB6MRydgL CsQ+6ygAkgQ= =iLCp -----END PGP SIGNATURE----- From owner-freebsd-mobile Wed Oct 29 13:08:45 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA14651 for mobile-outgoing; Wed, 29 Oct 1997 13:08:45 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA14626 for ; Wed, 29 Oct 1997 13:08:38 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id OAA04117; Wed, 29 Oct 1997 14:08:03 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id OAA13804; Wed, 29 Oct 1997 14:08:01 -0700 (MST) Date: Wed, 29 Oct 1997 14:08:01 -0700 (MST) Message-Id: <199710292108.OAA13804@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: bryan@yahoo-inc.com (bryan d. o'connor) Cc: freebsd-mobile@freebsd.org Subject: Re: my pccard now broken under 3.0-current In-Reply-To: <199710291948.LAA13295@halitosis.yahoo.com> References: <199710291948.LAA13295@halitosis.yahoo.com> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > i have an hitachi visionbook elite, 80M, running 3.0-current > (current as of last night) > > when i insert my 3com 3c589d (or Adaptec slim scsi for that > matter), i get the following page fault: > > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0xb8f01fdb > fault code = supervisor read, page not present > instruction pointer = 0x8:0xf0206c7c > stack pointer = 0x10:0xf01f5f30 > frame pointer = 0x10:0xf01f5f90 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL=0 > current process = Idle > interrupt mask = > trap number = 12 > panic: page fault Ok, I need the output of: # nm /kernel | sort (This compared against the error message above should tell us where things are dying.) Nate From owner-freebsd-mobile Wed Oct 29 13:54:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA18340 for mobile-outgoing; Wed, 29 Oct 1997 13:54:50 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA18325 for ; Wed, 29 Oct 1997 13:54:47 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id OAA04449; Wed, 29 Oct 1997 14:54:44 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id OAA14098; Wed, 29 Oct 1997 14:54:42 -0700 (MST) Date: Wed, 29 Oct 1997 14:54:42 -0700 (MST) Message-Id: <199710292154.OAA14098@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: bryan@yahoo-inc.com (bryan d. o'connor) Cc: Nate Williams , freebsd-mobile@freebsd.org Subject: Re: my pccard now broken under 3.0-current In-Reply-To: <199710292139.NAA13522@halitosis.yahoo.com> References: <199710291948.LAA13295@halitosis.yahoo.com> <199710292108.OAA13804@rocky.mt.sri.com> <199710292139.NAA13522@halitosis.yahoo.com> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x10 > fault code = supervisor read, page not present > instruction pointer = 0x8:0xf0134613 ... f01345a0 T _vget f0134678 T _vref f01346e4 t _vputrele This seems *really* strange to me. Can you re-sync the sources up and rebuild things. It may require a complete make world, since it seems to me that something is out of date or messed up, since you aren't anywhere near the code used by the PCCARD stuff. Nate From owner-freebsd-mobile Wed Oct 29 15:54:54 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA26014 for mobile-outgoing; Wed, 29 Oct 1997 15:54:54 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA26003 for ; Wed, 29 Oct 1997 15:54:48 -0800 (PST) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.7/8.8.7) with ESMTP id PAA03250; Wed, 29 Oct 1997 15:53:59 -0800 (PST) (envelope-from jdp) Message-Id: <199710292353.PAA03250@austin.polstra.com> To: Nate Williams cc: mobile@freebsd.org Subject: Re: Suspend/resume in -current: still no joy In-reply-to: Your message of "Wed, 29 Oct 1997 12:19:15 MST." <199710291919.MAA13105@rocky.mt.sri.com> Date: Wed, 29 Oct 1997 15:53:59 -0800 From: John Polstra Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk [suspend/resume failure on TP560 with Megahertz modem installed] > > problem manifests itself upon entering the suspended state, not > > when resuming. > > Ah, true. Hmm, let me think about this, OK? OK. :-) Here's something else to think about. Sometimes it looks as though the machine has started to suspend, but then gets yanked back to life. Once I watched it almost-suspend for maybe 10 seconds before hearing the disk spin up again all by itself. (I say "almost" suspend because I'm pretty sure the suspend light never came on.) What I'm getting at is this: The manual for the ThinkPad 560 says that an incoming call on the modem can wake up the machine when it is in the suspended state. I'm having problems only with the modem card, not with the ethernet card. Could it be that the card is emitting a spurious indication of an incoming call, due to some error in the way it's being shut down? Just something to think about. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth From owner-freebsd-mobile Wed Oct 29 15:57:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA26172 for mobile-outgoing; Wed, 29 Oct 1997 15:57:10 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA26167 for ; Wed, 29 Oct 1997 15:57:04 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id QAA05254; Wed, 29 Oct 1997 16:57:01 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id QAA14798; Wed, 29 Oct 1997 16:57:00 -0700 (MST) Date: Wed, 29 Oct 1997 16:57:00 -0700 (MST) Message-Id: <199710292357.QAA14798@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: John Polstra Cc: Nate Williams , mobile@freebsd.org Subject: Re: Suspend/resume in -current: still no joy In-Reply-To: <199710292353.PAA03250@austin.polstra.com> References: <199710291919.MAA13105@rocky.mt.sri.com> <199710292353.PAA03250@austin.polstra.com> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > OK. :-) Here's something else to think about. Sometimes it looks as > though the machine has started to suspend, but then gets yanked back > to life. Once I watched it almost-suspend for maybe 10 seconds before > hearing the disk spin up again all by itself. (I say "almost" suspend > because I'm pretty sure the suspend light never came on.) OK. > What I'm getting at is this: The manual for the ThinkPad 560 says > that an incoming call on the modem can wake up the machine when it is > in the suspended state. I'm having problems only with the modem card, > not with the ethernet card. On most machines, this can be disabled in the BIOS. (I think you can get to it in Win95). Can you try disabling it? > Could it be that the card is emitting a > spurious indication of an incoming call, due to some error in the way > it's being shut down? Sure, then the APM bios won't allow it to shut down, and we have all sorts of weirdness going on. Error handling from un-successful attempts are currently pretty weak. Nate From owner-freebsd-mobile Wed Oct 29 16:00:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA26516 for mobile-outgoing; Wed, 29 Oct 1997 16:00:50 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA26499 for ; Wed, 29 Oct 1997 16:00:40 -0800 (PST) (envelope-from brian@awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.7/8.8.5) with ESMTP id XAA16553; Wed, 29 Oct 1997 23:52:17 GMT Message-Id: <199710292352.XAA16553@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0zeta 7/24/97 To: Nate Williams cc: Edwin Culp , "Brian N. Handy" , mobile@FreeBSD.ORG Subject: Re: Real hackers run -current In-reply-to: Your message of "Tue, 28 Oct 1997 17:44:33 MST." <199710290044.RAA08579@rocky.mt.sri.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 29 Oct 1997 23:52:17 +0000 From: Brian Somers Sender: owner-freebsd-mobile@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > >I know this already (from private email), but I wanted others to know as > > > >well. You didn't need to mess with the sysctl's or do anything else to > > > >get this to work, right? > > > > > > No sysctl's required here. > > > > I came in late. What snap or version should we cvsup to test it out? > > -current has the code, but I have patches against 2.2 I'm willing to > send out to testers who *promise* to test it soon and send me the > results. :) I'd be pleased to, but all I've got is a 3c589c (I've got a 3c562c/3c563c (dual) card, but I guess that's useless at the moment). I can test within a day or two. > Nate -- Brian , , Don't _EVER_ lose your sense of humour.... From owner-freebsd-mobile Wed Oct 29 16:34:17 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA28473 for mobile-outgoing; Wed, 29 Oct 1997 16:34:17 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA28467 for ; Wed, 29 Oct 1997 16:34:15 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id RAA05550; Wed, 29 Oct 1997 17:34:12 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id RAA15225; Wed, 29 Oct 1997 17:34:10 -0700 (MST) Date: Wed, 29 Oct 1997 17:34:10 -0700 (MST) Message-Id: <199710300034.RAA15225@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "James F. Hranicky" Cc: Nate Williams , freebsd-mobile@freebsd.org Subject: Re: Dont need PAO? In-Reply-To: <199710292035.PAA25065@cise.ufl.edu> References: <199710291540.IAA11343@rocky.mt.sri.com> <199710292035.PAA25065@cise.ufl.edu> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > We wouldn't have anywhere near the support for cards today if it wasn't > > for the Nomads. > > Is the SMC EliteCard supported yet? I don't know, what driver does it use? Nate From owner-freebsd-mobile Wed Oct 29 17:33:35 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA02745 for mobile-outgoing; Wed, 29 Oct 1997 17:33:35 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA02736; Wed, 29 Oct 1997 17:33:30 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id SAA05960; Wed, 29 Oct 1997 18:33:17 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id SAA15613; Wed, 29 Oct 1997 18:33:15 -0700 (MST) Date: Wed, 29 Oct 1997 18:33:15 -0700 (MST) Message-Id: <199710300133.SAA15613@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "Bill O'Hanlon" , Guido van Rooij , "Jonathan M. Bresler" , Brian Somers , Satoshi Asami , stable@freebsd.org, mobile@freebsd.org Subject: Announce:Suspend/resume support in 2.2 X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk For non-laptop users, unfortunately these changes require that you must re-configure your kernel from scratch, due to some renaming that was done. Sorry, hopefully it won't happen again. If you aren't interested in laptop support you can ignore the rest of this message. For laptop people, I'm really getting swamped at work (my mini-vacation is probably over), so I stayed late and committed the changes to 2.2, hoping that it's at least better than what's there. What it means to you is that you'll need to get the sources from this evening's commit spree: 1) back out *any* PAO patches in /etc (customized pccard.conf are probably fine) 2) re-build/re-install your include files to pick up the kernel changes 3) Edit your kernel config file (if not using GENERIC) to change crd => card 4) Re-config, build, and install the new kernel (don't reboot yet). 5) Re-build and install the pccard utilities in usr.sbin/pccard 6) Reboot and cross your fingers Known bugs: 1) One person gets a crash in vget() when he inserts his cards. I have no idea what's causing this, but it may be due to other changes in -current 2) John Polstra's box hangs trying to suspend with his modem. We're guessing, but it may be due to his BIOS not allowing the machine to fully suspend. Error handling is still completely non-existant for things such as this, but we're getting better. :) 3) PCI/CardBUS machines are not yet supported. When I get some more time. 4) Some machines don't recognize PCMCIA modem cards because of bad hardware. PAO disables a # of tests, but we're not doing that in the base distribution. I believe there is a way to have failed tests ignored, but I don't know the specifics. I'll be checking email on/off tonight, so if something is really hosed up I want to know. Thanks, and good luck! Nate From owner-freebsd-mobile Wed Oct 29 17:48:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA03586 for mobile-outgoing; Wed, 29 Oct 1997 17:48:49 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA03566 for ; Wed, 29 Oct 1997 17:48:39 -0800 (PST) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.7/8.8.7) with ESMTP id RAA03943; Wed, 29 Oct 1997 17:48:34 -0800 (PST) (envelope-from jdp) Message-Id: <199710300148.RAA03943@austin.polstra.com> To: Nate Williams cc: mobile@freebsd.org Subject: Re: Suspend/resume in -current: still no joy In-reply-to: Your message of "Wed, 29 Oct 1997 16:57:00 MST." <199710292357.QAA14798@rocky.mt.sri.com> Date: Wed, 29 Oct 1997 17:48:33 -0800 From: John Polstra Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Oooh, I've got a big clue! But first ... > > What I'm getting at is this: The manual for the ThinkPad 560 says > > that an incoming call on the modem can wake up the machine when > > it is in the suspended state. I'm having problems only with the > > modem card, not with the ethernet card. > > On most machines, this can be disabled in the BIOS. (I think you > can get to it in Win95). Can you try disabling it? OK, I tried. And I want you to be fully aware of the extreme personal cost at which I did that. Because every time I have to interact with Windows 95, I damn near have a stroke. This exercise probably took 2 years off my life span. Anyway, in Windows 95 I found a couple of places where you could enable/disable waking up the machine on an incoming call. Both were already disabled. Back in Unix again (whew!), I made it fail again. I did that by "apmconf -e" followed by "zzz". It resumed all by itself right away, though it didn't seem to hang this time. Here are the messages it produced: sio2: unload,gone Return IRQ=10 Slot 0, unfielded interrupt (0) Card disabled, slot 0 resumed from suspended mode (slept 00:00:01) Card inserted, slot 0 Entire system suspend failure: errcode = 96 Now here's the clue. I can make it fail like that reliably when the AC adapter is plugged in. But if I unhook the AC so that it's using battery power, suspend/resume works perfectly every time! Plug in the AC, and it fails again. Unplug it, and it works again. What do you think about that? :-) John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth From owner-freebsd-mobile Wed Oct 29 18:02:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA04333 for mobile-outgoing; Wed, 29 Oct 1997 18:02:09 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA04328 for ; Wed, 29 Oct 1997 18:02:05 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id TAA06144; Wed, 29 Oct 1997 19:02:03 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id TAA15796; Wed, 29 Oct 1997 19:02:02 -0700 (MST) Date: Wed, 29 Oct 1997 19:02:02 -0700 (MST) Message-Id: <199710300202.TAA15796@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: John Polstra Cc: Nate Williams , mobile@freebsd.org Subject: Re: Suspend/resume in -current: still no joy In-Reply-To: <199710300148.RAA03943@austin.polstra.com> References: <199710292357.QAA14798@rocky.mt.sri.com> <199710300148.RAA03943@austin.polstra.com> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Oooh, I've got a big clue! But first ... No need to go on, your box is *exactly* like mine. > Now here's the clue. I can make it fail like that reliably when the > AC adapter is plugged in. But if I unhook the AC so that it's using > battery power, suspend/resume works perfectly every time! Plug in the > AC, and it fails again. Unplug it, and it works again. Ahh, this is a 'known' bug. Basically, the APM bios won't allow itself to powered down with the power on (for whatever reason), and because we don't handle the error condition (NO, I say I'm *NOT* going to supsend dammit!), we 'break'. So, the moral of the story is, don't suspend unless the APM allows you to. :) The other moral is 'always check your return error conditions and deal with them appropriately', but I think we all knew that one anyway. In summary, it should work fine as long as everything 'happens nicely', but when the BIOS fails to power down we don't handle things well. Another item to add to my TODO list. :) Nate From owner-freebsd-mobile Wed Oct 29 18:10:30 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA04808 for mobile-outgoing; Wed, 29 Oct 1997 18:10:30 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA04803 for ; Wed, 29 Oct 1997 18:10:21 -0800 (PST) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.7/8.8.7) with ESMTP id SAA04141; Wed, 29 Oct 1997 18:10:10 -0800 (PST) (envelope-from jdp) Message-Id: <199710300210.SAA04141@austin.polstra.com> To: Nate Williams cc: mobile@freebsd.org Subject: Re: Suspend/resume in -current: still no joy In-reply-to: Your message of "Wed, 29 Oct 1997 19:02:02 MST." <199710300202.TAA15796@rocky.mt.sri.com> Date: Wed, 29 Oct 1997 18:10:10 -0800 From: John Polstra Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Ahh, this is a 'known' bug. Basically, the APM bios won't allow > itself to powered down with the power on (for whatever reason), and > because we don't handle the error condition (NO, I say I'm *NOT* > going to supsend dammit!), we 'break'. So, the moral of the story > is, don't suspend unless the APM allows you to. :) Ohhhhh. I get it now. Thanks, now I know how to avoid the problem. John From owner-freebsd-mobile Wed Oct 29 18:47:11 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA06512 for mobile-outgoing; Wed, 29 Oct 1997 18:47:11 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from bubble.didi.com (vader.CS.Berkeley.EDU [128.32.38.234]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA06507 for ; Wed, 29 Oct 1997 18:47:07 -0800 (PST) (envelope-from asami@vader.cs.berkeley.edu) Received: (from asami@localhost) by bubble.didi.com (8.8.7/8.8.7) id SAA02028; Wed, 29 Oct 1997 18:46:58 -0800 (PST) (envelope-from asami) Date: Wed, 29 Oct 1997 18:46:58 -0800 (PST) Message-Id: <199710300246.SAA02028@bubble.didi.com> To: jdp@polstra.com CC: nate@mt.sri.com, mobile@freebsd.org In-reply-to: <199710300148.RAA03943@austin.polstra.com> (message from John Polstra on Wed, 29 Oct 1997 17:48:33 -0800) Subject: Re: Suspend/resume in -current: still no joy From: asami@cs.berkeley.edu (Satoshi Asami) Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk * OK, I tried. And I want you to be fully aware of the extreme personal * cost at which I did that. Because every time I have to interact with * Windows 95, I damn near have a stroke. This exercise probably took 2 * years off my life span. My goodness. If you want to get rid of that wretched laptop, I can certainly use another one. :> * Now here's the clue. I can make it fail like that reliably when the * AC adapter is plugged in. But if I unhook the AC so that it's using * battery power, suspend/resume works perfectly every time! Plug in the * AC, and it fails again. Unplug it, and it works again. * * What do you think about that? :-) Maybe it realizes it's on AC power and thinks "gee, why do I need to suspend, I'm on AC!" :) Satoshi From owner-freebsd-mobile Wed Oct 29 22:00:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA16964 for mobile-outgoing; Wed, 29 Oct 1997 22:00:32 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from twinlark.arctic.org (twinlark.arctic.org [204.62.130.91]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id WAA16955 for ; Wed, 29 Oct 1997 22:00:30 -0800 (PST) (envelope-from dgaudet-list-freebsd-mobile@arctic.org) Received: (qmail 31625 invoked by uid 500); 30 Oct 1997 06:05:11 -0000 Date: Wed, 29 Oct 1997 22:05:11 -0800 (PST) From: Dean Gaudet To: John Polstra cc: Nate Williams , mobile@FreeBSD.ORG Subject: Re: Suspend/resume in -current: still no joy In-Reply-To: <199710300148.RAA03943@austin.polstra.com> Message-ID: Organization: Transmeta Corp. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-mobile@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I haven't been following this thread closely ... but lemme mention an oddness about the thinkpad 560 apm bios that I discovered while getting linux to work cleanly on it. For some reason the bios will return suspend events "forever" if you continue to query it after having received one suspend event. It seems to want the apm client to give it one of the cookies that says "yeah yeah I heard ya". Unless you've changed how the freebsd apm stuff works you shouldn't be running into this problem -- I actually looked at it to figure out why suspend/resume worked fine under freebsd but not under linux. And freebsd was fine because it only dealt with one apm event at a time; whereas linux builds a queue of outstanding apm events. The other thing is that on AC power it never reports user suspend events if there's a powered PCMCIA card. I haven't tried system requested suspending ... I'll do it when I get home. And also if your tp560 bios is older than, um, april 97 or so then try upgrading. There were some apm glitches in earlier versions that messed up some folks trying my linux solution. Dunno if that helps any. IBM will give out their SMAPI docs which includes all the info needed to write the "PS2.EXE" utility... so someone could write a freebsd version, which would me no booting into win95 :) I've got a copy of the docs, but never got around to doing it :( Dean On Wed, 29 Oct 1997, John Polstra wrote: > Oooh, I've got a big clue! But first ... > > > > What I'm getting at is this: The manual for the ThinkPad 560 says > > > that an incoming call on the modem can wake up the machine when > > > it is in the suspended state. I'm having problems only with the > > > modem card, not with the ethernet card. > > > > On most machines, this can be disabled in the BIOS. (I think you > > can get to it in Win95). Can you try disabling it? > > OK, I tried. And I want you to be fully aware of the extreme personal > cost at which I did that. Because every time I have to interact with > Windows 95, I damn near have a stroke. This exercise probably took 2 > years off my life span. > > Anyway, in Windows 95 I found a couple of places where you could > enable/disable waking up the machine on an incoming call. Both were > already disabled. > > Back in Unix again (whew!), I made it fail again. I did that by > "apmconf -e" followed by "zzz". It resumed all by itself right away, > though it didn't seem to hang this time. Here are the messages it > produced: > > sio2: unload,gone > Return IRQ=10 > Slot 0, unfielded interrupt (0) > Card disabled, slot 0 > resumed from suspended mode (slept 00:00:01) > Card inserted, slot 0 > Entire system suspend failure: errcode = 96 > > Now here's the clue. I can make it fail like that reliably when the > AC adapter is plugged in. But if I unhook the AC so that it's using > battery power, suspend/resume works perfectly every time! Plug in the > AC, and it fails again. Unplug it, and it works again. > > What do you think about that? :-) > > John > -- > John Polstra jdp@polstra.com > John D. Polstra & Co., Inc. Seattle, Washington USA > "Self-knowledge is always bad news." -- John Barth > From owner-freebsd-mobile Thu Oct 30 14:53:48 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA17738 for mobile-outgoing; Thu, 30 Oct 1997 14:53:48 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from chuck.schiele-ct.de (chuck.schiele-ct.de [193.141.27.20]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA17731 for ; Thu, 30 Oct 1997 14:53:37 -0800 (PST) (envelope-from br@schiele-ct.de) Received: from schiele-ct.de (localhost.schiele-ct.de [127.0.0.1]) by chuck.schiele-ct.de (8.8.5/8.8.5) with ESMTP id XAA15068 for ; Thu, 30 Oct 1997 23:56:43 +0100 (CET) Message-Id: <199710302256.XAA15068@chuck.schiele-ct.de> To: freebsd-mobile@freebsd.org Subject: PCCARD modem config? Date: Thu, 30 Oct 1997 23:56:42 +0100 From: Bernd Rosauer Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, I got some questions concerning how to configure the operation of a PCCARD modem. I am using a TP560, and my PCCARD modem is a ELSA MicroLink 33.6MC. The modem is one of Germany's best-selling PCCARD modems, but it cannot be found on PAO's SUPPORTED.CARDS list. I made pccardd recognize my modem card, i.e. the card's manufacturer and version, but I cannot set the config line for the card identifier. The index parameter refers to the card's configuration index which does not mean anything to me since I do not know anything about PCMCIA in general and CIS in particular. Is there a way to read out the various configuration indices of the card in order to determine the appropiate one? I would be happy if I could do that with UNIX software because I do not run DOS/Windows on any hard disk. The next point is how to choose the driver and the interrupt flag. In the kernel I configured sio0 at irq4 and sio1 at irq3. In /etc/pccard.conf.sample most entries for modems set the driver to sio2. Would that be ok for a TP560? I guess, then sio2 must be configured in the kernel. But will I need to use the irq which I set in the kernel configuration in the config line of /etc/pccard.conf, too? Would it be ok if the pccardd chooses another irq from the resource pool which was not specified by the kernel configuration? It seems to me that I suffer from a principal lack of understanding at this point. Is there any kind soul who could put me back on the right track? Any help would be greatly appreciated! Thanks! -Bernd From owner-freebsd-mobile Thu Oct 30 16:27:52 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA24140 for mobile-outgoing; Thu, 30 Oct 1997 16:27:52 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA24128 for ; Thu, 30 Oct 1997 16:27:47 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id RAA14595; Thu, 30 Oct 1997 17:27:44 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id RAA21621; Thu, 30 Oct 1997 17:27:43 -0700 (MST) Date: Thu, 30 Oct 1997 17:27:43 -0700 (MST) Message-Id: <199710310027.RAA21621@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Bernd Rosauer Cc: freebsd-mobile@freebsd.org Subject: Re: PCCARD modem config? In-Reply-To: <199710302256.XAA15068@chuck.schiele-ct.de> References: <199710302256.XAA15068@chuck.schiele-ct.de> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > The index parameter refers to the card's configuration index which > does not mean anything to me since I do not know anything about > PCMCIA in general and CIS in particular. Is there a way to read > out the various configuration indices of the card in order to > determine the appropiate one? I would be happy if I could do that > with UNIX software because I do not run DOS/Windows on any hard > disk. Your wish is my command. As root: # pccardc dumpcis If you aren't sure how to read it, send the output to the list and someone will explain it. > The next point is how to choose the driver and the interrupt flag. > In the kernel I configured sio0 at irq4 and sio1 at irq3. In > /etc/pccard.conf.sample most entries for modems set the driver to > sio2. Would that be ok for a TP560? Sure, but you need to choose the correct index which corresponds to sio2, and a supported interrupt. >I guess, then sio2 must be > configured in the kernel. But will I need to use the irq which I > set in the kernel configuration in the config line of /etc/pccard.conf, > too? Naw, the pccard systsem will do the right thing w/regard to using the interrupt. The only thing that matters is the port. > Would it be ok if the pccardd chooses another irq from the > resource pool which was not specified by the kernel configuration? Sure. Nate From owner-freebsd-mobile Thu Oct 30 21:40:31 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA12860 for mobile-outgoing; Thu, 30 Oct 1997 21:40:31 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id VAA12853 for ; Thu, 30 Oct 1997 21:40:28 -0800 (PST) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.7/8.8.7) with ESMTP id VAA03164; Thu, 30 Oct 1997 21:40:06 -0800 (PST) (envelope-from jdp) Message-Id: <199710310540.VAA03164@austin.polstra.com> To: asami@cs.berkeley.edu (Satoshi Asami) cc: nate@mt.sri.com, mobile@freebsd.org Subject: Re: Suspend/resume in -current: still no joy In-reply-to: Your message of "Wed, 29 Oct 1997 18:46:58 PST." <199710300246.SAA02028@bubble.didi.com> Date: Thu, 30 Oct 1997 21:40:06 -0800 From: John Polstra Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > My goodness. If you want to get rid of that wretched laptop, I can > certainly use another one. :> Er, no thanks. I like the laptop just fine. It's just Windows 95 that drives me crazy. > * Now here's the clue. I can make it fail like that reliably when > * the AC adapter is plugged in. But if I unhook the AC so that > * it's using battery power, suspend/resume works perfectly every > * time! Plug in the AC, and it fails again. Unplug it, and it > * works again. > * > * What do you think about that? :-) > > Maybe it realizes it's on AC power and thinks "gee, why do I need to > suspend, I'm on AC!" :) Yes, but it's not that simple. More like, "gee, I'm on AC and there's a Megahertz modem card in my orifice ... why do I need to suspend?" Take out the modem card and it suspends just fine whether it's on AC or not. John From owner-freebsd-mobile Fri Oct 31 00:18:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA20767 for mobile-outgoing; Fri, 31 Oct 1997 00:18:16 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from chuck.schiele-ct.de (chuck.schiele-ct.de [193.141.27.20]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA20761 for ; Fri, 31 Oct 1997 00:18:12 -0800 (PST) (envelope-from br@schiele-ct.de) Received: from schiele-ct.de (localhost.schiele-ct.de [127.0.0.1]) by chuck.schiele-ct.de (8.8.5/8.8.5) with ESMTP id JAA06594; Fri, 31 Oct 1997 09:21:11 +0100 (CET) Message-Id: <199710310821.JAA06594@chuck.schiele-ct.de> To: Nate Williams cc: freebsd-mobile@freebsd.org Subject: Re: PCCARD modem config? In-reply-to: Your message of "Thu, 30 Oct 1997 17:27:43 MST." <199710310027.RAA21621@rocky.mt.sri.com> Date: Fri, 31 Oct 1997 09:21:11 +0100 From: Bernd Rosauer Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Nate Williams: > # pccardc dumpcis > > If you aren't sure how to read it, send the output to the list and > someone will explain it. Thanks! I attach the dump below. > > The next point is how to choose the driver and the interrupt flag. > > In the kernel I configured sio0 at irq4 and sio1 at irq3. In > > /etc/pccard.conf.sample most entries for modems set the driver to > > sio2. Would that be ok for a TP560? > > Sure, but you need to choose the correct index which corresponds to > sio2, and a supported interrupt. There is no line telling me something about a port. For configuration index 0x31 the entrys say that the "Card decodes 10 address lines". Would that index make a good choice? Thanks a lot for your help! -Bernd ====================== code No link ignored Configuration data for card in slot 0 Tuple #1, code = 0x1 (Common memory descriptor), length = 3 000: 00 00 ff Common memory device information: Device number 1, type No device, WPS = OFF Speed = No speed, Memory block size = 512b, 1 units Tuple #2, code = 0x20 (Manufacturer ID), length = 4 000: 05 01 01 01 PCMCIA ID = 0x105, OEM ID = 0x101 Tuple #3, code = 0x15 (Version 1 info), length = 63 000: 04 01 45 4c 53 41 27 41 61 63 68 65 6e 27 47 65 010: 72 6d 61 6e 79 00 4d 69 63 72 6f 4c 69 6e 6b 20 020: 33 33 2e 36 4d 43 00 30 30 30 39 35 33 00 34 2e 030: 30 2e 39 00 00 00 00 00 00 00 00 00 00 00 ff Version = 4.1, Manuf = [ELSA'Aachen'Germany],card vers = [MicroLink 33.6MC] Addit. info = [000953],[4.0.9] Tuple #4, code = 0x1a (Configuration map), length = 5 000: 01 27 00 01 17 Reg len = 2, config register addr = 0x100, last config = 0x27 Registers: XXX-X--- Tuple #5, code = 0x1b (Configuration entry), length = 20 000: f0 41 9d 6e 4d 5d 25 36 05 eb 17 aa 60 f8 03 07 010: 70 b8 86 28 Config index = 0x30(default) Interface byte = 0x41 (I/O) +RDY/-BSY active Vcc pwr: Minimum operating supply voltage: 4.5 x 1V Maximum operating supply voltage: 5.5 x 1V Continuous supply current: 2 x 10mA Max current average over 10 ms: 3 x 100mA Power down supply current: 1 x 10mA RDY/BSY scale Speed = 1.2 x 10 ms, scaled by 100 Card decodes 10 address lines, 8 Bit I/O only I/O address # 1: block start = 0x3f8 block length = 0x8 IRQ modes: Level, Pulse IRQs: 3 4 5 7 9 10 15 Max twin cards = 0 Misc attr: (Audio-BVD2) (Power down supported) Tuple #6, code = 0x1b (Configuration entry), length = 10 000: 31 18 aa 60 f8 02 07 70 b8 86 Config index = 0x31 Card decodes 10 address lines, 8 Bit I/O only I/O address # 1: block start = 0x2f8 block length = 0x8 IRQ modes: Level, Pulse IRQs: 3 4 5 7 9 10 15 Tuple #7, code = 0x21 (Functional ID), length = 2 000: 02 01 Serial port/modem - POST initialize Tuple #8, code = 0x0 (Null tuple), length = 21 000: 00 00 00 00 00 70 a8 22 ff 00 ff ff ff ff ff ff 010: ff ff ff ff ff Tuple #9, code = 0x1b (Configuration entry), length = 10 000: 32 18 aa 60 e8 03 07 70 b8 86 Config index = 0x32 Card decodes 10 address lines, 8 Bit I/O only I/O address # 1: block start = 0x3e8 block length = 0x8 IRQ modes: Level, Pulse IRQs: 3 4 5 7 9 10 15 Tuple #10, code = 0x1b (Configuration entry), length = 10 000: 33 18 aa 60 e8 02 07 70 b8 86 Config index = 0x33 Card decodes 10 address lines, 8 Bit I/O only I/O address # 1: block start = 0x2e8 block length = 0x8 IRQ modes: Level, Pulse IRQs: 3 4 5 7 9 10 15 Tuple #11, code = 0x1b (Configuration entry), length = 6 000: 24 18 23 70 b8 86 Config index = 0x24 Card decodes 3 address lines, 8 Bit I/O only IRQ modes: Level, Pulse IRQs: 3 4 5 7 9 10 15 Tuple #12, code = 0x1b (Configuration entry), length = 10 000: 25 18 aa 60 bc 03 03 70 b8 86 Config index = 0x25 Card decodes 10 address lines, 8 Bit I/O only I/O address # 1: block start = 0x3bc block length = 0x4 IRQ modes: Level, Pulse IRQs: 3 4 5 7 9 10 15 Tuple #13, code = 0x1b (Configuration entry), length = 10 000: 26 18 aa 60 78 03 03 70 b8 86 Config index = 0x26 Card decodes 10 address lines, 8 Bit I/O only I/O address # 1: block start = 0x378 block length = 0x4 IRQ modes: Level, Pulse IRQs: 3 4 5 7 9 10 15 Tuple #14, code = 0x1b (Configuration entry), length = 10 000: 27 18 aa 60 78 02 03 70 b8 86 Config index = 0x27 Card decodes 10 address lines, 8 Bit I/O only I/O address # 1: block start = 0x278 block length = 0x4 IRQ modes: Level, Pulse IRQs: 3 4 5 7 9 10 15 Tuple #15, code = 0x22 (Functional EXT), length = 4 000: 00 02 0f 7f Serial interface extension: 16550 UART, Parity - Space,Mark,Odd,Even, Tuple #16, code = 0x22 (Functional EXT), length = 9 000: 01 1f 3f 00 02 00 00 02 00 Modem interface capabilities: Tuple #17, code = 0x22 (Functional EXT), length = 12 000: 02 06 00 3f 1c 03 03 0f 06 00 00 b5 Data modem services available: Tuple #18, code = 0x22 (Functional EXT), length = 8 000: 13 06 00 1f 00 00 00 b5 Tuple #19, code = 0xff (Terminator), length = 0 2 slots found From owner-freebsd-mobile Fri Oct 31 08:49:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA18768 for mobile-outgoing; Fri, 31 Oct 1997 08:49:13 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA18763 for ; Fri, 31 Oct 1997 08:49:06 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id JAA20303; Fri, 31 Oct 1997 09:49:04 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id JAA24488; Fri, 31 Oct 1997 09:49:03 -0700 (MST) Date: Fri, 31 Oct 1997 09:49:03 -0700 (MST) Message-Id: <199710311649.JAA24488@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Bernd Rosauer Cc: Nate Williams , freebsd-mobile@freebsd.org Subject: Re: PCCARD modem config? In-Reply-To: <199710310821.JAA06594@chuck.schiele-ct.de> References: <199710310027.RAA21621@rocky.mt.sri.com> <199710310821.JAA06594@chuck.schiele-ct.de> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > The next point is how to choose the driver and the interrupt flag. > > > In the kernel I configured sio0 at irq4 and sio1 at irq3. In > > > /etc/pccard.conf.sample most entries for modems set the driver to > > > sio2. Would that be ok for a TP560? > > > > Sure, but you need to choose the correct index which corresponds to > > sio2, and a supported interrupt. > > There is no line telling me something about a port. Sure there is, from the output: > Tuple #5, code = 0x1b (Configuration entry), length = 20 > 000: f0 41 9d 6e 4d 5d 25 36 05 eb 17 aa 60 f8 03 07 > 010: 70 b8 86 28 > Config index = 0x30(default) ^^^^ > Interface byte = 0x41 (I/O) +RDY/-BSY active > Vcc pwr: > Minimum operating supply voltage: 4.5 x 1V > Maximum operating supply voltage: 5.5 x 1V > Continuous supply current: 2 x 10mA > Max current average over 10 ms: 3 x 100mA > Power down supply current: 1 x 10mA > RDY/BSY scale Speed = 1.2 x 10 ms, scaled by 100 > Card decodes 10 address lines, 8 Bit I/O only > I/O address # 1: block start = 0x3f8 block length = 0x8 ^^^^^ > IRQ modes: Level, Pulse > IRQs: 3 4 5 7 9 10 15 > Max twin cards = 0 > Misc attr: (Audio-BVD2) (Power down supported) > Tuple #6, code = 0x1b (Configuration entry), length = 10 > 000: 31 18 aa 60 f8 02 07 70 b8 86 > Config index = 0x31 ^^^^ > Card decodes 10 address lines, 8 Bit I/O only > I/O address # 1: block start = 0x2f8 block length = 0x8 ^^^^^ > IRQ modes: Level, Pulse > IRQs: 3 4 5 7 9 10 15 Anyway, you get the picture. Let's go find the the entry for sio2, which is what we decided to use. I never remember these, so I go to /sys/i386/isa ,and grep from COM3 (remember that we start at sio0, which DOS starts at COM1, so sio2 == COM3). $ fgrep COM3 *.h isa.h:#define IO_COM3 0x3E8 /* COM3 i/o address */ Ahh, we want 0x3e8. >From the output: > Tuple #9, code = 0x1b (Configuration entry), length = 10 > 000: 32 18 aa 60 e8 03 07 70 b8 86 > Config index = 0x32 ^^^^ > Card decodes 10 address lines, 8 Bit I/O only > I/O address # 1: block start = 0x3e8 block length = 0x8 ^^^^^ > IRQ modes: Level, Pulse > IRQs: 3 4 5 7 9 10 15 OK, so far so good. We know the index. But, as long as we're here, let's finish up everything for the card. > Tuple #3, code = 0x15 (Version 1 info), length = 63 > 000: 04 01 45 4c 53 41 27 41 61 63 68 65 6e 27 47 65 > 010: 72 6d 61 6e 79 00 4d 69 63 72 6f 4c 69 6e 6b 20 > 020: 33 33 2e 36 4d 43 00 30 30 30 39 35 33 00 34 2e > 030: 30 2e 39 00 00 00 00 00 00 00 00 00 00 00 ff > Version = 4.1, Manuf = [ELSA'Aachen'Germany],card vers = [MicroLink 33.6MC] > Addit. info = [000953],[4.0.9] So, we've got everything we need for the card's pccard.conf entry, except for the IRQ (which we'll hard-code for now to be one of the available interrupts for that configuration index. This will go away at some point in the future, since we can simply 'fake' the card into thinking it's using a valid interrupt while using any free interrupt from the system.) # Germany's famouse MicroLink modem card card "ELSA'Aachen'Germany" "MicroLink 33.6MC" config 0x32 "sio2" 10 insert echo "Microlink 33.6 modem inserted" removed echo "Microlink 33.6 modem removed" Done! > For configuration > index 0x31 the entrys say that the "Card decodes 10 address lines". > Would that index make a good choice? You tell me. Seriously, can you answer that question on your own now with the information just posted? If so, send the list an email saying so, or else *please* ask some more questions! Nate From owner-freebsd-mobile Fri Oct 31 08:51:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA18898 for mobile-outgoing; Fri, 31 Oct 1997 08:51:06 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA18891 for ; Fri, 31 Oct 1997 08:51:01 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id JAA20317; Fri, 31 Oct 1997 09:50:58 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id JAA24505; Fri, 31 Oct 1997 09:50:55 -0700 (MST) Date: Fri, 31 Oct 1997 09:50:55 -0700 (MST) Message-Id: <199710311650.JAA24505@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: John Polstra Cc: asami@cs.berkeley.edu (Satoshi Asami), nate@mt.sri.com, mobile@freebsd.org Subject: Re: Suspend/resume in -current: still no joy In-Reply-To: <199710310540.VAA03164@austin.polstra.com> References: <199710300246.SAA02028@bubble.didi.com> <199710310540.VAA03164@austin.polstra.com> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk [ Suspend fails under AC power ] > > Maybe it realizes it's on AC power and thinks "gee, why do I need to > > suspend, I'm on AC!" :) > > Yes, but it's not that simple. More like, "gee, I'm on AC and there's > a Megahertz modem card in my orifice ... why do I need to suspend?" > Take out the modem card and it suspends just fine whether it's on AC > or not. That's *really* weird. My box refuses to suspend on AC power *all* the time. I'm guessing it doesn't mind having the Megahertz card messing around, but doesn't want to sleep with it. :) Nate From owner-freebsd-mobile Fri Oct 31 09:26:30 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA21261 for mobile-outgoing; Fri, 31 Oct 1997 09:26:30 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id JAA21256 for ; Fri, 31 Oct 1997 09:26:26 -0800 (PST) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.7/8.8.7) with ESMTP id JAA07296; Fri, 31 Oct 1997 09:26:16 -0800 (PST) (envelope-from jdp) Message-Id: <199710311726.JAA07296@austin.polstra.com> To: Nate Williams cc: asami@cs.berkeley.edu (Satoshi Asami), mobile@freebsd.org Subject: Re: Suspend/resume in -current: still no joy In-reply-to: Your message of "Fri, 31 Oct 1997 09:50:55 MST." <199710311650.JAA24505@rocky.mt.sri.com> Date: Fri, 31 Oct 1997 09:26:16 -0800 From: John Polstra Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > That's *really* weird. My box refuses to suspend on AC power *all* > the time. > > I'm guessing it doesn't mind having the Megahertz card messing > around, but doesn't want to sleep with it. :) IBM has always been known as a fairly conservative company. :-) John From owner-freebsd-mobile Fri Oct 31 10:28:41 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA25585 for mobile-outgoing; Fri, 31 Oct 1997 10:28:41 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from cise.ufl.edu (root@fireant.cise.ufl.edu [128.227.205.210]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA25578 for ; Fri, 31 Oct 1997 10:28:36 -0800 (PST) (envelope-from jfh@cise.ufl.edu) Received: from cise.ufl.edu (tick.cise.ufl.edu [128.227.224.30]) by cise.ufl.edu (8.8.5/8.7.1) with ESMTP id NAA03708; Fri, 31 Oct 1997 13:27:47 -0500 (EST) Message-Id: <199710311827.NAA03708@cise.ufl.edu> To: Nate Williams cc: freebsd-mobile@freebsd.org Subject: Re: Dont need PAO? In-reply-to: Your message of "Wed, 29 Oct 1997 17:34:10 EST." <199710300034.RAA15225@rocky.mt.sri.com> Date: Fri, 31 Oct 1997 13:27:43 -0500 From: "James F. Hranicky" Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Nate Williams wrote: > > > We wouldn't have anywhere near the support for cards today if it wasn't > > > for the Nomads. > > > > Is the SMC EliteCard supported yet? > > I don't know, what driver does it use? According to the PAO stuff, the "sn0" driver. ---------------------------------------------------------------------- | Jim Hranicky, Senior SysAdmin UF/CISE Department | | E314E CSE Building Phone (904) 392-1499 | | jfh@cise.ufl.edu http://www.cis.ufl.edu/~jfh | ---------------------------------------------------------------------- From owner-freebsd-mobile Fri Oct 31 10:30:51 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA25729 for mobile-outgoing; Fri, 31 Oct 1997 10:30:51 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA25724 for ; Fri, 31 Oct 1997 10:30:46 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id LAA20960; Fri, 31 Oct 1997 11:30:44 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id LAA24947; Fri, 31 Oct 1997 11:30:41 -0700 (MST) Date: Fri, 31 Oct 1997 11:30:41 -0700 (MST) Message-Id: <199710311830.LAA24947@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "James F. Hranicky" Cc: Nate Williams , freebsd-mobile@freebsd.org Subject: Re: Dont need PAO? In-Reply-To: <199710311827.NAA03708@cise.ufl.edu> References: <199710300034.RAA15225@rocky.mt.sri.com> <199710311827.NAA03708@cise.ufl.edu> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > > We wouldn't have anywhere near the support for cards today if it wasn't > > > > for the Nomads. > > > > > > Is the SMC EliteCard supported yet? > > > > I don't know, what driver does it use? > > According to the PAO stuff, the "sn0" driver. The sn driver hasn't been ported to FreeBSD yet. Any volunteers? Nate From owner-freebsd-mobile Fri Oct 31 12:40:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA03550 for mobile-outgoing; Fri, 31 Oct 1997 12:40:06 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from chuck.schiele-ct.de (chuck.schiele-ct.de [193.141.27.20]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA03541 for ; Fri, 31 Oct 1997 12:40:02 -0800 (PST) (envelope-from br@schiele-ct.de) Received: from schiele-ct.de (localhost.schiele-ct.de [127.0.0.1]) by chuck.schiele-ct.de (8.8.5/8.8.5) with ESMTP id VAA04464; Fri, 31 Oct 1997 21:43:08 +0100 (CET) Message-Id: <199710312043.VAA04464@chuck.schiele-ct.de> To: Nate Williams Cc: freebsd-mobile@freebsd.org Subject: Re: PCCARD modem config? In-reply-to: Your message of "Fri, 31 Oct 1997 09:49:03 MST." <199710311649.JAA24488@rocky.mt.sri.com> Date: Fri, 31 Oct 1997 21:43:08 +0100 From: Bernd Rosauer Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Nate Williams: > [Nate's explanations skipped] > > # Germany's famouse MicroLink modem card > card "ELSA'Aachen'Germany" "MicroLink 33.6MC" > config 0x32 "sio2" 10 > insert echo "Microlink 33.6 modem inserted" > removed echo "Microlink 33.6 modem removed" I got it. Thanks for the great lesson! You are a wizard. ;-) I guess, everyone on this planet knows ELSA's MicroLink card now. :-) Thanks again! -Bernd From owner-freebsd-mobile Fri Oct 31 12:42:24 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA03657 for mobile-outgoing; Fri, 31 Oct 1997 12:42:24 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA03650 for ; Fri, 31 Oct 1997 12:42:19 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id NAA21891; Fri, 31 Oct 1997 13:42:16 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id NAA25979; Fri, 31 Oct 1997 13:42:13 -0700 (MST) Date: Fri, 31 Oct 1997 13:42:13 -0700 (MST) Message-Id: <199710312042.NAA25979@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Bernd Rosauer Cc: Nate Williams , freebsd-mobile@freebsd.org Subject: Re: PCCARD modem config? In-Reply-To: <199710312043.VAA04464@chuck.schiele-ct.de> References: <199710311649.JAA24488@rocky.mt.sri.com> <199710312043.VAA04464@chuck.schiele-ct.de> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > [Nate's explanations skipped] > > > > # Germany's famouse MicroLink modem card > > card "ELSA'Aachen'Germany" "MicroLink 33.6MC" > > config 0x32 "sio2" 10 > > insert echo "Microlink 33.6 modem inserted" > > removed echo "Microlink 33.6 modem removed" > > I got it. Thanks for the great lesson! You are a wizard. ;-) > > I guess, everyone on this planet knows ELSA's MicroLink card now. :-) So, does the entry work? If so, I can add it to the standard FreeBSD pccard.conf.sample file. Nate From owner-freebsd-mobile Sat Nov 1 07:54:52 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA24559 for mobile-outgoing; Sat, 1 Nov 1997 07:54:52 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA24552 for ; Sat, 1 Nov 1997 07:54:48 -0800 (PST) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.7/3.6Wbeta6-ntc_mailserver1.03) id AAA28786; Sun, 2 Nov 1997 00:54:31 +0900 (JST) Date: Sun, 2 Nov 1997 00:54:31 +0900 (JST) Message-Id: <199711011554.AAA28786@afs.ntc.mita.keio.ac.jp> To: nate@mt.sri.com Cc: jfh@cise.ufl.edu, freebsd-mobile@freebsd.org, hosokawa@ntc.keio.ac.jp Subject: sn driver for -current (Re: Dont need PAO?) In-Reply-To: Your message of "Fri, 31 Oct 1997 11:30:41 -0700 (MST)". <199710311830.LAA24947@rocky.mt.sri.com> From: hosokawa@ntc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.20] 1996-12/08(Sun) Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In article <199710311830.LAA24947@rocky.mt.sri.com> nate@mt.sri.com writes: >> The sn driver hasn't been ported to FreeBSD yet. Any volunteers? I've ported it to -current and there's a multicast patch for this driver. if_sn for -current is in ftp://jaz.jp.freebsd.org/pub/FreeBSD-jp/PAO/pccard-current-970808-patch.gz -- HOSOKAWA, Tatsumi Network Technology Center Keio University hosokawa@ntc.keio.ac.jp From owner-freebsd-mobile Sat Nov 1 10:08:22 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA29591 for mobile-outgoing; Sat, 1 Nov 1997 10:08:22 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA29585 for ; Sat, 1 Nov 1997 10:08:19 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id LAA01833; Sat, 1 Nov 1997 11:08:14 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id LAA29828; Sat, 1 Nov 1997 11:08:11 -0700 (MST) Date: Sat, 1 Nov 1997 11:08:11 -0700 (MST) Message-Id: <199711011808.LAA29828@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: hosokawa@ntc.keio.ac.jp (HOSOKAWA Tatsumi) Cc: nate@mt.sri.com, jfh@cise.ufl.edu, freebsd-mobile@freebsd.org Subject: Re: sn driver for -current (Re: Dont need PAO?) In-Reply-To: <199711011554.AAA28786@afs.ntc.mita.keio.ac.jp> References: <199710311830.LAA24947@rocky.mt.sri.com> <199711011554.AAA28786@afs.ntc.mita.keio.ac.jp> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > >> The sn driver hasn't been ported to FreeBSD yet. Any volunteers? > > I've ported it to -current and there's a multicast patch for this > driver. > > if_sn for -current is in > ftp://jaz.jp.freebsd.org/pub/FreeBSD-jp/PAO/pccard-current-970808-patch.gz If this is against -current from 3 months ago, this it's no longer applicable to -current, although it would probably be fine against -stable assuming it doesn't rely on the other PAO patches to work. If you haven't yet found out, drivers in -current are very similar to the drivers in PAO now, but since I don't have any hardware to test with, I can't port the driver over. :( (Any volunteers willing to lend me some hardware so I can port the driver to both -stable and -current?) Nate From owner-freebsd-mobile Sat Nov 1 10:27:52 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA00604 for mobile-outgoing; Sat, 1 Nov 1997 10:27:52 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA00599 for ; Sat, 1 Nov 1997 10:27:49 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id LAA01916; Sat, 1 Nov 1997 11:27:47 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id LAA29865; Sat, 1 Nov 1997 11:27:46 -0700 (MST) Date: Sat, 1 Nov 1997 11:27:46 -0700 (MST) Message-Id: <199711011827.LAA29865@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: mobile@freebsd.org, jdp@polstra.com Subject: Suspend failure error handling X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As John noted earlier, if suspend fails (due to promiscous cards or whatever) the system is hosed up. Try this patch, which was much simpler to implement than I anticipated, and also hopefully works. Unfortunately, I don't have my laptop here, so I can't test it personally, but it's pretty basic. This patch should be applicable to both -current and -stable, since the code in both is pretty similar (I think???). # cd sys/i386/apm # patch < email # cd /sys/compile/KERNE # make && make install Nate ---------- Index: apm.c =================================================================== RCS file: /home/CVS/src/sys/i386/apm/apm.c,v retrieving revision 1.49 diff -b -u -r1.49 apm.c --- apm.c 1996/09/07 17:41:22 1.49 +++ apm.c 1997/11/01 18:24:16 @@ -397,13 +397,13 @@ { struct apm_softc *sc = &apm_softc; - if (!sc) - return; - - if (sc->initialized) { + if (sc && sc->initialized) { apm_execute_hook(hook[APM_HOOK_SUSPEND]); - apm_suspend_system(sc); + if (apm_suspend_system(sc) == 0) apm_processevent(sc); + else + /* Failed, resume everything */ + apm_execute_hook(hook[APM_HOOK_RESUME]); } } @@ -412,12 +412,8 @@ { struct apm_softc *sc = &apm_softc; - if (!sc) - return; - - if (sc->initialized) { + if (sc && sc->initialized) apm_execute_hook(hook[APM_HOOK_RESUME]); - } } From owner-freebsd-mobile Sat Nov 1 15:19:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA13556 for mobile-outgoing; Sat, 1 Nov 1997 15:19:49 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from gvr.gvr.org (root@gvr.gvr.org [194.151.74.97]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA13551 for ; Sat, 1 Nov 1997 15:19:42 -0800 (PST) (envelope-from guido@gvr.org) Received: (from guido@localhost) by gvr.gvr.org (8.8.6/8.8.5) id AAA00780 for freebsd-mobile@freebsd.org; Sun, 2 Nov 1997 00:19:29 +0100 (MET) From: Guido van Rooij Message-Id: <199711012319.AAA00780@gvr.gvr.org> Subject: problems after PAO -> 2.2.5 stable To: freebsd-mobile@freebsd.org Date: Sun, 2 Nov 1997 00:19:29 +0100 (MET) 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 X-Loop: FreeBSD.org Precedence: bulk I've ben hapily using a Nokia modem card for GSM phones on the PAO release. I just upgraded to 2.2.5-stable and cannot get it to work. pccardd says it is unable to allocate a driver for it. What also happens is that when I insert this card into slot 1, the 3Com etherlinkIII card in slot 0 no longer works. This prohibits using ppp over the modem card and at the same time being connected via the network card to anoter network. My security officer would call this a feature, but I'm les happy :-() >From my kernel config file: device sio0 at isa? port "IO_COM1" tty irq 4 vector siointr device sio1 at isa? port "IO_COM2" tty irq 3 vector siointr >From pccard.conf: # Nokia GSM card "Nokia Mobile Phones" "DTP-2 ver II" config 0x20 "sio1" 3 0x2f8 insert echo Nokia Modem inserted remove echo Nokia Modem removed >From dumpcis: Tuple #1, code = 0x1 (Common memory descriptor), length = 3 000: 00 00 ff Common memory device information: Device number 1, type No device, WPS = OFF Speed = No speed, Memory block size = 512b, 1 units Tuple #2, code = 0x17 (Attribute memory descriptor), length = 3 000: 61 00 ff Attribute memory device information: Device number 1, type SRAM, WPS = OFF Speed = 250nS, Memory block size = 512b, 1 units Tuple #3, code = 0x15 (Version 1 info), length = 38 000: 04 01 4e 6f 6b 69 61 20 4d 6f 62 69 6c 65 20 50 010: 68 6f 6e 65 73 00 44 54 50 2d 32 20 76 65 72 20 020: 49 49 00 00 00 ff Version = 4.1, Manuf = [Nokia Mobile Phones],card vers = [DTP-2 ver II] Addit. info = [],[] Tuple #4, code = 0x20 (Manufacturer ID), length = 4 000: 24 01 00 01 PCMCIA ID = 0x124, OEM ID = 0x100 Tuple #5, code = 0x21 (Functional ID), length = 2 000: 02 01 Serial port/modem - POST initialize Tuple #6, code = 0x22 (Functional EXT), length = 4 000: 00 02 0f 7c Serial interface extension: 16550 UART, Parity - Space,Mark,Odd,Even, Tuple #7, code = 0x22 (Functional EXT), length = 9 000: 01 1f ff 00 10 00 00 10 00 Modem interface capabilities: Tuple #8, code = 0x22 (Functional EXT), length = 12 000: 02 06 00 26 04 00 01 37 07 00 00 b5 Data modem services available: Tuple #9, code = 0x22 (Functional EXT), length = 8 000: 13 06 00 07 00 ea 00 b5 Tuple #10, code = 0x22 (Functional EXT), length = 8 000: 23 06 00 07 00 ea 00 b5 Tuple #11, code = 0x1a (Configuration map), length = 5 000: 01 24 00 40 07 Reg len = 2, config register addr = 0x4000, last config = 0x24 Registers: XXX----- Tuple #12, code = 0x1b (Configuration entry), length = 18 000: e0 41 99 7f 55 c5 4b d5 19 4d 5d 6d 34 23 30 bc 010: 86 20 Config index = 0x20(default) Interface byte = 0x41 (I/O) +RDY/-BSY active Vcc pwr: Nominal operating supply voltage: 5 x 1V Minimum operating supply voltage: 4 x 1V, ext = 0x4b Maximum operating supply voltage: 5 x 1V, ext = 0x19 Continuous supply current: 4.5 x 10mA Max current average over 1 second: 5.5 x 10mA Max current average over 10 ms: 7 x 10mA Power down supply current: 3 x 1mA Card decodes 3 address lines, 8 Bit I/O only IRQ modes: Level IRQ level = 3 Max twin cards = 0 Misc attr: (Read-only) (Power down supported) Tuple #13, code = 0x1b (Configuration entry), length = 8 000: 21 18 a3 60 f8 03 07 04 Config index = 0x21 Card decodes 3 address lines, 8 Bit I/O only I/O address # 1: block start = 0x3f8 block length = 0x8 IRQ modes: IRQ level = 4 Tuple #14, code = 0x1b (Configuration entry), length = 8 000: 22 18 a3 60 f8 02 07 03 Config index = 0x22 Card decodes 3 address lines, 8 Bit I/O only I/O address # 1: block start = 0x2f8 block length = 0x8 IRQ modes: IRQ level = 3 Tuple #15, code = 0x1b (Configuration entry), length = 8 000: 23 18 a3 60 e8 03 07 04 Config index = 0x23 Card decodes 3 address lines, 8 Bit I/O only I/O address # 1: block start = 0x3e8 block length = 0x8 IRQ modes: IRQ level = 4 Tuple #16, code = 0x1b (Configuration entry), length = 8 000: 24 18 a3 60 e8 02 07 03 Config index = 0x24 Card decodes 3 address lines, 8 Bit I/O only I/O address # 1: block start = 0x2e8 block length = 0x8 IRQ modes: IRQ level = 3 Tuple #17, code = 0x14 (No link), length = 0 Tuple #18, code = 0xff (Terminator), length = 0 -Guido From owner-freebsd-mobile Sat Nov 1 15:32:45 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA14124 for mobile-outgoing; Sat, 1 Nov 1997 15:32:45 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from gvr.gvr.org (root@gvr.gvr.org [194.151.74.97]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA14111 for ; Sat, 1 Nov 1997 15:32:37 -0800 (PST) (envelope-from guido@gvr.org) Received: (from guido@localhost) by gvr.gvr.org (8.8.6/8.8.5) id AAA01014 for freebsd-mobile@freebsd.org; Sun, 2 Nov 1997 00:32:34 +0100 (MET) From: Guido van Rooij Message-Id: <199711012332.AAA01014@gvr.gvr.org> Subject: card removal problems To: freebsd-mobile@freebsd.org Date: Sun, 2 Nov 1997 00:32:34 +0100 (MET) 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 X-Loop: FreeBSD.org Precedence: bulk Just like with the PAO release I experience problems when removing a card from a slot. Sometimes this results in a total lockup of the system, while it keeps beeping. With the PAO release, the solution was to fist cut power from the card and then remove it. This was done via the power subcommand of pccardc. Wouldn;t it be wise to introduce that subcommand? Or am I the only one experiencing problems when removing cards? -Guido From owner-freebsd-mobile Sat Nov 1 16:13:33 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA16259 for mobile-outgoing; Sat, 1 Nov 1997 16:13:33 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from sag.space.lockheed.com (sag.space.lockheed.com [192.68.162.134]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id QAA16254 for ; Sat, 1 Nov 1997 16:13:25 -0800 (PST) (envelope-from handy@sag.space.lockheed.com) Received: from localhost by sag.space.lockheed.com; (5.65v3.2/1.1.8.2/21Nov95-0423PM) id AA03711; Sat, 1 Nov 1997 16:12:39 -0800 Date: Sat, 1 Nov 1997 16:12:39 -0800 (PST) From: "Brian N. Handy" To: Guido van Rooij Cc: freebsd-mobile@FreeBSD.ORG Subject: Re: card removal problems In-Reply-To: <199711012332.AAA01014@gvr.gvr.org> Message-Id: X-Files: The truth is out there Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-mobile@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, 2 Nov 1997, Guido van Rooij wrote: >Just like with the PAO release I experience problems when removing a card from >a slot. Sometimes this results in a total lockup of the system, while >it keeps beeping. When I first tried Nate's new patches, it worked great. When I put my 3C589D on the network, it would wedge in this same manner -- usually beeping steadily until I powered the TP560 down. So I agree that there are still problems out there... I just cvsupped the -stable tree, I was running a rogue version of NateBSD just prior to his mega-pccard commit. I've also grabbed the latest pccard patch that came across -mobile, I haven't had a chance to test it with my ethernet card. I may run into the office tonight and give it a go and see what happens. Not that this answers anything, just another data point.... Brian From owner-freebsd-mobile Sat Nov 1 18:09:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA21508 for mobile-outgoing; Sat, 1 Nov 1997 18:09:06 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA21503 for ; Sat, 1 Nov 1997 18:09:02 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id TAA04382; Sat, 1 Nov 1997 19:08:55 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id TAA00926; Sat, 1 Nov 1997 19:08:54 -0700 (MST) Date: Sat, 1 Nov 1997 19:08:54 -0700 (MST) Message-Id: <199711020208.TAA00926@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Guido van Rooij Cc: freebsd-mobile@freebsd.org Subject: Re: problems after PAO -> 2.2.5 stable In-Reply-To: <199711012319.AAA00780@gvr.gvr.org> References: <199711012319.AAA00780@gvr.gvr.org> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk [ I'm not sure why, but you have *REALLY* long lines you're using, which are made mostly of just white-space tagged on the end what is giving my mailer fits. ] > I've ben hapily using a Nokia modem card for GSM phones on the PAO > release. I just upgraded to 2.2.5-stable and cannot get it to > work. pccardd says it is unable to allocate a driver for it. > What also happens is that when I insert this card into slot 1, > the 3Com etherlinkIII card in slot 0 no longer works. This is strange. What does the entry for /etc/pccard.conf look like for the ethernet card? > >From my kernel config file: > > device sio0 at isa? port "IO_COM1" tty irq 4 vector siointr > device sio1 at isa? port "IO_COM2" tty irq 3 vector siointr > > >From pccard.conf: > # Nokia GSM > card "Nokia Mobile Phones" "DTP-2 ver II" > config 0x20 "sio1" 3 0x2f8 What the heck is this 0x2f8 stuff at the end of your config line? Is it a PAO extension? Anyway, if you read the email I sent to the list, you need to pick the entry that corresponds to "sio1/0x2f8", which is not index 0x20, but index 0x22 > Tuple #14, code = 0x1b (Configuration entry), length = 8 > 000: 22 18 a3 60 f8 02 07 03 > Config index = 0x22 > Card decodes 3 address lines, 8 Bit I/O only > I/O address # 1: block start = 0x2f8 block length = 0x8 > IRQ modes: > IRQ level = 3 Unfortunately, it looks like it only supports IRQ 3 as well. So: card "Nokia Mobile Phones" "DTP-2 ver II" config 0x22 "sio1" 3 Should work. Nate From owner-freebsd-mobile Sat Nov 1 18:11:41 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA21647 for mobile-outgoing; Sat, 1 Nov 1997 18:11:41 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA21641 for ; Sat, 1 Nov 1997 18:11:35 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id TAA04390; Sat, 1 Nov 1997 19:11:33 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id TAA00945; Sat, 1 Nov 1997 19:11:32 -0700 (MST) Date: Sat, 1 Nov 1997 19:11:32 -0700 (MST) Message-Id: <199711020211.TAA00945@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Guido van Rooij Cc: freebsd-mobile@freebsd.org Subject: Re: card removal problems In-Reply-To: <199711012332.AAA01014@gvr.gvr.org> References: <199711012332.AAA01014@gvr.gvr.org> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Just like with the PAO release I experience problems when removing a > card from a slot. Sometimes this results in a total lockup of the > system, while it keeps beeping. There is a race where it's possible that the driver in in use when you remove it that is un-avoidable. But, this seems to happen pretty rarely. > With the PAO release, the solution was to fist cut power from the card and > then remove it. This was done via the power subcommand of pccardc. > Wouldn;t it be wise to introduce that subcommand? Or am I the only > one experiencing problems when removing cards? I'd like to introduct as few things *as necessary* to the release, but if it's necessary then we should add it. Too many 'fixes' that went into PAO tree that masked the real problem, so before we add the power let's try and figure out what the problem is. Nate From owner-freebsd-mobile Sat Nov 1 18:15:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA21855 for mobile-outgoing; Sat, 1 Nov 1997 18:15:44 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA21840 for ; Sat, 1 Nov 1997 18:15:27 -0800 (PST) (envelope-from nate@rocky.mt.sri.com) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id TAA04418; Sat, 1 Nov 1997 19:15:12 -0700 (MST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id TAA00954; Sat, 1 Nov 1997 19:15:11 -0700 (MST) Date: Sat, 1 Nov 1997 19:15:11 -0700 (MST) Message-Id: <199711020215.TAA00954@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "Brian N. Handy" Cc: Guido van Rooij , freebsd-mobile@freebsd.org Subject: Re: card removal problems In-Reply-To: References: <199711012332.AAA01014@gvr.gvr.org> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > When I put my > 3C589D on the network, it would wedge in this same manner -- usually > beeping steadily until I powered the TP560 down. So I agree that there > are still problems out there... Some of these 'problems' are hard to get around, since interrupts are still happening when the the card is pulled, so the kernel doesn't know that the hardware doesn't exist. This causes lockups in Win95 as well as many other OS's as well, although it happens *rarely* on my box even when on the network. I may be 'disabling' in the wrong order which makes the race condition easier to find, so I'd like to find out where it's dying/hanging if possible. Nate From owner-freebsd-mobile Sat Nov 1 23:39:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA06007 for mobile-outgoing; Sat, 1 Nov 1997 23:39:03 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id XAA06002 for ; Sat, 1 Nov 1997 23:39:01 -0800 (PST) (envelope-from imp@village.org) Received: from harmony [10.0.0.6] by rover.village.org with esmtp (Exim 1.71 #1) id 0xRucZ-0006rt-00; Sun, 2 Nov 1997 00:38:55 -0700 Received: from harmony.village.org (localhost [127.0.0.1]) by harmony.village.org (8.8.7/8.8.3) with ESMTP id AAA04963 for ; Sun, 2 Nov 1997 00:38:13 -0700 (MST) Message-Id: <199711020738.AAA04963@harmony.village.org> To: mobile@freebsd.org Subject: Question... Date: Sun, 02 Nov 1997 00:38:13 -0700 From: Warner Losh Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk i just tried to get my libretto booted under freebsd. the pao stuff didn't seem to work for me :-(. i'll try to get a good bug report. however, that's not what I'm writing about. has anybody managed to get a pccard floppy working under freebsd? Warner