All of lore.kernel.org
 help / color / mirror / Atom feed
* Autoload kernel module works only once
@ 2017-03-13 14:36 Andrea Laini
  2017-03-13 15:37 ` Leonardo Sandoval
  2017-03-13 20:28 ` Khem Raj
  0 siblings, 2 replies; 4+ messages in thread
From: Andrea Laini @ 2017-03-13 14:36 UTC (permalink / raw)
  To: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 1378 bytes --]

Hi everybody,

I'm getting some errors after building my Linux distro with the use of KERNEL_MODULE_AUTOLOAD to allow autoloading 2 of my custom out-of-tree device at boot time. We've a Poky 1.7 version.

So, before building the new image with the Yocto keyword KERNEL_MODULE_AUTOLOAD, I was able to load and open (and, obviously, use) my devices simply by calling 'modprobe mydevice' after logging in. Restarting the board, everything was still working well.
Since I've rebuild a new image enabling module autoload at boot time, modules are always loaded, but I'm able to open (and use) them only really first time I switched on the board after downloading new image. After the first reboot, LKMs are still loaded (calling 'lsmod' show them) but I can't open them, neither from my C program nor reading/writing them from '/dev/mydevice'.

To me it sound a very strange behavior.

Hope anyone can help,
Many thanks

Andrea


Andrea Laini

Email: andrea.laini@claypaky.it<mailto:andrea.laini@claypaky.it>
_________________________________
Clay Paky S.p.A.
AN OSRAM BUSINESS
Via Pastrengo, 3/b - 24068 Seriate (BG) - ITALY
Phone: +39 - 035.654.311 - Fax: +39 - 035.30.18.76
Web: www.claypaky.it<http://www.claypaky.it/>
_________________________________
Read our Disclaimer @  www.claypaky.it/disclaimer<http://www.claypaky.it/disclaimer/index.html>



[-- Attachment #2: Type: text/html, Size: 6695 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-14  7:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-13 14:36 Autoload kernel module works only once Andrea Laini
2017-03-13 15:37 ` Leonardo Sandoval
2017-03-13 20:28 ` Khem Raj
2017-03-14  7:35   ` Andrea Laini

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.