From owner-freebsd-questions@FreeBSD.ORG Fri Nov 21 00:02:55 2003 Return-Path: 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 A35F316A4CE for ; Fri, 21 Nov 2003 00:02:55 -0800 (PST) Received: from mail.ulakbim.gov.tr (mail.ulakbim.gov.tr [193.140.83.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 28C0643FAF for ; Fri, 21 Nov 2003 00:02:52 -0800 (PST) (envelope-from kyk@ulakbim.gov.tr) Received: from ulakbim.gov.tr (ariel.ulakbim.gov.tr [193.140.83.240]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail.ulakbim.gov.tr (Postfix) with ESMTP id 8C9885626F for ; Fri, 21 Nov 2003 10:02:43 +0200 (EET) Message-ID: <3FBE53F9.ACBC0316@ulakbim.gov.tr> Date: Fri, 21 Nov 2003 10:05:45 -0800 From: =?iso-8859-9?Q?K=FCr=FEad?= Yusuf =?iso-8859-9?Q?KONU=DE?= Organization: =?iso-8859-9?Q?T=FCbitak=2DUlakbim?= X-Mailer: Mozilla 4.79 [en]C-CCK-MCD (Windows NT 5.0; U) X-Accept-Language: en,tr MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: multipart/mixed; boundary="------------2B608E3A6789C4371EBB2CB2" X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: FreeBSD 5.1 on ASUS P4C800 (onboard NIC problems, 3Com 3C940) (a solution) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2003 08:02:55 -0000 This is a multi-part message in MIME format. --------------2B608E3A6789C4371EBB2CB2 Content-Type: text/plain; charset=iso-8859-9 Content-Transfer-Encoding: 8bit I know there is no support 3c940 nic with FreeBSD 5.1 version. But it is added later. I look at the CVS. In FreeBSD 5.1 the driver version of the sk is 1.59 (if_sk.c). But 3c940 support added to sk with version 1.65. So i take the 1.65. then i put these files to kernel and i compile itl. Now i am happy with my 3c940 on FreeBSD 5.1. you can download if_sk.c 1.65 version from http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/pci/if_sk.c . But it depend to 2 other files (if_skreg.h and yukonreg.h) so you must download they also. Steps ------- (+)download if_sk.c version 1.65 -> http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sys/pci/if_sk.c?rev=1.64&content-type=text/plain (+)download if_skreg.h version 1.16 -> http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sys/pci/if_skreg.h?rev=1.16&content-type=text/plain (+)download yukonreg.h version 1.1 -> http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sys/pci/yukonreg.h?rev=1.1&content-type=text/plain (+) backup your orginal files which are in /usr/src/sys/pci/ mv /usr/src/sys/pci/if_sk.c /usr/src/sys/pci/if_sk.c.orig mv /usr/src/sys/pci/if_skreg.c /usr/src/sys/pci/if_skreg.h.orig mv /usr/src/sys/pci/yukonreg.h /usr/src/sys/pci/yukonreg.h.orig (+) copy your downloaded files to /usr/src/sys/pci/ cd /floppy/ #I guess that cp if_sk.c if_skreg.h yukonreg.h /usr/src/sys/pci/ (+) Now you can compile kernel cd /usr/src/sys/i386/conf/ config GENERIC cd ../compile/GENERIC make depend make make install (+) reboot the system reboot (+) if everything ok you can see your sk driver with 3c940 Kürşad Yusuf KONUŞ KYK --------------2B608E3A6789C4371EBB2CB2--