2

I need to find out which driver/module version is contained in a kernel which isn't installed. Is there a document in the source that contains this or something listed online that haven't been able to find?

4
  • 1
    You're going at this the wrong way... Read this. Use the tools I listed in the troubleshooting section, then from the output tell us what isn't working. Commented Dec 5, 2014 at 1:35
  • Which module are you interested in? Why do you need the version? Commented Dec 5, 2014 at 2:37
  • @eyoung100 It isn't a matter of troubleshooting. I was asked by one of our dedicated Red Hat resources which driver version is provided by the latest kernel found at kernel.org. Again, this isn't for running kernels. I know how to obtain that information. I need to know how to determine what a kernel will provide prior to installation. Release notes that list driver versions or similar documentation. Commented Dec 5, 2014 at 4:10
  • 2
    @michas the fnic driver. I was asked to determine which driver version is provided in the source downloaded from kernel.org. Commented Dec 5, 2014 at 4:11

2 Answers 2

3

You can use the modinfo command to give you all kind of information about a given module.

For example:

$ modinfo bluetooth filename: /lib/modules/3.17.4-1-ARCH/kernel/net/bluetooth/bluetooth.ko.gz alias: net-pf-31 license: GPL version: 2.19 description: Bluetooth Core ver 2.19 author: Marcel Holtmann <[email protected]> srcversion: 4D63C2C41C55E984E7057A5 depends: rfkill,crc16 intree: Y vermagic: 3.17.4-1-ARCH SMP preempt mod_unload modversions parm: disable_esco:Disable eSCO connection creation (bool) parm: disable_ertm:Disable enhanced retransmission mode (bool) 

However most of the time you will not find any explicit version, because the module is simply the one contained in your kernel source tree.

1
  • This is for the running kernel. I'm interested in knowing what any kernel provides. For instance, if I download the source for a kernel how can I tell what it will provide? Commented Dec 5, 2014 at 4:08
0

When you say "latest kernel", do you mean latest stable, latest longterm, or latest mainline? Are you looking for a non-RC kernel, or an RC kernel? Since I don't know these details, I'll assume you meant latest non-RC mainline kernel, which is currently 4.5.

For kernel 4.5, all you have to do is browse the 4.5 git tree down to drivers/scsi/fnic and look at fnic.h:

#define DRV_NAME "fnic" #define DRV_DESCRIPTION "Cisco FCoE HBA Driver" #define DRV_VERSION "1.6.0.17a" 

While the release of kernel 4.5 is pretty far removed in time from when you asked your question, the same technique described here would apply to kernels closer to the timeframe of your question, such as kernel 3.17 or kernel 3.18.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.