DPDK usage discussions
 help / color / mirror / Atom feed
From: "O Mahony, Billy" <billy.o.mahony@intel.com>
To: "'users@dpdk.org'" <users@dpdk.org>
Subject: Re: [dpdk-users] wrong vermagic in igb_uio.ko
Date: Thu, 5 Oct 2017 08:57:37 +0000	[thread overview]
Message-ID: <03135AEA779D444E90975C2703F148DC58C23F13@IRSMSX107.ger.corp.intel.com> (raw)
In-Reply-To: <03135AEA779D444E90975C2703F148DC58C23219@IRSMSX107.ger.corp.intel.com>

Hat-tip to Ferruh for the fix on this.

> From: O Mahony, Billy
> Sent: Wednesday, October 4, 2017 6:19 PM
> To: Yigit, Ferruh <ferruh.yigit@intel.com>; 
> Subject: RE: wrong vermagic in igb_uio.ko
> 
> Excellent. Thanks, Ferruh.
> 
> On my system /lib/modules/$(uname -r)/build and source were both pointing to
> the src/headers for the other kernel src. Manually changing those fixed the
> issue.
> 
> I wonder what sets up those links in the first place?
> 
> > -----Original Message-----
> > From: Yigit, Ferruh
> > Sent: Wednesday, October 4, 2017 5:51 PM
> > To: O Mahony, Billy <billy.o.mahony@intel.com>;
> > Subject: RE: wrong vermagic in igb_uio.ko
> >
> > By default kernel modules uses " /lib/modules/$(shell uname -r)/build"
> > as RTE_KERNELDIR.
> >
> > But you can provide this RTE_KERNELDIR variable externally to the
> > kernel source you want to compile modules against.


> -----Original Message-----
> From: O Mahony, Billy
> Sent: Tuesday, October 3, 2017 5:18 PM
> To: users@dpdk.org
> Subject: wrong vermagic in igb_uio.ko
> 
> Hi,
> 
> I have two kernels installed on my system. One with some local patches applied.
> 
> 4.9.30-rt20
> And
> 4.9.30-rt20-timers-patch
> 
> But regardless of which kernel I boot with when I build DPDK igb_uio always has
> vermagic from just one kernel. 4.9.30-rt20. Even though the build puts it in a
> correctly named path.
> 
>     # modinfo ./install/lib/modules/4.9.30-rt20-timers-
> patch/extra/dpdk/igb_uio.ko | grep -i magic
>     vermagic:       4.9.30-rt20 SMP preempt mod_unload
>     # uname -r
>     4.9.30-rt20-timers-patch
> 
> I can't see any kernel/vermagic configuration in the various config files. I'm
> pretty sure I'd figured out before that the dpdk build was pulling this info from
> /usr/src/linux/.config CONFIG_LOCALVERSION setting but it seems to be
> ignoring anything I put in that now.
> 
> Where /does/ the dpdk build get the kernel version info from?
> 
> Cheers,
> Billy
> 
> 
> 
> 
> 
> 
> 

      reply	other threads:[~2017-10-05  8:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-03 16:18 O Mahony, Billy
2017-10-05  8:57 ` O Mahony, Billy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=03135AEA779D444E90975C2703F148DC58C23F13@IRSMSX107.ger.corp.intel.com \
    --to=billy.o.mahony@intel.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).