All of lore.kernel.org
 help / color / mirror / Atom feed
From: sayli karnik <karniksayli1995@gmail.com>
To: Alison Schofield <amsfield22@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] IIO Experiment #1 Build Dummy Help
Date: Mon, 3 Oct 2016 22:44:22 +0530	[thread overview]
Message-ID: <CAKG5xWhDNtKrZuAKFjBPdj+VV=bPSZmCNM2_ySM0Nr_YHiiDbA@mail.gmail.com> (raw)
In-Reply-To: <20161001195259.GB12284@d830.WORKGROUP>

Hello,
I encountered 'Invalid format error' while inserting the iio_dummy_evgen module.

On Sun, Oct 2, 2016 at 1:22 AM, Alison Schofield <amsfield22@gmail.com> wrote:
> If you have questions about building the modules in IIO Experimenting
> Task #1, please post here.
>

I ran:
sudo insmod drivers/iio/dummy/iio_dummy_evgen.ko
I got:
insmod: ERROR: could not insert module
drivers/iio/dummy/iio_dummy_evgen.ko: Invalid module format

dmesg output after insmod:
[36856.453312] iio_dummy_evgen: no symbol version for module_layout

What I learned so far:
The error arises because the kernel booted in and the one the driver
belongs to are different.
A post on Google says this is because the vermagic strings don't match.
( 'modinfo' gives different vermagic strings for drivers in different kernels)
So I tried copying my running kernel's Makefile into the driver's
Makefile. But the error persists.

I also tried:
export KBUILD_SRC=<location of the running kernel's source>
But that didn't help either.

Any ideas?

thanks,
sayli

> If you can help those who are having troubles, please post that here
> also.
>
> Thanks!
> alisons
>
> --
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20161001195259.GB12284%40d830.WORKGROUP.
> For more options, visit https://groups.google.com/d/optout.


  reply	other threads:[~2016-10-03 17:15 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-01 19:52 IIO Experiment #1 Build Dummy Help Alison Schofield
2016-10-03 17:14 ` sayli karnik [this message]
2016-10-03 17:23   ` [Outreachy kernel] " Daniel Baluta
2016-10-03 17:48     ` sayli karnik
2016-10-03 18:02       ` Daniel Baluta
2017-03-23  8:28         ` sayli karnik
2016-10-09 23:19 ` Elizabeth Ferdman
2016-10-11  8:44   ` Daniel Baluta
2016-10-11 17:24     ` Elizabeth Ferdman
2016-10-14 16:06       ` Daniel Baluta
2016-10-15 21:07         ` Elizabeth Ferdman
2016-10-16  1:29           ` Elizabeth Ferdman
2016-10-16  2:04           ` Eva Rachel Retuya
2016-10-16 21:23             ` Elizabeth Ferdman
2016-10-16 23:49               ` Eva Rachel Retuya
2017-03-23 14:21                 ` SIMRAN SINGHAL
2017-03-23 14:39                   ` Daniel Baluta
2017-03-23 14:50                     ` SIMRAN SINGHAL

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='CAKG5xWhDNtKrZuAKFjBPdj+VV=bPSZmCNM2_ySM0Nr_YHiiDbA@mail.gmail.com' \
    --to=karniksayli1995@gmail.com \
    --cc=amsfield22@gmail.com \
    --cc=outreachy-kernel@googlegroups.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.