From owner-freebsd-mobile Sun Jul 18 0:53:46 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from mail5.svr.pol.co.uk (mail5.svr.pol.co.uk [195.92.193.20]) by hub.freebsd.org (Postfix) with ESMTP id 0F10F14BE0; Sun, 18 Jul 1999 00:53:37 -0700 (PDT) (envelope-from s.mitchell@computer.org) Received: from modem-60.dextroamphetam.dialup.pol.co.uk ([62.136.62.188] helo=valis.goatsucker.org) by mail5.svr.pol.co.uk with esmtp (Exim 2.12 #1) id 115llK-00011t-00; Sun, 18 Jul 1999 08:53:31 +0100 Received: (from scott@localhost) by valis.goatsucker.org (8.8.8/8.8.7) id XAA00348; Sat, 17 Jul 1999 23:54:07 +0100 (BST) (envelope-from scott) Message-ID: <19990717235407.55307@goatsucker.org> Date: Sat, 17 Jul 1999 23:54:07 +0100 From: Scott Mitchell To: Warner Losh Cc: obrien@NUXI.com, ade@lovett.com, phk@freebsd.org, freebsd-xircom@lovett.com, mobile@freebsd.org Subject: Re: Reading CIS from kernel? References: <19990714185101.09845@goatsucker.org> <19990713182203.A68393@nuxi.com> <19990710162730.60563@goatsucker.org> <19990713182203.A68393@nuxi.com> <199907140652.AAA53151@harmony.village.org> <19990714185101.09845@goatsucker.org> <199907142219.QAA58852@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: <199907142219.QAA58852@harmony.village.org>; from Warner Losh on Wed, Jul 14, 1999 at 04:19:39PM -0600 X-Operating-System: FreeBSD 2.2.6-RELEASE i386 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Jul 14, 1999 at 04:19:39PM -0600, Warner Losh wrote: > Can I get your comments on the following interface? > > int pccard_map_cis(int slot) > > Maps the slot's cis into memory. You must call the before any of the > following. It returns 0 on success, or an error from > /usr/include/sys/errno.h (most likely EBUSY if there are no memory > windows available). I assume this means 'maps a bunch of attribute memory' rather than just the CIS. In the Xircom cards, for instance, there are a few clusters of writeable config registers plus the CIS all scattered around the first few KB of attribute space. We need to be able to get at all of that. > int pccard_unmap_cis(int slot) > > Unmaps the CIS. This frees any resource used by the slot to map its > CIS. It returns 0 on success, and an errno value if not. > > vaddr_t pccard_cis_addr(int slot) > > Return the virtual address of the CIS. The CIS must be mapped before > call this function. Drivers may read/write this memory. Reading this > memory will get the CIS entries. Drivers are responsible for > interpreting the CIS. Writing to CIS locations generally is used to > configure the card and does not change the CIS stored on the card. If > the card is not mapped, then 0 will be returned. It is not valid to > access memory returned by this call after a call to > pccard_unmap_cis. > > Future interfaces may ease the burdon on driver writers, but this > interface will be supported for a while. > > Does this fill your needs? The only thing I'd add right now would be something to 'get me the next tuple with id X', maybe vaddr_t pccard_cis_next_tuple(int slot, int id, vaddr_t start) where start is the address of the tuple to start searching from. I guess you could also use id == -1 as a wildcard to step through all the tuples. Pretty much every driver would need something like this, it'd be nice if they didn't all have to reinvent it. How will the map function deal with the multiple chains of tuples that some cards can have (perhaps split between attribute and common memory)? I've never actually seen this myself, but I assume it must be used by some cards. ISTR multifunction cards can have branches in their tuple chains too. Ugh. Which would require imposing more structure on the CIS than just a pointer to some mapped memory. But, that's just another layer on top of the basic mapping and could easily be added later. For my needs though, the interface you've presented is fine. Many thanks! Cheers, Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels London, England | 0x54B171B9 | don't get sucked into jet engines" s.mitchell@computer.org | 0xAA775B8B | -- Anon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Sun Jul 18 18:58:42 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from TYO203.gate.nec.co.jp (TYO203.gate.nec.co.jp [202.32.8.211]) by hub.freebsd.org (Postfix) with ESMTP id D034A14A09 for ; Sun, 18 Jul 1999 18:58:34 -0700 (PDT) (envelope-from mihara@prd.fc.nec.co.jp) Received: from mailsv.nec.co.jp ([192.168.1.90]) by TYO203.gate.nec.co.jp (8.9.3/3.7W99062811) with ESMTP id KAA11828 for ; Mon, 19 Jul 1999 10:58:29 +0900 (JST) Received: from ayrton.prd.fc.nec.co.jp (ayrton.prd.fc.nec.co.jp [10.32.194.1]) by mailsv.nec.co.jp (8.9.3/3.7W-MAILSV-NEC) with ESMTP id KAA03294 for ; Mon, 19 Jul 1999 10:58:28 +0900 (JST) Received: from mosra.prd.fc.nec.co.jp (mosra.prd.fc.nec.co.jp [10.32.195.150]) by ayrton.prd.fc.nec.co.jp (8.8.8/3.6W-98052009) with ESMTP id KAA16988 for ; Mon, 19 Jul 1999 10:58:07 +0900 (JST) Date: Mon, 19 Jul 1999 10:58:07 +0900 Message-ID: <14226.34351.40295.87915G@mosra.prd.fc.nec.co.jp> From: Osamu MIHARA To: mobile@freebsd.org Subject: 3COM Megahertz 10/100 LAN+56K Modem (3CCFEM556BI) User-Agent: Wanderlust/1.0.3 (Notorious) SEMI/1.13.4 (Terai) FLIM/1.12.7 (=?ISO-8859-4?Q?Y=FEzaki?=) MULE XEmacs/21.2 (beta17) (beta17) (Chiyoda) (i386-unknown-freebsd3.2) Organization: NEC Corporation, Tokyo Japan MIME-Version: 1.0 (generated by SEMI 1.13.4 - "Terai") Content-Type: multipart/mixed; boundary="Multipart_Mon_Jul_19_10:58:07_1999-1" Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --Multipart_Mon_Jul_19_10:58:07_1999-1 Content-Type: text/plain; charset=US-ASCII Hi everyone, I have tried to make 3COM Megahertz 10/100 LAN+56K Modem (3CCFEM556BI) (LAN side) work with FreeBSD 3.2 with PAO3, and succeed in it. Here I attach a patch for ep driver and an entry for /etc/pccard.conf. You need to add an pccard.conf entry, apply this patch in /sys/i386/isa, rebuild kernel and reboot the system. Of course, you need PAO3 system prior to make this patch. This patch just changes ep driver to support ONLY 3CCFEM556BI, and as a result, other devices supported by original ep driver may not work. (Is anyone inform me how to add new device driver?) I got a lot of information of this card from Linux 3c574 driver. It changes I/O port addresses and activate MII interface. I'm using this driver on my ThinkPad 235 for several weeks and have no problem. Please inform me your result if you try this patch. -- Osamu MIHARA // NEC Printers Division --Multipart_Mon_Jul_19_10:58:07_1999-1 Content-Type: application/octet-stream Content-Disposition: attachment; filename="pccard.conf.entry" Content-Transfer-Encoding: 7bit # 3Com Megahertz 10/100 LAN+56K Modem # as ethernet card "3Com" "Megahertz 3CCFEM556BI" config default "ep0" any insert logger -s 3com Megahertz 10/100 LAN+56K Modem inserted insert /etc/pccard_ether $device remove logger -s 3com Megahertz 10/100 LAN+56K Modem removed remove /etc/pccard_ether_remove $device --Multipart_Mon_Jul_19_10:58:07_1999-1 Content-Type: application/octet-stream; type=patch Content-Disposition: attachment; filename="if_ep.patch" Content-Transfer-Encoding: 7bit --- if_ep.c Wed Jun 9 15:52:52 1999 +++ if_ep.c Thu Jul 15 10:07:38 1999 @@ -198,8 +198,9 @@ epb->prod_id = get_e(sc, EEPROM_PROD_ID); /* 3C589's product id? */ - if (epb->prod_id != 0x9058) { + if (epb->prod_id != 0x6055) { printf("ep%d: failed to come ready.\n", devi->pd_unit); + printf("product id is %x\n", epb->prod_id); return (ENXIO); } @@ -241,6 +242,19 @@ outw(BASE + EP_W0_RESOURCE_CFG, (sc->epb->res_cfg & 0x0fff) | 0x3000); outw(BASE + EP_W0_PRODUCT_ID, sc->epb->prod_id); + + /* experimental code + * turn on the MII tranceiver + */ + GO_WINDOW(3); + outw(BASE + EP_W3_OPTIONS, 0x8040); + DELAY(1000); + outw(BASE + EP_W3_OPTIONS, 0xc040); + outw(BASE + EP_COMMAND, RX_RESET); + outw(BASE + EP_COMMAND, TX_RESET); + while (inw(BASE + EP_STATUS) & S_COMMAND_IN_PROGRESS); + DELAY(1000); + outw(BASE + EP_W3_OPTIONS, 0x8040); ep_attach(sc); --- if_epreg.h Sat Apr 18 07:36:35 1998 +++ if_epreg.h Thu Jun 17 12:52:20 1999 @@ -130,9 +130,9 @@ * Commands to read/write EEPROM trough EEPROM command register (Window 0, * Offset 0xa) */ -#define EEPROM_CMD_RD 0x0080 /* Read: Address required (5 bits) */ -#define EEPROM_CMD_WR 0x0040 /* Write: Address required (5 bits) */ -#define EEPROM_CMD_ERASE 0x00c0 /* Erase: Address required (5 bits) */ +#define EEPROM_CMD_RD 0x0200 /* Read: Address required (5 bits) */ +#define EEPROM_CMD_WR 0x0100 /* Write: Address required (5 bits) */ +#define EEPROM_CMD_ERASE 0x0300 /* Erase: Address required (5 bits) */ #define EEPROM_CMD_EWEN 0x0030 /* Erase/Write Enable: No data required */ #define EEPROM_BUSY (1<<15) @@ -194,15 +194,15 @@ * Window 1 registers. Operating Set. */ /* Write */ -#define EP_W1_TX_PIO_WR_2 0x02 -#define EP_W1_TX_PIO_WR_1 0x00 +#define EP_W1_TX_PIO_WR_2 0x12 +#define EP_W1_TX_PIO_WR_1 0x10 /* Read */ #define EP_W1_FREE_TX 0x0c -#define EP_W1_TX_STATUS 0x0b /* byte */ -#define EP_W1_TIMER 0x0a /* byte */ -#define EP_W1_RX_STATUS 0x08 -#define EP_W1_RX_PIO_RD_2 0x02 -#define EP_W1_RX_PIO_RD_1 0x00 +#define EP_W1_TX_STATUS 0x1b /* byte */ +#define EP_W1_TIMER 0x1a /* byte */ +#define EP_W1_RX_STATUS 0x18 +#define EP_W1_RX_PIO_RD_2 0x12 +#define EP_W1_RX_PIO_RD_1 0x10 /* * Window 2 registers. Station Address Setup/Read @@ -219,6 +219,7 @@ * Window 3 registers. FIFO Management. */ /* Read */ +#define EP_W3_OPTIONS 0x08 #define EP_W3_FREE_TX 0x0c #define EP_W3_FREE_RX 0x0a --Multipart_Mon_Jul_19_10:58:07_1999-1-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Sun Jul 18 19:39:49 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with ESMTP id 6E3D615042 for ; Sun, 18 Jul 1999 19:39:40 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta6-ntc_mailserver1.03) id LAA07855; Mon, 19 Jul 1999 11:37:26 +0900 (JST) Date: Mon, 19 Jul 1999 11:37:26 +0900 (JST) Message-Id: <199907190237.LAA07855@afs.ntc.mita.keio.ac.jp> To: mihara@prd.fc.nec.co.jp Cc: mobile@freebsd.org, hosokawa@itc.keio.ac.jp Subject: Re: 3COM Megahertz 10/100 LAN+56K Modem (3CCFEM556BI) In-Reply-To: Your message of "Mon, 19 Jul 1999 10:58:07 JST". <14226.34351.40295.87915G@mosra.prd.fc.nec.co.jp> From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article <14226.34351.40295.87915G@mosra.prd.fc.nec.co.jp> mihara@prd.fc.nec.co.jp writes: >> I have tried to make 3COM Megahertz 10/100 LAN+56K Modem (3CCFEM556BI) >> (LAN side) work with FreeBSD 3.2 with PAO3, and succeed in it. Here Wow! >> This patch just changes ep driver to support ONLY 3CCFEM556BI, and >> as a result, other devices supported by original ep driver may not >> work. (Is anyone inform me how to add new device driver?) I'll read it later, but I think it can be merged into if_ep instead of adding a new driver. >> I got a lot of information of this card from Linux 3c574 driver. It >> changes I/O port addresses and activate MII interface. I'm using >> this driver on my ThinkPad 235 for several weeks and have no problem. I'll port it to -current (I have 574TX). -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Sun Jul 18 20:42:13 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from mail.cybcon.com (mail.cybcon.com [216.190.188.5]) by hub.freebsd.org (Postfix) with ESMTP id A64861506E; Sun, 18 Jul 1999 20:42:10 -0700 (PDT) (envelope-from wwoods@cybcon.com) Received: from william (usr1-30.cybcon.com [205.147.75.31]) by mail.cybcon.com (8.9.0/8.9.0) with SMTP id UAA17922; Sun, 18 Jul 1999 20:40:40 -0700 (PDT) From: "William Woods" To: "FreeBSD Questions" Cc: "Freebsd Mobile" Subject: XManager for a laptop....... Date: Sun, 18 Jul 1999 20:40:49 -0700 Message-ID: <000401bed198$7e3577a0$1f4b93cd@william> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I am currently using DE (from the ports) for my laptop Xwindows manager. I have herd some good things about gnome though, and am debating using it. Now, there are a few things to consider here first... 1) Disk space, I have only a 1 gig HD, which uses more, Gnome or KDE ? 2) memory usage. which uses more KDE or Gnome (basic installs) Thanks..... William To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Sun Jul 18 23:34:20 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from djms.dj.kit.ac.jp (djms.dj.kit.ac.jp [133.16.40.11]) by hub.freebsd.org (Postfix) with ESMTP id 5BEAB14E36 for ; Sun, 18 Jul 1999 23:34:11 -0700 (PDT) (envelope-from zhaoy@si.dj.kit.ac.jp) Received: from si.dj.kit.ac.jp (gemini [133.16.32.150]) by djms.dj.kit.ac.jp (8.9.1a/3.7W) with ESMTP id PAA17539 for ; Mon, 19 Jul 1999 15:33:17 +0900 (JST) Received: from gemini (localhost [127.0.0.1]) by si.dj.kit.ac.jp (8.9.1a/3.7W98122421) with SMTP id PAA05655 for ; Mon, 19 Jul 1999 15:35:07 +0900 (JST) Message-ID: <3792C71B.6D9D@si.dj.kit.ac.jp> Date: Mon, 19 Jul 1999 15:35:07 +0900 From: Zhao Yong X-Mailer: Mozilla 3.01 [ja_euc] (X11; I; SunOS 5.5 sun4u) MIME-Version: 1.0 To: freebsd-mobile@freebsd.org Subject: Can Laneed LD/100CB card be supported? Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have Thinkpad i series 1476, and the network card is elcom Laneed LD/100CB card. I install freeBSD-release 3.2 and PAO3-19990605 version. When i insert and remove this card, it can be recognize by pccardd. But CIS is null. So I use pccardc dumpcis to chech the CIS. It return following message Tuple=#1 Offset=0xff(termintor) length=0 Then I use pccardc enabler ed0 -m 2000 d0000 16 -i 3e0 -i 3, it still does not work. Laneed LD/100CD is list in supported card. Please give me some advise to install network with this card. Thank you +--------------------------------------------------+ mail from zhaoyong in kyoto, japan +--------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Mon Jul 19 4:50:12 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from copland.udel.edu (copland.udel.edu [128.175.13.92]) by hub.freebsd.org (Postfix) with ESMTP id B189B15316 for ; Mon, 19 Jul 1999 04:49:59 -0700 (PDT) (envelope-from earnoth@UDel.Edu) Received: from host75-185.student.udel.edu (host75-185.student.udel.edu [128.175.75.185]) by copland.udel.edu (8.9.3/8.9.3) with ESMTP id HAA28593 for ; Mon, 19 Jul 1999 07:50:34 -0400 (EDT) Date: Mon, 19 Jul 1999 07:56:27 -0400 (EDT) From: "Eric I. Arnoth" X-Sender: earnoth@host75-185.student.udel.edu To: freebsd-mobile@freebsd.org Subject: Toshiba Satellite 4010CDS PCCard modem Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm attempting to work my way through the configuration of FreeBSD ppp for my modem. I've done this on other machines, laptops and desktops alike, but am having difficulty with this one. This is the first PCCard modem I've tried to configure. I got pccardd to recognize the card, it uses config 0x21 "sio1" 11, and reports Jul 18 19:02:50 london /kernel: sio1: type 16550A on bootup. However, when I attempt to dial, I get a "chat script error". I suspect this may be because I have the wrong initialization string, or the wrong /dev/cuaa. Could someone else with a Toshiba Satellite and the PCCard they distribute with that laptop please help me out? Below is what I've got right now, minus personal info: default: set device /dev/cuaa1 set speed 115200 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK \\dATDT\\TTIMEOUT 40 CONNECT" provider: set phone "123456789" set timeout 300 set ifaddr 128.0.0.1/0 128.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR set authname me set authkey mypass To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Mon Jul 19 12:24:34 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from verdi.nethelp.no (verdi.nethelp.no [158.36.41.162]) by hub.freebsd.org (Postfix) with SMTP id 4FC7D14ED1 for ; Mon, 19 Jul 1999 12:24:27 -0700 (PDT) (envelope-from sthaug@nethelp.no) Received: (qmail 90127 invoked by uid 1001); 19 Jul 1999 19:22:16 +0000 (GMT) To: freebsd-mobile@freebsd.org Subject: Anybody used a laptop connected to a GSM phone? From: sthaug@nethelp.no X-Mailer: Mew version 1.05+ on Emacs 19.34.2 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Date: Mon, 19 Jul 1999 21:22:16 +0200 Message-ID: <90125.932412136@verdi.nethelp.no> Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Anybody used a laptop connected to a GSM phone with FreeBSD (with or without PAO)? If so, what kind of modem card did you use? Steinar Haug, Nethelp consulting, sthaug@nethelp.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Mon Jul 19 12:50:46 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from xylan.com (postal.xylan.com [208.8.0.248]) by hub.freebsd.org (Postfix) with ESMTP id 9A8A415250 for ; Mon, 19 Jul 1999 12:50:43 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from mailhub.xylan.com by xylan.com (8.8.7/SMI-SVR4 (xylan-mgw 2.2 [OUT])) id MAA09656; Mon, 19 Jul 1999 12:48:23 -0700 (PDT) Received: from omni.xylan.com by mailhub.xylan.com (SMI-8.6/SMI-SVR4 (mailhub 2.1 [HUB])) id MAA26534; Mon, 19 Jul 1999 12:48:11 -0700 Received: from softweyr.com (dyn2.utah.xylan.com) by omni.xylan.com (4.1/SMI-4.1 (xylan engr [SPOOL])) id AA22737; Mon, 19 Jul 99 12:48:17 PDT Message-Id: <37938101.2319FD30@softweyr.com> Date: Mon, 19 Jul 1999 13:48:17 -0600 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 3.1-RELEASE i386) X-Accept-Language: en Mime-Version: 1.0 To: Nik Clayton Cc: mobile@freebsd.org Subject: VAIO laptops Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Nik, I was just poking through the FreeBSD-mobile archives looking for information about NeoMagic sound drivers and found your query about VAIO laptops. Since it was dated 15-Jul, on 4 days ago, I thought I'd chime in. I have a PCG-F160 I bought about 3 months ago running 3.1-R. I've been meaning to update it to at least 3.2-R, but just haven't gotten a "round tuit" yet. I'm very pleased with this machine; it has exceeded my expectations in every way but one: the #$@@%$#ing NeoMagic sound chip, and their pedantic insistence on not releasing their documentation to developers. The internal 56K modem doesn't work, but that doesn't bother me (much). I rarely need a modem, and when I do, I still have a 33.6 kicking around somewhere. I bought a D-Link DE550 PCMCIA ethernet card, which is working well but I hate the giant 10Base-T/10Base-2 dongle, and a no-name AmbiCom ethernet card with a 6' cord with an RJ-45 connector on the end that works beautifully unless I plug it into a Xylan switch. ;^) The screen is incredible, the keyboard much better than I expected, and the trackpad works so well I haven't even bought a mouse for this machine yet. I planned on buying a Logitech USB mouse for it when I bought it and haven't really felt the need. I've been using this machine for email (about 600 messages/day), writing columns for Daemon News, and writing software for FreeBSD (well, not much, but some, OK?) as well as a few clients. I'm really bowled over by how good these portables have gotten. I download a bunch of email and take it to lunch with me a couple times a week, and wrote both of my last two Daemons Advocate columns at Souper! Salad! across the street from my office. Combined with a 140-watt power inverter plugged into either the 185 Amp-Hour 12v battery on my boat or into my wife's LandCruiser, this has turned into the ultimate escape vehicle. Whereever I want to go, I don't have to worry about leaving work behind, I can just take it with me, and work when I *want* to. But: (here's the catch). Sony cancelled the F100 series, and has just introduced the F200 series. I guess they really want to push the DVD drive, because the F160 has been replaced by the F270, which seems identical in specs except for the DVD drive replacing the CD-ROM. Oh, and it costs more. I'm told the F100 line was dumped because the price of the LCD screens was going up and Sony didn't want to hike the prices, so they made a couple of minor changes and renamed the line. Best of luck. Call or write if you have any questions. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://softweyr.com/ wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Mon Jul 19 13:47:37 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from freesbee.t.dk (freesbee.t.dk [193.162.159.97]) by hub.freebsd.org (Postfix) with SMTP id 7ADD815146 for ; Mon, 19 Jul 1999 13:47:33 -0700 (PDT) (envelope-from ncbp@freesbee.t.dk) Received: (qmail 840 invoked by uid 1002); 19 Jul 1999 20:45:50 -0000 Date: Mon, 19 Jul 1999 22:45:49 +0200 From: "Niels Chr. Bank-Pedersen" To: freebsd-mobile@freebsd.org Subject: Re: Anybody used a laptop connected to a GSM phone? Message-ID: <19990719224549.A342@bank-pedersen.dk> Mail-Followup-To: freebsd-mobile@freebsd.org References: <90125.932412136@verdi.nethelp.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/0.96.2i In-Reply-To: <90125.932412136@verdi.nethelp.no>; from sthaug@nethelp.no on Mon, Jul 19, 1999 at 09:22:16PM +0200 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, Jul 19, 1999 at 09:22:16PM +0200, sthaug@nethelp.no wrote: > Anybody used a laptop connected to a GSM phone with FreeBSD (with or > without PAO)? If so, what kind of modem card did you use? I have been using an Ericsson GSM with the Ericsson DC23 Card for a while without problems (doesn't work right now because of the missing sio support in -current pccard/pcic). As long as you get a "real" pcmcia GSM-modem then you should be ok -- most modern implementations use a software based solution that wont work with FreeBSD, though. I am about to buy a new Dual Band, and I've been looking at the Nokia 6150; so I am investigating wether some of the thirdparty pcmcia vendors have products that would run with FreeBSD: (http://www.nokia.se/products/mobile/6150/access/main.htm#Data) - anybody tried the products from PSION? > Steinar Haug, Nethelp consulting, sthaug@nethelp.no /Niels Chr. -- Niels Christian Bank-Pedersen, NCB1-RIPE. Network Manager, Tele Danmark NET, IP-section. "Hey, are any of you guys out there actually *using* RFC 1149?" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Mon Jul 19 23:25:37 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from gratis.grondar.za (gratis.grondar.za [196.7.18.65]) by hub.freebsd.org (Postfix) with ESMTP id 9B6F014BD7 for ; Mon, 19 Jul 1999 23:25:26 -0700 (PDT) (envelope-from mark@grondar.za) Received: from grondar.za (localhost [127.0.0.1]) by gratis.grondar.za (8.9.3/8.9.3) with ESMTP id IAA37329; Tue, 20 Jul 1999 08:24:04 +0200 (SAST) (envelope-from mark@grondar.za) Message-Id: <199907200624.IAA37329@gratis.grondar.za> To: sthaug@nethelp.no Cc: freebsd-mobile@FreeBSD.ORG Subject: Re: Anybody used a laptop connected to a GSM phone? Date: Tue, 20 Jul 1999 08:24:03 +0200 From: Mark Murray Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Anybody used a laptop connected to a GSM phone with FreeBSD (with or > without PAO)? If so, what kind of modem card did you use? I have not actually used this, but I am told that 3Com have a cable (not yet released) for the 3CCE589E* "Cellular modem". I spoke to a 3Com tech-support person in June (I was in the USA at the time), and they said the NOK6 cable was the right one for my Nokia 5110. This cable is _still_ not on their web page. M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Mon Jul 19 23:46:58 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from hunter.Sisis.de (hunter.Sisis.de [193.31.11.194]) by hub.freebsd.org (Postfix) with SMTP id CDBF314D1C for ; Mon, 19 Jul 1999 23:46:47 -0700 (PDT) (envelope-from Matthias.Apitz@Sisis.de) Received: (from mail@localhost) by hunter.Sisis.de (8.6.9/8.6.12) id IAA21132 for ; Tue, 20 Jul 1999 08:50:08 +0200 Received: from hermes.sisis.de(193.31.10.38) by hunter.Sisis.de via smap (V1.3) id sma021128; Tue Jul 20 08:50:06 1999 Received: from almare.sisis.de (torwart.Sisis.de [193.31.10.94]) by hermes.sisis.de (8.8.8/8.8.8) with ESMTP id IAA14649 for ; Tue, 20 Jul 1999 08:39:11 +0200 (CEST) (envelope-from guru@almare.sisis.de) Received: (from guru@localhost) by mail.sisis.de (8.8.8/8.8.8) id IAA04061; Tue, 20 Jul 1999 08:44:25 +0200 (CEST) (envelope-from guru) Message-ID: <19990720084425.27331@sisis.de> Date: Tue, 20 Jul 1999 08:44:25 +0200 From: Matthias Apitz To: freebsd-mobile@freebsd.org Subject: FreeBSD and GSM phones Reply-To: guru@Sisis.de Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=82I3+IH0IqGh5yIs X-Mailer: Mutt 0.84e Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii (I lost the original e-mail in this thread and so I don't have the real Subject: line. Sorry for that.) Attached below is a short test report regarding the Bosch GSM908 GSM phone attached directly to the COM1 port of my notebook running FreeBSD 2.2.6. I'm in contact with other vendors too to get test devices. It seems that the Siemens S25 also has a build-in modem and behaves like a "normal" AT driven modem. matthias -- firm: matthias.apitz@sisis.de [voc:+49 89 61308 351, fax: +49 89 61308 188] priv: guru@thias.muc.de WWW: http://www.sisis.de/~guru/ Give me UNIX or give me a typewriter. --82I3+IH0IqGh5yIs Content-Type: text/plain Content-Disposition: attachment; filename="bosch908.txt" $Id: bosch908.txt,v 1.2 1999/05/17 10:33:12 guru Exp $ Test report GSM Mobile Bosch GSM908 with FreeBSD UNIX matthias.apitz@sisis.de 1. introduction the GSM Mobile Bosch GSM908 provides GSM 07.07 compatible functionality for data communication direct via RS-232, e.g. without special software (which is in most of the cases only available for Windows); this makes this device of special interests for users running an UNIX system on their notebook; I did some small testing of such a device together with my notebook running FreeBSD 2.2.6 UNIX and using Kermit; thanks to the company Bosch here in Germany for providing a device for this test; 2. general technical notes a general test of the mobile itself was not in the scope of this test, only data communication facilities were tested; Bosch provides a "data suite" for Windows containing the RS-232 cable, a CD-ROM and some paper-ware; I don't know if one can get the cable without the rest of the "data suite" (the CD-ROM and the software on it is not needed for UNIX systems); among of other things the CD-ROM contains a 19 pages PDF file describing all supported AT-commands (a subset of GSM 07.07); the RS-232 cable has a normal 9pin connector for the computer side and one special plug-in connector for the GSM mobile; this plug is not stable attached to the mobile because there is no real plug-in for it in the mobile, only two thin brackets for holding the cable and mobile together; this connection is very unreliable and I lost it two times during the test having both devices (mobile and notebook) on the table by just picking up the mobile to change some function in the menu -- so this can cause problems in real life; the cover for the keypad looks thin and unstable too but this isn't a problem because the cover has no real function and the mobile will work anyway even if the cover breaks off; 3. data communication tests -- establishing a call I used C-Kermit for this with the following RS-232 settings 9600 bps 8N1 (8 bit, no parity, 1 stop bit) RTS/CTS hardware handshake the mobile behaves like a "normal" modem device: C-Kermit> set speed 9600 /dev/cuaa0, 9600 bps C-Kermit> set log C-Kermit> connect Connecting to /dev/cuaa0, speed 9600. at OK atd089613xxxxx <... pressed HANGUP-button on mobile ...> NO CARRIER attached below is a list of the tested AT-commands and their result codes; establishing a normal asynchronous data session to another UNIX host is simple like this: C-Kermit> connect Connecting to /dev/cuaa0, speed 9600. at&f OK at+fclass=? 0,1 OK at+fclass? 0 OK atd089613xxxxxx (xxxxx for hiding the number here) CONNECT 9600 The system's name is kant. Sisis GmbH Welcome to USL UNIX System V Release 4.2 Version 1 This host is located in Munich, Germany. login: .... characteristic of this connection; - the terminal session is fast enough for character based applications or normal command line tasks; - a file transfer with Kermit protocol (file type binary, pkg length 1024 byte) works out of the box with an average transfer rate of nearly 500 bytes per second; - the session parameters for the remote modem (ZyXEL 1496 EGP) are May 08 17:58:46.28: [ 153]: SESSION BEGIN 00008231 4989613xxxxx May 08 17:58:46.29: [ 153]: <-- [4:ATA\r] May 08 17:59:15.13: [ 153]: --> [29:CONNECT 38400/V.32 9600T/V42 ] May 08 17:59:15.13: [ 153]: ANSWER: DATA CONNECTION e.g. V.32 with V.42 correction; both sides need a handshake time of nearly 30 seconds but connected reliable (no failure in three test calls); 4. data communication tests -- answering a call my GSM provider gave me different numbers for different call types to my mobile SIM (one for voice, data and fax); all calls to these three different numbers were delivered to the mobile which was ringing; I tried to switch the mobile in the menu and set "detect all incoming calls as AUTO" and also "detect all incoming calls as DATA" but was unable to get the result message "RING" via RS-232, even an ATA-command did not picked up an incoming call; so there was no way to test this feature and also no further hints in the paper-ware of the Windows data suite; 5. Appendix tested AT-commands an the result codes (subset of the supported commands): at OK at+cgmi BOSCH OK at+cgmm GSM 908 OK at+cgmm=? OK at+cgmr 1.2.0 OK at+cgsn 4500826714428000 OK at+cscs=? ERROR at+cimi ERROR AT+CIMI ERROR at+cmux=? ERROR at+cmux? ERROR ati OK at+csta=? ERROR ath OK at+cbst=? +CBST: (0,4,5,6,7,12,68,70,71),(0),(0,1,2,3) OK at+cbst? +CBST: 0,0,1 OK at+cr=? ERROR at+crc=? ERROR at+crc? ERROR at+fclass=? 0,1 OK at+cmod=? ERROR at+fclass=0 OK at&f OK at+fclass=? 0,1 OK at+fclass? 0 OK atd089613xxxxxx CONNECT 9600 ata OK ata OK ath OK --82I3+IH0IqGh5yIs-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 1:51:53 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id 7A0F414BD3 for ; Tue, 20 Jul 1999 01:51:42 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by relay.nuxi.com (8.9.3/8.9.3) id BAA30462; Tue, 20 Jul 1999 01:50:15 -0700 (PDT) (envelope-from obrien) Message-ID: <19990720015015.C30371@nuxi.com> Date: Tue, 20 Jul 1999 01:50:15 -0700 From: "David O'Brien" To: Warner Losh , mobile@FreeBSD.ORG Subject: Re: pccardd patches for review Reply-To: obrien@FreeBSD.ORG References: <199907140636.AAA53085@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <199907140636.AAA53085@harmony.village.org>; from Warner Losh on Wed, Jul 14, 1999 at 12:36:41AM -0600 X-Operating-System: FreeBSD 3.2-STABLE Organization: The NUXI BSD group X-PGP-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Keyid: 34F9F9D5 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I've spent some time hacking pccardd to not have that frustrating > delay in it, One thing we really need is a way to make pccardd to not daemonize (regardless of the delay) until it has initialized any Ethernet cards. Otherwise Jordan's new DHCP support in sysinstall will not work well on laptops. Right now laptops have to be special cased since the Ethernet devices isn't registered until well after rc.network is run. -- -- David (obrien@NUXI.com -or- obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 1:59: 0 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id C37DB14CB1; Tue, 20 Jul 1999 01:58:44 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id SAA15557; Tue, 20 Jul 1999 18:28:07 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id SAA85164; Tue, 20 Jul 1999 18:28:02 +0930 (CST) Date: Tue, 20 Jul 1999 18:28:02 +0930 From: Greg Lehey To: "David O'Brien" Cc: Warner Losh , mobile@FreeBSD.ORG Subject: Re: pccardd patches for review Message-ID: <19990720182802.E84734@freebie.lemis.com> References: <199907140636.AAA53085@harmony.village.org> <19990720015015.C30371@nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <19990720015015.C30371@nuxi.com>; from David O'Brien on Tue, Jul 20, 1999 at 01:50:15AM -0700 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tuesday, 20 July 1999 at 1:50:15 -0700, David O'Brien wrote: >> I've spent some time hacking pccardd to not have that frustrating >> delay in it, > > One thing we really need is a way to make pccardd to not daemonize > (regardless of the delay) until it has initialized any Ethernet cards. > Otherwise Jordan's new DHCP support in sysinstall will not work well on > laptops. > > Right now laptops have to be special cased since the Ethernet devices > isn't registered until well after rc.network is run. That's not the only problem with the current situation. xntpd, rwhod and nfs mounts also fail in strange ways. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 2:18: 0 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from firewall2.lehman.com (firewall.Lehman.COM [192.147.65.99]) by hub.freebsd.org (Postfix) with ESMTP id DAC4714BE4 for ; Tue, 20 Jul 1999 02:17:51 -0700 (PDT) (envelope-from nclayton@lehman.com) Received: from relay3.messaging-svcs5.lehman.com by firewall2.lehman.com (8.8.6/8.8.6) id FAA16637; Tue, 20 Jul 1999 05:16:49 -0400 (EDT) Message-ID: <19990720101609.F2353@lehman.com> Date: Tue, 20 Jul 1999 10:16:09 +0100 From: Nik Clayton To: Wes Peters Cc: mobile@freebsd.org Subject: Re: VAIO laptops References: <37938101.2319FD30@softweyr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <37938101.2319FD30@softweyr.com>; from Wes Peters on Mon, Jul 19, 1999 at 01:48:17PM -0600 Organization: Lehman Brothers Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Wes, Thanks for responding. On Mon, Jul 19, 1999 at 01:48:17PM -0600, Wes Peters wrote: > The internal 56K modem doesn't work, but that doesn't bother me (much). I > rarely need a modem, and when I do, I still have a 33.6 kicking around > somewhere. Is it actually a built in modem? The F160 has been discontinued, and stores are trying to sell me the F270 instead. This comes bundled with a modem, but it's a PCMCIA card, rather than built in. > I bought a D-Link DE550 PCMCIA ethernet card, which is working > well but I hate the giant 10Base-T/10Base-2 dongle, and a no-name AmbiCom > ethernet card with a 6' cord with an RJ-45 connector on the end that works > beautifully unless I plug it into a Xylan switch. ;^) Ah. I'll be doing the same, largely because the D-Link is on the supported PAO list. Still, it probably won't bother me too much. > The screen is incredible, the keyboard much better than I expected, and the > trackpad works so well I haven't even bought a mouse for this machine yet. > I planned on buying a Logitech USB mouse for it when I bought it and haven't > really felt the need. That's excellent news. The reason I decided on a Sony rather than a Toshiba is because of the keyboard and the quality of the trackpad. I intend to do most of the writing for "Teach Yourself FreeBSD In 21 Days"[1] on this laptop, and the keyboard does need to be top notch. > I've been using this machine for email (about 600 messages/day), writing > columns for Daemon News, and writing software for FreeBSD (well, not much, > but some, OK?) as well as a few clients. I'm really bowled over by how > good these portables have gotten. I download a bunch of email and take it > to lunch with me a couple times a week, and wrote both of my last two > Daemons Advocate columns at Souper! Salad! across the street from my office. Great :-) > But: (here's the catch). Sony cancelled the F100 series, and has just > introduced the F200 series. I guess they really want to push the DVD drive, > because the F160 has been replaced by the F270, which seems identical in > specs except for the DVD drive replacing the CD-ROM. Oh, and it costs more. > I'm told the F100 line was dumped because the price of the LCD screens was > going up and Sony didn't want to hike the prices, so they made a couple of > minor changes and renamed the line. Yes, that's the impression I've got as well. The other (big) difference seems to be battery life. Most of the people I've spoken to suggest that the F160 gets 3.5/7 hours of use (depending on whether you have one or two battery packs installed). The F270 gets 2/4. That should still be about enough, but it's pushing it a bit. Thanks for the response, N [1] OK, the contract isn't signed yet, but it should be in the next month or so. Myself, Sue Blake, and Chris Coleman -- but keep it under your hat until it's properly announced. . . -- --+==[ Systems Administrator, Year 2000 Test Lab, Lehman Brothers, Inc. ]==+-- --+==[ 1 Broadgate, London, EC2M 7HA 0171-601-0011 x5514 ]==+-- --+==[ Year 2000 Testing: It's about time. . . ]==+-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 2:32:14 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id C779614BE4; Tue, 20 Jul 1999 02:32:08 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id DAA43375; Tue, 20 Jul 1999 03:32:06 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id DAA84934; Tue, 20 Jul 1999 03:32:05 -0600 (MDT) Message-Id: <199907200932.DAA84934@harmony.village.org> To: obrien@FreeBSD.ORG Subject: Re: pccardd patches for review Cc: mobile@FreeBSD.ORG In-reply-to: Your message of "Tue, 20 Jul 1999 01:50:15 PDT." <19990720015015.C30371@nuxi.com> References: <19990720015015.C30371@nuxi.com> <199907140636.AAA53085@harmony.village.org> Date: Tue, 20 Jul 1999 03:32:05 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <19990720015015.C30371@nuxi.com> "David O'Brien" writes: : One thing we really need is a way to make pccardd to not daemonize : (regardless of the delay) until it has initialized any Ethernet cards. : Otherwise Jordan's new DHCP support in sysinstall will not work well on : laptops. I thought that -z did exactly that... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 2:49:19 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from avalon.whirlygig.co.uk (avalon.whirlygig.co.uk [195.152.5.19]) by hub.freebsd.org (Postfix) with ESMTP id BF2D814E90 for ; Tue, 20 Jul 1999 02:49:12 -0700 (PDT) (envelope-from prt@prt.org) Received: from prt (helo=localhost) by avalon.whirlygig.co.uk with local-esmtp (Exim 2.10 #1) id 116WTn-000HSO-00; Tue, 20 Jul 1999 10:46:31 +0100 Date: Tue, 20 Jul 1999 10:46:31 +0100 (BST) From: Paul Thornton X-Sender: prt@avalon.whirlygig.co.uk To: Wes Peters Cc: Nik Clayton , mobile@freebsd.org Subject: Re: VAIO laptops In-Reply-To: <37938101.2319FD30@softweyr.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 19 Jul 1999, Wes Peters wrote: > I have a PCG-F160 I bought about 3 months ago running 3.1-R. To follow up - I have been having just as much joy with an F190, which _does_ have the DVD drive :) The DVD works fine, BTW. The only problem that I have had is that I can't seem to make USB devices work (and, of course, the sound and internal modem but I can live without that!) -- Paul -= Paul Thornton, 2 Durnford Way, Cambridge, CB4 2DP, UK. +44 1223 575384 =- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 6:32:37 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with ESMTP id C8A21151AB for ; Tue, 20 Jul 1999 06:32:28 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta6-ntc_mailserver1.03) id WAA22907; Tue, 20 Jul 1999 22:31:50 +0900 (JST) Date: Tue, 20 Jul 1999 22:31:50 +0900 (JST) Message-Id: <199907201331.WAA22907@afs.ntc.mita.keio.ac.jp> To: mobile@FreeBSD.org Cc: hosokawa@itc.keio.ac.jp Subject: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Following patch (derived from PAO3) adds two keywords ("cardio" and "cardmem") to pccard.conf. "cardio" and "cardmem" specifies I/O address and memory address regardles of CIS tupple (so-called "builtin point enabler"). These keywords are needed for broken CIS cards and hardwired driver code, etc. This patch is needed by flash ATA support (Mr. Losh is working on kernel side of flash ATA support). If there's no objection, I'll commit it soon. -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University Index: cardd.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/pccard/pccardd/cardd.c,v retrieving revision 1.34 diff -u -r1.34 cardd.c --- cardd.c 1999/02/05 16:00:17 1.34 +++ cardd.c 1999/07/20 13:14:38 @@ -179,6 +179,9 @@ sp->config = 0; /* release io */ bit_nset(io_avail, sp->io.addr, sp->io.addr + sp->io.size - 1); + /* release irq */ + if (sp->irq) + pool_irq[sp->irq] = 1; } /* @@ -383,15 +386,47 @@ sp->mem.addr, sp->mem.size, sp->mem.cardaddr); #endif } + if (sp->config->card_mem) { + struct card_mem *cm; + struct allocblk *m, *n; + for (m = sp->mem.next; m;) { + n = m->next; + free(m); + m = n; + } + sp->mem.next = 0; + sp->mem.addr = sp->config->card_mem->addr; + sp->mem.cardaddr = sp->config->card_mem->cardaddr; + sp->mem.size = sp->config->card_mem->size; + sp->mem.flags = sp->config->card_mem->flags; +#ifdef DEBUG + printf("addr=%x cardaddr=%x size=%x\n", + sp->mem.addr, sp->mem.cardaddr, sp->mem.size); +#endif + n = &sp->mem; + for (cm = sp->config->card_mem->next; cm; cm = cm->next) { + m = xmalloc(sizeof(*m)); + m->addr = cm->addr; + m->cardaddr = cm->cardaddr; + m->size = cm->size; + m->flags = cm->flags; + m->next = 0; + n->next = m; + n = m; + } + } /* Now look at I/O. */ bzero(&sp->io, sizeof(sp->io)); - if (cisconf->iospace || (defconf && defconf->iospace)) { + if (cisconf->iospace || (defconf && defconf->iospace) + || sp->config->card_io) { struct cis_config *cp; + struct card_io *cdio; cp = cisconf; if (!cisconf->iospace) cp = defconf; + cdio = sp->config->card_io; /* * If # of I/O lines decoded == 10, then card does its * own decoding. @@ -400,16 +435,20 @@ * If no address (but a length) is available, allocate * from the pool. */ - if (cp->io) { + if (cdio) { + sp->io.addr = cdio->addr; + sp->io.size = cdio->size; + } + else if (cp->io) { sp->io.addr = cp->io->addr; sp->io.size = cp->io->size; - } else + } else { /* * No I/O block, assume the address lines * decode gives the size. */ sp->io.size = 1 << cp->io_addr; - + } if (sp->io.addr == 0) { int i = bit_fns(io_avail, IOPORTS, sp->io.size); @@ -419,6 +458,7 @@ } bit_nclear(io_avail, sp->io.addr, sp->io.addr + sp->io.size - 1); + sp->flags |= IO_ASSIGNED; /* Set up the size to take into account the decode lines. */ sp->io.cardaddr = cp->io_addr; @@ -441,6 +481,7 @@ #endif } sp->irq = sp->config->irq; + sp->flags |= IRQ_ASSIGNED; return (0); } @@ -495,20 +536,31 @@ lseek(sp->fd, offs + 2, SEEK_SET); write(sp->fd, &c, sizeof(c)); } - mem.window = 0; - if (sp->mem.addr) { + if (sp->flags & MEM_ASSIGNED) { mem.window = 0; - mem.flags = sp->mem.flags | MDF_ACTIVE | MDF_16BITS; - mem.start = (caddr_t) sp->mem.addr; - mem.card = sp->mem.cardaddr; - mem.size = sp->mem.size; - if (ioctl(sp->fd, PIOCSMEM, &mem)) { - logerr("ioctl (PIOCSMEM)"); - return (0); + + /* + * This allows cardmem directives in /etc/pccard.conf + * with addr = 0x0 for cards which can tolerate arbitrary + * mappings + */ + if (!sp->mem.addr) + sp->mem.addr = alloc_memory(sp->mem.size); + + if (sp->mem.addr) { + mem.window = 0; + mem.flags = sp->mem.flags | MDF_ACTIVE | MDF_16BITS; + mem.start = (caddr_t) sp->mem.addr; + mem.card = sp->mem.cardaddr; + mem.size = sp->mem.size; + if (ioctl(sp->fd, PIOCSMEM, &mem)) { + logerr("ioctl (PIOCSMEM)"); + return (0); + } } } io.window = 0; - if (sp->io.size) { + if (sp->flags & IO_ASSIGNED) { io.flags = sp->io.flags; io.start = sp->io.addr; io.size = sp->io.size; @@ -534,14 +586,14 @@ drv.unit = drvp->unit; drv.irqmask = 1 << sp->irq; drv.flags = 0x80; - if (sp->mem.size) { + if (sp->flags & MEM_ASSIGNED) { drv.mem = sp->mem.addr; drv.memsize = sp->mem.size; } else { drv.mem = 0; drv.memsize = 0; } - if (sp->io.size) + if (sp->flags & IO_ASSIGNED) drv.iobase = sp->io.addr; else drv.iobase = 0; Index: cardd.h =================================================================== RCS file: /home/ncvs/src/usr.sbin/pccard/pccardd/cardd.h,v retrieving revision 1.12 diff -u -r1.12 cardd.h --- cardd.h 1998/03/09 05:18:55 1.12 +++ cardd.h 1999/07/20 13:14:40 @@ -44,10 +44,26 @@ int macro; /* Contains macros */ }; +struct card_io { + struct card_io *next; + int addr; + int size; +}; + +struct card_mem { + struct card_mem *next; + int addr; + int cardaddr; + int size; + int flags; +}; + struct card_config { struct card_config *next; unsigned char index; struct driver *driver; + struct card_io *card_io; + struct card_mem *card_mem; int irq; int flags; char inuse; @@ -109,9 +125,20 @@ struct allocblk io; /* I/O block spec */ struct allocblk mem; /* Memory block spec */ int irq; /* Irq value */ + int flags; /* Resource assignment flags */ }; + +/* + * Slot resource assignment/configuration flags + */ +#define IO_ASSIGNED 0x1 +#define MEM_ASSIGNED 0x2 +#define IRQ_ASSIGNED 0x4 +#define EADDR_CONFIGED 0x8 +#define WL_CONFIGED 0x10 +#define AFLAGS (IO_ASSIGNED | MEM_ASSIGNED | IRQ_ASSIGNED) +#define CFLAGS (EADDR_CONFIGED | WL_CONFIGED) -EXTERN struct allocblk *pool_ioblks; /* I/O blocks in the pool */ EXTERN struct allocblk *pool_mem; /* Memory in the pool */ EXTERN int pool_irq[16]; /* IRQ allocations */ EXTERN struct driver *drivers; /* List of drivers */ Index: file.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/pccard/pccardd/file.c,v retrieving revision 1.18 diff -u -r1.18 file.c --- file.c 1999/07/15 03:04:31 1.18 +++ file.c 1999/07/20 13:14:43 @@ -52,6 +52,9 @@ "ether", /* 9 */ "insert", /* 10 */ "remove", /* 11 */ + "function", /* 12 (currrently, not works) */ + "cardio", /* 13 */ + "cardmem", /* 14 */ 0 }; @@ -66,6 +69,9 @@ #define KWD_ETHER 9 #define KWD_INSERT 10 #define KWD_REMOVE 11 +#define KWD_FUNCTION 12 +#define KWD_CARDIO 13 +#define KWD_CARDMEM 14 struct flags { char *name; @@ -82,6 +88,8 @@ static struct allocblk *ioblk_tok(int); static struct allocblk *memblk_tok(int); static struct driver *new_driver(char *); +static struct card_io *cardio_tok(void); +static struct card_mem *cardmem_tok(void); static void addcmd(struct cmd **); static void parse_card(void); @@ -183,7 +191,10 @@ struct card *cp; int i; struct card_config *confp, *lastp; + struct card_io *card_io, **ci; + struct card_mem *card_mem, **cm; + confp = 0; man = newstr(next_tok()); vers = newstr(next_tok()); cp = xmalloc(sizeof(*cp)); @@ -256,6 +267,38 @@ /* remove */ addcmd(&cp->remove); break; + case KWD_CARDIO: + /* cardio */ + card_io = cardio_tok(); + if (!card_io) { + error("Illegal cardio arguments"); + break; + } + if (!confp) { + error("No valid config index for cardio"); + free(card_io); + break; + } + for (ci = &confp->card_io; *ci; ci = &((*ci)->next)) + ; + *ci = card_io; + break; + case KWD_CARDMEM: + /* cardmem */ + card_mem = cardmem_tok(); + if (!card_mem) { + error("Illegal cardmem arguments"); + break; + } + if (!confp) { + error("No valid config index for cardmem"); + free(card_mem); + break; + } + for (cm = &confp->card_mem; *cm; cm = &((*cm)->next)) + ; + *cm = card_mem; + break; default: pusht = 1; return; @@ -378,6 +421,70 @@ error("illegal IRQ value"); return (-1); } + +/* + * Cardio token + * cardio {|auto} + */ +static struct card_io * +cardio_tok(void) +{ + struct card_io * card_io = xmalloc(sizeof(*card_io)); + if (strcmp("auto", next_tok()) == 0) + card_io->addr = -1; /* wildcard */ + else { + pusht = 1; + card_io->addr = num_tok(); + if (card_io->addr == -1) + goto err; + } + card_io->size = num_tok(); + if (card_io->size == -1) + goto err; +#ifdef DEBUG + if (verbose) + printf("cardio:addr=%x size=%x\n", + card_io->addr, card_io->size); +#endif + return card_io; +err: /* parse error */ + free(card_io); + return NULL; +} + + +/* + * Cardmem token + * cardmem [] + */ +static struct card_mem * +cardmem_tok(void) +{ + struct card_mem * card_mem = xmalloc(sizeof(*card_mem)); + if ((card_mem->addr = num_tok()) == -1) + goto err; + if ((card_mem->cardaddr = num_tok()) == -1) + goto err; + if ((card_mem->size = num_tok()) == -1) + goto err; + /* scan mem flags; use defaults if none exist */ + card_mem->flags = num_tok(); + if (card_mem->flags == -1) { + pusht = 1; + card_mem->flags = MDF_ACTIVE | MDF_16BITS; + } +#ifdef DEBUG + if (verbose) + printf("cardmem:addr=%x cardaddr=%x size=%x\n", + card_mem->addr, card_mem->cardaddr, + card_mem->size); +#endif + return card_mem; +err: /* parse error */ + free(card_mem); + return NULL; +} + /* * search the table for a match. -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 7:50:52 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id 9066415318 for ; Tue, 20 Jul 1999 07:50:46 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (iras-1-91.ucdavis.edu [169.237.16.91]) by relay.nuxi.com (8.9.3/8.9.3) with ESMTP id HAA31819; Tue, 20 Jul 1999 07:49:45 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.9.3/8.9.1) id HAA18378; Tue, 20 Jul 1999 07:49:43 -0700 (PDT) (envelope-from obrien) Date: Tue, 20 Jul 1999 07:49:41 -0700 From: "David O'Brien" To: Warner Losh Cc: mobile@FreeBSD.ORG Subject: Re: pccardd patches for review Message-ID: <19990720074941.J1607@dragon.nuxi.com> Reply-To: obrien@NUXI.com References: <19990720015015.C30371@nuxi.com> <199907140636.AAA53085@harmony.village.org> <19990720015015.C30371@nuxi.com> <199907200932.DAA84934@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <199907200932.DAA84934@harmony.village.org>; from Warner Losh on Tue, Jul 20, 1999 at 03:32:05AM -0600 X-Operating-System: FreeBSD 4.0-CURRENT Organization: The NUXI BSD group X-PGP-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Keyid: 34F9F9D5 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > In message <19990720015015.C30371@nuxi.com> "David O'Brien" writes: > : One thing we really need is a way to make pccardd to not daemonize > : (regardless of the delay) until it has initialized any Ethernet cards. > : Otherwise Jordan's new DHCP support in sysinstall will not work well on > : laptops. > > I thought that -z did exactly that... I hoped it did, but it doesn't. It only slightly decreases the delay. -- -- David (obrien@NUXI.com -or- obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 8: 4:23 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with ESMTP id 419CD1530A for ; Tue, 20 Jul 1999 08:04:20 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta6-ntc_mailserver1.03) id AAA23555; Wed, 21 Jul 1999 00:03:29 +0900 (JST) Date: Wed, 21 Jul 1999 00:03:29 +0900 (JST) Message-Id: <199907201503.AAA23555@afs.ntc.mita.keio.ac.jp> To: obrien@NUXI.com Cc: imp@village.org, mobile@FreeBSD.ORG, hosokawa@itc.keio.ac.jp Subject: Re: pccardd patches for review In-Reply-To: Your message of "Tue, 20 Jul 1999 23:49:41 JST". <19990720074941.J1607@dragon.nuxi.com> From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article <19990720074941.J1607@dragon.nuxi.com> obrien@NUXI.com writes: >> > In message <19990720015015.C30371@nuxi.com> "David O'Brien" writes: >> > : One thing we really need is a way to make pccardd to not daemonize >> > : (regardless of the delay) until it has initialized any Ethernet cards. >> > : Otherwise Jordan's new DHCP support in sysinstall will not work well on >> > : laptops. >> > >> > I thought that -z did exactly that... >> >> I hoped it did, but it doesn't. It only slightly decreases the delay. Hmm... -z option sets "delay" variable to 1 and main() of pccardd has if (!dodebug && !delay) if (daemon(0, 0)) die("fork failed"); slots = readslots(); if (slots == 0) die("no PC-CARD slots"); if (delay) if (daemon(0, 0)) die("fork failed"); readslots() reads CIS, allocates driver and execute card_inserted(). Pccardd daemonizes after finishing all these processes. PC-card sysinstall in -current probes ethernet interfaes after this initialization and always found them successfly. Are there any problems in above code? -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 8: 4:23 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with ESMTP id 62B02152F6; Tue, 20 Jul 1999 08:04:18 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta6-ntc_mailserver1.03) id XAA23342; Tue, 20 Jul 1999 23:39:37 +0900 (JST) Date: Tue, 20 Jul 1999 23:39:37 +0900 (JST) Message-Id: <199907201439.XAA23342@afs.ntc.mita.keio.ac.jp> To: imp@village.org Cc: obrien@FreeBSD.ORG, mobile@FreeBSD.ORG, hosokawa@itc.keio.ac.jp Subject: Re: pccardd patches for review In-Reply-To: Your message of "Tue, 20 Jul 1999 18:32:05 JST". <199907200932.DAA84934@harmony.village.org> From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article <199907200932.DAA84934@harmony.village.org> imp@village.org writes: >> In message <19990720015015.C30371@nuxi.com> "David O'Brien" writes: >> : One thing we really need is a way to make pccardd to not daemonize >> : (regardless of the delay) until it has initialized any Ethernet cards. >> : Otherwise Jordan's new DHCP support in sysinstall will not work well on >> : laptops. >> >> I thought that -z did exactly that... And PC-card sysinstall executes pccardd with -z option. -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 8:16:15 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from xylan.com (postal.xylan.com [208.8.0.248]) by hub.freebsd.org (Postfix) with ESMTP id C660F152F9 for ; Tue, 20 Jul 1999 08:16:10 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from mailhub.xylan.com by xylan.com (8.8.7/SMI-SVR4 (xylan-mgw 2.2 [OUT])) id IAA19557; Tue, 20 Jul 1999 08:14:00 -0700 (PDT) Received: from omni.xylan.com by mailhub.xylan.com (SMI-8.6/SMI-SVR4 (mailhub 2.1 [HUB])) id IAA12095; Tue, 20 Jul 1999 08:13:37 -0700 Received: from softweyr.com ([204.68.178.39]) by omni.xylan.com (4.1/SMI-4.1 (xylan engr [SPOOL])) id AA15941; Tue, 20 Jul 99 08:13:37 PDT Message-Id: <37949221.D092257B@softweyr.com> Date: Tue, 20 Jul 1999 09:13:37 -0600 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 3.1-RELEASE i386) X-Accept-Language: en Mime-Version: 1.0 To: Nik Clayton Cc: mobile@freebsd.org Subject: Re: VAIO laptops References: <37938101.2319FD30@softweyr.com> <19990720101609.F2353@lehman.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Nik Clayton wrote: > > Wes, > > Thanks for responding. > > On Mon, Jul 19, 1999 at 01:48:17PM -0600, Wes Peters wrote: > > The internal 56K modem doesn't work, but that doesn't bother me (much). I > > rarely need a modem, and when I do, I still have a 33.6 kicking around > > somewhere. > > Is it actually a built in modem? The F160 has been discontinued, and > stores are trying to sell me the F270 instead. This comes bundled with > a modem, but it's a PCMCIA card, rather than built in. That's great - that one will actually work. ;^) > > I bought a D-Link DE550 PCMCIA ethernet card, which is working > > well but I hate the giant 10Base-T/10Base-2 dongle, and a no-name AmbiCom > > ethernet card with a 6' cord with an RJ-45 connector on the end that works > > beautifully unless I plug it into a Xylan switch. ;^) > > Ah. I'll be doing the same, largely because the D-Link is on the supported > PAO list. Still, it probably won't bother me too much. I got it because it's the only officially supported PCCard ethernet for BeOS. I'm probably going to drop BeOS from my laptop; I need more space for FreeBSD. ;^) > > The screen is incredible, the keyboard much better than I expected, and the > > trackpad works so well I haven't even bought a mouse for this machine yet. > > I planned on buying a Logitech USB mouse for it when I bought it and haven't > > really felt the need. > > That's excellent news. The reason I decided on a Sony rather than a > Toshiba is because of the keyboard and the quality of the trackpad. I > intend to do most of the writing for "Teach Yourself FreeBSD In 21 Days"[1] > on this laptop, and the keyboard does need to be top notch. I'm using mine right now, sitting in the armchair in my bedroom. I drag it from home to work and back 5 days a week. I love this thing! ;^) > > I've been using this machine for email (about 600 messages/day), writing > > columns for Daemon News, and writing software for FreeBSD (well, not much, > > but some, OK?) as well as a few clients. I'm really bowled over by how > > good these portables have gotten. I download a bunch of email and take it > > to lunch with me a couple times a week, and wrote both of my last two > > Daemons Advocate columns at Souper! Salad! across the street from my office. > > Great :-) > > > But: (here's the catch). Sony cancelled the F100 series, and has just > > introduced the F200 series. I guess they really want to push the DVD drive, > > because the F160 has been replaced by the F270, which seems identical in > > specs except for the DVD drive replacing the CD-ROM. Oh, and it costs more. > > I'm told the F100 line was dumped because the price of the LCD screens was > > going up and Sony didn't want to hike the prices, so they made a couple of > > minor changes and renamed the line. > > Yes, that's the impression I've got as well. The other (big) difference > seems to be battery life. Most of the people I've spoken to suggest that > the F160 gets 3.5/7 hours of use (depending on whether you have one or two > battery packs installed). The F270 gets 2/4. That should still be about > enough, but it's pushing it a bit. I only get a little over 2 while running FreeBSD. I have apm turned on, but I'm not willing to allow the system to slow down much. I'd probably get a lot better if I enabled more agressive apm settings, but I haven't taken the time to play with it much yet. Seti@Home sure eats battery life, too. ;^) > [1] OK, the contract isn't signed yet, but it should be in the next month > or so. Myself, Sue Blake, and Chris Coleman -- but keep it under your > hat until it's properly announced. . . I'd already heard about it. Sue is one of my gang of email friends; we proofread each other's columns, along with Grog, long before anyone at DN gets to see them. This gang is a big part of those 600 emails per day. Best of luck. Get a good case, too, it'll save a lot of dents. I have a slim one from Caselogic I bought at the local CompUSA that fits perfectly. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://softweyr.com/ wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 8:18:51 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id D970514F86 for ; Tue, 20 Jul 1999 08:18:43 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id JAA16181; Tue, 20 Jul 1999 09:18:41 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id JAA19388; Tue, 20 Jul 1999 09:18:41 -0600 Date: Tue, 20 Jul 1999 09:18:41 -0600 Message-Id: <199907201518.JAA19388@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) Cc: mobile@FreeBSD.ORG Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-Reply-To: <199907201331.WAA22907@afs.ntc.mita.keio.ac.jp> References: <199907201331.WAA22907@afs.ntc.mita.keio.ac.jp> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Following patch (derived from PAO3) adds two keywords ("cardio" and > "cardmem") to pccard.conf. "cardio" and "cardmem" specifies I/O > address and memory address regardles of CIS tupple (so-called "builtin > point enabler"). These keywords are needed for broken CIS cards and > hardwired driver code, etc. Can you be more specific? When are these used? It has been my experience that too often 'broken cards' are in fact not broken, and the FreeBSD code is broken. Adding workarounds for (potentially) broken code is not a good fix. However, I don't want to discount the possibility of broken cards, or that FreeBSD's current code in incapable of supporting certain cards without these additions. I'd like to know what kind of cards/situations these types of keywords are used for. > This patch is needed by flash ATA support (Mr. Losh is working on > kernel side of flash ATA support). > > If there's no objection, I'll commit it soon. > > -- > HOSOKAWA, Tatsumi > Assistant Manager > Information Technology Center, Keio University > > > > Index: cardd.c > =================================================================== > RCS file: /home/ncvs/src/usr.sbin/pccard/pccardd/cardd.c,v > retrieving revision 1.34 > diff -u -r1.34 cardd.c > --- cardd.c 1999/02/05 16:00:17 1.34 > +++ cardd.c 1999/07/20 13:14:38 > @@ -179,6 +179,9 @@ > sp->config = 0; > /* release io */ > bit_nset(io_avail, sp->io.addr, sp->io.addr + sp->io.size - 1); > + /* release irq */ > + if (sp->irq) > + pool_irq[sp->irq] = 1; > } Yikes, this patch should be done no matter what. Are irq's ever freed in the old code? Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 8:23:20 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 6B70715356 for ; Tue, 20 Jul 1999 08:23:17 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id JAA16222; Tue, 20 Jul 1999 09:21:51 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id JAA19404; Tue, 20 Jul 1999 09:21:49 -0600 Date: Tue, 20 Jul 1999 09:21:49 -0600 Message-Id: <199907201521.JAA19404@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) Cc: obrien@NUXI.com, imp@village.org, mobile@FreeBSD.ORG Subject: Re: pccardd patches for review In-Reply-To: <199907201503.AAA23555@afs.ntc.mita.keio.ac.jp> References: <19990720074941.J1607@dragon.nuxi.com> <199907201503.AAA23555@afs.ntc.mita.keio.ac.jp> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > >> > In message <19990720015015.C30371@nuxi.com> "David O'Brien" writes: > >> > : One thing we really need is a way to make pccardd to not daemonize > >> > : (regardless of the delay) until it has initialized any Ethernet cards. > >> > : Otherwise Jordan's new DHCP support in sysinstall will not work well on > >> > : laptops. > >> > > >> > I thought that -z did exactly that... > >> > >> I hoped it did, but it doesn't. It only slightly decreases the delay. > > Hmm... -z option sets "delay" variable to 1 and main() of pccardd has > > if (!dodebug && !delay) > if (daemon(0, 0)) > die("fork failed"); > slots = readslots(); > if (slots == 0) > die("no PC-CARD slots"); > if (delay) > if (daemon(0, 0)) > die("fork failed"); > > > readslots() reads CIS, allocates driver and execute card_inserted(). > Pccardd daemonizes after finishing all these processes. PC-card > sysinstall in -current probes ethernet interfaes after this > initialization and always found them successfly. > > Are there any problems in above code? This should work. Wasn't this code submitted by one of my co-workers at SRI? If so, it *had* to work right, since the cards had to be setup and working in his environment before /usr was mounted. :) Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 8:24:16 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id B6A5A1530F for ; Tue, 20 Jul 1999 08:24:02 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id JAA43933; Tue, 20 Jul 1999 09:23:58 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id JAA86010; Tue, 20 Jul 1999 09:23:58 -0600 (MDT) Message-Id: <199907201523.JAA86010@harmony.village.org> To: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) Subject: Re: pccardd patches for review Cc: obrien@NUXI.com, mobile@FreeBSD.ORG In-reply-to: Your message of "Wed, 21 Jul 1999 00:03:29 +0900." <199907201503.AAA23555@afs.ntc.mita.keio.ac.jp> References: <199907201503.AAA23555@afs.ntc.mita.keio.ac.jp> Date: Tue, 20 Jul 1999 09:23:58 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907201503.AAA23555@afs.ntc.mita.keio.ac.jp> HOSOKAWA Tatsumi writes: : readslots() reads CIS, allocates driver and execute card_inserted(). : Pccardd daemonizes after finishing all these processes. PC-card : sysinstall in -current probes ethernet interfaes after this : initialization and always found them successfly. : : Are there any problems in above code? That looked good to me. Maybe there is a race? Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 8:28: 6 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 6B9BF14F86 for ; Tue, 20 Jul 1999 08:28:03 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id JAA43943; Tue, 20 Jul 1999 09:25:50 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id JAA86042; Tue, 20 Jul 1999 09:25:50 -0600 (MDT) Message-Id: <199907201525.JAA86042@harmony.village.org> To: Nate Williams Subject: Re: pccardd patches for review Cc: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi), obrien@NUXI.com, mobile@FreeBSD.ORG In-reply-to: Your message of "Tue, 20 Jul 1999 09:21:49 MDT." <199907201521.JAA19404@mt.sri.com> References: <199907201521.JAA19404@mt.sri.com> <19990720074941.J1607@dragon.nuxi.com> <199907201503.AAA23555@afs.ntc.mita.keio.ac.jp> Date: Tue, 20 Jul 1999 09:25:50 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907201521.JAA19404@mt.sri.com> Nate Williams writes: : This should work. Wasn't this code submitted by one of my co-workers at : SRI? If so, it *had* to work right, since the cards had to be setup and : working in his environment before /usr was mounted. :) Is it possible that David is running with one that doesn't have -z so the differences are subjective. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 8:38:29 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id DF14314D10 for ; Tue, 20 Jul 1999 08:38:23 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (iras-1-91.ucdavis.edu [169.237.16.91]) by relay.nuxi.com (8.9.3/8.9.3) with ESMTP id IAA32077; Tue, 20 Jul 1999 08:38:03 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.9.3/8.9.1) id IAA51716; Tue, 20 Jul 1999 08:38:00 -0700 (PDT) (envelope-from obrien) Date: Tue, 20 Jul 1999 08:37:59 -0700 From: "David O'Brien" To: HOSOKAWA Tatsumi , imp@village.org, mobile@FreeBSD.ORG Cc: Nate Williams Subject: Re: pccardd patches for review Message-ID: <19990720083759.L1607@dragon.nuxi.com> Reply-To: obrien@NUXI.com References: <19990720074941.J1607@dragon.nuxi.com> <199907201503.AAA23555@afs.ntc.mita.keio.ac.jp> <199907201521.JAA19404@mt.sri.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <199907201521.JAA19404@mt.sri.com>; from Nate Williams on Tue, Jul 20, 1999 at 09:21:49AM -0600 X-Operating-System: FreeBSD 4.0-CURRENT Organization: The NUXI BSD group X-PGP-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Keyid: 34F9F9D5 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > readslots() reads CIS, allocates driver and execute card_inserted(). > Pccardd daemonizes after finishing all these processes. PC-card > sysinstall in -current probes ethernet interfaes after this > initialization and always found them successfly. Please try it. Maybe I am doing something wrong, but I added printf()'s to pccardd (yes it had case 'z':) in the code, and it was virtually a no op. If you have an uptodate /etc/rc.network, add this to /etc/rc.conf: pccardd_flags="-z" pccard_ifconfig="NO" network_interfaces="lo0 ep0" # assumeing a 3c589 pccard ifconfig_ep0="DHCP" and should find that ep0 is not properly setup because ep0 does not exist when ``/sbin/dhclient ep0'' is run. -- -- David (obrien@NUXI.com -or- obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 8:58: 7 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 946A21532A for ; Tue, 20 Jul 1999 08:57:56 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id JAA44095; Tue, 20 Jul 1999 09:57:02 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id JAA86423; Tue, 20 Jul 1999 09:57:02 -0600 (MDT) Message-Id: <199907201557.JAA86423@harmony.village.org> To: obrien@NUXI.com Subject: Re: pccardd patches for review Cc: HOSOKAWA Tatsumi , mobile@FreeBSD.ORG, Nate Williams In-reply-to: Your message of "Tue, 20 Jul 1999 08:37:59 PDT." <19990720083759.L1607@dragon.nuxi.com> References: <19990720083759.L1607@dragon.nuxi.com> <19990720074941.J1607@dragon.nuxi.com> <199907201503.AAA23555@afs.ntc.mita.keio.ac.jp> <199907201521.JAA19404@mt.sri.com> Date: Tue, 20 Jul 1999 09:57:02 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <19990720083759.L1607@dragon.nuxi.com> "David O'Brien" writes: : If you have an uptodate /etc/rc.network, add this to /etc/rc.conf: : pccardd_flags="-z" : pccard_ifconfig="NO" : network_interfaces="lo0 ep0" # assumeing a 3c589 pccard : ifconfig_ep0="DHCP" : and should find that ep0 is not properly setup because ep0 does not exist : when ``/sbin/dhclient ep0'' is run. I tried this, not with dhclient, but with a fixed IP address and it worked for me... How recent is your pccardd? Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 9:12:43 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id 0840B15336 for ; Tue, 20 Jul 1999 09:12:40 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by relay.nuxi.com (8.9.3/8.9.3) id JAA32245; Tue, 20 Jul 1999 09:12:14 -0700 (PDT) (envelope-from obrien) Message-ID: <19990720091214.A32237@nuxi.com> Date: Tue, 20 Jul 1999 09:12:14 -0700 From: "David O'Brien" To: Warner Losh Cc: HOSOKAWA Tatsumi , mobile@FreeBSD.ORG, Nate Williams Subject: Re: pccardd patches for review Reply-To: obrien@NUXI.com References: <19990720083759.L1607@dragon.nuxi.com> <19990720074941.J1607@dragon.nuxi.com> <199907201503.AAA23555@afs.ntc.mita.keio.ac.jp> <199907201521.JAA19404@mt.sri.com> <19990720083759.L1607@dragon.nuxi.com> <199907201557.JAA86423@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <199907201557.JAA86423@harmony.village.org>; from Warner Losh on Tue, Jul 20, 1999 at 09:57:02AM -0600 X-Operating-System: FreeBSD 3.2-STABLE Organization: The NUXI BSD group X-PGP-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Keyid: 34F9F9D5 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > : pccardd_flags="-z" > : pccard_ifconfig="NO" > : network_interfaces="lo0 ep0" # assumeing a 3c589 pccard > : ifconfig_ep0="DHCP" > : and should find that ep0 is not properly setup because ep0 does not exist > : when ``/sbin/dhclient ep0'' is run. > > I tried this, not with dhclient, but with a fixed IP address and it > worked for me... How recent is your pccardd? When I was playing with this yesterday, 2 hrs old. I'll start from scratch again today and see if isn't my pilot error. -- -- David (obrien@NUXI.com -or- obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 10:23:54 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id DDDEB15348 for ; Tue, 20 Jul 1999 10:23:44 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id LAA44300; Tue, 20 Jul 1999 11:22:51 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id LAA87158; Tue, 20 Jul 1999 11:22:50 -0600 (MDT) Message-Id: <199907201722.LAA87158@harmony.village.org> To: obrien@NUXI.com Subject: Re: pccardd patches for review Cc: HOSOKAWA Tatsumi , mobile@FreeBSD.ORG, Nate Williams In-reply-to: Your message of "Tue, 20 Jul 1999 09:12:14 PDT." <19990720091214.A32237@nuxi.com> References: <19990720091214.A32237@nuxi.com> <19990720083759.L1607@dragon.nuxi.com> <19990720074941.J1607@dragon.nuxi.com> <199907201503.AAA23555@afs.ntc.mita.keio.ac.jp> <199907201521.JAA19404@mt.sri.com> <19990720083759.L1607@dragon.nuxi.com> <199907201557.JAA86423@harmony.village.org> Date: Tue, 20 Jul 1999 11:22:50 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <19990720091214.A32237@nuxi.com> "David O'Brien" writes: : > : pccardd_flags="-z" I had problems with this as well, but discovered that I had a very old rc.pccard installed. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 10:56:47 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id F0529151AB for ; Tue, 20 Jul 1999 10:56:22 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id LAA44387; Tue, 20 Jul 1999 11:54:18 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id LAA87429; Tue, 20 Jul 1999 11:54:18 -0600 (MDT) Message-Id: <199907201754.LAA87429@harmony.village.org> To: Nate Williams Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" Cc: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi), mobile@FreeBSD.ORG In-reply-to: Your message of "Tue, 20 Jul 1999 09:18:41 MDT." <199907201518.JAA19388@mt.sri.com> References: <199907201518.JAA19388@mt.sri.com> <199907201331.WAA22907@afs.ntc.mita.keio.ac.jp> Date: Tue, 20 Jul 1999 11:54:18 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907201518.JAA19388@mt.sri.com> Nate Williams writes: : Can you be more specific? When are these used? It has been my : experience that too often 'broken cards' are in fact not broken, and the : FreeBSD code is broken. Adding workarounds for (potentially) broken : code is not a good fix. Assuming for the moment that pccardd's cis reading is somehow inadequate, I think that this is a good enough fix. Given pccard's timeline, adding a kludge now that is easier than fixing the cis parsing code would be acceptible. I've seen some bad cis flash cards, but they weren't ATA. There are also a few bug fixes in the patch as well... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 11: 4: 7 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 2FED8153AC for ; Tue, 20 Jul 1999 11:04:01 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id MAA44419; Tue, 20 Jul 1999 12:02:45 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id MAA87484; Tue, 20 Jul 1999 12:02:45 -0600 (MDT) Message-Id: <199907201802.MAA87484@harmony.village.org> To: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" Cc: mobile@FreeBSD.ORG In-reply-to: Your message of "Tue, 20 Jul 1999 22:31:50 +0900." <199907201331.WAA22907@afs.ntc.mita.keio.ac.jp> References: <199907201331.WAA22907@afs.ntc.mita.keio.ac.jp> Date: Tue, 20 Jul 1999 12:02:45 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907201331.WAA22907@afs.ntc.mita.keio.ac.jp> HOSOKAWA Tatsumi writes: : Index: cardd.c : =================================================================== : RCS file: /home/ncvs/src/usr.sbin/pccard/pccardd/cardd.c,v : retrieving revision 1.34 : diff -u -r1.34 cardd.c : --- cardd.c 1999/02/05 16:00:17 1.34 : +++ cardd.c 1999/07/20 13:14:38 : @@ -179,6 +179,9 @@ : sp->config = 0; : /* release io */ : bit_nset(io_avail, sp->io.addr, sp->io.addr + sp->io.size - 1); : + /* release irq */ : + if (sp->irq) : + pool_irq[sp->irq] = 1; : } : : /* Ah, this looks good. I'd often suffer from the "your irq was eaten by a grue" problem (that is, IRQs wouldn't always be freed). We do need to make sure that we set the card's I/O port range, as that is about to become important in -current. It looks like this is present in your code, but I didn't follow it closely enough to see if it was being set. struct dev_desc is getting another element (iosize) in order to make the desired sio fixes work... You might also want to modify the manpage to reflect these changes... FWIW, Linux has a generic "use this CIS database instead" mechanism in its pccard system, so there is precident for needing to repair CIS entries.... I know that the Linux YE-DATA floppy driver makes use of this on older floppy drives. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 11:52:33 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 0082C15380 for ; Tue, 20 Jul 1999 11:52:29 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id MAA19028; Tue, 20 Jul 1999 12:52:25 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id MAA20790; Tue, 20 Jul 1999 12:52:24 -0600 Date: Tue, 20 Jul 1999 12:52:24 -0600 Message-Id: <199907201852.MAA20790@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Warner Losh Cc: Nate Williams , hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi), mobile@FreeBSD.ORG Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-Reply-To: <199907201754.LAA87429@harmony.village.org> References: <199907201518.JAA19388@mt.sri.com> <199907201331.WAA22907@afs.ntc.mita.keio.ac.jp> <199907201754.LAA87429@harmony.village.org> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > In message <199907201518.JAA19388@mt.sri.com> Nate Williams writes: > : Can you be more specific? When are these used? It has been my > : experience that too often 'broken cards' are in fact not broken, and the > : FreeBSD code is broken. Adding workarounds for (potentially) broken > : code is not a good fix. > > Assuming for the moment that pccardd's cis reading is somehow > inadequate, I think that this is a good enough fix. Fix for what? What is the fix for? Just adding keywords to fix 'buggy' cards is not a fix, it's (potentially) a hack to workaround bogus code in other parts of the system that might be easily fixed. Many of the 'fixes' in PAO were *easily* fixed with just a bit of time with the 'bad' cards. Making the already difficult to understand code bigger and more complex with fixes for broken existing code is just silly. Now, I'm not saying that this is the case, but in the past this was very often the case, so allow me a bit of conservatism in not allowing every new feature to fix 'broken code'. :) Nate ps. I agree that there are fixes in the patch, but the addition of the keywords are not fixes. In particule, the 'release' of IRQ is a fix, as I pointed out in the original email. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 17:16: 5 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with ESMTP id 3993014C45 for ; Tue, 20 Jul 1999 17:15:58 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta6-ntc_mailserver1.03) id JAA27543; Wed, 21 Jul 1999 09:14:56 +0900 (JST) Date: Wed, 21 Jul 1999 09:14:56 +0900 (JST) Message-Id: <199907210014.JAA27543@afs.ntc.mita.keio.ac.jp> To: nate@mt.sri.com Cc: imp@village.org, mobile@FreeBSD.ORG, hosokawa@itc.keio.ac.jp Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-Reply-To: Your message of "Wed, 21 Jul 1999 03:52:24 JST". <199907201852.MAA20790@mt.sri.com> From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article <199907201852.MAA20790@mt.sri.com> nate@mt.sri.com writes: >> Fix for what? What is the fix for? Just adding keywords to fix 'buggy' >> cards is not a fix, it's (potentially) a hack to workaround bogus code >> in other parts of the system that might be easily fixed. >> >> Many of the 'fixes' in PAO were *easily* fixed with just a bit of time >> with the 'bad' cards. Making the already difficult to understand code >> bigger and more complex with fixes for broken existing code is just >> silly. I don't want to incorporate such "fixes" in PAO into kernel and pccardd itself. This patch can exclude such fix out to /etc/pccard.conf and you can add commment such that "it's broken card and this is a hack for this" as plaintext. I think it would be better than hiding such workaround into kernel and pccardd binary. Most important function of "cardio" is "cardio 0". It's unstrengthen I/O address binding in CIS tupple (that's not needed for DOS compatibility). Maybe this is very useful and easier way in serial cards and Flash ATA cards without adding any new entries to pccard.conf. BTW, I admit that it's required in broken FreeBSD code in some cases. For example, it's required in merging wd.c pccard support because wd.c is tightly bound to traditional I/O address location of IDE interface. I'm trying to rewrite my wd.c patch from "pccard and PCI are spacial cases" to "traditional ISA is one of the cases" before committing it, but if we fix it essentialy, it may be includes fix for "config" system and may affect some user's environment (correct me if I am wrong. I want to fix it essentially if it's not so difficult). -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 17:18: 5 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with ESMTP id 83FEC14C45 for ; Tue, 20 Jul 1999 17:17:57 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta6-ntc_mailserver1.03) id JAA27568; Wed, 21 Jul 1999 09:17:11 +0900 (JST) Date: Wed, 21 Jul 1999 09:17:11 +0900 (JST) Message-Id: <199907210017.JAA27568@afs.ntc.mita.keio.ac.jp> To: hosokawa@itc.keio.ac.jp Cc: nate@mt.sri.com, imp@village.org, mobile@FreeBSD.ORG, hosokawa@itc.keio.ac.jp Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-Reply-To: Your message of "Wed, 21 Jul 1999 09:14:56 JST". <199907210014.JAA27543@afs.ntc.mita.keio.ac.jp> From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org sorry. In article <199907210014.JAA27543@afs.ntc.mita.keio.ac.jp> hosokawa@itc.keio.ac.jp writes: >> Most important function of "cardio" is "cardio 0". It's unstrengthen >> I/O address binding in CIS tupple (that's not needed for DOS ~~~~~~~~~~~~~~~~~~~~~~~~~ That's only needed for DOS compatibility. >> compatibility). Maybe this is very useful and easier way in serial ~~~~~~~~~~~~~~ >> cards and Flash ATA cards without adding any new entries to >> pccard.conf. -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 17:40:19 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id E36FA1508C for ; Tue, 20 Jul 1999 17:40:15 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id SAA23705; Tue, 20 Jul 1999 18:39:06 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id SAA23797; Tue, 20 Jul 1999 18:39:05 -0600 Date: Tue, 20 Jul 1999 18:39:05 -0600 Message-Id: <199907210039.SAA23797@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) Cc: nate@mt.sri.com, imp@village.org, mobile@FreeBSD.ORG Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-Reply-To: <199907210014.JAA27543@afs.ntc.mita.keio.ac.jp> References: <199907201852.MAA20790@mt.sri.com> <199907210014.JAA27543@afs.ntc.mita.keio.ac.jp> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > >> Fix for what? What is the fix for? Just adding keywords to fix 'buggy' > >> cards is not a fix, it's (potentially) a hack to workaround bogus code > >> in other parts of the system that might be easily fixed. ... > /etc/pccard.conf and you can add commment such that "it's broken card > and this is a hack for this" as plaintext. I think it would be better > than hiding such workaround into kernel and pccardd binary. Again, what is it that this patch fixes? What bug and/or feature does this add to FreeBSD? It's really hard to have an opinion on the 'goodness or badness' of a piece of code when there's no description of what the patch does? You've explained the 'functional' change (what the code does), but not the 'feature' change. Can you please explain what this patch does, and why it's necessary or helpful to have it in FreeBSD? Ex: This patch allows FreeBSD to work with older ATA flash cards that have buggy firmware, since FreeBSD does not (currently) allow multiple I/O windows to work. Thanks! Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 17:56:50 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 001C515423 for ; Tue, 20 Jul 1999 17:55:12 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id SAA45424; Tue, 20 Jul 1999 18:52:45 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id SAA89724; Tue, 20 Jul 1999 18:52:45 -0600 (MDT) Message-Id: <199907210052.SAA89724@harmony.village.org> To: Nate Williams Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" Cc: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi), mobile@FreeBSD.ORG In-reply-to: Your message of "Tue, 20 Jul 1999 18:39:05 MDT." <199907210039.SAA23797@mt.sri.com> References: <199907210039.SAA23797@mt.sri.com> <199907201852.MAA20790@mt.sri.com> <199907210014.JAA27543@afs.ntc.mita.keio.ac.jp> Date: Tue, 20 Jul 1999 18:52:45 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907210039.SAA23797@mt.sri.com> Nate Williams writes: : Again, what is it that this patch fixes? What bug and/or feature does : this add to FreeBSD? It's really hard to have an opinion on the : 'goodness or badness' of a piece of code when there's no description of : what the patch does? He's already done that nate in the code that you clipped. What the patch gains us is the ability to work with more pccard and compact flash cards than we'd get without it. It also help us kludge around wd.c's too intemate knowledge of where the ide controller lives. Mr. Hosokawa-san has already stated this explicitly in the mail message that you replied to. How much clearer does he need to be? The patch may not be 100% pure. However, if it works, then it is better than what we have now (which is nothing). Also, longer term there will be no pccardd, so the usual concern about long term maintainability is not present here. If we need to deviate from architectural purity to gain functionality, I'm all for it in this case. Short term there is nothing but upside (eg ata flash card support). Long term there is no downside because the code will be dead in a few months. Given these realities, I don't think it is worth arguing over... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 18: 0:51 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 03BB214D95 for ; Tue, 20 Jul 1999 18:00:47 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id SAA45442; Tue, 20 Jul 1999 18:58:48 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id SAA89778; Tue, 20 Jul 1999 18:58:47 -0600 (MDT) Message-Id: <199907210058.SAA89778@harmony.village.org> To: Nate Williams Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" Cc: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi), mobile@FreeBSD.ORG In-reply-to: Your message of "Tue, 20 Jul 1999 12:52:24 MDT." <199907201852.MAA20790@mt.sri.com> References: <199907201852.MAA20790@mt.sri.com> <199907201518.JAA19388@mt.sri.com> <199907201331.WAA22907@afs.ntc.mita.keio.ac.jp> <199907201754.LAA87429@harmony.village.org> Date: Tue, 20 Jul 1999 18:58:47 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907201852.MAA20790@mt.sri.com> Nate Williams writes: : Fix for what? What is the fix for? Just adding keywords to fix 'buggy' : cards is not a fix, it's (potentially) a hack to workaround bogus code : in other parts of the system that might be easily fixed. That isn't the case this time. The wd.c code needs lots of work to make its knolwedge of i/o addresses of IDE controllers be less pervasive. : Many of the 'fixes' in PAO were *easily* fixed with just a bit of time : with the 'bad' cards. Making the already difficult to understand code : bigger and more complex with fixes for broken existing code is just : silly. That may be true. However, the code lifetime for pccardd is a few months in -current at best, so I don't see the harm. : Now, I'm not saying that this is the case, but in the past this was very : often the case, so allow me a bit of conservatism in not allowing every : new feature to fix 'broken code'. :) I can't control how you think or feel Nate. :-) I don't see the point in being so conservative that we continue to lack functionality that I need for other projects. If pccardd was going to live past the newbus'd pccard/cardbus stuff, then I'd agree with you completely... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Jul 20 21:56:19 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from mickey00.mickey.ai.kyutech.ac.jp (mickey00.mickey.ai.kyutech.ac.jp [131.206.21.1]) by hub.freebsd.org (Postfix) with ESMTP id 8C1EF15426 for ; Tue, 20 Jul 1999 21:54:51 -0700 (PDT) (envelope-from ohashi@mickey.ai.kyutech.ac.jp) Received: from atohasi.mickey.ai.kyutech.ac.jp (atohasi.mickey.ai.kyutech.ac.jp [131.206.21.80]) by mickey00.mickey.ai.kyutech.ac.jp (8.9.3/3.7W-mickey) with ESMTP id NAA10877 for ; Wed, 21 Jul 1999 13:54:49 +0900 (JST) Received: (from ohashi@localhost) by atohasi.mickey.ai.kyutech.ac.jp (8.9.3/3.7W) id NAA01830; Wed, 21 Jul 1999 13:54:48 +0900 (JST) Date: Wed, 21 Jul 1999 13:54:48 +0900 (JST) Message-Id: <199907210454.NAA01830@atohasi.mickey.ai.kyutech.ac.jp> To: mobile@FreeBSD.org Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-Reply-To: Your message of "Tue, 20 Jul 1999 22:31:50 JST". <199907201331.WAA22907@afs.ntc.mita.keio.ac.jp> From: ohashi@mickey.ai.kyutech.ac.jp (Takeshi OHASHI) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org hosokawa>>Following patch (derived from PAO3) adds two keywords ("cardio" and hosokawa>>"cardmem") to pccard.conf. "cardio" and "cardmem" specifies I/O hosokawa>>address and memory address regardles of CIS tupple (so-called "builtin hosokawa>>point enabler"). These keywords are needed for broken CIS cards and hosokawa>>hardwired driver code, etc. hosokawa>> hosokawa>>This patch is needed by flash ATA support (Mr. Losh is working on hosokawa>>kernel side of flash ATA support). hosokawa>> hosokawa>>If there's no objection, I'll commit it soon. We wanted this cardmem feature for a long time. IBM Smart capture card has no CIS tupple about memory address, but is need to map memory for accessing the captured data. # IBM Smart capture card is a PCMCIA video capture card. # Unfortunately, it was out of stock. We will contrib SCC driver from PAO to -current after committing the feature. I think the feature is also needed by SRAM driver and ux driver. ux driver supports ICOM UX-136 Wireless LAN and MELCO AIRCONNECT WLI-PCM and is contributed to PAO by NAKAO-san . These cards use AMD Am79C930. Thanks. -- Takeshi OHASHI ohashi@mickey.ai.kyutech.ac.jp ohashi@jp.FreeBSD.ORG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 8:31: 4 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with ESMTP id 3BC46154E3 for ; Wed, 21 Jul 1999 08:31:00 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta6-ntc_mailserver1.03) id AAA06800; Thu, 22 Jul 1999 00:30:50 +0900 (JST) Date: Thu, 22 Jul 1999 00:30:50 +0900 (JST) Message-Id: <199907211530.AAA06800@afs.ntc.mita.keio.ac.jp> To: nate@mt.sri.com Cc: imp@village.org, mobile@FreeBSD.ORG, hosokawa@itc.keio.ac.jp Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-Reply-To: Your message of "Wed, 21 Jul 1999 09:39:05 JST". <199907210039.SAA23797@mt.sri.com> From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article <199907210039.SAA23797@mt.sri.com> nate@mt.sri.com writes: >> You've explained the 'functional' change (what the code does), but not >> the 'feature' change. Can you please explain what this patch does, and >> why it's necessary or helpful to have it in FreeBSD? Shortly, I want to add these two entries in /etc/pccard.conf. function serial config default "sio4" any cardio any 8 function fixed_disk config default "wdc2" any cardio any 16 -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 8:54:10 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from mickey00.mickey.ai.kyutech.ac.jp (mickey00.mickey.ai.kyutech.ac.jp [131.206.21.1]) by hub.freebsd.org (Postfix) with ESMTP id 826A714D7C for ; Wed, 21 Jul 1999 08:54:00 -0700 (PDT) (envelope-from ohashi@mickey.ai.kyutech.ac.jp) Received: from atohasi.mickey.ai.kyutech.ac.jp (atohasi.mickey.ai.kyutech.ac.jp [131.206.21.80]) by mickey00.mickey.ai.kyutech.ac.jp (8.9.3/3.7W-mickey) with ESMTP id AAA13263 for ; Thu, 22 Jul 1999 00:51:32 +0900 (JST) Received: (from ohashi@localhost) by atohasi.mickey.ai.kyutech.ac.jp (8.9.3/3.7W) id AAA03074; Thu, 22 Jul 1999 00:51:31 +0900 (JST) Date: Thu, 22 Jul 1999 00:51:31 +0900 (JST) Message-Id: <199907211551.AAA03074@atohasi.mickey.ai.kyutech.ac.jp> To: mobile@FreeBSD.ORG Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-Reply-To: Your message of "Thu, 22 Jul 1999 00:30:50 JST". <199907211530.AAA06800@afs.ntc.mita.keio.ac.jp> From: ohashi@mickey.ai.kyutech.ac.jp (Takeshi OHASHI) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org hosokawa>>Shortly, hosokawa>> hosokawa>>I want to add these two entries in /etc/pccard.conf. hosokawa>> hosokawa>> function serial hosokawa>> config default "sio4" any hosokawa>> cardio any 8 hosokawa>> hosokawa>> function fixed_disk hosokawa>> config default "wdc2" any hosokawa>> cardio any 16 Is the feature able to allow the following entries in /etc/pccard.conf ? # ICOM UX-136 card "AMD" "Am79C930" config default "ux0" any cardmem any 0x4000 # IBM Smart Capture Card card "IBM Corp\." "Video Capture" config default "scc0" pio cardmem any 0x4000 It will be nice for me! Thanks. -- Takeshi OHASHI ohashi@mickey.ai.kyutech.ac.jp ohashi@jp.FreeBSD.ORG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 9: 2:11 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with ESMTP id 0C53214D3D for ; Wed, 21 Jul 1999 09:02:08 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta6-ntc_mailserver1.03) id BAA07304; Thu, 22 Jul 1999 01:02:01 +0900 (JST) Date: Thu, 22 Jul 1999 01:02:01 +0900 (JST) Message-Id: <199907211602.BAA07304@afs.ntc.mita.keio.ac.jp> To: ohashi@mickey.ai.kyutech.ac.jp Cc: mobile@FreeBSD.ORG, hosokawa@itc.keio.ac.jp Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-Reply-To: Your message of "Thu, 22 Jul 1999 00:51:31 JST". <199907211551.AAA03074@atohasi.mickey.ai.kyutech.ac.jp> From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article <199907211551.AAA03074@atohasi.mickey.ai.kyutech.ac.jp> ohashi@mickey.ai.kyutech.ac.jp writes: >> Is the feature able to allow the following entries in /etc/pccard.conf ? >> >> # ICOM UX-136 >> card "AMD" "Am79C930" >> config default "ux0" any >> cardmem any 0x4000 >> >> # IBM Smart Capture Card >> card "IBM Corp\." "Video Capture" >> config default "scc0" pio >> cardmem any 0x4000 >> >> It will be nice for me! Maybe, yes. Of course, I haven't ported "default" and "pio" config yet, and "any" does not stand for "0" in cardmem line, but porting them is very easy. (currently, I think "none" is better than "pio") -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 9:45:27 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 9F50215508 for ; Wed, 21 Jul 1999 09:45:24 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id KAA05237; Wed, 21 Jul 1999 10:44:27 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id KAA26506; Wed, 21 Jul 1999 10:44:26 -0600 Date: Wed, 21 Jul 1999 10:44:26 -0600 Message-Id: <199907211644.KAA26506@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) Cc: nate@mt.sri.com, imp@village.org, mobile@FreeBSD.ORG Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-Reply-To: <199907211530.AAA06800@afs.ntc.mita.keio.ac.jp> References: <199907210039.SAA23797@mt.sri.com> <199907211530.AAA06800@afs.ntc.mita.keio.ac.jp> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > >> You've explained the 'functional' change (what the code does), but not > >> the 'feature' change. Can you please explain what this patch does, and > >> why it's necessary or helpful to have it in FreeBSD? > > Shortly, > > I want to add these two entries in /etc/pccard.conf. > > function serial > config default "sio4" any > cardio any 8 > > function fixed_disk > config default "wdc2" any > cardio any 16 And these do what? Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 9:51:11 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 4FB8414CB6 for ; Wed, 21 Jul 1999 09:51:08 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id KAA05270; Wed, 21 Jul 1999 10:47:38 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id KAA26540; Wed, 21 Jul 1999 10:47:37 -0600 Date: Wed, 21 Jul 1999 10:47:37 -0600 Message-Id: <199907211647.KAA26540@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Warner Losh Cc: Nate Williams , hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi), mobile@FreeBSD.ORG Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-Reply-To: <199907210052.SAA89724@harmony.village.org> References: <199907210039.SAA23797@mt.sri.com> <199907201852.MAA20790@mt.sri.com> <199907210014.JAA27543@afs.ntc.mita.keio.ac.jp> <199907210052.SAA89724@harmony.village.org> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > : Again, what is it that this patch fixes? What bug and/or feature does > : this add to FreeBSD? It's really hard to have an opinion on the > : 'goodness or badness' of a piece of code when there's no description of > : what the patch does? > > He's already done that nate in the code that you clipped. No, the code that he clipped showed the code that added a new keyword, but not why the keyword was necessary. > What the patch gains us is the ability to work with more pccard and > compact flash cards than we'd get without it. It also help us kludge > around wd.c's too intemate knowledge of where the ide controller > lives. Mr. Hosokawa-san has already stated this explicitly in the > mail message that you replied to. How much clearer does he need to > be? He alluded to this, but that wasn't obvious. And further email implied that it also had something to do with sio cards as well. > The patch may not be 100% pure. However, if it works, then it is > better than what we have now (which is nothing). Like I said, what new ability does it add that we don't have? Adding a new keyword doesn't buy us anything other than a new keyword. > Also, longer term there will be no pccardd, so the usual concern about > long term maintainability is not present here. I'm less encouraged that pccardd will 'go away' anytime soon. Your postings imply that doing things 'correctly' is going to take longer than originally expected. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 9:51:47 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id DD994151BF for ; Wed, 21 Jul 1999 09:51:39 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id KAA05309; Wed, 21 Jul 1999 10:49:23 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id KAA26565; Wed, 21 Jul 1999 10:49:23 -0600 Date: Wed, 21 Jul 1999 10:49:23 -0600 Message-Id: <199907211649.KAA26565@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Warner Losh Cc: Nate Williams , hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi), mobile@FreeBSD.ORG Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-Reply-To: <199907210058.SAA89778@harmony.village.org> References: <199907201852.MAA20790@mt.sri.com> <199907201518.JAA19388@mt.sri.com> <199907201331.WAA22907@afs.ntc.mita.keio.ac.jp> <199907201754.LAA87429@harmony.village.org> <199907210058.SAA89778@harmony.village.org> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > : Many of the 'fixes' in PAO were *easily* fixed with just a bit of time > : with the 'bad' cards. Making the already difficult to understand code > : bigger and more complex with fixes for broken existing code is just > : silly. > > That may be true. However, the code lifetime for pccardd is a few > months in -current at best, so I don't see the harm. I'm less convinced of you than that. > : Now, I'm not saying that this is the case, but in the past this was very > : often the case, so allow me a bit of conservatism in not allowing every > : new feature to fix 'broken code'. :) > > I can't control how you think or feel Nate. :-) I don't see the point > in being so conservative that we continue to lack functionality that I > need for other projects. When did asking for 'correct' code become conservatism? I didn't realize that we were becoming more Linux-like recently, where as long as it added functionality, we'd just add it to the tree, whether or not it was correct and stable. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 9:54:15 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 77B89151BF for ; Wed, 21 Jul 1999 09:54:06 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id KAA47800; Wed, 21 Jul 1999 10:53:42 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id KAA03421; Wed, 21 Jul 1999 10:53:45 -0600 (MDT) Message-Id: <199907211653.KAA03421@harmony.village.org> To: Nate Williams Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" Cc: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi), mobile@FreeBSD.ORG In-reply-to: Your message of "Wed, 21 Jul 1999 10:44:26 MDT." <199907211644.KAA26506@mt.sri.com> References: <199907211644.KAA26506@mt.sri.com> <199907210039.SAA23797@mt.sri.com> <199907211530.AAA06800@afs.ntc.mita.keio.ac.jp> Date: Wed, 21 Jul 1999 10:53:45 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907211644.KAA26506@mt.sri.com> Nate Williams writes: : > I want to add these two entries in /etc/pccard.conf. : > : > function serial : > config default "sio4" any : > cardio any 8 : > : > function fixed_disk : > config default "wdc2" any : > cardio any 16 : : And these do what? Seems obvious to me that they say "I want you to bind any PCCARD who claims to be a serial card to sio4, at a multiple of 8 offset" and "I want you to bind any PCCARD who claims to be a fixed disk to wdc2, aligned on a 16 byte offset" Rather than having 1000000000000 entries for modems, compact flash, etc. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 10:25:44 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 1211C154FB for ; Wed, 21 Jul 1999 10:25:39 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id LAA05838; Wed, 21 Jul 1999 11:25:11 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id LAA26802; Wed, 21 Jul 1999 11:25:10 -0600 Date: Wed, 21 Jul 1999 11:25:10 -0600 Message-Id: <199907211725.LAA26802@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Warner Losh Cc: Nate Williams , hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi), mobile@FreeBSD.ORG Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-Reply-To: <199907211653.KAA03421@harmony.village.org> References: <199907211644.KAA26506@mt.sri.com> <199907210039.SAA23797@mt.sri.com> <199907211530.AAA06800@afs.ntc.mita.keio.ac.jp> <199907211653.KAA03421@harmony.village.org> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > : > function serial > : > config default "sio4" any > : > cardio any 8 > : > > : > function fixed_disk > : > config default "wdc2" any > : > cardio any 16 > : > : And these do what? > > Seems obvious to me that they say > "I want you to bind any PCCARD who claims to be a serial card > to sio4, at a multiple of 8 offset" What does 'a multiple of 8 offset' mean? It doesn't mean a lot to me, and I'm pretty familiar with the code. > "I want you to bind any PCCARD who claims to be a fixed disk > to wdc2, aligned on a 16 byte offset" See above. > Rather than having 1000000000000 entries for modems, compact flash, etc. How do you recognize it's an SIO/WD/ATA card? Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 13:45:29 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with ESMTP id BA7D814F0D for ; Wed, 21 Jul 1999 13:45:10 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta6-ntc_mailserver1.03) id FAA09302; Thu, 22 Jul 1999 05:27:45 +0900 (JST) Date: Thu, 22 Jul 1999 05:27:45 +0900 (JST) Message-Id: <199907212027.FAA09302@afs.ntc.mita.keio.ac.jp> To: nate@mt.sri.com Cc: imp@village.org, mobile@FreeBSD.ORG, hosokawa@itc.keio.ac.jp Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-Reply-To: Your message of "Thu, 22 Jul 1999 02:25:10 JST". <199907211725.LAA26802@mt.sri.com> From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article <199907211725.LAA26802@mt.sri.com> nate@mt.sri.com writes: >> > : > function serial >> > : > config default "sio4" any >> > : > cardio any 8 >> > : > >> > : > function fixed_disk >> > : > config default "wdc2" any >> > : > cardio any 16 >> > : >> > : And these do what? >> > >> > Seems obvious to me that they say >> > "I want you to bind any PCCARD who claims to be a serial card >> > to sio4, at a multiple of 8 offset" >> >> What does 'a multiple of 8 offset' mean? It doesn't mean a lot to me, >> and I'm pretty familiar with the code. Allocate any free I/O area whose size is 8. >> > "I want you to bind any PCCARD who claims to be a fixed disk >> > to wdc2, aligned on a 16 byte offset" >> >> See above. >> >> > Rather than having 1000000000000 entries for modems, compact flash, etc. >> >> How do you recognize it's an SIO/WD/ATA card? PC-card has function code in tupple for fixed disk, serial, network, scsi, etc. De-facto starndaed for fixed disk is ATA and 16xxx compatible for serial (I don't know the exceptions). If they are not compatible, xxproble don't probe them like traditional ISA probe and nothing happens. -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 14:46:29 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from mail.rdc1.sfba.home.com (ha1.rdc1.sfba.home.com [24.0.0.66]) by hub.freebsd.org (Postfix) with ESMTP id EF65014D77 for ; Wed, 21 Jul 1999 14:46:19 -0700 (PDT) (envelope-from charon@freethought.org) Received: from c40948-a ([24.1.7.99]) by mail.rdc1.sfba.home.com (InterMail v4.01.01.00 201-229-111) with SMTP id <19990721214524.CEPO8807.mail.rdc1.sfba.home.com@c40948-a> for ; Wed, 21 Jul 1999 14:45:24 -0700 Message-Id: <3.0.5.32.19990721144521.00a73820@mail> X-Sender: tuathadedanann@mail X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Wed, 21 Jul 1999 14:45:21 -0700 To: freebsd-mobile@freebsd.org From: charon@freethought.org Subject: AmbiCom 8100 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Does anyone have any tips for getting the AmbiCom 8100 10/100 ethernet cardbus to run under FreeBSD 3.2-STABLE? Thanks, -Charon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 15:46: 1 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from slarti.muc.de (slarti.muc.de [193.149.48.10]) by hub.freebsd.org (Postfix) with SMTP id 701A315301 for ; Wed, 21 Jul 1999 15:45:46 -0700 (PDT) (envelope-from jhs@jhs.muc.de) Received: (qmail 27525 invoked from network); 21 Jul 1999 22:46:20 -0000 Received: from jhs.muc.de (193.149.49.84) by slarti.muc.de with SMTP; 21 Jul 1999 22:46:19 -0000 Received: from wall.jhs.no_domain (localhost [127.0.0.1]) by jhs.muc.de (8.9.3/8.9.3) with ESMTP id WAA08791; Wed, 21 Jul 1999 22:15:13 GMT (envelope-from jhs@wall.jhs.no_domain) Message-Id: <199907212215.WAA08791@jhs.muc.de> To: obrien@FreeBSD.ORG Cc: freebsd-mobile@FreeBSD.ORG, jkh@FreeBSD.ORG Subject: Re: pccardd patches for review From: "Julian Stacey" Reply-To: "Julian Stacey" X-Net: jhs@muc.de jhs@freebsd.org www.jhs.muc.de www.freebsd.org/~jhs/ In-reply-to: Your message of "Tue, 20 Jul 1999 01:50:15 PDT." <19990720015015.C30371@nuxi.com> Date: Thu, 22 Jul 1999 00:15:11 +0200 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "David O'Brien" wrote: > > I've spent some time hacking pccardd to not have that frustrating > > delay in it, > One thing we really need is a way to make pccardd to not daemonize > (regardless of the delay) until it has initialized any Ethernet cards. > Otherwise Jordan's new DHCP support in sysinstall will not work well on > laptops. > Right now laptops have to be special cased since the Ethernet devices > isn't registered until well after rc.network is run. > From: Greg Lehey > That's not the only problem with the current situation. xntpd, rwhod > and nfs mounts also fail in strange ways. Yes, (BTW amd fails rather than than nfs itself), As I recently sent: > cc: freebsd-mobile@FreeBSD.ORG > A guess (I haven't had time to look at src/ to check): > perhaps quick dieing processes that use UDP fail, > & more persistent users of TCP survive ? > ... > BTW Without my rc.local cludge, Of processes listed in network_pass3: > I saw not running: amd rwhod > I saw running: nfsd nfsiod mountd rpc.statd > I have not tried: rpc.lockd kadmind natd > Of processes listed in network_pass2: > I saw not running: timed named > I saw running: portmap > I have not tried: keyserv ntpdate rpc.yppasswd rpc.ypupdated > rpc.ypxfrd xntpd ypbind ypserv Here Are Diffs, (also sent as a send-pr) against 3.2-RELEASE (non PAO), as running on my desktops & laptop, for /etc/{defaults/rc.conf pccard_ether rc.network}, (also for curren). A few more daemons may need to later be moved within "if [" as I don't use, so havent tested EG mrouted rpc.ypxfrd. PS To keep the diffs minimal & readable, I avoided indenting for my new if's, The start sequence for different daemons remains clearly visible, as I I avoided splitting the 3 procedures in rc.network into sub procedures, for desktop & laptop. ------------- *** 3.2-RELEASE/etc/defaults/rc.conf Mon Feb 15 11:45:33 1999 --- new-jhs/etc/defaults/rc.conf Wed Jul 21 18:01:07 1999 *************** *** 20,25 **** --- 20,36 ---- pccard_enable="NO" # Set to YES if you want to configure PCCARD devices. pccard_mem="DEFAULT" # If pccard_enable=YES, this is card memory address. pccard_ifconfig="NO" # Specialized pccard ethernet configuration (or NO). + # In addition to 3.2-RELEASE function in + # /etc/pccard_ether + # the following extra notes now apply: + # Typically one of: + # "DHCP" + # "host.domain -link0 link1 -link2" + # If not "NO", assume a pcmcia ethernet, + # with slow recognition of card by pccardd, + # where some rc.network processes (EG timed amd rwhod + # (perhaps UDP based ?)) would otherwise die, + # so they are now called via /etc/pccard.conf "insert" local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" # startup script dirs. local_periodic="/usr/local/etc/periodic /usr/X11R6/etc/periodic" # periodic script dirs rc_conf_files="/etc/rc.conf /etc/rc.conf.local" *** 3.2-RELEASE/etc/pccard_ether Sat Jun 19 23:18:13 1999 --- new-jhs/etc/pccard_ether Wed Jul 21 19:24:51 1999 *************** *** 53,55 **** --- 53,63 ---- route add ${route_args} done fi + + if [ "x$pccard_ifconfig" != "xNO" ] ; then #{ + if [ -f /etc/rc.network ]; then + . /etc/rc.network + fi + network_pass2 pccard_supplementary # xntpd, timed + network_pass3 pccard_supplementary # amd, rwhod + fi #} *** 3.2-RELEASE/etc/rc.network Mon Feb 15 11:45:33 1999 --- new-jhs/etc/rc.network Wed Jul 21 19:29:47 1999 *************** *** 194,199 **** --- 194,201 ---- network_pass2() { echo -n 'Doing additional network setup:' + if [ "X$1" != "X"pccard_supplementary ]; then #{ + # Non laptop, or laptop not on supplementary pass. if [ "X${named_enable}" = X"YES" ]; then echo -n ' named'; ${named_program-"named"} ${named_flags} fi *************** *** 201,206 **** --- 203,213 ---- if [ "X${ntpdate_enable}" = X"YES" ]; then echo -n ' ntpdate'; ${ntpdate_program} ${ntpdate_flags} >/dev/null 2>&1 fi + fi #} + + if [ \( "X${pccard_ifconfig}" = X"NO" \) -o \ + \( "X$1" = "X"pccard_supplementary \) ]; then #{ + # Non laptop, or laptop on supplementary pccard pass. if [ "X${xntpd_enable}" = X"YES" ]; then echo -n ' xntpd'; ${xntpd_program} ${xntpd_flags} *************** *** 209,215 **** --- 216,225 ---- if [ "X${timed_enable}" = X"YES" ]; then echo -n ' timed'; timed ${timed_flags} fi + fi #} + if [ "X$1" != "X"pccard_supplementary ]; then #{ + # Non laptop, or laptop not yet on supplementary pass. if [ "X${portmap_enable}" = X"YES" ]; then echo -n ' portmap'; portmap ${portmap_flags} fi *************** *** 249,262 **** --- 259,276 ---- if [ -n "${atm_pass2_done}" ]; then atm_pass3 fi + fi #} echo '.' network_pass2_done=YES } + network_pass3() { echo -n 'Starting final network daemons:' + if [ "X$1" != "X"pccard_supplementary ]; then #{ + # Non laptop, or laptop not yet on supplementary pass. if [ "X${nfs_server_enable}" = X"YES" -a -r /etc/exports ]; then echo -n ' mountd' if [ "X${weak_mountd_authentication}" = X"YES" ]; then *************** *** 282,288 **** --- 296,306 ---- >/dev/null 2>&1 fi fi + fi #} + if [ \( "X${pccard_ifconfig}" = X"NO" \) -o \ + \( "X$1" = "X"pccard_supplementary \) ]; then #{ + # Non laptop, or laptop on supplementary pccard pass. if [ "X${amd_enable}" = X"YES" ]; then echo -n ' amd' if [ "X${amd_map_program}" != X"NO" ]; then *************** *** 294,300 **** --- 312,321 ---- if [ "X${rwhod_enable}" = X"YES" ]; then echo -n ' rwhod'; rwhod ${rwhod_flags} fi + fi #} + if [ "X$1" != "X"pccard_supplementary ]; then #{ + # Non laptop, or laptop not yet on supplementary pass. # Kerberos runs ONLY on the Kerberos server machine if [ "X${kerberos_server_enable}" = X"YES" ]; then if [ "X${kerberos_stash}" = "XYES" ]; then *************** *** 323,328 **** --- 344,350 ---- echo -n ' natd'; natd ${natd_flags} ${natd_ifarg} fi + fi #} echo '.' network_pass3_done=YES } ------------- Extra patches to run against current (version as of ctm: "Jul 21 18:25 src-cur.3942.gz") after running the release patches, as 2 Rel. patches break on current. *** src-cur.3942/etc/rc.conf Wed Jul 21 22:48:56 1999 --- new-jhs/etc/rc.conf Wed Jul 21 23:21:34 1999 *************** *** 22,27 **** --- 22,38 ---- pccard_enable="NO" # Set to YES if you want to configure PCCARD devices. pccard_mem="DEFAULT" # If pccard_enable=YES, this is card memory address. pccard_ifconfig="NO" # Specialized pccard ethernet configuration (or NO). + # In addition to 3.2-RELEASE function in + # /etc/pccard_ether + # the following extra notes now apply: + # Typically one of: + # "DHCP" + # "host.domain -link0 link1 -link2" + # If not "NO", assume a pcmcia ethernet, + # with slow recognition of card by pccardd, + # where some rc.network processes (EG timed amd rwhod + # (perhaps UDP based ?)) would otherwise die, + # so they are now called via /etc/pccard.conf "insert" pccardd_flags="" # Additional flags for pccardd. pccard_conf="/etc/pccard.conf.sample" # pccardd(8) config file local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" # startup script dirs. *** src-cur.3942/etc/rc.network Wed Jul 21 22:48:59 1999 --- new-jhs//etc/rc.network Wed Jul 21 23:25:44 1999 *************** *** 358,363 **** --- 379,385 ---- fi unset stash_flag fi + fi #} echo '.' network_pass3_done=YES -------- Julian Julian H. Stacey http://www.freebsd.org/~jhs/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 17:41:40 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (Postfix) with ESMTP id CE0E5155CB for ; Wed, 21 Jul 1999 17:41:35 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.3/8.8.8) with ESMTP id RAA02886; Wed, 21 Jul 1999 17:33:30 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199907220033.RAA02886@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Warner Losh Cc: Nate Williams , hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi), mobile@FreeBSD.ORG Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-reply-to: Your message of "Wed, 21 Jul 1999 10:53:45 MDT." <199907211653.KAA03421@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 21 Jul 1999 17:33:30 -0700 From: Mike Smith Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > In message <199907211644.KAA26506@mt.sri.com> Nate Williams writes: > : > I want to add these two entries in /etc/pccard.conf. > : > > : > function serial > : > config default "sio4" any > : > cardio any 8 > : > > : > function fixed_disk > : > config default "wdc2" any > : > cardio any 16 > : > : And these do what? > > Seems obvious to me that they say > "I want you to bind any PCCARD who claims to be a serial card > to sio4, at a multiple of 8 offset" > and > "I want you to bind any PCCARD who claims to be a fixed disk > to wdc2, aligned on a 16 byte offset" > > Rather than having 1000000000000 entries for modems, compact flash, etc. And of course they should be config default sio any cardio 8 ie. "use the sio driver", not "be sio4". I think "cardio" is a bad name for the keyword too; I would use the same keyword that's used for specifying a fixed I/O address but use a notation signifying an arbitrary multiple, eg. ioport %8 -- \\ The mind's the standard \\ Mike Smith \\ of the man. \\ msmith@freebsd.org \\ -- Joseph Merrick \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 18:13:19 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with ESMTP id 6E6E614C41 for ; Wed, 21 Jul 1999 18:13:16 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta6-ntc_mailserver1.03) id KAA11511; Thu, 22 Jul 1999 10:13:06 +0900 (JST) Date: Thu, 22 Jul 1999 10:13:06 +0900 (JST) Message-Id: <199907220113.KAA11511@afs.ntc.mita.keio.ac.jp> To: mike@smith.net.au Cc: imp@village.org, nate@mt.sri.com, mobile@FreeBSD.ORG, hosokawa@itc.keio.ac.jp Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-Reply-To: Your message of "Thu, 22 Jul 1999 09:33:30 JST". <199907220033.RAA02886@dingo.cdrom.com> From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article <199907220033.RAA02886@dingo.cdrom.com> mike@smith.net.au writes: >> And of course they should be >> >> config default sio any >> cardio 8 >> >> ie. "use the sio driver", not "be sio4". I agree (but it needs patches for /dev/card?'s ioctl). >> I think "cardio" is a bad >> name for the keyword too; I would use the same keyword that's used for >> specifying a fixed I/O address but use a notation signifying an >> arbitrary multiple, eg. >> >> ioport %8 I also agree with it. This seems better than "cardio". Explicit I/O location is only needed for hardwired driver code. I'll rewrite my patch soon. By the way, to be "arbitrary multiple" is not important in resource allocation for PC-cards. The size of I/O window is essential. -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 18:21:37 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (Postfix) with ESMTP id 272B314FA0 for ; Wed, 21 Jul 1999 18:21:29 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.3/8.8.8) with ESMTP id SAA03148; Wed, 21 Jul 1999 18:15:25 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199907220115.SAA03148@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) Cc: mike@smith.net.au, imp@village.org, nate@mt.sri.com, mobile@FreeBSD.ORG Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-reply-to: Your message of "Thu, 22 Jul 1999 10:13:06 +0900." <199907220113.KAA11511@afs.ntc.mita.keio.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 21 Jul 1999 18:15:25 -0700 From: Mike Smith Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > >> I think "cardio" is a bad > >> name for the keyword too; I would use the same keyword that's used for > >> specifying a fixed I/O address but use a notation signifying an > >> arbitrary multiple, eg. > >> > >> ioport %8 > > I also agree with it. This seems better than "cardio". Explicit I/O > location is only needed for hardwired driver code. > > I'll rewrite my patch soon. > > By the way, to be "arbitrary multiple" is not important in resource > allocation for PC-cards. The size of I/O window is essential. Ah, I misunderstood. I presume that this is an override for CIS' that don't specify the correct window size? In that case, I would use 'iosize' as the keyword, since we have historically used that to denote the I/O window size for ISA devices. However, perhaps it makes more sense to have a more complete syntax for supplying CIS overrides? Perhaps something as simple as cis xx,xx,xx,xx,xx,xx,xx,xx to specify a new tuple, or cis iosize 8 to override any existing CIS I/O window size? I guess it depends a lot on how many of these overrides are likely to be needed. -- \\ The mind's the standard \\ Mike Smith \\ of the man. \\ msmith@freebsd.org \\ -- Joseph Merrick \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 18:27:11 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id C93641551F for ; Wed, 21 Jul 1999 18:26:40 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id TAA48839; Wed, 21 Jul 1999 19:25:05 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id TAA05274; Wed, 21 Jul 1999 19:25:12 -0600 (MDT) Message-Id: <199907220125.TAA05274@harmony.village.org> To: Nate Williams Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" Cc: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi), mobile@FreeBSD.ORG In-reply-to: Your message of "Wed, 21 Jul 1999 11:25:10 MDT." <199907211725.LAA26802@mt.sri.com> References: <199907211725.LAA26802@mt.sri.com> <199907211644.KAA26506@mt.sri.com> <199907210039.SAA23797@mt.sri.com> <199907211530.AAA06800@afs.ntc.mita.keio.ac.jp> <199907211653.KAA03421@harmony.village.org> Date: Wed, 21 Jul 1999 19:25:12 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907211725.LAA26802@mt.sri.com> Nate Williams writes: : What does 'a multiple of 8 offset' mean? It doesn't mean a lot to me, : and I'm pretty familiar with the code. Ummm, the normal thing it means. That the address % 8 == 0. : > "I want you to bind any PCCARD who claims to be a fixed disk : > to wdc2, aligned on a 16 byte offset" : : See above. Ummm, See above. Are you just being dense today? : > Rather than having 1000000000000 entries for modems, compact flash, etc. : : How do you recognize it's an SIO/WD/ATA card? The CIS contains entries that tell what "function" the card serves. Tuple code 0x21 is the FUNCID tuple. It tells you generally what function(s) the card serves. For multi-function cards, multiple functions are specified. Nearly all serial interface cards and modem cards can be attached with sio. Nearly all ata cards can be attached with wdc (with my and Hosokawa-san's changes). If it happens to be one of the cards that isn't recognized, the enable routine will return a failure code (since most enable routines call xxxprobe to make sure that the hardware is what they think is there). I've wanted this functionality for a long time, so when I saw the keyword, I know instantly what Hosokawa-san was up to. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 18:31:46 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id A5A6314FE1 for ; Wed, 21 Jul 1999 18:31:36 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id TAA48860; Wed, 21 Jul 1999 19:29:24 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id TAA05325; Wed, 21 Jul 1999 19:29:31 -0600 (MDT) Message-Id: <199907220129.TAA05325@harmony.village.org> To: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" Cc: mike@smith.net.au, nate@mt.sri.com, mobile@FreeBSD.ORG In-reply-to: Your message of "Thu, 22 Jul 1999 10:13:06 +0900." <199907220113.KAA11511@afs.ntc.mita.keio.ac.jp> References: <199907220113.KAA11511@afs.ntc.mita.keio.ac.jp> Date: Wed, 21 Jul 1999 19:29:31 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907220113.KAA11511@afs.ntc.mita.keio.ac.jp> HOSOKAWA Tatsumi writes: : By the way, to be "arbitrary multiple" is not important in resource : allocation for PC-cards. The size of I/O window is essential. I thought that the size of the window dictated its alignment.... Anyway, that part of my guess was wrong.... I stand corrected. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 18:32:21 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with ESMTP id 189A414FE1 for ; Wed, 21 Jul 1999 18:32:18 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta6-ntc_mailserver1.03) id KAA11831; Thu, 22 Jul 1999 10:29:54 +0900 (JST) Date: Thu, 22 Jul 1999 10:29:54 +0900 (JST) Message-Id: <199907220129.KAA11831@afs.ntc.mita.keio.ac.jp> To: mike@smith.net.au Cc: imp@village.org, nate@mt.sri.com, mobile@FreeBSD.ORG, hosokawa@itc.keio.ac.jp Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-Reply-To: Your message of "Thu, 22 Jul 1999 10:15:25 JST". <199907220115.SAA03148@dingo.cdrom.com> From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article <199907220115.SAA03148@dingo.cdrom.com> mike@smith.net.au writes: >> Ah, I misunderstood. I presume that this is an override for CIS' that >> don't specify the correct window size? Basically, the aim of this code is ignoring part of CIS tupple. But iosize is essential and ioaddr is nonessential (ioaddr is needed only for DOS compatibility). How about "ioport [size [addr]]" ? -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 18:35:18 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (Postfix) with ESMTP id 2510314FE1 for ; Wed, 21 Jul 1999 18:35:15 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.3/8.8.8) with ESMTP id SAA03231; Wed, 21 Jul 1999 18:28:24 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199907220128.SAA03231@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) Cc: mike@smith.net.au, imp@village.org, nate@mt.sri.com, mobile@FreeBSD.ORG Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-reply-to: Your message of "Thu, 22 Jul 1999 10:29:54 +0900." <199907220129.KAA11831@afs.ntc.mita.keio.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 21 Jul 1999 18:28:24 -0700 From: Mike Smith Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > In article <199907220115.SAA03148@dingo.cdrom.com> > mike@smith.net.au writes: > > >> Ah, I misunderstood. I presume that this is an override for CIS' that > >> don't specify the correct window size? > > Basically, the aim of this code is ignoring part of CIS tupple. > But iosize is essential and ioaddr is nonessential (ioaddr is needed > only for DOS compatibility). > > How about "ioport [size [addr]]" ? Hmm, "port" is singular, maybe "iorange" or "iowindow". But since the fixed I/O address isn't ever going to be needed, I would just stay with "iosize". -- \\ The mind's the standard \\ Mike Smith \\ of the man. \\ msmith@freebsd.org \\ -- Joseph Merrick \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 18:36:25 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 79CFF14FE1 for ; Wed, 21 Jul 1999 18:36:18 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id TAA48886; Wed, 21 Jul 1999 19:35:32 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id TAA05375; Wed, 21 Jul 1999 19:35:39 -0600 (MDT) Message-Id: <199907220135.TAA05375@harmony.village.org> To: Mike Smith Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" Cc: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi), nate@mt.sri.com, mobile@FreeBSD.ORG In-reply-to: Your message of "Wed, 21 Jul 1999 18:15:25 PDT." <199907220115.SAA03148@dingo.cdrom.com> References: <199907220115.SAA03148@dingo.cdrom.com> Date: Wed, 21 Jul 1999 19:35:39 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907220115.SAA03148@dingo.cdrom.com> Mike Smith writes: : In that case, I would use 'iosize' as the keyword, since we have : historically used that to denote the I/O window size for ISA devices. Yes. I want to add an iosize parameter to the dev_desc structure in -current. This is needed so address ranges can be properly allocated and aligned (the size of the address range determines its alignment requirements). : However, perhaps it makes more sense to have a more complete syntax for : supplying CIS overrides? In the long run, yes. This will be needed in the next generation as well. For example, some Libretto floppy cards have bad CIS information, and the Linux driver compensates by instructing users of these cards to use the CIS override feature of the linux's pccard system. For most people it isn't needed, but for those unlucky enough to have early serial numbered floppy cards that's the only way to make them work. I'm not sure how much sense it makes now, but if a good implementation can be constructed, I'll not oppose it. : I guess it depends a lot on how many of these overrides are likely to : be needed. I don't know. I believe that the linux card stff gives one the ability to add/delete/replace any CIS to compensate for broken cards. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 18:38:47 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id BA16714FE1 for ; Wed, 21 Jul 1999 18:38:41 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id TAA48896; Wed, 21 Jul 1999 19:37:26 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id TAA05402; Wed, 21 Jul 1999 19:37:33 -0600 (MDT) Message-Id: <199907220137.TAA05402@harmony.village.org> To: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" Cc: mike@smith.net.au, nate@mt.sri.com, mobile@FreeBSD.ORG In-reply-to: Your message of "Thu, 22 Jul 1999 10:13:06 +0900." <199907220113.KAA11511@afs.ntc.mita.keio.ac.jp> References: <199907220113.KAA11511@afs.ntc.mita.keio.ac.jp> Date: Wed, 21 Jul 1999 19:37:32 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907220113.KAA11511@afs.ntc.mita.keio.ac.jp> HOSOKAWA Tatsumi writes: : I agree (but it needs patches for /dev/card?'s ioctl). Patches for card ioctls are allowable for -current (see my previous message about wanting to expand dev_desc), and might be allowable for -stable as well. My reasoning for -stable is that pccardd/pccardc are the only consumers of this interface... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 18:39:41 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 96A691553F for ; Wed, 21 Jul 1999 18:39:33 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id TAA48903; Wed, 21 Jul 1999 19:39:32 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id TAA05428; Wed, 21 Jul 1999 19:39:39 -0600 (MDT) Message-Id: <199907220139.TAA05428@harmony.village.org> To: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" Cc: mike@smith.net.au, nate@mt.sri.com, mobile@FreeBSD.ORG In-reply-to: Your message of "Thu, 22 Jul 1999 10:29:54 +0900." <199907220129.KAA11831@afs.ntc.mita.keio.ac.jp> References: <199907220129.KAA11831@afs.ntc.mita.keio.ac.jp> Date: Wed, 21 Jul 1999 19:39:39 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907220129.KAA11831@afs.ntc.mita.keio.ac.jp> HOSOKAWA Tatsumi writes: : How about "ioport [size [addr]]" ? I'd rather see iosize ioport since otherwise it will be confusing (at least that's my gut feeling). Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 18:44:44 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id A1B1F14F35 for ; Wed, 21 Jul 1999 18:44:33 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id TAA48917; Wed, 21 Jul 1999 19:41:48 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id TAA05456; Wed, 21 Jul 1999 19:41:55 -0600 (MDT) Message-Id: <199907220141.TAA05456@harmony.village.org> To: Mike Smith Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" Cc: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi), nate@mt.sri.com, mobile@FreeBSD.ORG In-reply-to: Your message of "Wed, 21 Jul 1999 18:28:24 PDT." <199907220128.SAA03231@dingo.cdrom.com> References: <199907220128.SAA03231@dingo.cdrom.com> Date: Wed, 21 Jul 1999 19:41:55 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907220128.SAA03231@dingo.cdrom.com> Mike Smith writes: : Hmm, "port" is singular, maybe "iorange" or "iowindow". But since the : fixed I/O address isn't ever going to be needed, I would just stay with : "iosize". "iowindow" connotes other things to me. The pccard <-> ISA/PCI bridges can map a number of different I/O and memory windows into the bus space of the host. I don't know if other users would think this way or not, but my intuition tells me that it would be confusing. "iorange" would need to have an actual range (eg 0x100-0x10f) otherwise it would be confusing, at least to me. "iosize" sounds wonderful. :-) Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 18:44:59 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with ESMTP id 4CCF914C33 for ; Wed, 21 Jul 1999 18:44:56 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta6-ntc_mailserver1.03) id KAA12141; Thu, 22 Jul 1999 10:42:52 +0900 (JST) Date: Thu, 22 Jul 1999 10:42:52 +0900 (JST) Message-Id: <199907220142.KAA12141@afs.ntc.mita.keio.ac.jp> To: mike@smith.net.au Cc: imp@village.org, nate@mt.sri.com, mobile@FreeBSD.ORG, hosokawa@itc.keio.ac.jp Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-Reply-To: Your message of "Thu, 22 Jul 1999 10:28:24 JST". <199907220128.SAA03231@dingo.cdrom.com> From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article <199907220128.SAA03231@dingo.cdrom.com> mike@smith.net.au writes: >> Hmm, "port" is singular, maybe "iorange" or "iowindow". I understand. >> But since the >> fixed I/O address isn't ever going to be needed, I would just stay with >> "iosize". "iorange" sounds more generic for me. This code unties fixed I/O address specified in CIS tupple. But native speakers says that "iosize" is okay, I comply with it. -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 21:56:41 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 7BFA215038 for ; Wed, 21 Jul 1999 21:56:38 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id WAA14221; Wed, 21 Jul 1999 22:55:26 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id WAA29358; Wed, 21 Jul 1999 22:55:25 -0600 Date: Wed, 21 Jul 1999 22:55:25 -0600 Message-Id: <199907220455.WAA29358@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Warner Losh Cc: Nate Williams , hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi), mobile@FreeBSD.ORG Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-Reply-To: <199907220125.TAA05274@harmony.village.org> References: <199907211725.LAA26802@mt.sri.com> <199907211644.KAA26506@mt.sri.com> <199907210039.SAA23797@mt.sri.com> <199907211530.AAA06800@afs.ntc.mita.keio.ac.jp> <199907211653.KAA03421@harmony.village.org> <199907220125.TAA05274@harmony.village.org> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > : What does 'a multiple of 8 offset' mean? It doesn't mean a lot to me, > : and I'm pretty familiar with the code. > > Ummm, the normal thing it means. That the address % 8 == 0. What address? (Mike's suggestions explain a lot better what is being intended, where stating 'cardio 8' does not explain what is going on very well.) Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Jul 21 22: 1:43 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 8472614D23 for ; Wed, 21 Jul 1999 22:01:38 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id WAA49338; Wed, 21 Jul 1999 22:59:20 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id WAA06565; Wed, 21 Jul 1999 22:59:28 -0600 (MDT) Message-Id: <199907220459.WAA06565@harmony.village.org> To: Nate Williams Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" Cc: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi), mobile@FreeBSD.ORG In-reply-to: Your message of "Wed, 21 Jul 1999 22:55:25 MDT." <199907220455.WAA29358@mt.sri.com> References: <199907220455.WAA29358@mt.sri.com> <199907211725.LAA26802@mt.sri.com> <199907211644.KAA26506@mt.sri.com> <199907210039.SAA23797@mt.sri.com> <199907211530.AAA06800@afs.ntc.mita.keio.ac.jp> <199907211653.KAA03421@harmony.village.org> <199907220125.TAA05274@harmony.village.org> Date: Wed, 21 Jul 1999 22:59:28 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199907220455.WAA29358@mt.sri.com> Nate Williams writes: : What address? The address that the cardspace is mapped to. However, upon rereading the spec, this is implicit in the size, so I was off base. : (Mike's suggestions explain a lot better what is being intended, where : stating 'cardio 8' does not explain what is going on very well.) Agreed. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 22 4:59:36 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from firewall1.lehman.com (firewall1.Lehman.COM [192.147.65.114]) by hub.freebsd.org (Postfix) with ESMTP id 412B814CEB for ; Thu, 22 Jul 1999 04:59:28 -0700 (PDT) (envelope-from nclayton@lehman.com) Received: from relay3.messaging-svcs5.lehman.com by firewall1.lehman.com (8.8.6/8.8.6) id HAA14563; Thu, 22 Jul 1999 07:58:49 -0400 (EDT) Message-ID: <19990722125806.D29502@lehman.com> Date: Thu, 22 Jul 1999 12:58:06 +0100 From: Nik Clayton To: mobile@freebsd.org Subject: Running 3.2 -- do I need PAO? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i Organization: Lehman Brothers Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi folks, Sorry if this is a mind-bogglingly stupid question, but after searching the PAO pages, the -mobile mailing list archives, and some web sites dealing with FreeBSD and the Sony Vaio, I can't find a definitive answer. [ First, though, my thanks to everyone who followed up with information about the Sony Vaio. My newly minted F270 is running FreeBSD like a dream (although, as people pointed out, I haven't got the internal sound card working yet). ] If I'm running 3.2 (and/or 3.2-stable) do I need the PAO patches? I'm not sure. I bought a 3.2 CD yesterday to make the installation much easier, and when I boot the Vaio with the CD in the drive it boots from it, prints lots of boot probe information, including the fact that it's seen zp0, which is my D-Link 650 network card. However, standard 3.2 doesn't seem able to configure it. If I boot from the 3.2 PAO floppy, it finds the card, and configures it, and I can use it see other hosts on the network without any problems. So, case closed, PAO is required for mobile operation, yes? That's what I thought. Then I realised that pccardd is included in the standard 3.2 distribution, it's not PAO specific. So I'd assume that 3.2 has at least some mobile/PCMCIA support. And then this page (http://www.webweaving.org/vaio/) talks about (halfway down) [...] 2.2.5 Config PAO, with FAT32 patch 2.2.6 Config PAO 3-recent Config native [...] which implies that 3.something has native support, and doesn't need the PAO stuff. But on the other hand, I've searched through the release notes for 3.0, 3.1, and 3.2, and can't see "mobile", "laptop", or "PAO" mentioned anywhere. And the main PAO website has a boot floppy explicitly for FreeBSD 3.2. So it probably is needed. Could someone give me a definitive answer please? Many thanks. N PS: Of course, now I've got a laptop, expect the "Running FreeBSD on a laptop" section to appear in the Handbook in due course. . . -- --+==[ Systems Administrator, Year 2000 Test Lab, Lehman Brothers, Inc. ]==+-- --+==[ 1 Broadgate, London, EC2M 7HA 0171-601-0011 x5514 ]==+-- --+==[ Year 2000 Testing: It's about time. . . ]==+-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 22 8:35:48 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with ESMTP id 577B5152C5 for ; Thu, 22 Jul 1999 08:35:30 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta6-ntc_mailserver1.03) id AAA20034; Fri, 23 Jul 1999 00:34:14 +0900 (JST) Date: Fri, 23 Jul 1999 00:34:14 +0900 (JST) Message-Id: <199907221534.AAA20034@afs.ntc.mita.keio.ac.jp> To: mike@smith.net.au, imp@village.org, nate@mt.sri.com, mobile@FreeBSD.ORG Cc: hosokawa@itc.keio.ac.jp Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-Reply-To: Your message of "Thu, 22 Jul 1999 10:13:06 JST". <199907220113.KAA11511@afs.ntc.mita.keio.ac.jp> From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article <199907220113.KAA11511@afs.ntc.mita.keio.ac.jp> hosokawa@itc.keio.ac.jp writes: >> I'll rewrite my patch soon. OK, this is "iosize" patch. Index: cardd.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/pccard/pccardd/cardd.c,v retrieving revision 1.34 diff -u -r1.34 cardd.c --- cardd.c 1999/02/05 16:00:17 1.34 +++ cardd.c 1999/07/22 15:30:01 @@ -179,6 +179,9 @@ sp->config = 0; /* release io */ bit_nset(io_avail, sp->io.addr, sp->io.addr + sp->io.size - 1); + /* release irq */ + if (sp->irq) + pool_irq[sp->irq] = 1; } /* @@ -386,12 +389,15 @@ /* Now look at I/O. */ bzero(&sp->io, sizeof(sp->io)); - if (cisconf->iospace || (defconf && defconf->iospace)) { + if (cisconf->iospace || (defconf && defconf->iospace) + || sp->card->iosize) { struct cis_config *cp; + int iosize; cp = cisconf; if (!cisconf->iospace) cp = defconf; + iosize = sp->card->iosize; /* * If # of I/O lines decoded == 10, then card does its * own decoding. @@ -400,16 +406,20 @@ * If no address (but a length) is available, allocate * from the pool. */ - if (cp->io) { + if (iosize) { + sp->io.addr = 0; + sp->io.size = iosize; + } + else if (cp->io) { sp->io.addr = cp->io->addr; sp->io.size = cp->io->size; - } else + } else { /* * No I/O block, assume the address lines * decode gives the size. */ sp->io.size = 1 << cp->io_addr; - + } if (sp->io.addr == 0) { int i = bit_fns(io_avail, IOPORTS, sp->io.size); @@ -419,6 +429,7 @@ } bit_nclear(io_avail, sp->io.addr, sp->io.addr + sp->io.size - 1); + sp->flags |= IO_ASSIGNED; /* Set up the size to take into account the decode lines. */ sp->io.cardaddr = cp->io_addr; @@ -441,6 +452,7 @@ #endif } sp->irq = sp->config->irq; + sp->flags |= IRQ_ASSIGNED; return (0); } @@ -495,20 +507,31 @@ lseek(sp->fd, offs + 2, SEEK_SET); write(sp->fd, &c, sizeof(c)); } - mem.window = 0; - if (sp->mem.addr) { + if (sp->flags & MEM_ASSIGNED) { mem.window = 0; - mem.flags = sp->mem.flags | MDF_ACTIVE | MDF_16BITS; - mem.start = (caddr_t) sp->mem.addr; - mem.card = sp->mem.cardaddr; - mem.size = sp->mem.size; - if (ioctl(sp->fd, PIOCSMEM, &mem)) { - logerr("ioctl (PIOCSMEM)"); - return (0); + + /* + * This allows cardmem directives in /etc/pccard.conf + * with addr = 0x0 for cards which can tolerate arbitrary + * mappings + */ + if (!sp->mem.addr) + sp->mem.addr = alloc_memory(sp->mem.size); + + if (sp->mem.addr) { + mem.window = 0; + mem.flags = sp->mem.flags | MDF_ACTIVE | MDF_16BITS; + mem.start = (caddr_t) sp->mem.addr; + mem.card = sp->mem.cardaddr; + mem.size = sp->mem.size; + if (ioctl(sp->fd, PIOCSMEM, &mem)) { + logerr("ioctl (PIOCSMEM)"); + return (0); + } } } io.window = 0; - if (sp->io.size) { + if (sp->flags & IO_ASSIGNED) { io.flags = sp->io.flags; io.start = sp->io.addr; io.size = sp->io.size; @@ -534,14 +557,14 @@ drv.unit = drvp->unit; drv.irqmask = 1 << sp->irq; drv.flags = 0x80; - if (sp->mem.size) { + if (sp->flags & MEM_ASSIGNED) { drv.mem = sp->mem.addr; drv.memsize = sp->mem.size; } else { drv.mem = 0; drv.memsize = 0; } - if (sp->io.size) + if (sp->flags & IO_ASSIGNED) drv.iobase = sp->io.addr; else drv.iobase = 0; Index: cardd.h =================================================================== RCS file: /home/ncvs/src/usr.sbin/pccard/pccardd/cardd.h,v retrieving revision 1.12 diff -u -r1.12 cardd.h --- cardd.h 1998/03/09 05:18:55 1.12 +++ cardd.h 1999/07/22 15:30:04 @@ -59,6 +59,7 @@ char *version; int ether; /* For net cards, ether at offset */ int reset_time; /* Reset time */ + int iosize; /* I/O window size (ignore location) */ struct card_config *config; /* List of configs */ struct cmd *insert; /* Insert commands */ struct cmd *remove; /* Remove commands */ @@ -109,10 +110,22 @@ struct allocblk io; /* I/O block spec */ struct allocblk mem; /* Memory block spec */ int irq; /* Irq value */ + int flags; /* Resource assignment flags */ }; -EXTERN struct allocblk *pool_ioblks; /* I/O blocks in the pool */ -EXTERN struct allocblk *pool_mem; /* Memory in the pool */ +/* + * Slot resource assignment/configuration flags + */ +#define IO_ASSIGNED 0x1 +#define MEM_ASSIGNED 0x2 +#define IRQ_ASSIGNED 0x4 +#define EADDR_CONFIGED 0x8 +#define WL_CONFIGED 0x10 +#define AFLAGS (IO_ASSIGNED | MEM_ASSIGNED | IRQ_ASSIGNED) +#define CFLAGS (EADDR_CONFIGED | WL_CONFIGED) + +EXTERN struct allocblk *pool_ioblks; /* I/O blocks in the pool */ +EXTERN struct allocblk *pool_mem; /* Memory in the pool */ EXTERN int pool_irq[16]; /* IRQ allocations */ EXTERN struct driver *drivers; /* List of drivers */ EXTERN struct card *cards; Index: file.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/pccard/pccardd/file.c,v retrieving revision 1.18 diff -u -r1.18 file.c --- file.c 1999/07/15 03:04:31 1.18 +++ file.c 1999/07/22 15:30:04 @@ -52,6 +52,7 @@ "ether", /* 9 */ "insert", /* 10 */ "remove", /* 11 */ + "iosize", /* 12 */ 0 }; @@ -66,6 +67,7 @@ #define KWD_ETHER 9 #define KWD_INSERT 10 #define KWD_REMOVE 11 +#define KWD_IOSIZE 12 struct flags { char *name; @@ -82,6 +84,7 @@ static struct allocblk *ioblk_tok(int); static struct allocblk *memblk_tok(int); static struct driver *new_driver(char *); +static int iosize_tok(void); static void addcmd(struct cmd **); static void parse_card(void); @@ -181,9 +184,10 @@ { char *man, *vers; struct card *cp; - int i; + int i, iosize; struct card_config *confp, *lastp; + confp = 0; man = newstr(next_tok()); vers = newstr(next_tok()); cp = xmalloc(sizeof(*cp)); @@ -256,6 +260,19 @@ /* remove */ addcmd(&cp->remove); break; + case KWD_IOSIZE: + /* iosize */ + iosize = iosize_tok(); + if (!iosize) { + error("Illegal cardio arguments"); + break; + } + if (!confp) { + error("iosize should be placed after config"); + break; + } + cp->iosize = iosize; + break; default: pusht = 1; return; @@ -378,6 +395,30 @@ error("illegal IRQ value"); return (-1); } + +/* + * iosize token + * iosize {|auto} + */ +static int +iosize_tok(void) +{ + int iosize = 0; + if (strcmp("auto", next_tok()) == 0) + iosize = -1; /* wildcard */ + else { + pusht = 1; + iosize = num_tok(); + if (iosize == -1) + return 0; + } +#ifdef DEBUG + if (verbose) + printf("iosize: size=%x\n", iosize); +#endif + return iosize; +} + /* * search the table for a match. -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 22 8:41: 7 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 7BBE4151FF for ; Thu, 22 Jul 1999 08:41:05 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id JAA21441; Thu, 22 Jul 1999 09:37:58 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id JAA01757; Thu, 22 Jul 1999 09:37:56 -0600 Date: Thu, 22 Jul 1999 09:37:56 -0600 Message-Id: <199907221537.JAA01757@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) Cc: mike@smith.net.au, imp@village.org, nate@mt.sri.com, mobile@FreeBSD.ORG Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-Reply-To: <199907221534.AAA20034@afs.ntc.mita.keio.ac.jp> References: <199907220113.KAA11511@afs.ntc.mita.keio.ac.jp> <199907221534.AAA20034@afs.ntc.mita.keio.ac.jp> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > In article <199907220113.KAA11511@afs.ntc.mita.keio.ac.jp> > hosokawa@itc.keio.ac.jp writes: > > >> I'll rewrite my patch soon. > > OK, this is "iosize" patch. > > Index: cardd.c > =================================================================== > RCS file: /home/ncvs/src/usr.sbin/pccard/pccardd/cardd.c,v > retrieving revision 1.34 > diff -u -r1.34 cardd.c > --- cardd.c 1999/02/05 16:00:17 1.34 > +++ cardd.c 1999/07/22 15:30:01 > @@ -179,6 +179,9 @@ > sp->config = 0; > /* release io */ > bit_nset(io_avail, sp->io.addr, sp->io.addr + sp->io.size - 1); > + /* release irq */ > + if (sp->irq) > + pool_irq[sp->irq] = 1; > } > > /* Can you commit this seperately, since this is unrelated and is a bugfix? Thanks! Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 22 8:44:47 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with ESMTP id 1471F151FF for ; Thu, 22 Jul 1999 08:44:42 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta6-ntc_mailserver1.03) id AAA20120; Fri, 23 Jul 1999 00:42:36 +0900 (JST) Date: Fri, 23 Jul 1999 00:42:36 +0900 (JST) Message-Id: <199907221542.AAA20120@afs.ntc.mita.keio.ac.jp> To: nate@mt.sri.com Cc: mike@smith.net.au, imp@village.org, mobile@FreeBSD.ORG, hosokawa@itc.keio.ac.jp Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-Reply-To: Your message of "Fri, 23 Jul 1999 00:37:56 JST". <199907221537.JAA01757@mt.sri.com> From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article <199907221537.JAA01757@mt.sri.com> nate@mt.sri.com writes: >> Can you commit this seperately, since this is unrelated and is a bugfix? >> >> Thanks! Agreed. -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 22 9: 4:46 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from Astrovan.cstone.net (mailstop.cstone.net [205.197.102.13]) by hub.freebsd.org (Postfix) with ESMTP id 41DF3151FF for ; Thu, 22 Jul 1999 09:04:36 -0700 (PDT) (envelope-from highway@cstone.net) Received: from fieldeng (fieldeng.cstone.net [205.197.102.253]) by Astrovan.cstone.net (Post.Office MTA v3.5.3 release 223 ID# 0-59789U13500L1350S0V35) with SMTP id net for ; Thu, 22 Jul 1999 11:54:07 -0400 Message-Id: <3.0.6.32.19990722120202.02d56920@cstone.net> X-Sender: highway@cstone.net X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Thu, 22 Jul 1999 12:02:02 -0400 To: mobile@freebsd.org From: Sean Michael Whipkey Subject: Re: Running 3.2 -- do I need PAO? In-Reply-To: <19990722125806.D29502@lehman.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At 12:58 PM 7/22/99 +0100, Nik Clayton wrote: >If I'm running 3.2 (and/or 3.2-stable) do I need the PAO patches? This is definitely a question I'm very interested as well. I'm running a Quantex laptop with only FreeBSD on it - but I'll be damned if I can get the PC cards to work. Oh well, back to hacking on it while at work...:) SeanMike -- SeanMike Whipkey - Cornerstone Networks Engineering - highway@cstone.net Report received spam to: spam-report@cstone.net with the full headers Cornerstone Networks - 804.817.7000 or 800.325.9848 - http://www.cstone.net "I'm my own favorite hero." - Dan Ozdowski - SeanMike ICQ #: 605228 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 22 9:44:10 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from bogslab.ucdavis.edu (bogslab.ucdavis.edu [169.237.68.34]) by hub.freebsd.org (Postfix) with ESMTP id 3F07D14E69 for ; Thu, 22 Jul 1999 09:43:22 -0700 (PDT) (envelope-from greg@bogslab.ucdavis.edu) Received: (from greg@localhost) by bogslab.ucdavis.edu (8.9.3/8.9.3) id HAA28061 for mobile@freebsd.org; Thu, 22 Jul 1999 07:01:11 -0700 (PDT) From: Greg Shenaut Message-Id: <199907221401.HAA28061@bogslab.ucdavis.edu> Subject: 3cxm556+nokia To: mobile@freebsd.org Date: Thu, 22 Jul 1999 07:01:10 -0700 (PDT) Reply-To: gkshenaut@ucdavis.edu X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm doing some traveling in the northen US and eastern Canada with my FreeBSD laptop, a 3cxm556 modem, and an AT&T Nokia 6160 cell phone. I'm having various difficulties making and keeping connections. So far I am using tip with an arcane dialing sequence, and screen [-r] to resume interrupted sessions. If anyone has any comments or suggestions, I'd appreciate them. For example, has anyone actually dared to attempt use of PPP with this kind of setup? -Greg Shenaut To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 22 10: 9:42 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 471B01535F for ; Thu, 22 Jul 1999 10:09:30 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id LAA22708; Thu, 22 Jul 1999 11:08:07 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id LAA02515; Thu, 22 Jul 1999 11:08:07 -0600 Date: Thu, 22 Jul 1999 11:08:07 -0600 Message-Id: <199907221708.LAA02515@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: gkshenaut@ucdavis.edu Cc: mobile@FreeBSD.ORG Subject: Re: 3cxm556+nokia In-Reply-To: <199907221401.HAA28061@bogslab.ucdavis.edu> References: <199907221401.HAA28061@bogslab.ucdavis.edu> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I'm doing some traveling in the northen US and eastern > Canada with my FreeBSD laptop, a 3cxm556 modem, and > an AT&T Nokia 6160 cell phone. I'm having various > difficulties making and keeping connections. So > far I am using tip with an arcane dialing sequence, > and screen [-r] to resume interrupted sessions. Make sure you are setting up hardware handshaking in the modem connection, as well as setting up hardware handshaking in something like /etc/rc.serial for the line (after it comes up). Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 22 12:13: 7 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from bashir.belgium.eu.net (bashir.Belgium.EU.net [193.74.208.147]) by hub.freebsd.org (Postfix) with ESMTP id 2B4C4155D7 for ; Thu, 22 Jul 1999 12:12:57 -0700 (PDT) (envelope-from sebastien.adam@ping.be) Received: from (idialup382.brussels2.eunet.be [193.75.159.127]) by bashir.belgium.eu.net with SMTP id VAA19742 for ; Thu, 22 Jul 1999 21:11:03 +0200 (MET DST) Received: by localhost with Microsoft MAPI; Thu, 22 Jul 1999 21:11:01 +0200 Message-ID: <01BED486.B33D5580.sebastien.adam@ping.be> From: =?us-ascii?Q?Sebastien_ADAM?= Reply-To: "sebastien.adam@ping.be" To: "'freebsd-mobile@freebsd.org'" Subject: installing freebsd on toshiba satellite 4000CDS Date: Thu, 22 Jul 1999 19:09:39 +0200 Organization: Service d'Appoint X-Mailer: Messagerie Internet de Microsoft/MAPI - 8.0.0.4211 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi everybody! FreeBSD interest me. I want to try to install it on my mobile PC, a Toshiba Satellite 4000CDS. Did someone do the same? Can someone help me to do it? I'm newby, I do use FreeBSD yet. -------------- Sebastien ADAM Nouvelle adresse depuis du 25 juin 1999 : Nieuwe adres vanaf 25 juni 1999: New address from June 25th 199: Rue Bonneels 25 1210 Bruxelles BELGIUM Tel/Fax: + 32 2 280.07.76. E-mail: sebastien.adam@ping.be (personal) E-mail: servicedappoint@ping.be (professional) URL: http://www.ping.be/servicedappoint/ (professional) ICQ UIN: 32498710. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 22 17:24:52 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from thor.polycad.com.br (thor.polycad.com.br [200.231.49.10]) by hub.freebsd.org (Postfix) with ESMTP id B974914DC3 for ; Thu, 22 Jul 1999 17:24:37 -0700 (PDT) (envelope-from santanna@polycad.com.br) Received: from polycad.com.br (ppp8.decserver01.polycadnet [192.168.10.28]) by thor.polycad.com.br (8.9.3/8.9.3) with ESMTP id VAA09279 for ; Thu, 22 Jul 1999 21:22:13 -0300 (EST) Message-ID: <3797B638.105D16E9@polycad.com.br> Date: Thu, 22 Jul 1999 21:24:24 -0300 From: "Alessandro M. S. Sant'Anna" Organization: PolyCAD Engenharia e Comercio de Informatica Ltda. X-Mailer: Mozilla 4.5 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-mobile@freebsd.org Subject: Two PCCARD's and two WaveLAN/IEEE... Help. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm using the FreeBSD 3.2-RELEASE and I have on this computer two PCCARDS and two WaveLAN/IEEE PCMCIA cards. I can't get both to work. I'm doing something wrong but I don't know what. I'll describe what I did: I downloaded the WaveLAN driver (wi driver) and installed in the kernel. My kernel looks like this: controller card0 device pcic0 at card? (tried pcic0 at card0) device pcic1 at card? (tried pcic1 at card0) device wi0 at isa? port? net irq? controller card1 device pcic0 at card? (tried pcic2 at card1 already) device pcic1 at card? (tried pcic3 at card1 already) device wi1 at isa? port? net irq? And my pccard.conf looks like this: io 0x240-0x360 irq 5 10 memory 0xd4000 96k # Lucent WaveLAN/IEEE card "Lucent Technologies" "WaveLAN/IEEE" config 0x1 "wi0" 5 insert echo WaveLAN/IEEE inserted insert /etc/pccard_ether wi0 remove echo WaveLAN/IEEE removed remove /sbin/ifconfig wi0 delete config 0x1 "wi1" 10 insert echo WaveLAN/IEEE inserted insert /etc/pccard_ether wi1 remove echo WaveLAN/IEEE removed remove /sbin/ifconfig wi1 delete With a config like this, my box only recognizes one wavelan PCMCIA card. It says on boot time: (something like that) card on slot 0 card on slot 2 I need to get both ISA to PCMCIA bridge working and both WaveLAN/IEEE cards also working. On the ISA to PCMCIA bridge card, it has two jumper settings: 0x3E0-0x3E1 and 0x3E2-0x3E3 and each card has one of these settings but PCCARD recognizes the first card on 0x240 and doesn't find the other card, card1. Thanks.... -- Alessandro M. S. Sant'Anna ================================================================= Analista de Sistemas santanna@polycad.com.br PolyCAD Eng. Com. Informatica Ltda. http://www.polycad.com.br Av. Dr. Joao Guilhermino 261 sl. 52 Tel: +55-12-3462600 Sao Jose dos Campos, SP 12210-131 - Brasil Fax: +55-12-3417034 -= Registered LINUX User #115588 =- -= Registered FreeBSD User =- PGP ID's: -= RSA 0x0F8A87F3 =- -= DSS 0x94863830 =- ================================================================= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 22 17:33:14 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with ESMTP id 93FB014DC3 for ; Thu, 22 Jul 1999 17:33:12 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta6-ntc_mailserver1.03) id JAA24021; Fri, 23 Jul 1999 09:31:45 +0900 (JST) Date: Fri, 23 Jul 1999 09:31:45 +0900 (JST) Message-Id: <199907230031.JAA24021@afs.ntc.mita.keio.ac.jp> To: nate@mt.sri.com Cc: mike@smith.net.au, imp@village.org, mobile@FreeBSD.ORG, hosokawa@itc.keio.ac.jp Subject: Re: usr.sbin/pccard/pccardd change for "cardio" and "cardmem" In-Reply-To: Your message of "Fri, 23 Jul 1999 00:37:56 JST". <199907221537.JAA01757@mt.sri.com> From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article <199907221537.JAA01757@mt.sri.com> nate@mt.sri.com writes: >> Can you commit this seperately, since this is unrelated and is a bugfix? I found one more code related to cardmem directive. I removed it from this patch. -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Jul 22 18:43: 9 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from bogslab.ucdavis.edu (bogslab.ucdavis.edu [169.237.68.34]) by hub.freebsd.org (Postfix) with ESMTP id D854514BF8 for ; Thu, 22 Jul 1999 18:43:07 -0700 (PDT) (envelope-from greg@bogslab.ucdavis.edu) Received: (from greg@localhost) by bogslab.ucdavis.edu (8.9.3/8.9.3) id RAA16433; Thu, 22 Jul 1999 17:51:47 -0700 (PDT) From: Greg Shenaut Message-Id: <199907230051.RAA16433@bogslab.ucdavis.edu> Subject: Re: 3cxm556+nokia To: nate@mt.sri.com (Nate Williams) Date: Thu, 22 Jul 1999 17:51:46 -0700 (PDT) Cc: mobile@freebsd.org In-Reply-To: <199907221708.LAA02515@mt.sri.com> from "Nate Williams" at Jul 22, 99 11:08:07 am Reply-To: gkshenaut@ucdavis.edu X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "Nate Williams wrote:" > > > I'm doing some traveling in the northen US and eastern > > Canada with my FreeBSD laptop, a 3cxm556 modem, and > > an AT&T Nokia 6160 cell phone. I'm having various > > difficulties making and keeping connections. So > > far I am using tip with an arcane dialing sequence, > > and screen [-r] to resume interrupted sessions. > > Make sure you are setting up hardware handshaking in the modem > connection, as well as setting up hardware handshaking in something like /etc/rc.serial for the line (after it comes up). I think I have that set up OK. The interruptions are coming from esoteric modem negociation problems, I think. The modem card asks for retrains and eventually the modem on the other end won't do one. Or the cellular connection gets very bad or goes away. One question is, what is the best kind of modem to use on the other end of a cellular connection? I understand that a cellular-specific protocol called ETC will help, and I know that my old Zoom modem doesn't grok it. What modems do? How much does it help? -Greg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Fri Jul 23 0:10:18 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with ESMTP id 208D114DE8 for ; Fri, 23 Jul 1999 00:10:11 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta6-ntc_mailserver1.03) id QAA28153; Fri, 23 Jul 1999 16:08:42 +0900 (JST) Date: Fri, 23 Jul 1999 16:08:42 +0900 (JST) Message-Id: <199907230708.QAA28153@afs.ntc.mita.keio.ac.jp> To: santanna@polycad.com.br Cc: freebsd-mobile@freebsd.org, hosokawa@itc.keio.ac.jp Subject: Re: Two PCCARD's and two WaveLAN/IEEE... Help. In-Reply-To: Your message of "Fri, 23 Jul 1999 09:24:24 JST". <3797B638.105D16E9@polycad.com.br> From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article <3797B638.105D16E9@polycad.com.br> santanna@polycad.com.br writes: >> # Lucent WaveLAN/IEEE >> card "Lucent Technologies" "WaveLAN/IEEE" >> config 0x1 "wi0" 5 >> insert echo WaveLAN/IEEE inserted >> insert /etc/pccard_ether wi0 >> remove echo WaveLAN/IEEE removed >> remove /sbin/ifconfig wi0 delete >> >> config 0x1 "wi1" 10 >> insert echo WaveLAN/IEEE inserted >> insert /etc/pccard_ether wi1 >> remove echo WaveLAN/IEEE removed >> remove /sbin/ifconfig wi1 delete >> Hmm. Are you using two PC-card WaveLAN, or two ISA WaveLAN? >> On the ISA to PCMCIA bridge card, it has two jumper settings: >> 0x3E0-0x3E1 and 0x3E2-0x3E3 and each card has one of these settings but >> PCCARD recognizes the first card on 0x240 and doesn't find the other >> card, card1. 0x3e0 and 0x3e2 is address range for PC-card controller on WavLAN ISA card. WaveLAN itself uses free I/O address pool. -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Fri Jul 23 3:12:45 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from bells.cs.ucl.ac.uk (bells.cs.ucl.ac.uk [128.16.5.31]) by hub.freebsd.org (Postfix) with SMTP id 2D65814BF9 for ; Fri, 23 Jul 1999 03:12:41 -0700 (PDT) (envelope-from T.Pagtzis@cs.ucl.ac.uk) Received: from ginger.cs.ucl.ac.uk by bells.cs.ucl.ac.uk with local SMTP id ; Fri, 23 Jul 1999 11:12:21 +0100 X-Mailer: exmh version 2.0.2 To: freebsd-mobile@freebsd.org Subject: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 23 Jul 1999 11:12:19 +0100 Message-ID: <682.932724739@cs.ucl.ac.uk> From: Theo PAGTZIS Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi All, Could someone point out a pcmcia card (net card) that would be recognized if one tries to install freebsd 3.2 from it? Cheers Theo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Fri Jul 23 8:29:23 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with ESMTP id C9CED1504D for ; Fri, 23 Jul 1999 08:22:01 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta6-ntc_mailserver1.03) id AAA02396; Sat, 24 Jul 1999 00:21:52 +0900 (JST) Date: Sat, 24 Jul 1999 00:21:52 +0900 (JST) Message-Id: <199907231521.AAA02396@afs.ntc.mita.keio.ac.jp> To: mihara@prd.fc.nec.co.jp Cc: mobile@freebsd.org, hosokawa@itc.keio.ac.jp Subject: 3C574TX for -current (Re: 3COM Megahertz 10/100 LAN+56K Modem (3CCFEM556BI)) In-Reply-To: Your message of "Mon, 19 Jul 1999 10:58:07 JST". <14226.34351.40295.87915G@mosra.prd.fc.nec.co.jp> From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article <14226.34351.40295.87915G@mosra.prd.fc.nec.co.jp> mihara@prd.fc.nec.co.jp writes: >> I have tried to make 3COM Megahertz 10/100 LAN+56K Modem (3CCFEM556BI) >> (LAN side) work with FreeBSD 3.2 with PAO3, and succeed in it. Here >> I attach a patch for ep driver and an entry for /etc/pccard.conf. You >> need to add an pccard.conf entry, apply this patch in /sys/i386/isa, >> rebuild kernel and reboot the system. Of course, you need PAO3 system >> prior to make this patch. I merged it into if_ep driver and it worked on 3C574TX (I think my patch does not break anything for other ep cards), but it did not work when I added offset 0x10 to the I/O address when accessing window 1 like your code does. I used only 2bit address shift in accessing EEPROM and it worked on 3C574TX. Perhaps there can be difference between 574 and 556. If you can, please test following patch on -current. I'm using this patch with following pccard.conf entry. # 3Com Fast Etherlink 3C574TX card "3Com" "3C574-TX Fast EtherLink PC Ca" config 0x1 "ep0" ? 0x1 insert echo 3Com Etherlink III inserted insert /etc/pccard_ether ep0 remove echo 3Com Etherlink III removed remove /sbin/ifconfig ep0 delete Please note that this entry only works on -current pccardd with the bug-fixes I committed today. Please get the latest -current before testing this code. I want to merge it to -current soon! Okay, the patch follows: Index: if_ep.c =================================================================== RCS file: /home/ncvs/src/sys/i386/isa/if_ep.c,v retrieving revision 1.80 diff -u -r1.80 if_ep.c --- if_ep.c 1999/07/06 19:22:46 1.80 +++ if_ep.c 1999/07/23 15:08:43 @@ -193,13 +193,21 @@ /* get_e() requires these. */ sc->ep_io_addr = is->id_iobase; sc->unit = is->id_unit; + epb->cmd_off = 0; + if (is->id_flags & EP_FLAGS_100TX) + epb->cmd_off = 2; epb->epb_addr = is->id_iobase; epb->epb_used = 1; epb->prod_id = get_e(sc, EEPROM_PROD_ID); - /* 3C589's product id? */ - if (epb->prod_id != 0x9058) { + /* product id */ + switch (epb->prod_id) { + case 0x6055: /* 3C556 */ + case 0x4057: /* 3C574 */ + case 0x9058: /* 3C589 */ + break; + default: printf("ep%d: failed to come ready.\n", is->id_unit); return (ENXIO); } @@ -232,7 +240,7 @@ sc->ep_connectors |= UTP; } if (!(sc->ep_connectors & 7)) - printf("no connectors!"); + printf("ep%d: No connectors or MII.\n", is->id_unit); sc->ep_connector = inw(BASE + EP_W0_ADDRESS_CFG) >> ACF_CONNECTOR_BITS; /* ROM size = 0, ROM base = 0 */ @@ -244,6 +252,19 @@ outw(BASE + EP_W0_PRODUCT_ID, sc->epb->prod_id); + /* + * turn on the MII tranceiver + */ + GO_WINDOW(3); + outw(BASE + EP_W3_OPTIONS, 0x8040); + DELAY(1000); + outw(BASE + EP_W3_OPTIONS, 0xc040); + outw(BASE + EP_COMMAND, RX_RESET); + outw(BASE + EP_COMMAND, TX_RESET); + while (inw(BASE + EP_STATUS) & S_COMMAND_IN_PROGRESS); + DELAY(1000); + outw(BASE + EP_W3_OPTIONS, 0x8040); + ep_attach(sc); return 1; @@ -417,7 +438,7 @@ { if (!eeprom_rdy(sc)) return (0xffff); - outw(BASE + EP_W0_EEPROM_COMMAND, EEPROM_CMD_RD | offset); + outw(BASE + EP_W0_EEPROM_COMMAND, (EEPROM_CMD_RD << sc->epb->cmd_off) | offset); if (!eeprom_rdy(sc)) return (0xffff); return (inw(BASE + EP_W0_EEPROM_DATA)); Index: if_epreg.h =================================================================== RCS file: /home/ncvs/src/sys/i386/isa/if_epreg.h,v retrieving revision 1.23 diff -u -r1.23 if_epreg.h --- if_epreg.h 1998/04/17 22:36:35 1.23 +++ if_epreg.h 1999/07/23 15:08:44 @@ -86,6 +86,7 @@ /* data from EEPROM for later use */ u_short eth_addr[3]; /* Ethernet address */ u_short prod_id; /* product ID */ + int cmd_off; /* command offset (bit shift) */ u_short res_cfg; /* resource configuration */ }; @@ -221,6 +222,7 @@ /* Read */ #define EP_W3_FREE_TX 0x0c #define EP_W3_FREE_RX 0x0a +#define EP_W3_OPTIONS 0x08 /* * Window 4 registers. Diagnostics. @@ -461,3 +463,8 @@ extern int ep_attach __P((struct ep_softc *sc)); extern u_int16_t get_e __P((struct ep_softc *sc, int offset)); + +/* + * Config flags + */ +#define EP_FLAGS_100TX 0x1 -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Fri Jul 23 11:47: 4 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1]) by hub.freebsd.org (Postfix) with ESMTP id B666814F6D for ; Fri, 23 Jul 1999 11:47:02 -0700 (PDT) (envelope-from Dean.Brundage@EBay.Sun.COM) Received: from ebaymail2.Ebay.Sun.COM ([129.150.111.20]) by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id LAA01224 for ; Fri, 23 Jul 1999 11:44:51 -0700 (PDT) Received: from ha1mil.EBay.Sun.COM (phys-ha1mila.EBay.Sun.COM [129.150.32.210]) by ebaymail2.Ebay.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id LAA20248 for ; Fri, 23 Jul 1999 11:44:50 -0700 (PDT) Received: from dihedral by ha1mil.EBay.Sun.COM (8.8.8+Sun/SMI-SVR4) id LAA26411; Fri, 23 Jul 1999 11:44:50 -0700 (PDT) Message-Id: <199907231844.LAA26411@ha1mil.EBay.Sun.COM> Date: Fri, 23 Jul 1999 11:44:50 -0700 (PDT) From: Dean Brundage Reply-To: Dean Brundage Subject: FreeBSD on handheld computers To: freebsd-mobile@freebsd.org MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: paEkrSyfM+g6fBs7egkTbg== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.3.2 SunOS 5.7 sun4u sparc Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello all, I was at a computer convention a few weeks ago and passed by someone using what looked like a Sharp handheld computer running Linux (or some unix os). I didn't get a good enough look at it and was unble to ask him questions, but it got my curiousity piqued. I want to get myself a hand-held computer, nad since it looks like it might be possible, am interested in running fBSD on it. Does anyone out there know of resources I can tap? I'm currently looking at Sharp Mobilon, NEC Mobile Pro, (the new)IBM Workpad z50, and the IBM Thinkpad 240 (which looks more like a ultra-small laptop but is more than I want to spend right now) Any help would be great. I'm not subscribed to this mailing list, so please cc me in any replies you make. If anyone knows anything about running That Other free unix on hand-helds I'll read that, too. Thanks, -Dean Unscrabler of eggs. SunIT aka SunIR aka Desktop Support aka ENS ---------------------------------------------------------------------------- A train stops at a train station, a bus stops at a bus station, on my desk I have a workstation. ---------------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Fri Jul 23 11:56:27 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from jli.com (jli.com [199.2.111.1]) by hub.freebsd.org (Postfix) with SMTP id 5EA22156A3 for ; Fri, 23 Jul 1999 11:55:11 -0700 (PDT) (envelope-from trost@cloud.rain.com) Received: (qmail 15483 invoked by uid 4); 23 Jul 1999 18:54:50 -0000 Received: (qmail 37146 invoked from network); 23 Jul 1999 18:54:30 -0000 Received: from localhost.cloud.rain.com (HELO grey.cloud.rain.com) (127.0.0.1) by localhost.cloud.rain.com with SMTP; 23 Jul 1999 18:54:30 -0000 To: Dean Brundage Cc: mobile@freebsd.org Subject: Re: FreeBSD on handheld computers References: <199907231844.LAA26411@ha1mil.EBay.Sun.COM> In-reply-to: Your message of Fri, 23 Jul 1999 11:44:50 PDT. <199907231844.LAA26411@ha1mil.EBay.Sun.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <37142.932756069.1@grey.cloud.rain.com> Date: Fri, 23 Jul 1999 11:54:29 -0700 Message-ID: <37143.932756069@grey.cloud.rain.com> From: Bill Trost Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dean Brundage writes: I want to get myself a hand-held computer, nad since it looks like it might be possible, am interested in running fBSD on it... The Toshiba Libretto might be an obvious choice, with lots of people using it, although I don't know how much they cost. If anyone knows anything about running That Other free unix on hand-helds I'll read that, too. Good point -- NetBSD has been ported to a lot of processors, so chances are pretty good of finding something that runs on a platform targetted to run WinCE. Or was that not the other free Unix you were talking about? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Fri Jul 23 15:53:10 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with ESMTP id 530D414C2E for ; Fri, 23 Jul 1999 15:53:01 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta6-ntc_mailserver1.03) id HAA05999; Sat, 24 Jul 1999 07:52:42 +0900 (JST) Date: Sat, 24 Jul 1999 07:52:42 +0900 (JST) Message-Id: <199907232252.HAA05999@afs.ntc.mita.keio.ac.jp> To: hosokawa@itc.keio.ac.jp Cc: mihara@prd.fc.nec.co.jp, mobile@freebsd.org, hosokawa@itc.keio.ac.jp Subject: Re: 3C574TX for -current (Re: 3COM Megahertz 10/100 LAN+56K Modem (3CCFEM556BI)) In-Reply-To: Your message of "Sat, 24 Jul 1999 00:21:52 JST". <199907231521.AAA02396@afs.ntc.mita.keio.ac.jp> From: hosokawa@itc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.21] 1997-12/23(Tue) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article <199907231521.AAA02396@afs.ntc.mita.keio.ac.jp> hosokawa@itc.keio.ac.jp writes: >> I merged it into if_ep driver and it worked on 3C574TX (I think my >> patch does not break anything for other ep cards), but it did not work >> when I added offset 0x10 to the I/O address when accessing window 1 >> like your code does. Oops, sorry, my last patch always try to enable MII transciever. Following new patch does not. I tested it also with 3C589B. Index: if_ep.c =================================================================== RCS file: /home/ncvs/src/sys/i386/isa/if_ep.c,v retrieving revision 1.80 diff -u -r1.80 if_ep.c --- if_ep.c 1999/07/06 19:22:46 1.80 +++ if_ep.c 1999/07/23 22:48:03 @@ -193,13 +193,24 @@ /* get_e() requires these. */ sc->ep_io_addr = is->id_iobase; sc->unit = is->id_unit; + epb->cmd_off = 0; + if (is->id_flags & EP_FLAGS_100TX) + epb->cmd_off = 2; epb->epb_addr = is->id_iobase; epb->epb_used = 1; epb->prod_id = get_e(sc, EEPROM_PROD_ID); + epb->mii_trans = 0; - /* 3C589's product id? */ - if (epb->prod_id != 0x9058) { + /* product id */ + switch (epb->prod_id) { + case 0x6055: /* 3C556 */ + case 0x4057: /* 3C574 */ + epb->mii_trans = 1; + break; + case 0x9058: /* 3C589 */ + break; + default: printf("ep%d: failed to come ready.\n", is->id_unit); return (ENXIO); } @@ -232,7 +243,7 @@ sc->ep_connectors |= UTP; } if (!(sc->ep_connectors & 7)) - printf("no connectors!"); + printf("ep%d: No connectors or MII.\n", is->id_unit); sc->ep_connector = inw(BASE + EP_W0_ADDRESS_CFG) >> ACF_CONNECTOR_BITS; /* ROM size = 0, ROM base = 0 */ @@ -244,6 +255,21 @@ outw(BASE + EP_W0_PRODUCT_ID, sc->epb->prod_id); + if (sc->epb->mii_trans) { + /* + * turn on the MII tranceiver + */ + GO_WINDOW(3); + outw(BASE + EP_W3_OPTIONS, 0x8040); + DELAY(1000); + outw(BASE + EP_W3_OPTIONS, 0xc040); + outw(BASE + EP_COMMAND, RX_RESET); + outw(BASE + EP_COMMAND, TX_RESET); + while (inw(BASE + EP_STATUS) & S_COMMAND_IN_PROGRESS); + DELAY(1000); + outw(BASE + EP_W3_OPTIONS, 0x8040); + } + ep_attach(sc); return 1; @@ -417,7 +443,7 @@ { if (!eeprom_rdy(sc)) return (0xffff); - outw(BASE + EP_W0_EEPROM_COMMAND, EEPROM_CMD_RD | offset); + outw(BASE + EP_W0_EEPROM_COMMAND, (EEPROM_CMD_RD << sc->epb->cmd_off) | offset); if (!eeprom_rdy(sc)) return (0xffff); return (inw(BASE + EP_W0_EEPROM_DATA)); Index: if_epreg.h =================================================================== RCS file: /home/ncvs/src/sys/i386/isa/if_epreg.h,v retrieving revision 1.23 diff -u -r1.23 if_epreg.h --- if_epreg.h 1998/04/17 22:36:35 1.23 +++ if_epreg.h 1999/07/23 22:48:04 @@ -86,6 +86,8 @@ /* data from EEPROM for later use */ u_short eth_addr[3]; /* Ethernet address */ u_short prod_id; /* product ID */ + int cmd_off; /* command offset (bit shift) */ + int mii_trans; /* activate MII transiever */ u_short res_cfg; /* resource configuration */ }; @@ -221,6 +223,7 @@ /* Read */ #define EP_W3_FREE_TX 0x0c #define EP_W3_FREE_RX 0x0a +#define EP_W3_OPTIONS 0x08 /* * Window 4 registers. Diagnostics. @@ -461,3 +464,8 @@ extern int ep_attach __P((struct ep_softc *sc)); extern u_int16_t get_e __P((struct ep_softc *sc, int offset)); + +/* + * Config flags + */ +#define EP_FLAGS_100TX 0x1 -- HOSOKAWA, Tatsumi Assistant Manager Information Technology Center, Keio University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Sat Jul 24 8: 0: 5 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from gratis.grondar.za (gratis.grondar.za [196.7.18.65]) by hub.freebsd.org (Postfix) with ESMTP id D2B0E14E43 for ; Sat, 24 Jul 1999 07:59:57 -0700 (PDT) (envelope-from mark@grondar.za) Received: from grondar.za (localhost [127.0.0.1]) by gratis.grondar.za (8.9.3/8.9.3) with ESMTP id QAA59526; Sat, 24 Jul 1999 16:59:04 +0200 (SAST) (envelope-from mark@grondar.za) Message-Id: <199907241459.QAA59526@gratis.grondar.za> To: gkshenaut@ucdavis.edu Cc: mobile@FreeBSD.ORG Subject: Re: 3cxm556+nokia Date: Sat, 24 Jul 1999 16:59:02 +0200 From: Mark Murray Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I'm doing some traveling in the northen US and eastern > Canada with my FreeBSD laptop, a 3cxm556 modem, and > an AT&T Nokia 6160 cell phone. What hardware are you using to connect your modem to your cellphone? I'd like to get a similar cable myself :-) M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Sat Jul 24 23:22: 9 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id EC5951504C for ; Sat, 24 Jul 1999 23:22:01 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by relay.nuxi.com (8.9.3/8.9.3) id XAA89173 for mobile@FreeBSD.ORG; Sat, 24 Jul 1999 23:21:08 -0700 (PDT) (envelope-from obrien) Message-ID: <19990724232108.A89132@nuxi.com> Date: Sat, 24 Jul 1999 23:21:08 -0700 From: "David O'Brien" To: mobile@FreeBSD.ORG Subject: pccardd does not wait for interface to be up with "-z" Reply-To: obrien@NUXI.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Ok, I've tried again on my Sony Vaio 505TX w/3c589d. I applied the patches below, configured for a static IP address and rebooted. My output: ------------------------- About to run pccardd -------------------- pccard: -z flag ------------------------- Ran pccardd ---------------------------- ---------------[ before ifconfig processing ]----------------------- [ output of ifconfig -a showing ep0 does *not* exist ] ifconfig ep0 inet 192.168.2.3 netmask 255.255.255.0 ifconfig: interface ep0 does not exist [ output of ifconfig -a showing ep0 does *not* exist ] -----------------[ after ifconfig processing ]----------------------- route: writing to routing socket: Network is unreachable . . login: ep0: utp/bnc[*UPT*] address 00:60:08:8a:22:d7 So as you can see ``pccard -z'' isn't working properly. IMHO this is very important to fix or the standard FreeBSD DHCP configuration will not work. Index: rc.network =================================================================== RCS file: /home/ncvs/src/etc/rc.network,v retrieving revision 1.50 diff -u -r1.50 rc.network --- rc.network 1999/07/16 09:26:52 1.50 +++ rc.network 1999/07/25 06:00:50 @@ -50,6 +50,8 @@ fi done +echo "-----------------[ before ifconfig processing ]-----------------------" +ifconfig -a # Set up all the network interfaces, calling startup scripts if needed if [ "x${network_interfaces}" = "xauto" ]; then network_interfaces="`ifconfig -l`" @@ -67,6 +69,7 @@ if [ X"${ifconfig_args}" = X"DHCP" ]; then ${dhcp_program} ${dhcp_flags} ${ifn} else + echo ifconfig ${ifn} ${ifconfig_args} ifconfig ${ifn} ${ifconfig_args} fi showstat=true @@ -95,6 +98,8 @@ ifconfig ${ifn} fi done +ifconfig -a +echo "-----------------[ after ifconfig processing ]-----------------------" # Initialize IP filtering using ipfw echo "" Index: rc.pccard =================================================================== RCS file: /home/ncvs/src/etc/rc.pccard,v retrieving revision 1.15 diff -u -r1.15 rc.pccard --- rc.pccard 1999/07/07 01:26:55 1.15 +++ rc.pccard 1999/07/24 02:16:06 @@ -1,4 +1,4 @@ -#!/bin/sh - +#!/bin/sh -x # PC-card startup script # $Id: rc.pccard,v 1.15 1999/07/07 01:26:55 hosokawa Exp $ @@ -12,5 +12,7 @@ pccardd_flags="$pccardd_flags -f $pccard_conf" fi echo -n "Enable PC-card." - pccardd $pccardd_flags 2>&1 > /var/log/pccardd.debug & +echo "------------------------- About to run pccardd --------------------" + pccardd -z $pccardd_flags 2>&1 > /var/log/pccardd.debug & +echo "------------------------- Ran pccardd ----------------------------" fi Index: pccardd.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/pccard/pccardd/pccardd.c,v retrieving revision 1.4 diff -u -r1.4 pccardd.c --- pccardd.c 1999/07/23 01:46:47 1.4 +++ pccardd.c 1999/07/24 02:08:07 @@ -74,6 +74,7 @@ break; case 'z': delay = 1; +fprintf(stderr, "\npccardd: -z flag\n\n" ); break; case ':': die("no config file argument"); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message