From owner-openbsd-mobile-outgoing@naughty.monkey.org Sun Apr 1 05:41:17 2001 Return-Path: Delivered-To: openbsd-mobile-outgoing@naughty.monkey.org Received: by naughty.monkey.org (Postfix, from userid 502) id 92869115CF; Sun, 1 Apr 2001 05:41:16 -0400 (EDT) Delivered-To: openbsd-mobile@monkey.org Received: by naughty.monkey.org (Postfix, from userid 1001) id 7C9B111599; Sun, 1 Apr 2001 05:41:15 -0400 (EDT) Received: from slave3.aa.net (slave3.aa.net [204.157.220.249]) by naughty.monkey.org (Postfix) with ESMTP id 0437711599 for ; Sun, 1 Apr 2001 05:33:23 -0400 (EDT) Received: from aa.net (IDENT:members@web.aa.net [204.157.220.240]) by slave3.aa.net (8.9.1/8.8.5) with SMTP id BAA19245 for ; Sun, 1 Apr 2001 01:33:22 -0800 X-Intended-For: From: "Daniel Millen" Reply-To: dmillen@aa.net To: openbsd-mobile@monkey.org Date: Sun, 1 Apr 2001 01:33:22 -800 Subject: OpenBSD-mobile: Dell Latitude CPi A400XT not installing 2.8 X-Mailer: DMailWeb Web to Mail Gateway 2.3b, http://netwinsite.com/top_mail.htm Message-id: <3ac6f5e2.437d.0@aa.net> X-User-Info: 207.55.127.11 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: openbsd-mobile-owner@monkey.org Precedence: bulk I'm having problems getting my CPi A400XT to install OpenBSD 2.8. My problem is this. I don't have a CD to install OpenBSD from. I was planning on installing over my network, however, my NIC doesn't seem to want to be detected. It's a 3CCFE575BT NIC and is supported, as is all of the other PCCard hardware. I'd provide a dmesg but I don't know of any way to pull it from my system without having some sort of a network connection. Any ideas would be appreciated. If there is any information that is needed, let me know. Thanks, Dan Web Mail services provided by http://www.aa.net From owner-openbsd-mobile-outgoing@naughty.monkey.org Mon Apr 2 01:58:39 2001 Return-Path: Delivered-To: openbsd-mobile-outgoing@naughty.monkey.org Received: by naughty.monkey.org (Postfix, from userid 502) id F1507115D9; Mon, 2 Apr 2001 01:58:37 -0400 (EDT) Delivered-To: openbsd-mobile@monkey.org Received: by naughty.monkey.org (Postfix, from userid 1001) id 1FC2511596; Mon, 2 Apr 2001 01:58:36 -0400 (EDT) Received: from slave2.aa.net (slave2.aa.net [204.157.220.251]) by naughty.monkey.org (Postfix) with ESMTP id C767C115BA for ; Sun, 1 Apr 2001 15:06:38 -0400 (EDT) Received: from aa.net (IDENT:members@web.aa.net [204.157.220.240]) by slave2.aa.net (8.9.1/8.8.5) with SMTP id MAA04675; Sun, 1 Apr 2001 12:06:37 -0700 X-Intended-For: openbsd-mobile@monkey.org From: "Daniel Millen" Reply-To: dmillen@aa.net To: openbsd-mobile@monkey.org, misc@openbsd.org Date: Sun, 1 Apr 2001 12:06:38 -800 Subject: OpenBSD-mobile: RE: Dell Latitude CPi A400XT not installing 2.8 X-Mailer: DMailWeb Web to Mail Gateway 2.3b, http://netwinsite.com/top_mail.htm Message-id: <3ac77c3e.58e8.0@aa.net> X-User-Info: 207.55.127.11 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: openbsd-mobile-owner@monkey.org Precedence: bulk I figured out how to work around this. I had to use an install disk from snapshot. It boots after installing the 2.8 kernel, and still recognizes the NIC. Thanks, Dan Web Mail services provided by http://www.aa.net From owner-openbsd-mobile-outgoing@naughty.monkey.org Tue Apr 3 13:03:56 2001 Return-Path: Delivered-To: openbsd-mobile-outgoing@naughty.monkey.org Received: by naughty.monkey.org (Postfix, from userid 502) id 30F15115A1; Tue, 3 Apr 2001 13:03:56 -0400 (EDT) Delivered-To: openbsd-mobile@monkey.org Received: by naughty.monkey.org (Postfix, from userid 1001) id 1CCFB1159E; Tue, 3 Apr 2001 13:03:55 -0400 (EDT) Received: from paulsboutique.dyndns.org (cdm-8-188-bcs.cox-internet.com [208.180.8.188]) by naughty.monkey.org (Postfix) with SMTP id 30505115AA for ; Tue, 3 Apr 2001 12:38:10 -0400 (EDT) Received: (qmail 20819 invoked by uid 516); 3 Apr 2001 11:38:05 -0000 Date: Tue, 3 Apr 2001 11:38:05 +0000 (/etc/localtime) From: To: openbsd-mobile@monkey.org Subject: OpenBSD-mobile: cbb error Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: openbsd-mobile-owner@monkey.org Precedence: bulk Howdy guys. Trying to get 2.8 installed on a gateway2000 solo 2300. The install is fine, but the card bus is not being picked up (at least not completely). Below is a slightly trimmed down version of the dmesg. I can send along the kernel config as well, didn't want to clutter up the list just yet though. The error I am refering to is at the very bottom of the dmesg and goes something along the line of "cbb0: couldn't establish interrupt at irq 10". I have been scouring the bsd mailing archives, google, deja, etc and cannot find a single reference to this error (other than the fact that google actually found the code that printed this error out, which is kinda neat). Anyway, here is the dmesg. If anyone has any idea what this is, let me know, paul OpenBSD 2.8 (GENERIC) #4: Sun Apr 1 20:01:19 CDT 2001 root@noname:/sys/arch/i386/compile/GENERIC cpu0: F00F bug workaround installed cpu0: Intel Pentium/MMX (Tillamook) ("GenuineIntel" 586-class) 200 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,MMX real mem = 117026816 (114284K) avail mem = 104890368 (102432K) using 1454 buffers containing 5955584 bytes (5816K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(62) BIOS, date 12/15/98, BIOS32 rev. 0 @ 0xf5550 apm0 at bios0: Power Management spec V1.2 apm0: battery life expectancy 99% apm0: AC on, battery charge high pcibiosprobe: 0x50:0xf575d at 0xf5550[0x8e0] pcibios0 at bios0: rev. 2.1 found at 0xf5550[0x8e0] pcibios0: config mechanism [1][x], special cycles [x][x], last bus 0 pcibios0: PCI IRQ Routing Table rev. 1.0 found at 0xf5d40, size 240 bytes (13 entries) pcibios0: PCI Interrupt Router at 000:01:0 pciintr_link_init: bus 0 device 1 link 0x60: bad irq bitmap 0xdef8, should be 0x0400 pciintr_link_init: bus 0 device 1 link 0x61: bad irq bitmap 0xdef8, should be 0x0400 ------------------------------------------ device vendor product pin PIRQ IRQ stage ------------------------------------------ 000:01:2 0x8086 0x7112 D 0x03 10 0 already assigned 000:10:0 0x1013 0x1110 A 0x00 10 0 fixed up 000:10:1 0x1013 0x1110 B 0x01 10 0 already assigned ------------------------------------------ PCI bridge 0: primary 0, secondary 1, subordinate 1 PCI bridge 1: primary 0, secondary 2, subordinate 2 pcibios0: PCI bus #2 is the last bus [System BIOS Setting]----------------------- device vendor product register space address size -------------------------------------------- 000:00:0 0x8086 0x7100 [OK] 000:01:0 0x8086 0x7110 [OK] 000:01:1 0x8086 0x7111 20h port 0x0000fcd0 0x00000010 [OK] 000:01:2 0x8086 0x7112 20h port 0x0000fce0 0x00000020 [OK] 000:01:3 0x8086 0x7113 [OK] 000:02:0 0x10c8 0x0004 10h mem 0xfd000000 0x01000000 14h mem 0xfea00000 0x00200000 18h mem 0xfed00000 0x00100000 [OK] 000:10:0 0x1013 0x1110 10h mem 0x00000000 0x00001000 [NG] 000:10:1 0x1013 0x1110 10h mem 0x68001000 0x00001000 [OK] --------------------------[ 1 devices bogus] Physical memory end: 0x06ffe000 PCI memory mapped I/O space start: 0x07000000 [PCIBIOS fixup stage]----------------------- device vendor product register space address size -------------------------------------------- 000:00:0 0x8086 0x7100 [OK] 000:01:0 0x8086 0x7110 [OK] 000:01:1 0x8086 0x7111 20h port 0x0000fcd0 0x00000010 [OK] 000:01:2 0x8086 0x7112 20h port 0x0000fce0 0x00000020 [OK] 000:01:3 0x8086 0x7113 [OK] 000:02:0 0x10c8 0x0004 10h mem 0xfd000000 0x01000000 14h mem 0xfea00000 0x00200000 18h mem 0xfed00000 0x00100000 [OK] 000:10:0 0x1013 0x1110 10h mem 0x07000000 0x00001000 [OK] 000:10:1 0x1013 0x1110 10h mem 0x68001000 0x00001000 [OK] --------------------------[ 0 devices bogus] pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Intel 82439TX System (MTXC)" rev 0x01 pcib0 at pci0 dev 1 function 0 "Intel 82371AB PIIX4 ISA" rev 0x01 pciide0 at pci0 dev 1 function 1 "Intel 82371AB IDE (PIIX4)" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: wd0: can use 32-bit, PIO mode 4, DMA mode 2, Ultra-DMA mode 2 wd0: 16-sector PIO, LBA, 3909MB, 7944 cyl, 16 head, 63 sec, 8007552 sectors pciide0: channel 0 interrupting at irq 14 wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers) "Intel 82371AB USB (PIIX4)" rev 0x01 at pci0 dev 1 function 2 not configured "Intel 82371AB Power Management (PIIX4)" rev 0x01 at pci0 dev 1 function 3 not configured "Neomagic Magicgraph NM2160" rev 0x00 at pci0 dev 2 function 0 not configured cbb0 at pci0 dev 10 function 0 "Cirrus Logic CL-PD6832 PCI-CardBus" rev 0xc1 cbb1 at pci0 dev 10 function 1 "Cirrus Logic CL-PD6832 PCI-CardBus" rev 0xc1 isa0 at pcib0 isadma0 at isa0 // cbb0: couldn't establish interrupt at irq 10 cbb1: couldn't establish interrupt at irq 10 biomask 4040 netmask 4040 ttymask 50c2 pctr: 586-class performance counters and user-level cycle counter enabled dkcsum: wd0 matched BIOS disk 80 root on wd0a rootdev=0x0 rrootdev=0x300 rawdev=0x302 From owner-openbsd-mobile-outgoing@naughty.monkey.org Wed Apr 4 20:13:06 2001 Return-Path: Delivered-To: openbsd-mobile-outgoing@naughty.monkey.org Received: by naughty.monkey.org (Postfix, from userid 502) id 51670115B5; Wed, 4 Apr 2001 20:13:05 -0400 (EDT) Delivered-To: openbsd-mobile@monkey.org Received: by naughty.monkey.org (Postfix, from userid 1001) id 5682E115B3; Wed, 4 Apr 2001 20:13:04 -0400 (EDT) Received: from enchanter.real-time.com (enchanter.real-time.com [206.10.252.9]) by naughty.monkey.org (Postfix) with ESMTP id A0A2C1159D for ; Wed, 4 Apr 2001 18:59:29 -0400 (EDT) Received: (from chrome@localhost) by enchanter.real-time.com (8.11.1/8.11.1) id f34MxS214607 for openbsd-mobile@monkey.org; Wed, 4 Apr 2001 17:59:28 -0500 Date: Wed, 4 Apr 2001 17:59:28 -0500 From: Carl Wilhelm Soderstrom To: openbsd-mobile@monkey.org Subject: OpenBSD-mobile: Netgear FA510 Ethernet PCMCIA card Message-ID: <20010404175928.X1573@real-time.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: openbsd-mobile-owner@monkey.org Precedence: bulk Has anyone seen an OpenBSD driver for the Netgear FA510 PCMCIA Ethernet card? It doesn't work with the stock 2.8 kernel; and I don't see any mention of it in the sources I cvsup'ed the other day. dmesg shows that it's there; but doesn't give a memory address for it or anything. Carl Soderstrom -- Network Engineer Real-Time Enterprises (952) 943-8700 From owner-openbsd-mobile-outgoing@naughty.monkey.org Wed Apr 4 21:07:08 2001 Return-Path: Delivered-To: openbsd-mobile-outgoing@naughty.monkey.org Received: by naughty.monkey.org (Postfix, from userid 502) id 71033115A6; Wed, 4 Apr 2001 21:07:07 -0400 (EDT) Delivered-To: openbsd-mobile@monkey.org Received: by naughty.monkey.org (Postfix, from userid 1001) id AE4CC1159D; Wed, 4 Apr 2001 21:07:06 -0400 (EDT) Received: by naughty.monkey.org (Postfix, from userid 1085) id 45D49115AF; Wed, 4 Apr 2001 20:17:27 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by naughty.monkey.org (Postfix) with ESMTP id 42305F018; Wed, 4 Apr 2001 20:17:27 -0400 (EDT) Date: Wed, 4 Apr 2001 20:17:27 -0400 (EDT) From: Aaron Campbell To: Carl Wilhelm Soderstrom Cc: openbsd-mobile@monkey.org Subject: Re: OpenBSD-mobile: Netgear FA510 Ethernet PCMCIA card In-Reply-To: <20010404175928.X1573@real-time.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: openbsd-mobile-owner@monkey.org Precedence: bulk On Wed, 4 Apr 2001, Carl Wilhelm Soderstrom wrote: > Has anyone seen an OpenBSD driver for the Netgear FA510 PCMCIA Ethernet > card? I am currently the PCMCIA/CardBus Ethernet maintainer for OpenBSD. Can you please send me the output from dmesg? According to the Linux PCMCIA stuff, this card is tulip-based CardBus card. If you reply promptly I can get you a patch to test for me, and that way we can ensure support gets into OpenBSD 2.9 (tree freeze is very soon, like 2 weeks from now). --- Aaron Campbell (aaron@monkey.org || aaron@openbsd.org) http://www.monkey.org/~aaron From owner-openbsd-mobile-outgoing@naughty.monkey.org Thu Apr 5 11:19:44 2001 Return-Path: Delivered-To: openbsd-mobile-outgoing@naughty.monkey.org Received: by naughty.monkey.org (Postfix, from userid 502) id AB35A115AA; Thu, 5 Apr 2001 11:19:43 -0400 (EDT) Delivered-To: openbsd-mobile@monkey.org Received: by naughty.monkey.org (Postfix, from userid 1001) id BB7EA115A6; Thu, 5 Apr 2001 11:19:42 -0400 (EDT) Received: by naughty.monkey.org (Postfix, from userid 1085) id 15926115A1; Thu, 5 Apr 2001 11:06:00 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by naughty.monkey.org (Postfix) with ESMTP id E6752F018; Thu, 5 Apr 2001 11:05:59 -0400 (EDT) Date: Thu, 5 Apr 2001 11:05:59 -0400 (EDT) From: Aaron Campbell To: Carl Wilhelm Soderstrom Cc: openbsd-mobile@monkey.org Subject: Re: OpenBSD-mobile: Netgear FA510 Ethernet PCMCIA card In-Reply-To: <20010405100224.A29382@real-time.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: openbsd-mobile-owner@monkey.org Precedence: bulk On Thu, 5 Apr 2001, Carl Wilhelm Soderstrom wrote: > dc0 at cardbus0 dev 0 function 0 irq 10 address 00:10:7a:60:47:37 > dcphy0 at dc0 phy 31: internal PHY Ok, it's an Intel 21143-based card. I have a patch that people are currently testing that should make it work. Unfortunately it doesn't apply against OpenBSD 2.8 RELEASE, but rather -current. Can you upgrade to current, and do a CVS checkout of the latest kernel src? As a side effect you'll also get support for your sound chip (ESS). --- Aaron Campbell (aaron@monkey.org || aaron@openbsd.org) http://www.monkey.org/~aaron From owner-openbsd-mobile-outgoing@naughty.monkey.org Thu Apr 5 11:23:22 2001 Return-Path: Delivered-To: openbsd-mobile-outgoing@naughty.monkey.org Received: by naughty.monkey.org (Postfix, from userid 502) id E6DC6115A7; Thu, 5 Apr 2001 11:23:21 -0400 (EDT) Delivered-To: openbsd-mobile@monkey.org Received: by naughty.monkey.org (Postfix, from userid 1001) id 01465115A5; Thu, 5 Apr 2001 11:23:20 -0400 (EDT) Received: by naughty.monkey.org (Postfix, from userid 1085) id BB8F4115A4; Thu, 5 Apr 2001 11:17:03 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by naughty.monkey.org (Postfix) with ESMTP id A415DF018; Thu, 5 Apr 2001 11:17:03 -0400 (EDT) Date: Thu, 5 Apr 2001 11:17:03 -0400 (EDT) From: Aaron Campbell To: Carl Wilhelm Soderstrom Cc: openbsd-mobile@monkey.org Subject: Re: OpenBSD-mobile: Netgear FA510 Ethernet PCMCIA card In-Reply-To: <20010405101054.B29382@real-time.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: openbsd-mobile-owner@monkey.org Precedence: bulk Here is the patch, applied from /usr/src, that should help. You still might have to configure the media manually after boot, i.e., as root, "ifconfig dc0 media 100baseTX". Index: sys/dev/ic/dc.c =================================================================== RCS file: /cvs/src/sys/dev/ic/dc.c,v retrieving revision 1.24 diff -u -r1.24 dc.c --- sys/dev/ic/dc.c 2001/02/20 19:39:38 1.24 +++ sys/dev/ic/dc.c 2001/04/05 13:29:12 @@ -191,6 +191,7 @@ int dc_list_rx_init __P((struct dc_softc *)); int dc_list_tx_init __P((struct dc_softc *)); +void dc_read_srom __P((struct dc_softc *, int)); void dc_parse_21143_srom __P((struct dc_softc *)); void dc_decode_leaf_sia __P((struct dc_softc *, struct dc_eblock_sia *)); @@ -1533,6 +1534,17 @@ return; } +void dc_read_srom(sc, bits) + struct dc_softc *sc; + int bits; +{ + int size; + + size = 2 << bits; + sc->dc_srom = malloc(size, M_DEVBUF, M_NOWAIT); + dc_read_eeprom(sc, (caddr_t)sc->dc_srom, 0, (size / 2), 0); +} + void dc_parse_21143_srom(sc) struct dc_softc *sc; { @@ -1573,15 +1585,12 @@ * Attach the interface. Allocate softc structures, do ifmedia * setup and ethernet/BPF attach. */ -void dc_attach_common(sc) +void dc_attach(sc) struct dc_softc *sc; { struct ifnet *ifp; int error = 0, mac_offset, tmp; - if (!DC_IS_XIRCOM(sc)) - dc_eeprom_width(sc); - /* * Get station address from the EEPROM. */ @@ -1718,6 +1727,25 @@ fail: return; +} + +int dc_detach(sc) + struct dc_softc *sc; +{ + struct ifnet *ifp = &sc->arpcom.ac_if; + + if (LIST_FIRST(&sc->sc_mii.mii_phys) != NULL) + mii_detach(&sc->sc_mii, MII_PHY_ANY, MII_OFFSET_ANY); + + if (sc->dc_srom) + free(sc->dc_srom, M_DEVBUF); + + timeout_del(&sc->dc_tick_tmo); + + ether_ifdetach(ifp); + if_detach(ifp); + + return (0); } /* Index: sys/dev/ic/dcreg.h =================================================================== RCS file: /cvs/src/sys/dev/ic/dcreg.h,v retrieving revision 1.11 diff -u -r1.11 dcreg.h --- sys/dev/ic/dcreg.h 2001/02/09 03:45:54 1.11 +++ sys/dev/ic/dcreg.h 2001/04/05 13:29:13 @@ -691,7 +691,7 @@ int dc_if_media; u_int32_t dc_flags; u_int32_t dc_txthresh; - u_int8_t dc_srom[1024]; + u_int8_t *dc_srom; struct dc_mediainfo *dc_mi; struct dc_list_data *dc_ldata; caddr_t dc_ldata_ptr; @@ -995,6 +995,7 @@ #define ETHER_CRC_LEN 4 #endif -extern void dc_attach_common __P((struct dc_softc *)); -extern int dc_intr __P((void *)); -extern void dc_reset __P((struct dc_softc *)); +extern void dc_attach __P((struct dc_softc *)); +extern int dc_detach __P((struct dc_softc *)); +extern int dc_intr __P((void *)); +extern void dc_reset __P((struct dc_softc *)); Index: sys/dev/cardbus/if_dc_cardbus.c =================================================================== RCS file: /cvs/src/sys/dev/cardbus/if_dc_cardbus.c,v retrieving revision 1.4 diff -u -r1.4 if_dc_cardbus.c --- sys/dev/cardbus/if_dc_cardbus.c 2001/03/25 06:12:28 1.4 +++ sys/dev/cardbus/if_dc_cardbus.c 2001/04/05 13:29:14 @@ -41,26 +41,29 @@ #define DC_CFDA_SUSPEND 0x80000000 #define DC_CFDA_STANDBY 0x40000000 -struct dc_cardbus_softc { - struct dc_softc sc_dc; - int sc_intrline; - - cardbus_devfunc_t sc_ct; - cardbustag_t sc_tag; - bus_size_t sc_mapsize; - int sc_actype; +struct dc_cardbus_softc { + struct dc_softc sc_dc; + int sc_intrline; + + cardbus_devfunc_t sc_ct; + cardbustag_t sc_tag; + bus_size_t sc_mapsize; + int sc_actype; }; -int dc_cardbus_match __P((struct device *, void *, void *)); -void dc_cardbus_attach __P((struct device *, struct device *,void *)); -int dc_cardbus_detach __P((struct device *, int)); -int dc_cardbus_activate __P((struct device *, enum devact)); -void dc_cardbus_setup __P((struct dc_cardbus_softc *csc)); +int dc_cardbus_match __P((struct device *, void *, void *)); +void dc_cardbus_attach __P((struct device *, struct device *,void *)); +int dc_cardbus_detach __P((struct device *, int)); + +void dc_cardbus_setup __P((struct dc_cardbus_softc *csc)); + +extern void dc_eeprom_width __P((struct dc_softc *)); +extern void dc_read_srom __P((struct dc_softc *, int)); +extern void dc_parse_21143_srom __P((struct dc_softc *)); struct cfattach dc_cardbus_ca = { - sizeof(struct dc_cardbus_softc), dc_cardbus_match, - dc_cardbus_attach, dc_cardbus_detach, - dc_cardbus_activate + sizeof(struct dc_cardbus_softc), dc_cardbus_match, dc_cardbus_attach, + dc_cardbus_detach }; struct dc_type dc_cardbus_devs[] = { @@ -107,14 +110,35 @@ Cardbus_function_enable(ct); + if (Cardbus_mapreg_map(ct, PCI_CBIO, + PCI_MAPREG_TYPE_IO, 0, &sc->dc_btag, &sc->dc_bhandle, &addr, + &csc->sc_mapsize) == 0) { + + csc->sc_actype = CARDBUS_IO_ENABLE; + } else if (Cardbus_mapreg_map(ct, PCI_CBMEM, + PCI_MAPREG_TYPE_MEM|PCI_MAPREG_MEM_TYPE_32BIT, 0, + &sc->dc_btag, &sc->dc_bhandle, &addr, &csc->sc_mapsize) == 0) { + csc->sc_actype = CARDBUS_MEM_ENABLE; + } else { + printf(": can\'t map device registers\n"); + return; + } + + csc->sc_intrline = ca->ca_intrline; + + sc->dc_cachesize = pci_conf_read(cc, ca->ca_tag, DC_PCI_CFLT) & 0xFF; + + dc_cardbus_setup(csc); + switch (PCI_VENDOR(ca->ca_id)) { case PCI_VENDOR_DEC: if (PCI_PRODUCT(ca->ca_id) == PCI_PRODUCT_DEC_21142) { sc->dc_type = DC_TYPE_21143; sc->dc_flags |= DC_TX_POLL|DC_TX_USE_TX_INTR; sc->dc_flags |= DC_REDUCED_MII_POLL; - - sc->dc_pmode = DC_PMODE_MII; + dc_eeprom_width(sc); + dc_read_srom(sc, sc->dc_romwidth); + dc_parse_21143_srom(sc); } break; case PCI_VENDOR_XIRCOM: @@ -134,6 +158,7 @@ sc->dc_type = DC_TYPE_AN983; sc->dc_flags |= DC_TX_USE_TX_INTR|DC_TX_ADMTEK_WAR; sc->dc_pmode = DC_PMODE_MII; + dc_eeprom_width(sc); } break; default: @@ -141,41 +166,20 @@ return; } - if (Cardbus_mapreg_map(ct, PCI_CBIO, - PCI_MAPREG_TYPE_IO, 0, &sc->dc_btag, &sc->dc_bhandle, &addr, - &csc->sc_mapsize) == 0) { - - csc->sc_actype = CARDBUS_IO_ENABLE; - } else if (Cardbus_mapreg_map(ct, PCI_CBMEM, - PCI_MAPREG_TYPE_MEM|PCI_MAPREG_MEM_TYPE_32BIT, 0, - &sc->dc_btag, &sc->dc_bhandle, &addr, &csc->sc_mapsize) == 0) { - csc->sc_actype = CARDBUS_MEM_ENABLE; - } else { - printf(": can\'t map device registers\n"); - return; - } - - csc->sc_intrline = ca->ca_intrline; - - sc->dc_cachesize = pci_conf_read(cc, ca->ca_tag, DC_PCI_CFLT) & 0xFF; - - dc_cardbus_setup(csc); - cardbus_save_bar(ct); - /* * set latency timer, do we really need this? */ - reg = cardbus_conf_read(cc, cf, ca->ca_tag, CARDBUS_BHLC_REG); - if (CARDBUS_LATTIMER(reg) < 0x20) { - reg &= ~(CARDBUS_LATTIMER_MASK << CARDBUS_LATTIMER_SHIFT); - reg |= (0x20 << CARDBUS_LATTIMER_SHIFT); - cardbus_conf_write(cc, cf, ca->ca_tag, CARDBUS_BHLC_REG, reg); + reg = cardbus_conf_read(cc, cf, ca->ca_tag, PCI_BHLC_REG); + if (PCI_LATTIMER(reg) < 0x20) { + reg &= ~(PCI_LATTIMER_MASK << PCI_LATTIMER_SHIFT); + reg |= (0x20 << PCI_LATTIMER_SHIFT); + cardbus_conf_write(cc, cf, ca->ca_tag, PCI_BHLC_REG, reg); } - sc->sc_ih = cardbus_intr_establish(cc, cf, - ca->ca_intrline, IPL_NET, dc_intr, csc); + sc->sc_ih = cardbus_intr_establish(cc, cf, ca->ca_intrline, IPL_NET, + dc_intr, csc); if (sc->sc_ih == NULL) { - printf(": can\'t establish interrupt at %d\n", + printf(": can't establish interrupt at %d\n", ca->ca_intrline); return; } else @@ -183,8 +187,8 @@ dc_reset(sc); - sc->dc_revision = CARDBUS_REVISION(ca->ca_class); - dc_attach_common(sc); + sc->dc_revision = PCI_REVISION(ca->ca_class); + dc_attach(sc); } int @@ -195,63 +199,22 @@ struct dc_cardbus_softc *csc = (struct dc_cardbus_softc *)self; struct dc_softc *sc = &csc->sc_dc; struct cardbus_devfunc *ct = csc->sc_ct; - struct ifnet *ifp = &sc->arpcom.ac_if; int rv = 0; - if (LIST_FIRST(&sc->sc_mii.mii_phys) != NULL) - mii_detach(&sc->sc_mii, MII_PHY_ANY, MII_OFFSET_ANY); + rv = dc_detach(sc); + if (rv) + return (rv); + cardbus_intr_disestablish(ct->ct_cc, ct->ct_cf, sc->sc_ih); + /* unmap cardbus resources */ Cardbus_mapreg_unmap(ct, csc->sc_actype == CARDBUS_IO_ENABLE ? PCI_CBIO : PCI_CBMEM, sc->dc_btag, sc->dc_bhandle, csc->sc_mapsize); - ether_ifdetach(ifp); - if_detach(ifp); - return (rv); } -int -dc_cardbus_activate(dev, act) - struct device *dev; - enum devact act; -{ - struct dc_cardbus_softc *csc = (struct dc_cardbus_softc *)dev; - struct dc_softc *sc = &csc->sc_dc; - cardbus_devfunc_t ct = csc->sc_ct; - int s; - - s = splnet(); - switch (act) { - case DVACT_ACTIVATE: - Cardbus_function_enable(ct); - cardbus_restore_bar(ct); - dc_cardbus_setup(csc); - sc->sc_ih = cardbus_intr_establish(ct->ct_cc, ct->ct_cf, - csc->sc_intrline, IPL_NET, dc_intr, csc); - if (sc->sc_ih == NULL) { - printf(": can\'t establish interrupt at %d\n", - csc->sc_intrline); - Cardbus_function_disable(ct); - splx(s); - return -1; - } else - printf("%s: interrupting at %d", - sc->sc_dev.dv_xname, csc->sc_intrline); - break; - - case DVACT_DEACTIVATE: - cardbus_save_bar(ct); - cardbus_intr_disestablish(ct->ct_cc, ct->ct_cf, sc->sc_ih); - Cardbus_function_disable(ct); - break; - } - - splx(s); - return 0; -} - void dc_cardbus_setup(csc) struct dc_cardbus_softc *csc; @@ -267,12 +230,10 @@ if (reg | (DC_CFDA_SUSPEND|DC_CFDA_STANDBY)) { cardbus_conf_write(cc, cf, csc->sc_tag, PCI_CFDA, reg & ~(DC_CFDA_SUSPEND|DC_CFDA_STANDBY)); -#if 0 -printf("wakeup %x\n", cardbus_conf_read(cc, cf, csc->sc_tag, PCI_CFDA)); -#endif } - if (cardbus_get_capability(cc, cf, csc->sc_tag, PCI_CAP_PWRMGMT, &r, 0)) { + if (cardbus_get_capability(cc, cf, csc->sc_tag, PCI_CAP_PWRMGMT, &r, + 0)) { r = cardbus_conf_read(cc, cf, csc->sc_tag, r + 4) & 3; if (r) { printf("%s: awakening from state D%d\n", @@ -284,9 +245,9 @@ (*ct->ct_cf->cardbus_ctrl)(cc, csc->sc_actype); (*ct->ct_cf->cardbus_ctrl)(cc, CARDBUS_BM_ENABLE); - reg = cardbus_conf_read(cc, cf, csc->sc_tag, CARDBUS_COMMAND_STATUS_REG); - reg |= CARDBUS_COMMAND_IO_ENABLE | CARDBUS_COMMAND_MEM_ENABLE | - CARDBUS_COMMAND_MASTER_ENABLE; - cardbus_conf_write(cc, cf, csc->sc_tag, CARDBUS_COMMAND_STATUS_REG, reg); - reg = cardbus_conf_read(cc, cf, csc->sc_tag, CARDBUS_COMMAND_STATUS_REG); + reg = cardbus_conf_read(cc, cf, csc->sc_tag, PCI_COMMAND_STATUS_REG); + reg |= PCI_COMMAND_IO_ENABLE | PCI_COMMAND_MEM_ENABLE | + PCI_COMMAND_MASTER_ENABLE; + cardbus_conf_write(cc, cf, csc->sc_tag, PCI_COMMAND_STATUS_REG, reg); + reg = cardbus_conf_read(cc, cf, csc->sc_tag, PCI_COMMAND_STATUS_REG); } Index: sys/dev/pci/if_dc_pci.c =================================================================== RCS file: /cvs/src/sys/dev/pci/if_dc_pci.c,v retrieving revision 1.12 diff -u -r1.12 if_dc_pci.c --- sys/dev/pci/if_dc_pci.c 2001/02/09 02:23:36 1.12 +++ sys/dev/pci/if_dc_pci.c 2001/04/05 13:29:14 @@ -100,12 +100,12 @@ { 0, 0 } }; -int dc_pci_probe __P((struct device *, void *, void *)); -void dc_pci_attach __P((struct device *, struct device *, void *)); -void dc_pci_acpi __P((struct device *, void *)); +int dc_pci_match __P((struct device *, void *, void *)); +void dc_pci_attach __P((struct device *, struct device *, void *)); +void dc_pci_acpi __P((struct device *, void *)); -extern void dc_read_eeprom __P((struct dc_softc *, caddr_t, int, int, - int)); +extern void dc_eeprom_width __P((struct dc_softc *)); +extern void dc_read_srom __P((struct dc_softc *, int)); extern void dc_parse_21143_srom __P((struct dc_softc *)); /* @@ -113,7 +113,7 @@ * IDs against our list and return a device name if we find a match. */ int -dc_pci_probe(parent, match, aux) +dc_pci_match(parent, match, aux) struct device *parent; void *match, *aux; { @@ -267,8 +267,7 @@ sc->dc_type = DC_TYPE_21143; sc->dc_flags |= DC_TX_POLL|DC_TX_USE_TX_INTR; sc->dc_flags |= DC_REDUCED_MII_POLL; - /* Save EEPROM contents so we can parse them later. */ - dc_read_eeprom(sc, (caddr_t)&sc->dc_srom, 0, 512, 0); + dc_read_srom(sc, 9); } break; case PCI_VENDOR_DAVICOM: @@ -407,7 +406,7 @@ } /* - * If we discover later (in dc_attach_common()) that we have an + * If we discover later (in dc_attach) that we have an * MII with no PHY, we need to have the 21143 drive the LEDs. * Except there are some systems like the NEC VersaPro NoteBook PC * which have no LEDs, and twiddling these bits has adverse effects @@ -465,13 +464,13 @@ sc->dc_srm_media |= IFM_ACTIVE | IFM_ETHER; } #endif + dc_eeprom_width(sc); + dc_attach(sc); - dc_attach_common(sc); - fail: splx(s); } struct cfattach dc_pci_ca = { - sizeof(struct dc_softc), dc_pci_probe, dc_pci_attach + sizeof(struct dc_softc), dc_pci_match, dc_pci_attach }; --- Aaron Campbell (aaron@monkey.org || aaron@openbsd.org) http://www.monkey.org/~aaron From owner-openbsd-mobile-outgoing@naughty.monkey.org Thu Apr 5 11:53:03 2001 Return-Path: Delivered-To: openbsd-mobile-outgoing@naughty.monkey.org Received: by naughty.monkey.org (Postfix, from userid 502) id E2EA7115AA; Thu, 5 Apr 2001 11:53:02 -0400 (EDT) Delivered-To: openbsd-mobile@monkey.org Received: by naughty.monkey.org (Postfix, from userid 1001) id E1398115A9; Thu, 5 Apr 2001 11:53:01 -0400 (EDT) Received: from emaginet.com (london.emaginet.com [63.65.80.130]) by naughty.monkey.org (Postfix) with ESMTP id 5EC4A115A7; Thu, 5 Apr 2001 11:43:13 -0400 (EDT) Received: from latest.bethesda.emaginet.com (latest.bethesda.emaginet.com [172.16.0.69]) by emaginet.com (8.9.3/8.9.0) with ESMTP id LAA17221; Thu, 5 Apr 2001 11:37:40 -0400 Received: from ecexchange.bethesda.emaginet.com (ecexchange.bethesda.emaginet.com [172.16.60.65]) by latest.bethesda.emaginet.com (8.9.0/8.9.0) with ESMTP id LAA15413; Thu, 5 Apr 2001 11:50:26 -0400 Received: by ecexchange.bethesda.emaginet.com with Internet Mail Service (5.5.2653.19) id ; Thu, 5 Apr 2001 11:44:20 -0400 Received: from e-centives.com (scirocco.bethesda.emaginet.com [172.16.4.89]) by ecexchange.bethesda.emaginet.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id H1G18LXF; Thu, 5 Apr 2001 11:44:17 -0400 From: Gary Huff To: Aaron Campbell Cc: Carl Wilhelm Soderstrom , openbsd-mobile@monkey.org Message-ID: <3ACC0DB1.27BCC68D@e-centives.com> Date: Thu, 05 Apr 2001 02:16:17 -0400 Organization: e-centives, INC. X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.3 i686) X-Accept-Language: en MIME-Version: 1.0 Subject: Re: OpenBSD-mobile: Netgear FA510 Ethernet PCMCIA card References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: openbsd-mobile-owner@monkey.org Precedence: bulk Speaking of Cardbus things, I have a Xircom RealPort 10/100 Modem 56 card. For some reason, it won't link at 100TX full-duplex..... Strange. Is this a known issue? The other tulip based cards I've used seem to have no problem linking at 100mbit fduplex, and it also links at that speed under Kernel 2.4.3. (linux). I can provide a dmesg, would that be cool? Peace, -Gary Huff Aaron Campbell wrote: > > On Wed, 4 Apr 2001, Carl Wilhelm Soderstrom wrote: > > > Has anyone seen an OpenBSD driver for the Netgear FA510 PCMCIA Ethernet > > card? > > I am currently the PCMCIA/CardBus Ethernet maintainer for OpenBSD. > > Can you please send me the output from dmesg? According to the Linux > PCMCIA stuff, this card is tulip-based CardBus card. If you reply promptly > I can get you a patch to test for me, and that way we can ensure support > gets into OpenBSD 2.9 (tree freeze is very soon, like 2 weeks from now). > > --- > Aaron Campbell (aaron@monkey.org || aaron@openbsd.org) > http://www.monkey.org/~aaron From owner-openbsd-mobile-outgoing@naughty.monkey.org Thu Apr 5 12:15:32 2001 Return-Path: Delivered-To: openbsd-mobile-outgoing@naughty.monkey.org Received: by naughty.monkey.org (Postfix, from userid 502) id BE397115AC; Thu, 5 Apr 2001 12:15:31 -0400 (EDT) Delivered-To: openbsd-mobile@monkey.org Received: by naughty.monkey.org (Postfix, from userid 1001) id 04BC8115AB; Thu, 5 Apr 2001 12:15:31 -0400 (EDT) Received: by naughty.monkey.org (Postfix, from userid 1085) id 44674115A7; Thu, 5 Apr 2001 11:48:36 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by naughty.monkey.org (Postfix) with ESMTP id 40321F018; Thu, 5 Apr 2001 11:48:36 -0400 (EDT) Date: Thu, 5 Apr 2001 11:48:36 -0400 (EDT) From: Aaron Campbell To: Gary Huff Cc: Carl Wilhelm Soderstrom , openbsd-mobile@monkey.org Subject: Re: OpenBSD-mobile: Netgear FA510 Ethernet PCMCIA card In-Reply-To: <3ACC0DB1.27BCC68D@e-centives.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: openbsd-mobile-owner@monkey.org Precedence: bulk It would be better to file an OpenBSD PR with the sendbug command, that way this information won't be lost. On Thu, 5 Apr 2001, Gary Huff wrote: > Speaking of Cardbus things, I have a Xircom RealPort 10/100 Modem 56 > card. For some reason, it won't link at 100TX full-duplex..... Strange. > Is this a known issue? The other tulip based cards I've used seem to > have no problem linking at 100mbit fduplex, and it also links at that > speed under Kernel 2.4.3. (linux). I can provide a dmesg, would that be > cool? Peace, > -Gary Huff > > Aaron Campbell wrote: > > > > On Wed, 4 Apr 2001, Carl Wilhelm Soderstrom wrote: > > > > > Has anyone seen an OpenBSD driver for the Netgear FA510 PCMCIA Ethernet > > > card? > > > > I am currently the PCMCIA/CardBus Ethernet maintainer for OpenBSD. > > > > Can you please send me the output from dmesg? According to the Linux > > PCMCIA stuff, this card is tulip-based CardBus card. If you reply promptly > > I can get you a patch to test for me, and that way we can ensure support > > gets into OpenBSD 2.9 (tree freeze is very soon, like 2 weeks from now). > > > > --- > > Aaron Campbell (aaron@monkey.org || aaron@openbsd.org) > > http://www.monkey.org/~aaron > --- Aaron Campbell (aaron@monkey.org || aaron@openbsd.org) http://www.monkey.org/~aaron From owner-openbsd-mobile-outgoing@naughty.monkey.org Fri Apr 20 00:19:29 2001 Return-Path: Delivered-To: openbsd-mobile-outgoing@naughty.monkey.org Received: by naughty.monkey.org (Postfix, from userid 502) id E0B8E115A8; Fri, 20 Apr 2001 00:19:28 -0400 (EDT) Delivered-To: openbsd-mobile@monkey.org Received: by naughty.monkey.org (Postfix, from userid 1001) id 2F4241159C; Fri, 20 Apr 2001 00:19:28 -0400 (EDT) Received: from rt.fm (rt.fm [209.242.32.10]) by naughty.monkey.org (Postfix) with SMTP id 704C91159C for ; Thu, 19 Apr 2001 23:37:31 -0400 (EDT) Received: (qmail 26581 invoked by uid 1000); 20 Apr 2001 03:32:38 -0000 Date: Thu, 19 Apr 2001 22:32:38 -0500 From: Joshua Stein To: openbsd-mobile@monkey.org Subject: OpenBSD-mobile: [possibly offtopic] APM event on lid close? Message-ID: <20010419223238.A19439@rt.fm> Mail-Followup-To: openbsd-mobile@monkey.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: openbsd-mobile-owner@monkey.org Precedence: bulk Google hasn't been able to find me any information regarding this, so I thought I'd ask here. Does anyone know if closing the lid on a laptop generates a standard APM event? Specifically, on a Sony Vaio PCG-Z505JE? The computer does not suspend on closing the lid like other laptops I've seen (only cuts power to the screen), nor does apmd seem to do anything. I never used Windows on this laptop so I'm hoping someone can clarify whether the laptop even generates an event when the lid is closed under Windows or whether the apm code in OpenBSD just needs tweaking. I'm looking to hook into this event to trigger something along the lines of an 'ssh-add -D; xautolock -locknow; apm -z' or similar. Any help would be appreciated. From owner-openbsd-mobile-outgoing@naughty.monkey.org Fri Apr 20 00:20:26 2001 Return-Path: Delivered-To: openbsd-mobile-outgoing@naughty.monkey.org Received: by naughty.monkey.org (Postfix, from userid 502) id 6A0D5115AA; Fri, 20 Apr 2001 00:20:25 -0400 (EDT) Delivered-To: openbsd-mobile@monkey.org Received: by naughty.monkey.org (Postfix, from userid 1001) id 68E05115A8; Fri, 20 Apr 2001 00:20:24 -0400 (EDT) Received: from ns.tilderoot.com (ns.tilderoot.com [206.171.181.26]) by naughty.monkey.org (Postfix) with ESMTP id 61C5E1159C for ; Fri, 20 Apr 2001 00:03:45 -0400 (EDT) Received: from localhost (majost@localhost) by ns.tilderoot.com (8.9.3/8.9.3) with ESMTP id VAA06437 for ; Thu, 19 Apr 2001 21:03:45 -0700 (PDT) Date: Thu, 19 Apr 2001 21:03:24 -0700 (PDT) From: Majost To: openbsd-mobile@monkey.org Subject: OpenBSD-mobile: Toshiba 2515CDS Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: openbsd-mobile-owner@monkey.org Precedence: bulk I was wondering if anyone has attempted to recompile their kernel on a Toshiba 2515CDS? I cant seem to get it to build sucessfully at the moment, but I have no intentions of giving up what so ever! =) Another little quarky thing... for some reason or another, the fan in this thing never seems to come on. I talked to a friend who has the same model as I running FreeBSD 4.3(something) and he said he had to port some util from linux. *shrug* I'll probably just pick the binary and the source him... so if anyone else needs this, I'de be more then willing to put it up somewhere. =) From owner-openbsd-mobile-outgoing@naughty.monkey.org Fri Apr 20 16:10:21 2001 Return-Path: Delivered-To: openbsd-mobile-outgoing@naughty.monkey.org Received: by naughty.monkey.org (Postfix, from userid 502) id 4D5C0115BC; Fri, 20 Apr 2001 16:10:19 -0400 (EDT) Delivered-To: openbsd-mobile@monkey.org Received: by naughty.monkey.org (Postfix, from userid 1001) id 324EF115B5; Fri, 20 Apr 2001 16:10:17 -0400 (EDT) Received: from kata.chezns.org (kata.chezns.org [204.131.199.241]) by naughty.monkey.org (Postfix) with ESMTP id 33B30115BA for ; Fri, 20 Apr 2001 15:39:51 -0400 (EDT) Received: from kata.chezns.org (IDENT:jill@localhost [127.0.0.1]) by kata.chezns.org (8.10.1/8.10.1) with ESMTP id f3KJdRB17669; Fri, 20 Apr 2001 13:39:27 -0600 (MDT) Message-Id: <200104201939.f3KJdRB17669@kata.chezns.org> To: Joshua Stein Cc: openbsd-mobile@monkey.org Subject: Re: OpenBSD-mobile: [possibly offtopic] APM event on lid close? In-Reply-To: Your message of "Thu, 19 Apr 2001 22:32:38 CDT." <20010419223238.A19439@rt.fm> Date: Fri, 20 Apr 2001 13:39:27 -0600 From: "Jill Lundquist" Sender: openbsd-mobile-owner@monkey.org Precedence: bulk >Does anyone know if closing the lid on a laptop generates a standard APM >event? Specifically, on a Sony Vaio PCG-Z505JE? > >The computer does not suspend on closing the lid like other laptops I've >seen (only cuts power to the screen), nor does apmd seem to do anything. >I never used Windows on this laptop so I'm hoping someone can clarify >whether the laptop even generates an event when the lid is closed under >Windows or whether the apm code in OpenBSD just needs tweaking. I happen to have recently reinstalled the Sony-specific Win98 configuration that is shipped with that very laptop. So I just closed the lid; nothing seemed to happen. The noises the machine makes didn't change (when I suspend it by hand it's normally very obvious from the sound), and when I waited a minute or so and reopened the lid, it didn't have to unsuspend. It didn't even appear that the screen saver had kicked in. Hope that helps. If there is another test that I can do that might give you more info, drop a line. I'm not very Windows-savvy. Incidentally, it amazes me how slow this machine feels running Windows after having run OpenBSD on it for several months. Jill Lundquist jill@chezns.org "The first butcher I saw as a child had a wooden leg, and to this day I have an unreasonable feeling that butchers with two genuine legs are impostors." -Robertson Davies From owner-openbsd-mobile-outgoing@naughty.monkey.org Fri Apr 20 18:31:05 2001 Return-Path: Delivered-To: openbsd-mobile-outgoing@naughty.monkey.org Received: by naughty.monkey.org (Postfix, from userid 502) id 8B7E0115C5; Fri, 20 Apr 2001 18:31:04 -0400 (EDT) Delivered-To: openbsd-mobile@monkey.org Received: by naughty.monkey.org (Postfix, from userid 1001) id 4B3E6115BC; Fri, 20 Apr 2001 18:31:03 -0400 (EDT) Received: from mail.daedilus.com (unknown [208.8.150.214]) by naughty.monkey.org (Postfix) with ESMTP id CA8EA115B7 for ; Fri, 20 Apr 2001 16:24:20 -0400 (EDT) Received: from xaos (unknown [12.111.165.88]) by mail.daedilus.com (Postfix) with ESMTP id C972517E81 for ; Fri, 20 Apr 2001 13:20:27 -0700 (PDT) From: "Shawn" To: Subject: OpenBSD-mobile: Inspiron 4000. Date: Fri, 20 Apr 2001 13:23:53 -0700 Message-ID: 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 IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Sender: openbsd-mobile-owner@monkey.org Precedence: bulk Does anyone know how well OpenBSD 2.8 runs on a Dell Inspiron 4000? I noticed it's not on any of the portable notebook pages. From owner-openbsd-mobile-outgoing@naughty.monkey.org Fri Apr 20 18:32:06 2001 Return-Path: Delivered-To: openbsd-mobile-outgoing@naughty.monkey.org Received: by naughty.monkey.org (Postfix, from userid 502) id 8A2AC115C7; Fri, 20 Apr 2001 18:32:05 -0400 (EDT) Delivered-To: openbsd-mobile@monkey.org Received: by naughty.monkey.org (Postfix, from userid 1001) id A62C7115C5; Fri, 20 Apr 2001 18:32:04 -0400 (EDT) Received: from coredump.cis.upenn.edu (COREDUMP.CIS.UPENN.EDU [158.130.6.141]) by naughty.monkey.org (Postfix) with ESMTP id 1BDFB115C2 for ; Fri, 20 Apr 2001 16:43:51 -0400 (EDT) Received: from cis.upenn.edu (localhost [127.0.0.1]) by coredump.cis.upenn.edu (8.10.1/8.9.3) with ESMTP id f3KKgM705512; Fri, 20 Apr 2001 16:42:22 -0400 (EDT) Message-Id: <200104202042.f3KKgM705512@coredump.cis.upenn.edu> X-Mailer: exmh version 2.0.2 2/24/98 To: "Jill Lundquist" Cc: Joshua Stein , openbsd-mobile@monkey.org Subject: Re: OpenBSD-mobile: [possibly offtopic] APM event on lid close? In-reply-to: Your message of "Fri, 20 Apr 2001 13:39:27 MDT." <200104201939.f3KJdRB17669@kata.chezns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 20 Apr 2001 16:42:22 -0400 From: "Angelos D. Keromytis" Sender: openbsd-mobile-owner@monkey.org Precedence: bulk This is typically controlled through the BIOS (whether an APM event is generated on lid open/close); that's how it works with the IBM T and A series laptops. -Angelos From owner-openbsd-mobile-outgoing@naughty.monkey.org Fri Apr 20 23:40:14 2001 Return-Path: Delivered-To: openbsd-mobile-outgoing@naughty.monkey.org Received: by naughty.monkey.org (Postfix, from userid 502) id 65C14115D2; Fri, 20 Apr 2001 23:40:13 -0400 (EDT) Delivered-To: openbsd-mobile@monkey.org Received: by naughty.monkey.org (Postfix, from userid 1001) id 882CF115B8; Fri, 20 Apr 2001 23:40:12 -0400 (EDT) Received: from mail.daedilus.com (unknown [208.8.150.214]) by naughty.monkey.org (Postfix) with ESMTP id AC785115D0 for ; Fri, 20 Apr 2001 19:21:08 -0400 (EDT) Received: from xaos (unknown [12.111.165.88]) by mail.daedilus.com (Postfix) with ESMTP id 1ACCE17E81; Fri, 20 Apr 2001 16:17:26 -0700 (PDT) From: "Shawn" To: "Darren Evans" Cc: Subject: RE: OpenBSD-mobile: Inspiron 4000. Date: Fri, 20 Apr 2001 16:20:51 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <5.0.2.1.1.20010421000345.02eab500@pop3.demon.co.uk> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Sender: openbsd-mobile-owner@monkey.org Precedence: bulk I've installed it and it runs fine. There might be some problems with apm but that's ok. What has me is that I can't get X to run. I get a problem about not being able to find any screens. I copied a lot of the XFConfig file from the Inspiron 5000 link on the mobile page, but no luck. Can someone help me? -----Original Message----- From: Darren Evans [mailto:horseplay@pop3.demon.co.uk] Sent: Friday, April 20, 2001 4:04 PM To: Shawn Subject: Re: OpenBSD-mobile: Inspiron 4000. Shawn, I see no reason why not. I had OpenBSD 2.7 on a Inspiron 5000. regards Darren At 13:23 20/04/01 -0700, Shawn wrote: >Does anyone know how well OpenBSD 2.8 runs on a Dell Inspiron 4000? I >noticed it's not on any of the portable notebook pages. From owner-openbsd-mobile-outgoing@naughty.monkey.org Sat Apr 21 01:56:44 2001 Return-Path: Delivered-To: openbsd-mobile-outgoing@naughty.monkey.org Received: by naughty.monkey.org (Postfix, from userid 502) id 334A1115AE; Sat, 21 Apr 2001 01:56:43 -0400 (EDT) Delivered-To: openbsd-mobile@monkey.org Received: by naughty.monkey.org (Postfix, from userid 1001) id B3C72115AA; Sat, 21 Apr 2001 01:56:41 -0400 (EDT) Received: from mail.daedilus.com (unknown [208.8.150.214]) by naughty.monkey.org (Postfix) with ESMTP id 30B0B115D2 for ; Sat, 21 Apr 2001 01:01:35 -0400 (EDT) Received: from xaos (unknown [12.111.165.88]) by mail.daedilus.com (Postfix) with ESMTP id 6586317E81; Fri, 20 Apr 2001 21:57:47 -0700 (PDT) From: "Shawn" To: "Alex Shepard" Cc: Subject: RE: OpenBSD-mobile: Inspiron 4000. Date: Fri, 20 Apr 2001 22:01:21 -0700 Message-ID: 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 IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Sender: openbsd-mobile-owner@monkey.org Precedence: bulk Thank you. I had the graphics card selection wrong. -----Original Message----- From: Alex Shepard [mailto:alex.shepard@gettyimages.com] Sent: Friday, April 20, 2001 8:58 PM To: 'Shawn' Subject: RE: OpenBSD-mobile: Inspiron 4000. When you type startx, what fails? Have you tried running XF86Config? With 2.8-current, on a system very much like yours, in the XF86Config menus I chose: mouse: PS/2, device /dev/psm0 keyboard: default video card: ATI Rage Mobility monitor: 1024x768 @ 75 mhz modelines: 1024x768, 24bit color and everything worked fine. Hope this helps, alex -----Original Message----- From: Shawn [mailto:shawn@black9.net] Sent: Friday, April 20, 2001 4:21 PM To: Darren Evans Cc: openbsd-mobile@monkey.org Subject: RE: OpenBSD-mobile: Inspiron 4000. I've installed it and it runs fine. There might be some problems with apm but that's ok. What has me is that I can't get X to run. I get a problem about not being able to find any screens. I copied a lot of the XFConfig file from the Inspiron 5000 link on the mobile page, but no luck. Can someone help me? -----Original Message----- From: Darren Evans [mailto:horseplay@pop3.demon.co.uk] Sent: Friday, April 20, 2001 4:04 PM To: Shawn Subject: Re: OpenBSD-mobile: Inspiron 4000. Shawn, I see no reason why not. I had OpenBSD 2.7 on a Inspiron 5000. regards Darren At 13:23 20/04/01 -0700, Shawn wrote: >Does anyone know how well OpenBSD 2.8 runs on a Dell Inspiron 4000? I >noticed it's not on any of the portable notebook pages. From owner-openbsd-mobile-outgoing@naughty.monkey.org Mon Apr 23 21:53:07 2001 Return-Path: Delivered-To: openbsd-mobile-outgoing@naughty.monkey.org Received: by naughty.monkey.org (Postfix, from userid 502) id D02A4115CD; Mon, 23 Apr 2001 21:53:06 -0400 (EDT) Delivered-To: openbsd-mobile@monkey.org Received: by naughty.monkey.org (Postfix, from userid 1001) id EC108115CB; Mon, 23 Apr 2001 21:53:05 -0400 (EDT) Received: from lucifier.net (ns2.lucifier.net [209.73.58.211]) by naughty.monkey.org (Postfix) with ESMTP id BCAEE115CB for ; Mon, 23 Apr 2001 21:04:52 -0400 (EDT) Received: (from mickey@localhost) by lucifier.net (8.11.3/8.11.3) id f3O14oQ02503; Mon, 23 Apr 2001 21:04:50 -0400 (EDT) From: mickey Message-Id: <200104240104.f3O14oQ02503@lucifier.net> Subject: Re: OpenBSD-mobile: [possibly offtopic] APM event on lid close? In-Reply-To: <20010419223238.A19439@rt.fm> from Joshua Stein at "Apr 19, 2001 10:32:38 pm" To: Joshua Stein Date: Mon, 23 Apr 2001 21:04:49 -0400 (EDT) Cc: openbsd-mobile@monkey.org X-Operating-System: BSD 2.11 X-Flames-To: /dev/null X-Elm-Rules: righton X-Mailer: ELM [version 2.4ME+ PL66 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: openbsd-mobile-owner@monkey.org Precedence: bulk Making, drinking tea and reading an opus magnum from Joshua Stein: > Google hasn't been able to find me any information regarding this, so I > thought I'd ask here. > > Does anyone know if closing the lid on a laptop generates a standard APM > event? Specifically, on a Sony Vaio PCG-Z505JE? it depends on what was set in the bios. do not remember about sony vaio, but some laptops allow to ignore close lid except for turning off the lcd. anyway, normally closing the lid causes normal suspen or hibernate or whetever bios chooses to do. > The computer does not suspend on closing the lid like other laptops I've > seen (only cuts power to the screen), nor does apmd seem to do anything. > I never used Windows on this laptop so I'm hoping someone can clarify > whether the laptop even generates an event when the lid is closed under > Windows or whether the apm code in OpenBSD just needs tweaking. then maybe bios is said to not suspend on close lid? > I'm looking to hook into this event to trigger something along the lines > of an 'ssh-add -D; xautolock -locknow; apm -z' or similar. yeah, just hook on apmd(8) scripts. > Any help would be appreciated. cu -- paranoic mickey (my employers have changed but, the name has remained)