From: "Andrew Harvey (agh)" <agh@cisco.com>
To: Nguyen Van Long <longnv@viosoft.com>, "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] ERROR: Invalid module format
Date: Mon, 28 Sep 2015 05:19:59 +0000 [thread overview]
Message-ID: <92769872-78F6-4E9F-9E2C-C78FB4C11CE5@cisco.com> (raw)
You problem is caused by compiling against 2 different kernel trees. The version magic for the module must the same (see below). If you still have the deploy machine (3.16.0.30) kernel tree accessible to your build machine you can try setting the RTE_KERNELDIR=<path to 3.16.0.30 tree>. This can be set in your environment or on the command line as shown below. Once the 2 version magic’s match you should be good to go. You may also want to look at the CROSS variable also if you need to use a different tool chain.
HTH — Andy
# make install T=${RTE_TARGET} RTE_KERNELDIR=<path to 3.16.0.30 tree>
$ modinfo ${RTE_SDK}/${RTE_TARGET}/kmod/igb_uio.ko | grep vermagic
vermagic: 4.1.7-200.fc22.x86_64 SMP mod_unload
On 9/27/15, 8:27 PM, "dev on behalf of Nguyen Van Long" <dev-bounces@dpdk.org on behalf of longnv@viosoft.com> wrote:
>Hi all,
>I am building DDPK and OVS as the instruction in https://software.intel.com/en-us/blogs/2015/06/09/building-vhost-user-for-ovs-today-using-dpdk-200
>My scenario is that I have 2 machines, one is called building machine (for build dpdk) and the another is called deploy machine.
>After finishing building DPDK in building machine, I copy all dpdk folders to deploy machine and try to setup DPDK devices in this machine as:
>RTE_SDK=”${HOME}/dpdk-2.0.0
>RTE_TARGET =”x86_64-ivshmem-linuxapp-gcc”
>
># Install and bind UIO interface eth0
>sudo modprobe uio
>sudo insmod ${RTE_SDK}/${RTE_TARGET}/kmod/igb_uio.ko
>
>
>Unfortunately, I got the error:
>insmod: ERROR: could not insert module ../dpdk-2.0.0/x86_64-ivshmem-linuxapp-gcc/kmod/igb_uio.ko: Invalid module format
>
>I doubt that the different linux kernel causes the problem (linux kernel in building machine is 3.16.0.49 and in deploy machine is 3.16.0.30)
>but don't know how to fix that. Could you have any solution to build and deploy dpdk in machine with different kernel?
>
>Thank and best regard!
>
next reply other threads:[~2015-09-28 5:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-28 5:19 Andrew Harvey (agh) [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-09-28 3:27 Nguyen Van Long
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=92769872-78F6-4E9F-9E2C-C78FB4C11CE5@cisco.com \
--to=agh@cisco.com \
--cc=dev@dpdk.org \
--cc=longnv@viosoft.com \
/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).