Can't see kern.log

20 views
Skip to first unread message

Mrigendra Chaubey

unread,
Jan 9, 2017, 9:49:53 AM1/9/17
to BeagleBoard
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?



Chad Baker

unread,
Jan 9, 2017, 2:59:34 PM1/9/17
to beagl...@googlegroups.com
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
--
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 beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/48fb025e-7f8c-4e0a-9616-a566fa253fc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

John Syne

unread,
Jan 10, 2017, 1:42:47 AM1/10/17
to beagl...@googlegroups.com
On Jan 9, 2017, at 6:49 AM, Mrigendra Chaubey <mrigendr...@gmail.com> 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
Why not use modprobe to install module:
modprobe gpio_test

To remove module:
modprobe -r gpio_test

Regards,
John

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?




Reply all
Reply to author
Forward
0 new messages