You are not logged in.

#1 2022-08-21 21:39:45

herOldMan
Member
Registered: 2013-10-11
Posts: 154

[solved] Intel I211 driver, how to install

Hi,

I am trying to install a driver for  an unrecognized Network adapter (PCI).

Currently ip -l does not show the device but I am certain it is a an Intel I211

I have downloaded the source from the Intel site (igb-5.7.2)

On compiling the source I get an error:

/root/Downloads/igb-5.7.2/src/igb_main.c:6622:9: error: implicit declaration of function ‘random_ether_addr’ [-Werror=implicit-function-declaration]
 6622 |         random_ether_addr(mac_addr);

The full output is shown below.

How can I install the driver for the Intel I211?

make
*** The target kernel has CONFIG_MODULE_SIG_ALL enabled, but
*** the signing key cannot be found. Module signing has been
*** disabled for this build.
make[1]: Entering directory '/usr/lib/modules/5.19.2-arch1-1/build'
  CC [M]  /root/Downloads/igb-5.7.2/src/igb_main.o
In file included from ./include/linux/string.h:253,
                 from ./include/linux/bitmap.h:11,
                 from ./include/linux/cpumask.h:12,
                 from ./arch/x86/include/asm/cpumask.h:5,
                 from ./arch/x86/include/asm/msr.h:11,
                 from ./arch/x86/include/asm/processor.h:22,
                 from ./arch/x86/include/asm/timex.h:5,
                 from ./include/linux/timex.h:67,
                 from ./include/linux/time32.h:13,
                 from ./include/linux/time.h:60,
                 from ./include/linux/stat.h:19,
                 from ./include/linux/module.h:13,
                 from /root/Downloads/igb-5.7.2/src/igb_main.c:4:
/root/Downloads/igb-5.7.2/src/igb_main.c: In function ‘igb_probe’:
/root/Downloads/igb-5.7.2/src/igb_main.c:3025:22: warning: passing argument 1 of ‘__builtin_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
 3025 |         memcpy(netdev->dev_addr, hw->mac.addr, netdev->addr_len);
      |                ~~~~~~^~~~~~~~~~
./include/linux/fortify-string.h:378:27: note: in definition of macro ‘__fortify_memcpy_chk’
  378 |         __underlying_##op(p, q, __fortify_size);                        \
      |                           ^
/root/Downloads/igb-5.7.2/src/igb_main.c:3025:9: note: in expansion of macro ‘memcpy’
 3025 |         memcpy(netdev->dev_addr, hw->mac.addr, netdev->addr_len);
      |         ^~~~~~
/root/Downloads/igb-5.7.2/src/igb_main.c:3025:22: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
 3025 |         memcpy(netdev->dev_addr, hw->mac.addr, netdev->addr_len);
      |                ~~~~~~^~~~~~~~~~
./include/linux/fortify-string.h:378:27: note: in definition of macro ‘__fortify_memcpy_chk’
  378 |         __underlying_##op(p, q, __fortify_size);                        \
      |                           ^
/root/Downloads/igb-5.7.2/src/igb_main.c:3025:9: note: in expansion of macro ‘memcpy’
 3025 |         memcpy(netdev->dev_addr, hw->mac.addr, netdev->addr_len);
      |         ^~~~~~
/root/Downloads/igb-5.7.2/src/igb_main.c: In function ‘igb_set_mac’:
/root/Downloads/igb-5.7.2/src/igb_main.c:4550:22: warning: passing argument 1 of ‘__builtin_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
 4550 |         memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len);
      |                ~~~~~~^~~~~~~~~~
./include/linux/fortify-string.h:378:27: note: in definition of macro ‘__fortify_memcpy_chk’
  378 |         __underlying_##op(p, q, __fortify_size);                        \
      |                           ^
/root/Downloads/igb-5.7.2/src/igb_main.c:4550:9: note: in expansion of macro ‘memcpy’
 4550 |         memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len);
      |         ^~~~~~
/root/Downloads/igb-5.7.2/src/igb_main.c:4550:22: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
 4550 |         memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len);
      |                ~~~~~~^~~~~~~~~~
./include/linux/fortify-string.h:378:27: note: in definition of macro ‘__fortify_memcpy_chk’
  378 |         __underlying_##op(p, q, __fortify_size);                        \
      |                           ^
