All of lore.kernel.org
 help / color / mirror / Atom feed
From: munagala.nareshbabu@gmail.com (Munagala Naresh)
To: kernelnewbies@lists.kernelnewbies.org
Subject: How to enable IIO driver in 3.18 kernel
Date: Thu, 2 Jun 2016 09:54:17 +0530	[thread overview]
Message-ID: <CACfW1Nrqnupeq7GjqJTodp++dakUMMtgYykUH4GUWgkSQFwitQ@mail.gmail.com> (raw)
In-Reply-To: <CAEnQRZCOJRXjeM71MuiDyqxpjJBj3kFfO5EzN-8FBNnQr3mASA@mail.gmail.com>

Thanks Daniel.

After creating devices using mknod, it is working on expected lines. After
reboot these devices are getting removed and I need to create them manually
every time.
Can you please suggest me the procedure to enable it programmatically ? I
tried adding CONFIG_DEVTMPFS=y and CONFIG_DEVTMPFS_MOUNT=y in the def
config, but no luck.

Thanks
Naresh

On Wed, Jun 1, 2016 at 8:11 PM, Daniel Baluta <daniel.baluta@gmail.com>
wrote:

> On Wed, Jun 1, 2016 at 5:26 PM, Munagala Naresh
> <munagala.nareshbabu@gmail.com> wrote:
> > Thanks for the response.
> >
> > From the "cat /proc/devices", I could see "iio" listed like this.
> >
> > / # cat /proc/devices
> > cat /proc/devices
> > Character devices:
> >   1 mem
> >   4 /dev/vc/0
> >   4 tty
> >   5 /dev/tty
> >   5 /dev/console
> >   5 /dev/ptmx
> >  ------
> > 250 iio
> > 251 pps
> >  -----
> >
> > I could see few other deices @ /dev/xxxx. CONFIG_DEVTMPFS is not set in
> the
> > def config. I will try it by adding "CONFIG_DEVTMPFS=y" and
> > "CONFIG_DEVTMPFS_MOUNT=y".
>
> Please don't use top posting.
>
> You can look into /sys/bus/iio/devices/iio:device0/dev and get the
> MAJOR and MINOR,
> then create the device node manually, using:
>
> mknod /dev/iio:device0 c MAJOR MINOR
>
> Not sure why are you mentioning /proc/devices here.
>
> thanks,
> Daniel.
>



-- 
Regards
Naresh Babu
09900139337
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160602/a2ff391c/attachment.html 

      reply	other threads:[~2016-06-02  4:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-01  2:49 How to enable IIO driver in 3.18 kernel Munagala Naresh
2016-06-01  4:11 ` Valdis.Kletnieks at vt.edu
     [not found]   ` <tencent_70035EF62DF5627F0836F8CD@qq.com>
2016-06-01  4:40     ` Valdis.Kletnieks at vt.edu
2016-06-01  5:58       ` =?gb18030?B?RnJhbmtZdQ==?=
2016-06-01  7:02         ` Valdis.Kletnieks at vt.edu
2016-06-01  7:06           ` =?gb18030?B?RnJhbmtZdQ==?=
2016-06-01 14:26   ` Munagala Naresh
2016-06-01 14:41     ` Daniel Baluta
2016-06-02  4:24       ` Munagala Naresh [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=CACfW1Nrqnupeq7GjqJTodp++dakUMMtgYykUH4GUWgkSQFwitQ@mail.gmail.com \
    --to=munagala.nareshbabu@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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.