DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] wrong vermagic in igb_uio.ko
@ 2017-10-03 16:18 O Mahony, Billy
  2017-10-05  8:57 ` O Mahony, Billy
  0 siblings, 1 reply; 2+ messages in thread
From: O Mahony, Billy @ 2017-10-03 16:18 UTC (permalink / raw)
  To: users

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-users] wrong vermagic in igb_uio.ko
  2017-10-03 16:18 [dpdk-users] wrong vermagic in igb_uio.ko O Mahony, Billy
@ 2017-10-05  8:57 ` O Mahony, Billy
  0 siblings, 0 replies; 2+ messages in thread
From: O Mahony, Billy @ 2017-10-05  8:57 UTC (permalink / raw)
  To: 'users@dpdk.org'

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
> 
> 
> 
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-05  8:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-03 16:18 [dpdk-users] wrong vermagic in igb_uio.ko O Mahony, Billy
2017-10-05  8:57 ` O Mahony, Billy

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).