From owner-freebsd-questions@FreeBSD.ORG Sat Jul 23 07:48:27 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 463A216A41F for ; Sat, 23 Jul 2005 07:48:27 +0000 (GMT) (envelope-from jackqqpro@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB14843D45 for ; Sat, 23 Jul 2005 07:48:26 +0000 (GMT) (envelope-from jackqqpro@gmail.com) Received: by rproxy.gmail.com with SMTP id i8so111972rne for ; Sat, 23 Jul 2005 00:48:26 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=tRIWhCOx9t2NriJZFpamYB+lsdQg2u0Y0n5coheCYQxAdB6gTc/XOIVvfW8iSvJPMlXNA6d/ikLz74ulMNKoRGVZkXiii2VUqK/JLuXZbOqj9/FvarTlHy9jaD5pIwUj4BJSTSZwnxbACo52Z6ZuBna1luRfMmtriKcLwYHA0fE= Received: by 10.38.181.18 with SMTP id d18mr352914rnf; Sat, 23 Jul 2005 00:48:25 -0700 (PDT) Received: by 10.38.104.31 with HTTP; Sat, 23 Jul 2005 00:48:25 -0700 (PDT) Message-ID: <890a507f050723004844ce572b@mail.gmail.com> Date: Sat, 23 Jul 2005 15:48:25 +0800 From: jackqq To: freebsd-questions Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: Subject: Holtek HT80232 NIC unrecognized on FreeBSD 5.4-RELEASE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jackqq List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jul 2005 07:48:27 -0000 My ethernet adapter's chip is Holtek's HT80232. It seems to be not recognized by the GENERIC kernel or any if_*.ko module. I looked for its driver for FreeBSD. Googling "holtek" "ht80232" "freebsd", I was shown some clues that FreeBSD seemed to support this chip. The clue was found in /usr/src/share/misc/pci_vendors, where it said 12C3 Holtek Microelectronics Inc. 0058 HT80232 LAN Adapter (NE2000-compatible) 5598 HT80229 Ethernet Adapter (NE2000-compatible) Later, I found that the driver ed(4) supported NE2000 NICs, and, it was included in the GENERIC kernel. But when the machine booting with GENERIC, the card was not attatched with that driver or even any other driver. My dmesg(1) is excerpted below: pcib2: at device 30.0 on pci0 pcib2: secondary bus 2 pcib2: subordinate bus 2 pcib2: I/O decode 0xc000-0xcfff pcib2: memory decode 0xee000000-0xefffffff pcib2: prefetched decode 0xfff00000-0xfffff pcib2: Subtractively decoded bridge. ACPI PCI link initial configuration: pci2: on pcib2 pci2: physical bus=3D2 map[10]: type 1, range 32, base ef000000, size 17, enabled pcib2: device (null) requested decoded memory range 0xef000000-0xef01ffff map[14]: type 4, range 32, base 0000c000, size 3, enabled pcib2: device (null) requested decoded I/O range 0xc000-0xc007 map[18]: type 4, range 32, base 0000c400, size 3, enabled pcib2: device (null) requested decoded I/O range 0xc400-0xc407 pcib2: matched entry for 2.1.INTA pcib2: slot 1 INTA hardwired to IRQ 21 found-> vendor=3D0x12eb, dev=3D0x0001, revid=3D0x02 bus=3D2, slot=3D1, func=3D0 class=3D04-01-00, hdrtype=3D0x00, mfdev=3D0 cmdreg=3D0x0007, statreg=3D0x0290, cachelnsz=3D8 (dwords) lattimer=3D0x20 (960 ns), mingnt=3D0x02 (500 ns), maxlat=3D0x0c (30= 00 ns) intpin=3Da, irq=3D21 powerspec 1 supports D0 D2 D3 current D0 map[10]: type 4, range 32, base 0000c800, size 6, enabled pcib2: device (null) requested decoded I/O range 0xc800-0xc83f pcib2: matched entry for 2.4.INTA pcib2: slot 4 INTA hardwired to IRQ 18 found-> vendor=3D0x12c3, dev=3D0x0058, revid=3D0x00 bus=3D2, slot=3D4, func=3D0 class=3D02-00-00, hdrtype=3D0x00, mfdev=3D0 cmdreg=3D0x0003, statreg=3D0x0280, cachelnsz=3D0 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns) intpin=3Da, irq=3D18 pci2: at device 1.0 (no driver attached) pci2: at device 4.0 (no driver attached) I noticed that the card was found on pcib2 slot 4, because the vendor and device codes matched the ones in the FreeBSD source code. Then, I discovered ed.0 was disabled in /boot/driver.hints, so I modified that file like this: # hint.ed.0.at=3D"isa" # hint.ed.0.disabled=3D"1" # hint.ed.0.port=3D"0x280" # hint.ed.0.irq=3D"10" # hint.ed.0.maddr=3D"0xd8000" hint.ed.0.at=3D"pci" However, this didn't work either. Could somebody give me some suggestions on what I should read or where I should check next? Thanks in advance! --=20 jackqq :-)