FreeBSD 5.1 on ASUS P4C800 (onboard NIC problems, 3Com 3C940) (a solution)

KürşadYusufKONUŞ kyk at
Fri Nov 21 00:02:55 PST 2003

    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 . But it
depend to 2 other files (if_skreg.h and yukonreg.h) so you must download
they also.

   (+)download if_sk.c version 1.65 ->

    (+)download if_skreg.h version 1.16 ->

    (+)download yukonreg.h version 1.1 ->

   (+) 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/
/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 install

    (+) reboot the system
    (+) if everything ok you can see your sk driver with 3c940

Kürşad Yusuf KONUŞ


More information about the freebsd-questions mailing list