linux-modules.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: Frank Ihle <frank.ihle@hs-offenburg.de>
Cc: Lucas De Marchi <lucas.de.marchi@gmail.com>,
	buildroot <buildroot@busybox.net>,
	linux-modules <linux-modules@vger.kernel.org>
Subject: Re: [Buildroot] Linux kernel module is not running anymore when switching from mdev to udev
Date: Fri, 7 Mar 2014 09:15:34 +0100	[thread overview]
Message-ID: <20140307091534.49f49b02@skate> (raw)
In-Reply-To: <CAKi4VAJ=VjGnbzbkL99sx7AEouNrXxdErHmO1VJmVL28_n1fDA@mail.gmail.com>

Frank,

On Fri, 7 Mar 2014 01:08:36 -0300, Lucas De Marchi wrote:

> > there is this problem, that I searched the Internet
> > for its solution but without success. Here's what it's about, I hope
> > someone can give me a hint:
> >
> >
> >
> >         I'm using Buildroot 2013.10 to generate my Linux 2.6.39 Images, with the following Kernel  module:
> >
> >
> >
> >   void GPIO_LED(void) {
> >
> >   printk(" GPIO: set PC8: '0');
> >
> >   at91_set_gpio_value(AT91_PIN_PC8, 1);
> >
> >
> >   }
> >
> >
> >   int init_module(void) {
> >
> >   GPIO_LED();   return 0;
> >
> >
> >   }
> >
> >
> >   MODULE_LICENSE("GPL");
> >
> >
> >
> > When using it with mdev device management. everything works just
> > fine. But using it with a udev device management, while executing insmod
> 
> I don't see how udev could be related to your problem. Maybe just how
> the dependencies were chosen...

I agree: the kernel module shown by Frank only toggle a GPIO, and does
not expose any device in /dev or anything that would involve udev or
mdev.

> > the following message appeared:
> >
> >   insmod: can't insert '/usr/modules/measurement_gpio.ko': invalid
> >   module format

Are you sure you have built your module correctly, against the right
version of the kernel headers that match the kernel you're running?

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

      reply	other threads:[~2014-03-07  8:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-05  8:49 Linux kernel module is not running anymore when switching from mdev to udev Frank Ihle
2014-03-07  4:08 ` Lucas De Marchi
2014-03-07  8:15   ` Thomas Petazzoni [this message]

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=20140307091534.49f49b02@skate \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    --cc=frank.ihle@hs-offenburg.de \
    --cc=linux-modules@vger.kernel.org \
    --cc=lucas.de.marchi@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).