From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6336586801480728576 Date: Thu, 23 Mar 2017 07:21:18 -0700 (PDT) From: SIMRAN SINGHAL To: outreachy-kernel Cc: gnudevliz@gmail.com, daniel.baluta@intel.com, amsfield22@gmail.com Message-Id: <3ad92cf5-564b-4150-aa8e-89336e617679@googlegroups.com> In-Reply-To: <20161016234938.GA2809@Socrates-DK> References: <20161001195259.GB12284@d830.WORKGROUP> <20161009231959.GA5324@localhost> <4fdf08c2-821a-a6e4-a9be-c2d7e528f2e4@intel.com> <20161011172410.GA6773@localhost> <20161015210748.GA13776@localhost> <20161016020322.GA2406@Socrates-DK> <20161016212357.GA2263@localhost> <20161016234938.GA2809@Socrates-DK> Subject: Re: [Outreachy kernel] IIO Experiment #1 Build Dummy Help MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_467_2025420860.1490278878983" X-Google-Token: EN6zz8YFNAJUPLtzSiE0 X-Google-IP: 14.139.82.6 ------=_Part_467_2025420860.1490278878983 Content-Type: multipart/alternative; boundary="----=_Part_468_306939360.1490278878983" ------=_Part_468_306939360.1490278878983 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Monday, October 17, 2016 at 5:19:49 AM UTC+5:30, Eva Rachel Retuya wrote: > > On Sun, Oct 16, 2016 at 02:23:58PM -0700, Elizabeth Ferdman wrote: > > On Sun, Oct 16, 2016 at 10:04:27AM +0800, Eva Rachel Retuya wrote: > > > Hi Liz, > > > > > > On Sat, Oct 15, 2016 at 02:07:49PM -0700, Elizabeth Ferdman wrote: > > > ----massive snip---- > > > > 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? > > > > > > > > > > modprobe is OK to use. > > > > > Thanks, I used modprobe and the modules were loaded. > > > > I'm running into this issue in Task 01 > > When I do 'ls -l /config/iio/devices/dummy/' the terminal just hangs. I > > closed the terminal and tried it a few more times but it was just > > freezing and I had to xkill it. I have been following the tutorial. I > > mounted the configfs at /config, made the modules, loaded them, ran > > mkdir /config/iio/devices/dummy/my_dummy_device. > > > > Hi, > > I suggest to do 'make clean' again and start from scratch. > Run 'make menuconfig' and make sure the settings look like this: > {*} Industrial I/O support ---> (instead of module, make this built-in, > use 'y' instead of 'm') > > {*} Enable IIO configuration via configfs (use 'y' instead of 'm') > Enable software IIO device support > Enable software triggers support > > Under IIO dummy driver: > An example driver with no hardware requirements > [*] Event generation support > [*] Buffered capture support > > Compile and install, then boot to that kernel and test if it works. > Hi, I am able to insert module iio_dummy_evgen.ko but when I run $ sudo insmod iio_dummy.ko I got the following error: insmod: ERROR: could not insert module iio_dummy.ko: Unknown symbol in module And in dmesg I am getting following error: iio_dummy: Unknown symbol iio_register_sw_device_type (err 0) Any Idea? > > Eva > > These succeeded: > > lsmod | grep dummy > > ls -l /sys/bus/iio/devices/iio:device0/ > > ls -l /sys/bus/iio/devices/iio_evgen/ > > > > The one that's no working is > > ls -l /config/iio/devices/dummy/my_dummy_device > > or > > ls -l /config/iio/devices/dummy/ > > > > Liz > > > > > Eva > > > > > > > Thanks, > > > > Liz > > > > > > > > > thanks, > > > > > Daniel. > > > > > > > > -- > > > > 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-kern...@googlegroups.com . > > > > To post to this group, send email to outreach...@googlegroups.com > . > > > > To view this discussion on the web visit > https://groups.google.com/d/msgid/outreachy-kernel/20161015210748.GA13776%40localhost. > > > > > For more options, visit https://groups.google.com/d/optout. > ------=_Part_468_306939360.1490278878983 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable


On Monday, October 17, 2016 at 5:19:49 AM UTC+5:30= , Eva Rachel Retuya wrote:
On S= un, Oct 16, 2016 at 02:23:58PM -0700, Elizabeth Ferdman wrote:
> On Sun, Oct 16, 2016 at 10:04:27AM +0800, Eva Rachel Retuya wrote:
> > Hi Liz,
> >=20
> > On Sat, Oct 15, 2016 at 02:07:49PM -0700, Elizabeth Ferdman w= rote:
> > ----massive snip----
> > > I think that running $ make -j2 && sudo make mod= ules_install could solve
> > > this problem? If I can't do insmod can I just do mod= probe?
> > >=20
> >=20
> > modprobe is OK to use.
> >=20
> Thanks, I used modprobe and the modules were loaded.
>=20
> I'm running into this issue in Task 01
> When I do 'ls -l /config/iio/devices/dummy/' the terminal = just hangs. I
> closed the terminal and tried it a few more times but it was just
> freezing and I had to xkill it. I have been following the tutorial= . I
> mounted the configfs at /config, made the modules, loaded them, ra= n
> mkdir /config/iio/devices/dummy/my_dummy_device.
>=20

Hi,

I suggest to do 'make clean' again and start from scratch.
Run 'make menuconfig' and make sure the settings look like this= :
{*} Industrial I/O support ---> (instead of module, make this built-= in,
use 'y' instead of 'm')
<Descend this option where you'll configure configfs, dummy, etc= >
{*} Enable IIO configuration via configfs (use 'y' instead of &= #39;m')
<M> Enable software IIO device support
<M> Enable software triggers support

Under IIO dummy driver:
<M> An example driver with no hardware requirements
[*] Event generation support
[*] Buffered capture support

Compile and install, then boot to that kernel and test if it works.

Hi,

I am able to insert module iio_dummy_e= vgen.ko but when I run
$ sudo insmod iio_dummy.ko

I got the follo= wing error:
insmod: ERROR: could not insert module iio_dummy.ko: Unknown= symbol in module

And in dmesg I am getting following error:
iio_= dummy: Unknown symbol iio_register_sw_device_type (err 0)

Any Idea?=
=C2=A0

Eva
> These succeeded:
> lsmod | grep dummy=20
> ls -l /sys/bus/iio/devices/iio:device0/
> ls -l /sys/bus/iio/devices/iio_evgen/
>=20
> The one that's no working is=20
> ls -l /config/iio/devices/dummy/my_dummy_device
> or=20
> ls -l /config/iio/devices/dummy/
>=20
> Liz
>=20
> > Eva
> >=20
> > > Thanks,
> > > Liz
> > >=20
> > > > thanks,
> > > > Daniel.
> > >=20
> > > --=20
> > > 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-kern...@googlegroups.com.
> > > To post to this group, send email to outreach...@googlegroup= s.com.
> > > To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/2= 0161015210748.GA13776%40localhost.
> > > For more options, visit https:= //groups.google.com/d/optout.
------=_Part_468_306939360.1490278878983-- ------=_Part_467_2025420860.1490278878983--