From: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
To: Andrea Laini <andrea.laini@claypaky.it>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Autoload kernel module works only once
Date: Mon, 13 Mar 2017 09:37:48 -0600 [thread overview]
Message-ID: <1489419468.3261.64.camel@linux.intel.com> (raw)
In-Reply-To: <9e0050bb9fd3419fa979364b1359b490@Server109.claypaky.local>
On Mon, 2017-03-13 at 14:36 +0000, Andrea Laini wrote:
> 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’.
I am not a kernel expert, but do you know if file permissions change
after first boot? you may enable debugging at your device and view it
with dmesg, that would give you more clues.
>
>
>
> To me it sound a very strange behavior.
>
>
>
> Hope anyone can help,
>
> Many thanks
>
>
>
> Andrea
>
>
>
>
> Andrea Laini
>
> Email: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
> _________________________________
> Read our Disclaimer @ www.claypaky.it/disclaimer
>
>
>
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
next prev parent reply other threads:[~2017-03-13 15:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-13 14:36 Autoload kernel module works only once Andrea Laini
2017-03-13 15:37 ` Leonardo Sandoval [this message]
2017-03-13 20:28 ` Khem Raj
2017-03-14 7:35 ` Andrea Laini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1489419468.3261.64.camel@linux.intel.com \
--to=leonardo.sandoval.gonzalez@linux.intel.com \
--cc=andrea.laini@claypaky.it \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.