Firefly开源社区

打印 上一主题 下一主题

[Linux] itx-3588j pcie i350驱动适配

8

积分

0

威望

0

贡献

吃瓜的群众

积分
8
QQ

itx-3588j pcie i350驱动适配

发表于 2023-3-31 16:59:19      浏览:5061 | 回复:2        打印      只看该作者   [复制链接] 楼主
问题描述及复现步骤:
适配 intel的 i350网卡,两片i350,intel源码驱动编译通过,modprobe igb 没有任何输出

root@firefly:/home/firefly/e1000e/igb-5.13.16/src# make install
filtering include/net/flow_keys.h out
     1  /* Autogenerated for KSRC=/lib/modules/5.10.110/build via kcompat-generator.sh */
     2  #define HAVE_NDO_FDB_ADD_VID
     3  #define HAVE_NDO_GET_DEVLINK_PORT
     4  #define NEED_NO_NETDEV_PROG_XDP_WARN_ACTION
     5  #define HAVE_FLOW_DISSECTOR_KEY_CVLAN
     6  #define NEED_ETH_HW_ADDR_SET
make[1]: Entering directory '/usr/src/linux-headers-5.10.110'
  CC [M]  /home/firefly/e1000e/igb-5.13.16/src/igb_main.o
  CC [M]  /home/firefly/e1000e/igb-5.13.16/src/e1000_api.o
  CC [M]  /home/firefly/e1000e/igb-5.13.16/src/igb_ethtool.o
  CC [M]  /home/firefly/e1000e/igb-5.13.16/src/igb_hwmon.o
  CC [M]  /home/firefly/e1000e/igb-5.13.16/src/e1000_mbx.o
  CC [M]  /home/firefly/e1000e/igb-5.13.16/src/e1000_mac.o
  CC [M]  /home/firefly/e1000e/igb-5.13.16/src/e1000_manage.o
  CC [M]  /home/firefly/e1000e/igb-5.13.16/src/e1000_nvm.o
  CC [M]  /home/firefly/e1000e/igb-5.13.16/src/igb_param.o
  CC [M]  /home/firefly/e1000e/igb-5.13.16/src/e1000_phy.o
  CC [M]  /home/firefly/e1000e/igb-5.13.16/src/igb_procfs.o
  CC [M]  /home/firefly/e1000e/igb-5.13.16/src/igb_vmdq.o
  CC [M]  /home/firefly/e1000e/igb-5.13.16/src/e1000_82575.o
  CC [M]  /home/firefly/e1000e/igb-5.13.16/src/e1000_i210.o
  CC [M]  /home/firefly/e1000e/igb-5.13.16/src/e1000_base.o
  CC [M]  /home/firefly/e1000e/igb-5.13.16/src/igb_debugfs.o
  CC [M]  /home/firefly/e1000e/igb-5.13.16/src/igb_ptp.o
  CC [M]  /home/firefly/e1000e/igb-5.13.16/src/kcompat.o
  LD [M]  /home/firefly/e1000e/igb-5.13.16/src/igb.o
  MODPOST /home/firefly/e1000e/igb-5.13.16/src/Module.symvers
  LD [M]  /home/firefly/e1000e/igb-5.13.16/src/igb.ko
make[1]: Leaving directory '/usr/src/linux-headers-5.10.110'
Copying manpages...
Installing modules...
make[1]: Entering directory '/usr/src/linux-headers-5.10.110'
  INSTALL /home/firefly/e1000e/igb-5.13.16/src/igb.ko
  DEPMOD  5.10.110
