Date: Mon, 11 Oct 2004 12:28:37 +0900 (JST) From: Masahiko KIMOTO <kimoto@ohnolab.org> To: freebsd-amd64@freebsd.org Cc: nakaji@jp.freebsd.org Subject: nForce3 Internal NIC on FreeBSD Message-ID: <20041011.122837.66052966.kimoto@ohnolab.org>
next in thread | raw e-mail | index | archive | help
----Next_Part(Mon_Oct_11_12_28_37_2004_835)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Dear nForce3 users: Now that FreeBSD 5.3 can use kernel modules even on amd64. We can compile nvnet as kernel module. 1. Obtain nvnet-src-20040813.tar.gz http://www.onthenet.com.au/~q/nvnet/nvnet-src-20040813.tar.gz and NVIDIA_nforce-1.0-0275.tar.gz (for amd 64). http://www.onthenet.com.au/~q/nvnet/NVIDIA_nforce-1.0-0275.tar.gz 2. Extract both tar.gz and apply a patch to nvnet/src/if_nv.c (this is only one line patch). *** if_nv.c.orig Mon Oct 11 12:04:44 2004 --- if_nv.c Mon Oct 11 11:57:07 2004 *************** *** 86,91 **** --- 86,92 ---- #include <sys/socket.h> #include <sys/sysctl.h> #include <sys/queue.h> + #include <sys/module.h> #include <net/if.h> #include <net/if_arp.h> 3. Run make in nvnet/, then you can get if_nv.ko. 4. Copy if_nv.ko into appropriate directory and 'kldload if_nv.c'. 5. nForce3 ethernet will be recognized like as follows. nv0: <NVIDIA nForce MCP3 Networking Adapter> port 0xb400-0xb407 mem 0xe8000000-0xe8000fff irq 10 at device 5.0 on pci0 nv0: Ethernet address 00:30:1b:b3:b8:1d nv0: Ethernet address: 00:30:1b:b3:b8:1d nv0: [GIANT-LOCKED] miibus1: <MII bus> on nv0 rlphy0: <RTL8201L 10/100 media interface> on miibus1 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto For GbE users: Current if_nv.c may not recongnize newer chipset. Please try attached patch for if_nv.c and if_nvregs.h. Best Regards, ---------------------------------------------------------------------- Masahiko KIMOTO, Ph. D. E-mail: kimoto@ohnolab.org URL: http://www.ohnolab.org/~kimoto ----Next_Part(Mon_Oct_11_12_28_37_2004_835)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="nforce3.diff" *** if_nv.c.orig Mon Oct 11 12:04:44 2004 --- if_nv.c Mon Oct 11 12:23:01 2004 *************** *** 86,91 **** --- 86,92 ---- #include <sys/socket.h> #include <sys/sysctl.h> #include <sys/queue.h> + #include <sys/module.h> #include <net/if.h> #include <net/if_arp.h> *************** *** 231,236 **** --- 232,245 ---- "NVIDIA nForce MCP2 Networking Adapter"}, {NVIDIA_VENDORID, NFORCE_MCPNET3_DEVICEID, "NVIDIA nForce MCP3 Networking Adapter"}, + {NVIDIA_VENDORID, NFORCE_MCPNET4_DEVICEID, + "NVIDIA nForce MCP4 Networking Adapter"}, + {NVIDIA_VENDORID, NFORCE_MCPNET5_DEVICEID, + "NVIDIA nForce MCP5 Networking Adapter"}, + {NVIDIA_VENDORID, NFORCE_MCPNET6_DEVICEID, + "NVIDIA nForce MCP6 Networking Adapter"}, + {NVIDIA_VENDORID, NFORCE_MCPNET7_DEVICEID, + "NVIDIA nForce MCP7 Networking Adapter"}, {0, 0, NULL} }; *** if_nvreg.h.orig Mon Oct 11 12:20:55 2004 --- if_nvreg.h Mon Oct 11 12:22:15 2004 *************** *** 47,52 **** --- 47,56 ---- #define NFORCE_MCPNET1_DEVICEID 0x01C3 #define NFORCE_MCPNET2_DEVICEID 0x0066 #define NFORCE_MCPNET3_DEVICEID 0x00D6 + #define NFORCE_MCPNET4_DEVICEID 0x0086 + #define NFORCE_MCPNET5_DEVICEID 0x008C + #define NFORCE_MCPNET6_DEVICEID 0x00E6 + #define NFORCE_MCPNET7_DEVICEID 0x00DF #define NV_RID 0x10 ----Next_Part(Mon_Oct_11_12_28_37_2004_835)----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041011.122837.66052966.kimoto>