/root/Downloads/igb-5.7.2/src/igb_main.c:4550:9: note: in expansion of macro ‘memcpy’
 4550 |         memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len);
      |         ^~~~~~
/root/Downloads/igb-5.7.2/src/igb_main.c: In function ‘igb_vf_configure’:
/root/Downloads/igb-5.7.2/src/igb_main.c:6622:9: error: implicit declaration of function ‘random_ether_addr’ [-Werror=implicit-function-declaration]
 6622 |         random_ether_addr(mac_addr);
      |         ^~~~~~~~~~~~~~~~~
/root/Downloads/igb-5.7.2/src/igb_main.c: In function ‘igb_set_interrupt_capability’:
/root/Downloads/igb-5.7.2/src/igb_main.c:1063:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1063 |                 igb_reset_interrupt_capability(adapter);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/Downloads/igb-5.7.2/src/igb_main.c:1065:9: note: here
 1065 |         case IGB_INT_MODE_MSI:
      |         ^~~~
/root/Downloads/igb-5.7.2/src/igb_main.c:1066:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1066 |                 if (!pci_enable_msi(pdev))
      |                    ^
/root/Downloads/igb-5.7.2/src/igb_main.c:1072:9: note: here
 1072 |         case IGB_INT_MODE_LEGACY:
      |         ^~~~
In file included from /root/Downloads/igb-5.7.2/src/e1000_hw.h:7,
                 from /root/Downloads/igb-5.7.2/src/e1000_api.h:7,
                 from /root/Downloads/igb-5.7.2/src/igb.h:38,
                 from /root/Downloads/igb-5.7.2/src/igb_main.c:30:
/root/Downloads/igb-5.7.2/src/igb_main.c: In function ‘igb_vmm_control’:
/root/Downloads/igb-5.7.2/src/e1000_osdep.h:72:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
   72 | do { \
      |    ^
/root/Downloads/igb-5.7.2/src/igb_main.c:9992:17: note: in expansion of macro ‘E1000_WRITE_REG’
 9992 |                 E1000_WRITE_REG(hw, E1000_DTXCTL, reg);
      |                 ^~~~~~~~~~~~~~~
/root/Downloads/igb-5.7.2/src/igb_main.c:9994:9: note: here
 9994 |         case e1000_82580:
      |         ^~~~
/root/Downloads/igb-5.7.2/src/igb_main.c: In function ‘igb_set_fw_version’:
/root/Downloads/igb-5.7.2/src/igb_main.c:2604:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
 2604 |                 if (!(e1000_get_flash_presence_i210(hw))) {
      |                    ^
/root/Downloads/igb-5.7.2/src/igb_main.c:2612:9: note: here
 2612 |         default:
      |         ^~~~~~~
/root/Downloads/igb-5.7.2/src/igb_main.c: In function ‘__igb_notify_dca’:
/root/Downloads/igb-5.7.2/src/igb_main.c:6582:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
 6582 |                 if (dca_add_requester(dev) == E1000_SUCCESS) {
      |                    ^
/root/Downloads/igb-5.7.2/src/igb_main.c:6589:9: note: here
 6589 |         case DCA_PROVIDER_REMOVE:
      |         ^~~~
/root/Downloads/igb-5.7.2/src/igb_main.c: In function ‘igb_has_link’:
/root/Downloads/igb-5.7.2/src/igb_main.c:4910:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
 4910 |                 if (!hw->mac.get_link_status)
      |                    ^
/root/Downloads/igb-5.7.2/src/igb_main.c:4913:9: note: here
 4913 |         case e1000_media_type_internal_serdes:
      |         ^~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:249: /root/Downloads/igb-5.7.2/src/igb_main.o] Error 1
make[1]: *** [Makefile:1849: /root/Downloads/igb-5.7.2/src] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.19.2-arch1-1/build'
make: *** [Makefile:86: default] Error 2

Last edited by herOldMan (2022-08-22 21:50:09)

Offline

#2 2022-08-21 21:49:54

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [solved] Intel I211 driver, how to install

It should already be built into the kernel. What's the output of...

lspci -v -nn

No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2022-08-22 21:48:52

herOldMan
Member
Registered: 2013-10-11
Posts: 154

Re: [solved] Intel I211 driver, how to install

Hi,

While the adapter was indeed an I211, it was, in fact, defective.

Returned to vendor.

Offline

Board footer

Powered by FluxBB