Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Nov 2003 10:05:45 -0800
From:      =?iso-8859-9?Q?K=FCr=FEad?= Yusuf =?iso-8859-9?Q?KONU=DE?= <kyk@ulakbim.gov.tr>
To:        freebsd-questions@freebsd.org
Subject:   FreeBSD 5.1 on ASUS P4C800 (onboard NIC problems, 3Com 3C940) (a  solution)
Message-ID:  <3FBE53F9.ACBC0316@ulakbim.gov.tr>

next in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FBE53F9.ACBC0316>