make[1]: Leaving directory '/usr/src/linux-headers-5.10.110'
Running depmod...
Updating initramfs...
root@firefly:/home/firefly/e1000e/igb-5.13.16/src# modprobe igb
^C
root@firefly:/home/firefly/e1000e/igb-5.13.16/src# lshw -C network
  *-network:0
       description: Ethernet controller
       product: I350 Gigabit Network Connection
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       version: 01
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi msix pciexpress bus_master cap_list
       configuration: driver=igb latency=0
       resources: irq:165 memory:f0200000-f02fffff memory:f0600000-f0603fff
  *-network:1 UNCLAIMED
       description: Ethernet controller
       product: I350 Gigabit Network Connection
       vendor: Intel Corporation
       physical id: 0.1
       bus info: pci@0000:03:00.1
       version: 01
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi msix pciexpress cap_list
       configuration: latency=0
       resources: memory:f0300000-f03fffff memory:f0604000-f0607fff
  *-network:2 UNCLAIMED
       description: Ethernet controller
       product: I350 Gigabit Network Connection
       vendor: Intel Corporation
       physical id: 0.2
       bus info: pci@0000:03:00.2
       version: 01
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi msix pciexpress cap_list
       configuration: latency=0
       resources: memory:f0400000-f04fffff memory:f0608000-f060bfff
  *-network:3 UNCLAIMED
       description: Ethernet controller
       product: I350 Gigabit Network Connection
       vendor: Intel Corporation
       physical id: 0.3
       bus info: pci@0000:03:00.3
       version: 01
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi msix pciexpress cap_list
       configuration: latency=0
       resources: memory:f0500000-f05fffff memory:f060c000-f060ffff
  *-network:0 UNCLAIMED
       description: Ethernet controller
       product: I350 Gigabit Network Connection
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:04:00.0
       version: 01
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi msix pciexpress cap_list
       configuration: latency=0
       resources: memory:f0700000-f07fffff memory:f0b00000-f0b03fff
  *-network:1 UNCLAIMED
       description: Ethernet controller
       product: I350 Gigabit Network Connection
       vendor: Intel Corporation
       physical id: 0.1
       bus info: pci@0000:04:00.1
       version: 01
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi msix pciexpress cap_list
       configuration: latency=0
       resources: memory:f0800000-f08fffff memory:f0b04000-f0b07fff
  *-network:2 UNCLAIMED
       description: Ethernet controller
       product: I350 Gigabit Network Connection
       vendor: Intel Corporation
       physical id: 0.2
       bus info: pci@0000:04:00.2
       version: 01
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi msix pciexpress cap_list
       configuration: latency=0
       resources: memory:f0900000-f09fffff memory:f0b08000-f0b0bfff
  *-network:3 UNCLAIMED
       description: Ethernet controller
       product: I350 Gigabit Network Connection
       vendor: Intel Corporation
       physical id: 0.3
       bus info: pci@0000:04:00.3
       version: 01
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi msix pciexpress cap_list
       configuration: latency=0
       resources: memory:f0a00000-f0afffff memory:f0b0c000-f0b0ffff
  *-network
       description: Network controller
       product: Broadcom Inc. and subsidiaries
       vendor: Broadcom Inc. and subsidiaries
       physical id: 0
       bus info: pci@0002:21:00.0
       version: 02
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: driver=pcieh latency=0
       resources: irq:153 memory:f2200000-f220ffff memory:f2400000-f27fffff
  *-network:0 DISABLED
       description: Ethernet interface
       physical id: 7
       logical name: dummy0
       serial: d2:28:06:79:5f:b2
       capabilities: ethernet physical
       configuration: broadcast=yes driver=dummy driverversion=5.10.110
  *-network:1
       description: Ethernet interface
       physical id: 8
       logical name: eth0
       serial: 4a:0d:b7:19:14:26
       capacity: 1Gbit/s
       capabilities: ethernet physical tp mii 10bt-fd 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=st_gmac driverversion=Jan_2016 link=no multicast=yes port=twisted pair
  *-network:2
       description: Ethernet interface
       physical id: 9
       logical name: eth1
       serial: 4e:0d:b7:19:14:26
       capacity: 1Gbit/s
       capabilities: ethernet physical tp mii 10bt-fd 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=st_gmac driverversion=Jan_2016 link=no multicast=yes port=twisted pair
  *-network:3
       description: Wireless interface
       physical id: a
       logical name: wlan0
       serial: 70:f7:54:54:b1:14
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=wl driverversion=0 ip=10.13.90.67 multicast=yes wireless=IEEE 802.11
root@firefly:/home/firefly/e1000e/igb-5.13.16/src# ifconfig -a
can0: flags=128<NOARP>  mtu 16
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 10  (UNSPEC)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 89

