CM5如何安装网卡驱动?
-
[11810.222046] rockchip-vop2 fdd90000.vop: pd0 on [11936.108867] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [11936.108876] rockchip-vop2 fdd90000.vop: pd0 off [11936.358696] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [11936.358704] rockchip-vop2 fdd90000.vop: pd0 on [11936.611757] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [11936.611762] rockchip-vop2 fdd90000.vop: pd0 off [11936.743419] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [11936.743427] rockchip-vop2 fdd90000.vop: pd0 on [11936.810102] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [11936.810110] rockchip-vop2 fdd90000.vop: pd0 off [11936.826712] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [11936.826721] rockchip-vop2 fdd90000.vop: pd0 on [11936.876678] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [11936.876687] rockchip-vop2 fdd90000.vop: pd0 off [11936.909930] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [11936.909938] rockchip-vop2 fdd90000.vop: pd0 on [11936.927166] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [11936.927174] rockchip-vop2 fdd90000.vop: pd0 off [11936.943234] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [11936.943244] rockchip-vop2 fdd90000.vop: pd0 on [11936.960300] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [11936.960307] rockchip-vop2 fdd90000.vop: pd0 off [11936.974299] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [11936.974307] rockchip-vop2 fdd90000.vop: pd0 on [11936.994271] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [11936.994279] rockchip-vop2 fdd90000.vop: pd0 off [11937.007777] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [11937.007786] rockchip-vop2 fdd90000.vop: pd0 on [11937.026685] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [11937.026694] rockchip-vop2 fdd90000.vop: pd0 off [11937.041018] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [11937.041025] rockchip-vop2 fdd90000.vop: pd0 on [11937.060333] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [11937.060346] rockchip-vop2 fdd90000.vop: pd0 off [11937.208100] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [11937.208108] rockchip-vop2 fdd90000.vop: pd0 on [11937.243441] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [11937.243450] rockchip-vop2 fdd90000.vop: pd0 off [11937.276830] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [11937.276838] rockchip-vop2 fdd90000.vop: pd0 on [11937.376144] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [11937.376152] rockchip-vop2 fdd90000.vop: pd0 off [11937.390939] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [11937.390948] rockchip-vop2 fdd90000.vop: pd0 on [11937.408707] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [11937.408715] rockchip-vop2 fdd90000.vop: pd0 off [11937.424696] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [11937.424703] rockchip-vop2 fdd90000.vop: pd0 on [11937.441800] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [11937.441809] rockchip-vop2 fdd90000.vop: pd0 off [11937.457559] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [11937.457567] rockchip-vop2 fdd90000.vop: pd0 on [11937.476665] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [11937.476673] rockchip-vop2 fdd90000.vop: pd0 off [11937.494117] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [11937.494125] rockchip-vop2 fdd90000.vop: pd0 on [11937.527350] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [11937.527358] rockchip-vop2 fdd90000.vop: pd0 off [11937.543463] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [11937.543472] rockchip-vop2 fdd90000.vop: pd0 on [11937.677395] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [11937.677402] rockchip-vop2 fdd90000.vop: pd0 off [11937.693754] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [11937.693778] rockchip-vop2 fdd90000.vop: pd0 on [11937.827447] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [11937.827455] rockchip-vop2 fdd90000.vop: pd0 off [11937.843330] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [11937.843338] rockchip-vop2 fdd90000.vop: pd0 on [11937.859775] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [11937.859783] rockchip-vop2 fdd90000.vop: pd0 off [11937.876886] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [11937.876894] rockchip-vop2 fdd90000.vop: pd0 on [11937.977322] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [11937.977330] rockchip-vop2 fdd90000.vop: pd0 off [11937.993229] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [11937.993237] rockchip-vop2 fdd90000.vop: pd0 on [12026.742752] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [12026.742761] rockchip-vop2 fdd90000.vop: pd0 off [12028.675768] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [12028.675777] rockchip-vop2 fdd90000.vop: pd0 on [12038.110980] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [12038.110991] rockchip-vop2 fdd90000.vop: pd0 off [12042.042122] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [12042.042131] rockchip-vop2 fdd90000.vop: pd0 on [12059.577168] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [12059.577176] rockchip-vop2 fdd90000.vop: pd0 off [12097.108956] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [12097.108964] rockchip-vop2 fdd90000.vop: pd0 on [12112.377853] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [12112.377862] rockchip-vop2 fdd90000.vop: pd0 off [12113.609157] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [12113.609166] rockchip-vop2 fdd90000.vop: pd0 on [12113.743643] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [12113.743651] rockchip-vop2 fdd90000.vop: pd0 off [12115.227092] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [12115.227099] rockchip-vop2 fdd90000.vop: pd0 on [12115.243558] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [12115.243567] rockchip-vop2 fdd90000.vop: pd0 off [12123.609235] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [12123.609244] rockchip-vop2 fdd90000.vop: pd0 on [12138.310541] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [12138.310549] rockchip-vop2 fdd90000.vop: pd0 off [12138.461714] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [12138.461723] rockchip-vop2 fdd90000.vop: pd0 on [12177.442599] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [12177.442612] rockchip-vop2 fdd90000.vop: pd0 off [12177.459270] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [12177.459282] rockchip-vop2 fdd90000.vop: pd0 on [12214.938648] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [12214.938655] rockchip-vop2 fdd90000.vop: pd0 off [12214.955385] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [12214.955393] rockchip-vop2 fdd90000.vop: pd0 on [12307.991337] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [12307.991341] rockchip-vop2 fdd90000.vop: pd0 off [12310.607684] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [12310.607688] rockchip-vop2 fdd90000.vop: pd0 on [12430.810610] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [12430.810618] rockchip-vop2 fdd90000.vop: pd0 off [12449.474330] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [12449.474333] rockchip-vop2 fdd90000.vop: pd0 on [12827.407348] mali fb000000.gpu: Tiler heap reclaim scan freed pages: 512 (unused: 4608) [12830.044346] mali fb000000.gpu: Tiler heap reclaim scan freed pages: 512 (unused: 2560) [12832.345678] mali fb000000.gpu: Tiler heap reclaim scan freed pages: 1024 (unused: 5120) [12834.277161] mali fb000000.gpu: Tiler heap reclaim scan freed pages: 1024 (unused: 3072) [12839.567026] mali fb000000.gpu: Tiler heap reclaim scan freed pages: 2048 (unused: 4608) [12946.121325] mali fb000000.gpu: Tiler heap reclaim scan freed pages: 1536 (unused: 3584) [12973.576452] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [12973.576460] rockchip-vop2 fdd90000.vop: pd0 off [12979.624709] rockchip-vop2 fdd90000.vop: pd0 get ref_count:0 [12979.624713] rockchip-vop2 fdd90000.vop: pd0 on [12991.331086] mlx5_core: version magic '5.10.110 SMP preempt mod_unload aarch64' should be '5.10.110 SMP mod_unload aarch64' [13019.261815] rockchip-vop2 fdd90000.vop: pd0 put ref_count:1 [13019.261823] rockchip-vop2 fdd90000.vop: pd0 off
dmseg的结果如上
-
@Jachyn
mlx5_core: version magic '5.10.110 SMP preempt mod_unload aarch64' should be '5.10.110 SMP mod_unload aarch64'- modinfo mlx5相关的ko驱动文件
- 内核更改配置为抢占模式,编译替换
-
[ 8935.079458] mlx5_core: Unknown symbol pci_num_vf (err -2) [ 8935.079472] mlx5_core: Unknown symbol pci_sriov_get_totalvfs (err -2) [ 8935.079526] mlx5_core: Unknown symbol net_dim (err -2) [ 8935.079536] mlx5_core: Unknown symbol numa_node (err -2) [ 8935.079650] mlx5_core: Unknown symbol net_dim_get_rx_moderation (err -2) [ 8935.079667] mlx5_core: Unknown symbol net_dim_get_def_tx_moderation (err -2) [ 8935.079679] mlx5_core: Unknown symbol pci_disable_sriov (err -2) [ 8935.079686] mlx5_core: Unknown symbol net_dim_get_def_rx_moderation (err -2) [ 8935.079687] mlx5_core: Unknown symbol net_dim_get_tx_moderation (err -2) [ 8935.079711] mlx5_core: Unknown symbol pci_enable_sriov (err -2) [ 8935.079715] mlx5_core: Unknown symbol elfcorehdr_addr (err -2) [ 8935.079725] mlx5_core: Unknown symbol alloc_pages_current (err -2)
这次不报抢占的错误了 但是有这些
-
root@coolpi:/home/coolpi/Downloads/mlnx-en-5.9-0.5.6.0-ubuntu22.04-aarch64/mlnx-en-5.9-0.5.6.0-ubuntu22.04-aarch64# ./mlnx_add_kernel_support.sh -m ./ Note: This program will create mlnx-en TGZ for ubuntu22.04 under /tmp directory. Do you want to continue?[y/N]:y See log file /tmp/mlnx_iso.834968_logs/mlnx_ofed_iso.834968.log Checking if all needed packages are installed... Building mlnx-en DEBS . Please wait... ERROR: Failed executing "MLNX_EN_SRC-5.9-0.5.6.0/install.pl --tmpdir /tmp/mlnx_iso.834968_logs --eth-only --kernel 5.10.110 --kernel-sources /lib/modules/5.10.110/build/ --builddir /tmp/mlnx_iso.834968 --without-dkms --build-only" ERROR: See /tmp/mlnx_iso.834968_logs/mlnx_ofed_iso.834968.log root@coolpi:/home/coolpi/Downloads/mlnx-en-5.9-0.5.6.0-ubuntu22.04-aarch64/mlnx-en-5.9-0.5.6.0-ubuntu22.04-aarch64#
-
@Jachyn 内核配置增加CONFIG_PCI_IOV,还有其他的根据相应的symbol查找。
另外发现内核带有一个版本的驱动,你可以试下配置编译试试
drivers/net/ethernet/mellanox/ ├── Kconfig ├── Makefile ├── mlx4 ├── mlx5 ├── mlxfw └── mlxsw 4 directories, 2 files
-
@jack_admin 这个内核我是从其他网站下的 站内的内核编译不通过
-
@Jachyn 需要用我们提供的内核,编译不过,找方法解决
-
CC drivers/mtd/spi-nor/issi.o CC drivers/mtd/spi-nor/macronix.o CC drivers/scsi/scsi_sysfs.o CC drivers/mtd/spi-nor/micron-st.o CC drivers/mtd/spi-nor/puya.o CC drivers/mtd/spi-nor/spansion.o CC drivers/mtd/spi-nor/sst.o CC drivers/mtd/spi-nor/winbond.o CC drivers/mtd/spi-nor/xilinx.o CC drivers/mtd/spi-nor/xmc.o CC drivers/mtd/spi-nor/xtx.o AR drivers/mtd/spi-nor/built-in.a AR drivers/mtd/built-in.a AR drivers/scsi/built-in.a make: *** [Makefile:1917: drivers] Error 2
-
@Jachyn 完整log,不要猜哈