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
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to