IIO Experiment #1 Build Dummy Help
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.
Thanks!
alisons
Hello,
I encountered 'Invalid format error' while inserting the iio_dummy_evgen module.
Quoted 3 lines · Alison Schofield
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
Quoted 12 lines
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 [email protected]. To post to this group, send email to [email protected].
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.
Quoted 25 lines · sayli karnik
Hello,
I encountered 'Invalid format error' while inserting theiio_dummy_evgenmodule.Quoted 3 lines · Alison Schofield
If you have questions about building the modules in IIO Experimenting Task #1, please post here.
I ran:
sudo insmoddrivers/iio/dummy/iio_dummy_evgen.ko
I got:
insmod: ERROR: could not insert moduledrivers/iio/dummy/iio_dummy_evgen.ko: Invalid module formatdmesg output after insmod:
[36856.453312] iio_dummy_evgen: no symbol version for module_layoutWhat 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'sMakefileinto the driver'sMakefile. But the error persists.
Quoted 5 lines
I also tried:
export KBUILD_SRC=<location of the running kernel's source> But that didn't help either.Any ideas?
Well, are you using a virtual machine? Can you update your kernel?
Quoted 26 lines · Daniel Baluta
Quoted 25 lines · sayli karnik
Hello,
I encountered 'Invalid format error' while inserting theiio_dummy_evgenmodule.Quoted 3 lines · Alison Schofield
If you have questions about building the modules in IIO Experimenting Task #1, please post here.
I ran:
sudo insmoddrivers/iio/dummy/iio_dummy_evgen.ko
I got:
insmod: ERROR: could not insert moduledrivers/iio/dummy/iio_dummy_evgen.ko: Invalid module formatdmesg output after insmod:
[36856.453312] iio_dummy_evgen: no symbol version for module_layoutWhat 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'sMakefileinto the driver'sMakefile. But the error persists.
Quoted 8 lines
Quoted 5 lines
I also tried:
export KBUILD_SRC=<location of the running kernel's source> But that didn't help either.Any ideas?
Well, are you using a virtual machine? Can you update your kernel?
No I'm not using a virtual machine. I'll try updating my kernel! Do you suggest that I should boot into the kernel that iio_dummy_evgen.ko belongs to?
thanks,
sayli
Quoted 31 lines · sayli karnik
Quoted 30 lines · Daniel Baluta
Quoted 29 lines · sayli karnik
Hello,
I encountered 'Invalid format error' while inserting theiio_dummy_evgenmodule.Quoted 3 lines · Alison Schofield
If you have questions about building the modules in IIO Experimenting Task #1, please post here.
I ran:
sudo insmoddrivers/iio/dummy/iio_dummy_evgen.ko
I got:
insmod: ERROR: could not insert moduledrivers/iio/dummy/iio_dummy_evgen.ko: Invalid module formatdmesg output after insmod:
[36856.453312] iio_dummy_evgen: no symbol version for module_layoutWhat 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'sMakefileinto the driver'sMakefile. But the error persists.I also tried:
export KBUILD_SRC=<location of the running kernel's source> But that didn't help either.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Any ideas?
Well, are you using a virtual machine? Can you update your kernel?
No I'm not using a virtual machine. I'll try updating my kernel! Do you suggest that I should boot into the kernel that iio_dummy_evgen.ko belongs to?
Yes. Another option would be to compile your module out of tree using the kernel headears of your running kernel.
To do that, you should check which version is your running kernel with uname -a, then find the correct headers under /boot (most likely).
Then use Makefile and Kbuild similar with these ones:
ocw.cs.pub.ro/courses/_export/code/so2/laboratoare/lab02?codeblock=3 ocw.cs.pub.ro/courses/_export/code/so2/laboratoare/lab02?codeblock=2
thanks,
Daniel.
Quoted 6 lines · Alison Schofield
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
Quoted 9 lines
Thanks!
alisonsSignature · 5 lines
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 [email protected]. To post to this group, send email to [email protected]. 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.
Quoted 39 lines · Elizabeth Ferdman
Quoted 6 lines · Alison Schofield
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.koOutput:
------------------------------------------------------------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.shMODPOST 3015 modules
WARNING: could not open
drivers/staging/lustre/lustre/llite/llite_close.c:
No such file or directoryWARNING: could not open
drivers/staging/lustre/lustre/obdclass/linux/linux-obdo.c:
No such file or directoryERROR: "
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
----------------------------------------------------------------
Quoted 6 lines
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.
Quoted 50 lines · Daniel Baluta
Quoted 39 lines · Elizabeth Ferdman
Quoted 6 lines · Alison Schofield
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.koOutput:
------------------------------------------------------------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.shMODPOST 3015 modules
WARNING: could not open
drivers/staging/lustre/lustre/llite/llite_close.c:
No such file or directoryWARNING: could not open
drivers/staging/lustre/lustre/obdclass/linux/linux-obdo.c:
No such file or directoryERROR: "
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
----------------------------------------------------------------Quoted 6 lines
I have already enabled the 4 necessary config options in menuconfig. Any ideas?
thanks,
liz
Quoted 9 lines
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.
Thanks,
Liz
Quoted 6 lines
Signature · 5 lines
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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/4fdf08c2-821a-a6e4-a9be-c2d7e528f2e4%40intel.com. For more options, visit https://groups.google.com/d/optout.
Quoted 60 lines · Elizabeth Ferdman
Quoted 50 lines · Daniel Baluta
Quoted 39 lines · Elizabeth Ferdman
Quoted 6 lines · Alison Schofield
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.koOutput:
------------------------------------------------------------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.shMODPOST 3015 modules
WARNING: could not open
drivers/staging/lustre/lustre/llite/llite_close.c:
No such file or directoryWARNING: could not open
drivers/staging/lustre/lustre/obdclass/linux/linux-obdo.c:
No such file or directoryERROR: "
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
----------------------------------------------------------------Quoted 6 lines
I have already enabled the 4 necessary config options in menuconfig. Any ideas?
thanks,
lizQuoted 9 lines
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.
Quoted 7 lines
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/WXL5Vxt8Just 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.
thanks,
Daniel.
Quoted 70 lines · Daniel Baluta
Quoted 60 lines · Elizabeth Ferdman
Quoted 50 lines · Daniel Baluta
Quoted 39 lines · Elizabeth Ferdman
Quoted 6 lines · Alison Schofield
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.koOutput:
------------------------------------------------------------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.shMODPOST 3015 modules
WARNING: could not open
drivers/staging/lustre/lustre/llite/llite_close.c:
No such file or directoryWARNING: could not open
drivers/staging/lustre/lustre/obdclass/linux/linux-obdo.c:
No such file or directoryERROR: "
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
----------------------------------------------------------------Quoted 6 lines
I have already enabled the 4 necessary config options in menuconfig. Any ideas?
thanks,
lizQuoted 9 lines
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.
Quoted 7 lines
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/WXL5Vxt8Just to clarify I've been following the tutorial and I chose the 5 config options in menuconfig. I also mounted configfs.
Quoted 8 lines
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?
Thanks,
Liz
Quoted 2 lines
thanks,
Daniel.
Quoted 91 lines · Elizabeth Ferdman
Quoted 70 lines · Daniel Baluta
Quoted 60 lines · Elizabeth Ferdman
Quoted 50 lines · Daniel Baluta
Quoted 39 lines · Elizabeth Ferdman
Quoted 6 lines · Alison Schofield
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.koOutput:
------------------------------------------------------------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.shMODPOST 3015 modules
WARNING: could not open
drivers/staging/lustre/lustre/llite/llite_close.c:
No such file or directoryWARNING: could not open
drivers/staging/lustre/lustre/obdclass/linux/linux-obdo.c:
No such file or directoryERROR: "
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
----------------------------------------------------------------Quoted 6 lines
I have already enabled the 4 necessary config options in menuconfig. Any ideas?
thanks,
lizQuoted 9 lines
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.
Quoted 7 lines
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/WXL5Vxt8Just to clarify I've been following the tutorial and I chose the 5 config options in menuconfig. I also mounted configfs.
Quoted 8 lines
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
Quoted 8 lines
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-amd64I think that running $ make -j2 && sudo make
modules_installcould 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
Quoted 5 lines
Thanks,
LizQuoted 2 lines
thanks,
Daniel.
Hi Liz,
On Sat, Oct 15, 2016 at 02:07:49PM -0700, Elizabeth Ferdman wrote:
----massive snip----
Quoted 3 lines
I think that running $ make -j2 && sudo make
modules_installcould solve this problem? If I can't do insmod can I just do modprobe?
modprobe is OK to use.
Eva
Quoted 12 lines
Thanks,
LizQuoted 2 lines
thanks,
Daniel.Signature · 5 lines
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 [email protected]. To post to this group, send email to [email protected]. 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.
Quoted 10 lines · Eva Rachel Retuya
Hi Liz,
On Sat, Oct 15, 2016 at 02:07:49PM -0700, Elizabeth Ferdman wrote:
----massive snip----Quoted 3 lines
I think that running $ make -j2 && sudo make
modules_installcould 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.
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
Quoted 14 lines
Eva
Quoted 12 lines
Thanks,
LizQuoted 2 lines
thanks,
Daniel.Signature · 5 lines
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 [email protected]. To post to this group, send email to [email protected]. 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.
Quoted 11 lines · Elizabeth Ferdman
Quoted 10 lines · Eva Rachel Retuya
Hi Liz,
On Sat, Oct 15, 2016 at 02:07:49PM -0700, Elizabeth Ferdman wrote:
----massive snip----Quoted 3 lines
I think that running $ make -j2 && sudo make
modules_installcould solve this problem? If I can't do insmod can I just do modprobe?modprobe is OK to use.
Quoted 9 lines
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')
<Descend this option where you'll configure configfs, dummy, etc> {*} Enable IIO configuration via configfs (use 'y' instead of '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.
Eva
Quoted 26 lines
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
Quoted 14 lines
Eva
Quoted 12 lines
Thanks,
LizQuoted 2 lines
thanks,
Daniel.Signature · 5 lines
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 [email protected]. To post to this group, send email to [email protected]. 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.
Quoted 35 lines · Daniel Baluta
Quoted 34 lines · sayli karnik
Quoted 33 lines · Daniel Baluta
Quoted 30 lines · sayli karnik
Hello,
I encountered 'Invalid format error' while inserting theiio_dummy_evgenmodule.Quoted 3 lines · Alison Schofield
If you have questions about building the modules in IIO Experimenting Task #1, please post here.
I ran:
sudo insmoddrivers/iio/dummy/iio_dummy_evgen.ko
I got:
insmod: ERROR: could not insert moduledrivers/iio/dummy/iio_dummy_evgen.ko: Invalid module formatdmesg output after insmod:
[36856.453312] iio_dummy_evgen: no symbol version for module_layoutWhat 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'sMakefileinto the driver'sMakefile. 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?
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Well, are you using a virtual machine? Can you update your kernel?
No I'm not using a virtual machine. I'll try updating my kernel! Do you suggest that I should boot into the kernel that iio_dummy_evgen.ko belongs to?
Yes. Another option would be to compile your module out of tree using the kernel headears of your running kernel.
I tried booting into the same kernel as the driver. On insmod I get:
Invalid module format
The dmesg output is:
[ 580.388196] iio_dummy_evgen: version magic '4.11.0-rc3 SMP mod_unload modversions ' should be '4.11.0-rc3 SMP mod_unload ' [ 591.775123] iio_dummy: version magic '4.11.0-rc3 SMP mod_unload
modversions ' should be '4.11.0-rc3 SMP mod_unload '
Any suggestions?
thanks,
sayli
Quoted 17 lines
To do that, you should check which version is your running kernel with uname -a, then find the correct headers under /boot (most likely).
Then use
MakefileandKbuildsimilar with these ones:ocw.cs.pub.ro/courses/_export/code/so2/laboratoare/lab02?codeblock=3 ocw.cs.pub.ro/courses/_export/code/so2/laboratoare/lab02?codeblock=2
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/CAEnQRZAqrXG5HRqMROPa4P4sWXMK%3DiF%3D6c4%3DDr%2BH%3DUnn%2BBWDaQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Quoted 35 lines · Eva Rachel Retuya
Quoted 6 lines · Elizabeth Ferdman
Quoted 5 lines · Eva Rachel Retuya
Hi Liz,
On Sat, Oct 15, 2016 at 02:07:49PM -0700, Elizabeth Ferdman wrote:
----massive snip----Quoted 1 line
I think that running $ make -j2 && sudo make
modules_installcouldsolve
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
this problem? If I can't do insmod can I just do modprobe?
modprobe is OK to use.
Quoted 9 lines
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')
<Descend this option where you'll configure configfs, dummy, etc> {*} Enable IIO configuration via configfs (use 'y' instead of 'm') <M> Enable software IIO device support
<M> Enable software triggers support
Quoted 7 lines
Under IIO dummy driver:
<M> An example driver with no hardware requirements [*] Event generation support
[*] Buffered capture supportCompile 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?
Quoted 34 lines
Eva
Quoted 5 lines
These succeeded:
lsmod | grep dummy
ls -l /sys/bus/iio/devices/iio:device0/
ls -l/sys/bus/iio/devices/iio_evgen/Quoted 17 lines
The one that's no working is
ls -l /config/iio/devices/dummy/my_dummy_device
or
ls -l /config/iio/devices/dummy/Liz
Quoted 10 lines
Eva
Quoted 8 lines
Thanks,
LizQuoted 2 lines
thanks,
Daniel.Signature · 1 line
You received this message because you are subscribed to the GoogleGroups "outreachy-kernel" group.
Quoted 1 line
Quoted 1 line
Quoted 1 line
To unsubscribe from this group and stop receiving emails from it,
send an email to [email protected] <javascript:>.
Quoted 1 line
Quoted 1 line
Quoted 1 line
To post to this group, send email to [email protected]
<javascript:>.
Quoted 1 line
Quoted 1 line
Quoted 1 line
To view this discussion on the web visit
https://groups.google.com/d/msgid/outreachy-kernel/20161015210748.GA13776%40localhost.
Quoted 1 line
Quoted 1 line
Quoted 1 line
For more options, visit https://groups.google.com/d/optout.
Quoted 51 lines · SIMRAN SINGHAL
Quoted 35 lines · Eva Rachel Retuya
Quoted 12 lines · Elizabeth Ferdman
Quoted 11 lines · Eva Rachel Retuya
Hi Liz,
On Sat, Oct 15, 2016 at 02:07:49PM -0700, Elizabeth Ferdman wrote:
----massive snip----Quoted 4 lines
I think that running $ make -j2 && sudo make
modules_installcould solve
this problem? If I can't do insmod can I just do modprobe?modprobe is OK to use.
Quoted 9 lines
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')
<Descend this option where you'll configure configfs, dummy, etc> {*} Enable IIO configuration via configfs (use 'y' instead of 'm') <M> Enable software IIO device support
<M> Enable software triggers supportQuoted 6 lines
Under IIO dummy driver:
<M> An example driver with no hardware requirements [*] Event generation support
[*] Buffered capture supportCompile 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
Quoted 8 lines
I got the following error:
insmod: ERROR: could not insert module iio_dummy.ko: Unknown symbol in moduleAnd in dmesg I am getting following error:
iio_dummy: Unknown symboliio_register_sw_device_type(err 0)Any Idea?
Find the .c file which exports this symbol. Then look into the Makefile from the same directory where you found the .c file and find the CONFIG_ symbol which compiles the .c file.
Daniel.
Quoted 66 lines · Daniel Baluta
Quoted 3 lines · On Thu, Mar 23, 2017 at 4:21 PM, SIMRAN SINGHAL <[email protected]…
On Monday, October 17, 2016 at 5:19:49 AM UTC+5:30, Eva Rachel Retuya
Quoted 8 lines · wrote:
Quoted 8 lines · Elizabeth Ferdman
Quoted 6 lines · Eva Rachel Retuya
Quoted 5 lines
Hi Liz,
On Sat, Oct 15, 2016 at 02:07:49PM -0700, Elizabeth Ferdman wrote:
----massive snip----Quoted 1 line
I think that running $ make -j2 && sudo make
modules_installcould
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 6 lines
Quoted 3 lines
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
Quoted 30 lines
Quoted 17 lines
Quoted 5 lines
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')
<Descend this option where you'll configure configfs, dummy, etc> {*} Enable IIO configuration via configfs (use 'y' instead of 'm') <M> Enable software IIO device support
<M> Enable software triggers supportQuoted 6 lines
Under IIO dummy driver:
<M> An example driver with no hardware requirements [*] Event generation support
[*] Buffered capture supportCompile 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.koQuoted 8 lines
I got the following error:
insmod: ERROR: could not insert module iio_dummy.ko: Unknown symbol in moduleAnd in dmesg I am getting following error:
iio_dummy: Unknown symboliio_register_sw_device_type(err 0)Any Idea?
Quoted 7 lines
Find the .c file which exports this symbol. Then look into the
Makefilefrom the
same directory where you found the .c file and find theCONFIG_symbol which
compiles the .c file.Hi,
it worked for me using modprobe.
Daniel.