All of lore.kernel.org
 help / color / mirror / Atom feed
From: Elizabeth Ferdman <gnudevliz@gmail.com>
To: Daniel Baluta <daniel.baluta@intel.com>
Cc: Alison Schofield <amsfield22@gmail.com>,
	outreachy-kernel <outreachy-kernel@googlegroups.com>
Subject: Re: [Outreachy kernel] IIO Experiment #1 Build Dummy Help
Date: Sat, 15 Oct 2016 18:29:23 -0700	[thread overview]
Message-ID: <20161016012922.GA1607@localhost> (raw)
In-Reply-To: <20161015210748.GA13776@localhost>

On Sat, Oct 15, 2016 at 02:07:48PM -0700, Elizabeth Ferdman wrote:
> On Fri, Oct 14, 2016 at 07:06:27PM +0300, Daniel Baluta wrote:
> > On Tue, Oct 11, 2016 at 8:24 PM, Elizabeth Ferdman <gnudevliz@gmail.com> wrote:
> > > On Tue, Oct 11, 2016 at 11:44:04AM +0300, Daniel Baluta wrote:
> > >>
> > >>
> > >> On 10.10.2016 02:19, Elizabeth Ferdman wrote:
> > >> >On Sat, Oct 01, 2016 at 12:52:59PM -0700, Alison Schofield wrote:
> > >> >>If you have questions about building the modules in IIO Experimenting
> > >> >>Task #1, please post here.
> > >> >>
> > >> >>If you can help those who are having troubles, please post that here
> > >> >>also.
> > >> >>
> > >> >I'm getting errors after running
> > >> >$ make drivers/iio/dummy/iio_dummy_evgen.ko
> > >> >
> > >> >Output:
> > >> >------------------------------------------------------------
> > >> >CHK     include/config/kernel.release
> > >> >CHK     include/generated/uapi/linux/version.h
> > >> >CHK     include/generated/utsrelease.h
> > >> >CHK     include/generated/bounds.h
> > >> >CHK     include/generated/timeconst.h
> > >> >CHK     include/generated/asm-offsets.h
> > >> >CALL    scripts/checksyscalls.sh
> > >> >MODPOST 3015 modules
> > >> >
> > >> >WARNING: could not open
> > >> >drivers/staging/lustre/lustre/llite/llite_close.c:
> > >> >No such file or directory
> > >> >
> > >> >WARNING: could not open
> > >> >drivers/staging/lustre/lustre/obdclass/linux/linux-obdo.c:
> > >> >No such file or directory
> > >> >
> > >> >ERROR: "ftrace_graph_ret_addr" [arch/x86/oprofile/oprofile.ko]
> > >> >undefined!
> > >> >
> > >> >scripts/Makefile.modpost:91: recipe for target '__modpost' failed
> > >> >make[1]: *** [__modpost] Error 1
> > >> >Makefile:1643: recipe for target
> > >> >'drivers/iio/dummy/iio_dummy_evgen.ko' failed
> > >> >make: *** [drivers/iio/dummy/iio_dummy_evgen.ko] Error 2
> > >> >----------------------------------------------------------------
> > >> >
> > >> >I have already enabled the 4 necessary config options in menuconfig.
> > >> >Any ideas?
> > >> >thanks,
> > >> >liz
> > >> >
> > >> >
> > >>
> > >>
> > >> Hi Liz,
> > >>
> > >> Sorry for the late reply. Could you try to update your tree? It seems
> > >> that was a problem similar with this few days ago.
> > >>
> > >> http://www.gossamer-threads.com/lists/linux/kernel/2538847?do=post_view_threaded#2538847
> > >>
> > >> Daniel.
> > >>
> > > Hey Daniel,
> > > Thanks for the reply. I did get fetch origin, but I'm still getting the
> > > same error, plus some more. I pasted the log here:
> > > http://pastebin.com/WXL5Vxt8
> > >
> > > Just to clarify I've been following the tutorial and I chose the 5
> > > config options in menuconfig. I also mounted configfs.
> > 
> > 
> > For these:
> > 
> > ERROR: "iio_register_sw_device_type" [drivers/iio/dummy/iio_dummy.ko] undefined!
> > ERROR: "iio_unregister_sw_device_type"
> > [drivers/iio/dummy/iio_dummy.ko] undefined!
> > 
> > You need to enable CONFIG_IIO_SW_DEVICE.
> > 
> Hey Daniel,
> I already had that configured. It turns out all I needed to do was "make
> clean" and it worked fine after that. UGH! Wish I had thought of that
> like 4 days ago. 
> 
> Now I'm running into the "invalid module format" error that someone else
> had. I'm not using a vm and if I do uname -r I'm running the latest
> kernel.
> uname -r shows 4.8.0-rc6+. 
> 
> ls /boot shows
> 
> config-3.16.0-4-amd64  initrd.img-3.16.0-4-amd64
> System.map-3.16.0-4-amd64  vmlinuz-4.8.0-rc6+
> config-4.8.0-rc6+      initrd.img-4.8.0-rc6+      System.map-4.8.0-rc6+
> grub                   lost+found                 vmlinuz-3.16.0-4-amd64
> 
> I think that running $ make -j2 && sudo make modules_install could solve
> this problem? If I can't do insmod can I just do modprobe?
> 

I was able to make iio_dummy_evgen.ko and iio_dummy.ko. I had not
installed the new kernel which was 4.8.0 not 4.8.0-rc6+. I did make,
make install and make modules_install, then it worked.

Now I'm trying to do insmod. I'm getting the error "Unknown symbol in
module" 

dmesg shows:
iio_dummy_evgen: Unknown symbol iio_bus_type (err 0)

Liz

> Thanks,
> Liz
> 
> > thanks,
> > Daniel.


  reply	other threads:[~2016-10-16  1:29 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 ` [Outreachy kernel] " sayli karnik
2016-10-03 17:23   ` 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 [this message]
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=20161016012922.GA1607@localhost \
    --to=gnudevliz@gmail.com \
    --cc=amsfield22@gmail.com \
    --cc=daniel.baluta@intel.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.