From owner-freebsd-current@FreeBSD.ORG Fri Jul 18 21:42:01 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9608137B401 for ; Fri, 18 Jul 2003 21:42:01 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2477043F85 for ; Fri, 18 Jul 2003 21:42:00 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from gamplex.bde.org (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3p2/8.8.7) with ESMTP id OAA29791; Sat, 19 Jul 2003 14:41:35 +1000 Date: Sat, 19 Jul 2003 14:41:33 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: "Bjoern A. Zeeb" In-Reply-To: Message-ID: <20030719142755.I25432@gamplex.bde.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org Subject: Re: cyclades isa card not recognized on 5-current ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jul 2003 04:42:01 -0000 On Fri, 18 Jul 2003, Bjoern A. Zeeb wrote: > I have further digged into this and from what I can see > > --- cy.c:cy_units --- > /* wait for the CD1400 to initialize itself */ > for (i = 0; i < 200; i++) { > DELAY(50); > > /* retrieve firmware version */ > firmware_version = cd_inb(iobase, CD1400_GFRCR, > cy_align); > if ((firmware_version & 0xf0) == 0x40) { > break; > } > } > --- cut --- > > firmware_version always is 0xff. This usually means that the maddr is wrong or that the hardware is not there for some other reason. A normal hex dump of cyclades isa memory looks something like this (output from "dd if=/dev/mem bs=1 iseek=0xd4000 count=0x2000 | hd"): %%% 00000000 00 00 00 00 00 00 82 82 00 00 00 00 00 00 00 00 |................| 00000010 13 13 00 00 06 06 08 08 00 00 26 26 00 00 00 00 |..........&&....| 00000020 00 00 34 34 00 00 00 00 00 00 10 10 10 10 a0 a0 |..44............| 00000030 18 18 26 26 00 00 00 00 00 00 00 00 08 08 00 00 |..&&............| 00000040 00 00 02 02 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000080 46 46 00 00 00 00 00 00 00 00 00 00 00 00 47 47 |FF............GG| ... %%% Values at even offsets are always repeated at the next (odd) offset. CD1400_GFRCR is at offset 0x80 (contents 0x46 in the above). > If I give another maddr in hints file than dip switches are set to > kernel aborts somwhere in sioprobe(dev) and will reboot so I assume > maddr really is set correct (also verified with cyclades manual > y_30.pdf again). The abort is a bit unusual since the cyclades probe is not very invasive. > There is a "Rev 5" oder 5.0 on the card. I think mine is much older (model 8Yb). Did you say that it worked under old versions of FreeBSD? Bruce