{"id":1792,"date":"2021-11-26T17:32:02","date_gmt":"2021-11-26T09:32:02","guid":{"rendered":"http:\/\/iqotom.com\/?p=1792"},"modified":"2022-10-31T16:47:45","modified_gmt":"2022-10-31T08:47:45","slug":"freebsd-13-0-release-add-igc-driver-intel-i225-v-network-adapter","status":"publish","type":"post","link":"http:\/\/iqotom.com\/?p=1792","title":{"rendered":"FreeBSD 13.0-Release Add IGC Driver (Intel I225-V Network Adapter)"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">FreeBSD freebsd 13.0-RELEASE<\/h1>\n\n\n\n<h3 class=\"wp-block-heading\">\u624b\u52a8\u7f16\u8bd1igc\u9a71\u52a8\uff0c\u5e76\u6dfb\u52a0\u5230\u7cfb\u7edf<\/h3>\n\n\n\n<p class=\"has-medium-font-size\"><strong>1\u3001 \u4e0b\u8f7d\u6e90\u7801 <\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/freebsd\/freebsd-src\">freebsd\/freebsd-src: FreeBSD src tree (read-only mirror) (github.com)<\/a><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>2\u3001\u683c\u5f0f\u5316\u4e00\u4e2aFAT32\u683c\u5f0f\u7684U\u76d8<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>3\u3001\u5c06\u4e0b\u8f7d\u597d\u7684igc\u9a71\u52a8\u4ee3\u7801\u653e\u5165U\u76d8<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">\u590d\u5236\u8fd9\u4e24\u4e2a\u6587\u4ef6\u5939\u5230U\u76d8\n\/usr\/src\/dev\/igc\n\/usr\/src\/modules\/igc<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>4\u3001\u6302\u8f7dU\u76d8\u5230FreeBSD<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">FreeBSD\u4f1a\u5c06USB\u6302\u8f7d\u4e3aSCSI\u8bbe\u5907\uff0c\u5728\/dev\u76ee\u5f55\u53ef\u67e5\u770b,\u8fd9\u91ccU\u76d8\u540d\u4e3ada0\n\u67e5\u770bU\u76d8\u4fe1\u606f\tgpart show da0\n\u67e5\u770bU\u76d8\u683c\u5f0f\tfstyp da0p1\uff0c\u8fd9\u91cc\u662fmsdosfs\n\u65b0\u5efa\u6587\u4ef6\u5939\tmkdir \/mnt\/usb\n\u6302\u8f7dU\u76d8\u5230\u6587\u4ef6\u5939\tmount_msdosfs \/dev\/da0p1 \/mnt\/usb<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>5\u3001\u5c06\u9a71\u52a8\u6587\u4ef6\u590d\u5236\u5230\u6e90\u7801\u76ee\u5f55<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">cp -rf \/mnt\/usb\/dev\/igc \/usr\/src\/dev\/igc\ncp -rf \/mnt\/usb\/modules\/igc \/usr\/src\/modules\/igc<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>6\u3001\u7f16\u8bd1\u9a71\u52a8<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">cd \/usr\/src\/sys\/modules\/igc\n\u7f16\u8bd1\nmake\n\u641c\u7d22\u751f\u6210\u7684\u9a71\u52a8\u6587\u4ef6\nfind \/ -name if_igc.ko\n\u5c06if_igc.ko\u590d\u5236\u5230\u5b89\u88c5\u76ee\u5f55\n\/boot\/modules\/if_igc.ko\n\u52a0\u8f7d\u9a71\u52a8\nkldload if_igc (\u91cd\u542f\u5931\u6548)<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>7\u3001\u914d\u7f6e\u7f51\u7edc<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">\u8ba9\u7cfb\u7edf\u81ea\u52a8\u52a0\u8f7d(\u6c38\u4e45\u751f\u6548)\nee \/boot\/loader.conf\nif_igc_load=\"YES\"\n\u914d\u7f6e\u8fde\u63a5\u65b9\u5f0f\nee \/etc\/rc.conf\nifconfig_igc0=\"DHCP\"<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>8\u3001\u9a71\u52a8\u6dfb\u52a0\u5b8c\u6210<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">uname -a\nFreeBSD freebsd 13.0-RELEASE FreeBSD 13.0-RELEASE #0 releng\/13.0-n244733-ea31abc261f: Fri Apr  9 04:24:09 UTC 2021     root@releng1.nyi.freebsd.org:\/usr\/obj\/usr\/src\/amd64.amd64\/sys\/GENERIC  amd64\n\npciconf -lv\n...\nigc0@pci0:1:0:0:\tclass=0x020000 rev=0x03 hdr=0x00 vendor=0x8086 device=0x15f3 subvendor=0x8086 subdevice=0x0000\n    vendor     = 'Intel Corporation'\n    device     = 'Ethernet Controller I225-V'\n    class      = network\n    subclass   = ethernet\nigc1@pci0:2:0:0:\tclass=0x020000 rev=0x03 hdr=0x00 vendor=0x8086 device=0x15f3 subvendor=0x8086 subdevice=0x0000\n    vendor     = 'Intel Corporation'\n    device     = 'Ethernet Controller I225-V'\n    class      = network\n    subclass   = ethernet\nnvme0@pci0:3:0:0:\tclass=0x010802 rev=0x03 hdr=0x00 vendor=0x126f device=0x2263 subvendor=0x126f subdevice=0x2263\n    vendor     = 'Silicon Motion, Inc.'\n    device     = 'SM2263EN\/SM2263XT SSD Controller'\n    class      = mass storage\n    subclass   = NVM\n\nifconfig igc0\nigc0: flags=8863&lt;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500\n\toptions=4e527bb&lt;RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6,NOMAP>\n\tether 00:a0:c9:00:00:0a\n\tinet 192.168.8.193 netmask 0xffffff00 broadcast 192.168.8.255\n\tmedia: Ethernet autoselect (1000baseT &lt;full-duplex>)\n\tstatus: active\n\tnd6 options=29&lt;PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>\n\nping www.baidu.com\n\nPING www.a.shifen.com (14.215.177.38): 56 data bytes\n64 bytes from 14.215.177.38: icmp_seq=0 ttl=56 time=6.775 ms\n64 bytes from 14.215.177.38: icmp_seq=1 ttl=56 time=6.860 ms\n64 bytes from 14.215.177.38: icmp_seq=2 ttl=56 time=5.945 ms\n64 bytes from 14.215.177.38: icmp_seq=3 ttl=56 time=6.736 ms\n64 bytes from 14.215.177.38: icmp_seq=4 ttl=56 time=6.511 ms\n64 bytes from 14.215.177.38: icmp_seq=5 ttl=56 time=6.360 ms\n\n--- www.a.shifen.com ping statistics ---\n6 packets transmitted, 6 packets received, 0.0% packet loss\nround-trip min\/avg\/max\/stddev = 5.945\/6.531\/6.860\/0.312 ms<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>FreeBSD freebsd 13.0-RELEASE \u624b\u52a8\u7f16\u8bd1igc\u9a71\u52a8\uff0c\u5e76\u6dfb\u52a0\u5230\u7cfb\u7edf 1\u3001 \u4e0b\u8f7d\u6e90\u7801 f\u2026 <span class=\"read-more\"><a href=\"http:\/\/iqotom.com\/?p=1792\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":666,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48,34],"tags":[124],"_links":{"self":[{"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/posts\/1792"}],"collection":[{"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/iqotom.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1792"}],"version-history":[{"count":3,"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/posts\/1792\/revisions"}],"predecessor-version":[{"id":1848,"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/posts\/1792\/revisions\/1848"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/media\/666"}],"wp:attachment":[{"href":"http:\/\/iqotom.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/iqotom.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1792"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/iqotom.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}