All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Hans J. Koch" <hjk@linutronix.de>
To: Armin Steinhoff <armin@steinhoff.de>
Cc: "Hans J. Koch" <hjk@linutronix.de>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: UIO and Fedora 13  (kernel 33.6)
Date: Tue, 31 Aug 2010 12:35:25 +0200	[thread overview]
Message-ID: <20100831103523.GA2598@local> (raw)
In-Reply-To: <4C7CA7E4.8010005@steinhoff.de>

On Tue, Aug 31, 2010 at 08:57:40AM +0200, Armin Steinhoff wrote:
>  Hans J. Koch wrote:
> >On Mon, Aug 30, 2010 at 12:49:10PM +0200, Armin Steinhoff wrote:
> >>  Hi,
> >>
> >>I'm writing an UIO driver for a plain PC/104 board (ISA bus).
> >>After insmod<my_driver_mod>  I don't see an entry of uio0 in /dev
> >>and also no entries in /sys/class. There are no error messages at
> >>module load.
> >Are you sure your probe() function is called?
>   That's the case.

OK.

> 
> >  After a successfull
> >uio_register_device() there is both a /dev/uioX and a directory
> >/sys/class/uio/uioX/.
>   Seems not be possible after a kernel ooops ...

You get an oops? What does it say?

> >>The same happens after loading the module uio.ko and uio_pdrv.ko ...
> >>no entries at all, no error messages.
> >>uio_pdrv needs platform data set up somewhere, did you do that?
> >>See docs in Documentation/DocBook/ for more details.
> 
>   uio_pdrv.ko was provided unmodified and precompiles by the Fedora
> distro.

That doesn't make sense. uio_pdrv/uio_pdrv_genirq both need some help
from a board support file/driver to work.

>   This example seems more or less incomplete ... it seems also the
> case with the uio_pdrv_genirq example

Yes, of course. It doesn't make sense for distros to ship these modules.
Both are useful only for developers who build there own kernels and add
the data or irq handler needed by these drivers.

> 
>   However, it seems so I have to go back 2 steps and restart after
> reading  more details of the concept of platform devices ...

What you did was in general the right thing. Find the reason for that oops
and fix it.

Thanks,
Hans

  reply	other threads:[~2010-08-31 10:35 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-14 18:23 reiserfs issue with 2.6.32.8 Bret Towe
2010-02-14 23:27 ` Rafael J. Wysocki
2010-02-15  6:39 ` Christian Kujau
     [not found]   ` <dda83e781002142245l5c95d08bu214a796be289eb22@mail.gmail.com>
2010-02-15  6:46     ` Bret Towe
2010-08-30 10:49       ` UIO and Fedora 13 (kernel 33.6) Armin Steinhoff
2010-08-30 16:24         ` Hans J. Koch
2010-08-31  6:57           ` Armin Steinhoff
2010-08-31 10:35             ` Hans J. Koch [this message]
2010-08-31 13:23               ` Armin Steinhoff
2010-09-01  7:31               ` Armin Steinhoff
2010-09-01 18:56                 ` Hans J. Koch
2010-09-01 21:40                   ` Armin Steinhoff
2010-09-01 22:14                     ` Hans J. Koch
2010-08-30 11:07       ` UIO and Fedora 13 (kernel 33.6) / kernel module corrected Armin Steinhoff
2010-02-24  5:31   ` reiserfs issue with 2.6.32.8 Bret Towe
2010-02-24  7:03     ` Christian Kujau
2010-02-25  2:17       ` Bret Towe
2010-02-25  2:17         ` Bret Towe
2010-03-04  3:00       ` Bret Towe
2010-03-04  3:00         ` Bret Towe
2010-03-04 21:37         ` Christian Kujau
2010-03-04 22:53           ` Bret Towe
2010-03-05  7:36             ` Christian Kujau

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=20100831103523.GA2598@local \
    --to=hjk@linutronix.de \
    --cc=armin@steinhoff.de \
    --cc=linux-kernel@vger.kernel.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.