dummy0: flags=130<BROADCAST,NOARP>  mtu 1500
        ether d2:28:06:79:5f:b2  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 4a:0d:b7:19:14:26  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 76

eth1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 4e:0d:b7:19:14:26  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 78

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 54  bytes 12308 (12.3 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 54  bytes 12308 (12.3 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.13.90.67  netmask 255.255.255.0  broadcast 10.13.90.255
        inet6 fe80::daed:ba57:a643:ea05  prefixlen 64  scopeid 0x20<link>
        ether 70:f7:54:54:b1:14  txqueuelen 1000  (Ethernet)
        RX packets 82912  bytes 50339758 (50.3 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 49869  bytes 3254850 (3.2 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@firefly:/home/firefly/e1000e/igb-5.13.16/src#
root@firefly:/home/firefly/e1000e/igb-5.13.16/src# lspci
0000:00:00.0 PCI bridge: Fuzhou Rockchip Electronics Co., Ltd Device 3588 (rev 01)
0000:01:00.0 PCI bridge: Pericom Semiconductor Device 2312
0000:02:01.0 PCI bridge: Pericom Semiconductor Device 2312
0000:02:02.0 PCI bridge: Pericom Semiconductor Device 2312
0000:03:00.0 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
0000:03:00.1 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
0000:03:00.2 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
0000:03:00.3 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
0000:04:00.0 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
0000:04:00.1 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
0000:04:00.2 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
0000:04:00.3 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
0002:20:00.0 PCI bridge: Fuzhou Rockchip Electronics Co., Ltd Device 3588 (rev 01)
0002:21:00.0 Network controller: Broadcom Inc. and subsidiaries Device 449d (rev 02)
root@firefly:/home/firefly/e1000e/igb-5.13.16/src#

root@firefly:/home/firefly/e1000e/igb-5.13.16/src# modinfo igb
filename:       /lib/modules/5.10.110/updates/drivers/net/ethernet/intel/igb/igb.ko
version:        5.13.16
license:        GPL
description:    Intel(R) Gigabit Ethernet Linux Driver
author:         Intel Corporation, <e1000-devel@lists.sourceforge.net>
intree:         Y
srcversion:     76C9652046DD1375D10ABE3
alias:          pci:v00008086d000010D6sv*sd*bc*sc*i*
alias:          pci:v00008086d000010A9sv*sd*bc*sc*i*
alias:          pci:v00008086d000010A7sv*sd*bc*sc*i*
alias:          pci:v00008086d000010E8sv*sd*bc*sc*i*
alias:          pci:v00008086d00001526sv*sd*bc*sc*i*
alias:          pci:v00008086d0000150Dsv*sd*bc*sc*i*
alias:          pci:v00008086d000010E7sv*sd*bc*sc*i*
alias:          pci:v00008086d000010E6sv*sd*bc*sc*i*
alias:          pci:v00008086d00001518sv*sd*bc*sc*i*
alias:          pci:v00008086d0000150Asv*sd*bc*sc*i*
alias:          pci:v00008086d000010C9sv*sd*bc*sc*i*
alias:          pci:v00008086d00000440sv*sd*bc*sc*i*
alias:          pci:v00008086d0000043Csv*sd*bc*sc*i*
alias:          pci:v00008086d0000043Asv*sd*bc*sc*i*
alias:          pci:v00008086d00000438sv*sd*bc*sc*i*
alias:          pci:v00008086d00001516sv*sd*bc*sc*i*
alias:          pci:v00008086d00001511sv*sd*bc*sc*i*
alias:          pci:v00008086d00001510sv*sd*bc*sc*i*
alias:          pci:v00008086d00001527sv*sd*bc*sc*i*
alias:          pci:v00008086d0000150Fsv*sd*bc*sc*i*
alias:          pci:v00008086d0000150Esv*sd*bc*sc*i*
alias:          pci:v00008086d00001524sv*sd*bc*sc*i*
alias:          pci:v00008086d00001523sv*sd*bc*sc*i*
alias:          pci:v00008086d00001522sv*sd*bc*sc*i*
alias:          pci:v00008086d00001521sv*sd*bc*sc*i*
alias:          pci:v00008086d00001539sv*sd*bc*sc*i*
alias:          pci:v00008086d0000157Csv*sd*bc*sc*i*
alias:          pci:v00008086d0000157Bsv*sd*bc*sc*i*
alias:          pci:v00008086d00001538sv*sd*bc*sc*i*
alias:          pci:v00008086d00001537sv*sd*bc*sc*i*
alias:          pci:v00008086d00001536sv*sd*bc*sc*i*
alias:          pci:v00008086d00001533sv*sd*bc*sc*i*
alias:          pci:v00008086d00001F45sv*sd*bc*sc*i*
alias:          pci:v00008086d00001F41sv*sd*bc*sc*i*
alias:          pci:v00008086d00001F40sv*sd*bc*sc*i*
depends:
name:           igb
vermagic:       5.10.110 SMP mod_unload aarch64
parm:           InterruptThrottleRate:Maximum interrupts per second, per vector, (max 100000), default 3=adaptive (array of int)
parm:           IntMode:Change Interrupt Mode (0=Legacy, 1=MSI, 2=MSI-X), default 2 (array of int)
parm:           Node:set the starting node to allocate memory on, default -1 (array of int)
parm:           LLIPort:Low Latency Interrupt TCP Port (0-65535), default 0=off (array of int)
parm:           LLIPush:Low Latency Interrupt on TCP Push flag (0,1), default 0=off (array of int)
parm:           LLISize:Low Latency Interrupt on Packet Size (0-1500), default 0=off (array of int)
parm:           RSS:Number of Receive-Side Scaling Descriptor Queues (0-8), default 1, 0=number of cpus (array of int)
parm:           VMDQ:Number of Virtual Machine Device Queues: 0-1 = disable, 2-8 enable, default 0 (array of int)
parm:           max_vfs:Number of Virtual Functions: 0 = disable, 1-7 enable, default 0 (array of int)
parm:           MDD:Malicious Driver Detection (0/1), default 1 = enabled. Only available when max_vfs is greater than 0 (array of int)
parm:           QueuePairs:Enable Tx/Rx queue pairs for interrupt handling (0,1), default 1=on (array of int)
parm:           EEE:Enable/disable on parts that support the feature (array of int)
parm:           DMAC:Disable or set latency for DMA Coalescing ((0=off, 1000-10000(msec), 250, 500 (usec)) (array of int)
parm:           LRO:Large Receive Offload (0,1), default 0=off (array of int)
parm:           debug:Debug level (0=none, ..., 16=all) (int)
root@firefly:/home/firefly/e1000e/igb-5.13.16/src# lsmod |grep igb
igb                   184320  1
root@firefly:/home/firefly/e1000e/igb-5.13.16/src# dmesg | grep igb
[    9.882327] igb 0000:03:00.0: enabling device (0000 -> 0002)
[    9.922163] Modules linked in: igb(+) ahci_platform libahci_platform libahci bcmdhd(+) libata dhd_static_buf scsi_mod
[    9.926837] pc : igb_probe+0x578/0xf78 [igb]
[    9.926847] lr : igb_probe+0x554/0xf78 [igb]
[    9.933503]  igb_probe+0x578/0xf78 [igb]
[    9.933535]  igb_init_module+0x64/0x1000 [igb]
root@firefly:/home/firefly/e1000e/igb-5.13.16/src#





日志.txt

15.98 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

1万

积分

14

威望

13

贡献

管理员

Rank: 9Rank: 9Rank: 9

积分
11182

优秀版主

发表于 2023-4-12 10:03:20        只看该作者  沙发
dmesg 看到驱动信息,那么 就已经 init 了,但是到底init 成不成功需要自己跟踪驱动
回复

使用道具 举报

37

积分

0

威望

0

贡献

技术小白

积分
37
发表于 2023-5-18 09:24:00        只看该作者  板凳
请问这个问题怎么解决呢?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表