intel / intel/ethernet-linux-iavf

README.md contains auxiliary, but not clear where it is found

Open
#4 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
14
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Hi Team,

using CentOS 9 Stream

using prague kernel https://github.com/L4STeam/linux and trying to compile iavf usimg `rpmbuild -tb iavf-4.11.2.tar.gz` received from: https://www.intel.com/content/www/us/en/download/18159/intel-network-adapter-linux-virtual-function-driver-for-intel-ethernet-controller-700-and-e810-series.html

it fails on:
```
Processing files: intel_auxiliary-1.0.2-1.x86_64
error: Empty %files file /home/stack/rpmbuild/BUILD/iavf-4.11.2/aux.list

RPM build errors:
Empty %files file /home/stack/rpmbuild/BUILD/iavf-4.11.2/aux.list
```
in README.md I find:

```
# rpm -Uvh auxiliary-1.0.0-1.x86_64.rpm
--excludepath=/lib/modules/3.10.0-957.el7.x86_64/source/include/linux/auxiliary_
bus.h
```

from pkg name I see it is for RHEL7, but cannot find it for RH or CentOS9 or even 10.

I have found AMD providing Auxiliary driver bus, will that work, would like to check before going in cross vendor sources. https://docs.amd.com/r/en-US/ug1522-x3522-installation/Build-the-Auxiliary-Bus-Driver-Binary-RPM

Tho, I do have:
```
$ ls -l /sys/bus/auxiliary/
total 0
drwxr-xr-x. 2 root root 0 Jun 27 11:46 devices
drwxr-xr-x. 2 root root 0 Jun 27 11:46 drivers
-rw-r--r--. 1 root root 4096 Jun 27 11:57 drivers_autoprobe
--w-------. 1 root root 4096 Jun 27 11:57 drivers_probe
--w-------. 1 root root 4096 Jun 27 11:46 uevent
```

Also I have found that it is complaining about Module.symvers,
went into source dir of prague kernel and did compile it using:
```
557 cd /usr/src/kernels/5.15.72-prague-20240610/
558 make modulesymfile=Module.symvers
559 sudo make modulesymfile=Module.symvers
```

now it complains about auxiliary addition:
```
562 rpmbuild -tb iavf-4.11.2.tar.gz
563 sudo rpmbuild -tb iavf-4.11.2.tar.gz
```

And error is:
```
make: Entering directory '/home/stack/rpmbuild/BUILD/iavf-4.11.2/src'
make[1]: Entering directory '/usr/src/kernels/5.15.72-prague-20240610'
CC [M] /home/stack/rpmbuild/BUILD/iavf-4.11.2/src/iavf_main.o
CC [M] /home/stack/rpmbuild/BUILD/iavf-4.11.2/src/iavf_ethtool.o
CC [M] /home/stack/rpmbuild/BUILD/iavf-4.11.2/src/iavf_virtchnl.o
CC [M] /home/stack/rpmbuild/BUILD/iavf-4.11.2/src/iavf_adminq.o
CC [M] /home/stack/rpmbuild/BUILD/iavf-4.11.2/src/iavf_common.o
CC [M] /home/stack/rpmbuild/BUILD/iavf-4.11.2/src/iavf_txrx.o
CC [M] /home/stack/rpmbuild/BUILD/iavf-4.11.2/src/iavf_fdir.o
CC [M] /home/stack/rpmbuild/BUILD/iavf-4.11.2/src/iavf_adv_rss.o
CC [M] /home/stack/rpmbuild/BUILD/iavf-4.11.2/src/iavf_idc.o
CC [M] /home/stack/rpmbuild/BUILD/iavf-4.11.2/src/iavf_synce.o
CC [M] /home/stack/rpmbuild/BUILD/iavf-4.11.2/src/iavf_gnss.o
CC [M] /home/stack/rpmbuild/BUILD/iavf-4.11.2/src/iavf_ptp.o
CC [M] /home/stack/rpmbuild/BUILD/iavf-4.11.2/src/kcompat.o
LD [M] /home/stack/rpmbuild/BUILD/iavf-4.11.2/src/iavf.o
MODPOST /home/stack/rpmbuild/BUILD/iavf-4.11.2/src/Module.symvers
ERROR: modpost: "__auxiliary_device_add" [/home/stack/rpmbuild/BUILD/iavf-4.11.2/src/iavf.ko] undefined!
ERROR: modpost: "auxiliary_device_init" [/home/stack/rpmbuild/BUILD/iavf-4.11.2/src/iavf.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:133: /home/stack/rpmbuild/BUILD/iavf-4.11.2/src/Module.symvers] Error 1
make[2]: *** Deleting file '/home/stack/rpmbuild/BUILD/iavf-4.11.2/src/Module.symvers'
make[1]: *** [Makefile:1816: modules] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.15.72-prague-20240610'
make: *** [Makefile:65: default] Error 2
make: Leaving directory '/home/stack/rpmbuild/BUILD/iavf-4.11.2/src'
error: Bad exit status from /var/tmp/rpm-tmp.g3i6OK (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.g3i6OK (%build)
```

Any thoughts?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.