insmod doesn't know where the source file is. If you put the complete
path name in the command, insmod should be able to locate the file. Try -
insmod
/lib/modules/3.8.13-00770-g97d16ab-dirty/kernel/drivers/gpio/gpio_test.ko
Chad
On 1/9/17 8:49 AM, Mrigendra Chaubey wrote:
Hi all,
I am a newbie and following a number of forums to learn kernel
programming such as drivers, pin multilexing without using overlays or
device tree because I was comfortable with the previous kernel. Kernel
version is 3.8.
Well the small problem I am having is
I am using extra folder of derek molly's exploringBB repo. I tried to
compile gpio_test.c file as a module in bbb kernel in drivers/gpio folder.
*1) If I insmod this driver from home such as *
root@beaglebone:~# insmod gpio_test.ko
insmod: can't insert 'gpio_test.ko': No such file or directory
I get this error. So I have to go the particular directory
cd /lib/modules/3.8.13-00770-g97d16ab-dirty/kernel/drivers/gpio and
then do the insmod.
Why I can't load from home?
2)I am not getting log messages for this command
|tail -f kern.log
ta
tail: can't open 'kern.log': No such file or directory
tail: no files
why?*
*|
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google
Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/48fb025e-7f8c-4e0a-9616-a566fa253fc8%40googlegroups.com
<https://groups.google.com/d/msgid/beagleboard/48fb025e-7f8c-4e0a-9616-a566fa253fc8%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/2660a774-015f-1d62-b752-10dbfd8530ee%40gmail.com.
For more options, visit https://groups.google.com/d/optout.