* How to enable IIO driver in 3.18 kernel
@ 2016-06-01 2:49 Munagala Naresh
2016-06-01 4:11 ` Valdis.Kletnieks at vt.edu
0 siblings, 1 reply; 9+ messages in thread
From: Munagala Naresh @ 2016-06-01 2:49 UTC (permalink / raw)
To: kernelnewbies
HI team,
We are integrating one sensor driver in to LE platform. After adding sensor
driver, it is creating device @ /sys/bus/iio/devices/iio:device0,1,2.
Sensor driver makes use of IIO subsystem framework. We are not seeing iio
device creation @ */dev/iio:device0*,1,2
I have enabled below configuration in the defconfing along with sensor
configuration.
CONFIG_IIO=y
CONFIG_IIO_BUFFER=y
CONFIG_IIO_BUFFER_CB=y
CONFIG_IIO_KFIFO_BUF=y
CONFIG_IIO_TRIGGERED_BUFFER=y
CONFIG_IIO_TRIGGER=y
CONFIG_IIO_CONSUMERS_PER_TRIGGER=2
I'm able to see kernel prints from"iio_device_register" function.
Appreciate any pointers on this regard.
Kernel version: 3.18
--
Regards
Naresh Babu
09900139337
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160601/a2ed58a2/attachment-0001.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* How to enable IIO driver in 3.18 kernel
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 14:26 ` Munagala Naresh
0 siblings, 2 replies; 9+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2016-06-01 4:11 UTC (permalink / raw)
To: kernelnewbies
On Wed, 01 Jun 2016 08:19:20 +0530, Munagala Naresh said:
> We are integrating one sensor driver in to LE platform. After adding sensor
> driver, it is creating device @ /sys/bus/iio/devices/iio:device0,1,2.
> Sensor driver makes use of IIO subsystem framework. We are not seeing iio
> device creation @ */dev/iio:device0*,1,2
The kernel is creating your device in /sys. You need to either get udev knowing what
to do to mknod the /dev entry, or check if your kernel config has:
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
so the kernel takes care of it for you.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160601/ef305427/attachment.bin
^ permalink raw reply [flat|nested] 9+ messages in thread
* How to enable IIO driver in 3.18 kernel
[not found] ` <tencent_70035EF62DF5627F0836F8CD@qq.com>
@ 2016-06-01 4:40 ` Valdis.Kletnieks at vt.edu
2016-06-01 5:58 ` =?gb18030?B?RnJhbmtZdQ==?=
0 siblings, 1 reply; 9+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2016-06-01 4:40 UTC (permalink / raw)
To: kernelnewbies
On Wed, 01 Jun 2016 12:18:55 +0800, "FrankYu" said:
> How can I read the content?
I admit confusion. The content of what? And read it from where? Userspace?
int fd = open ("/dev/iio:whatever",yadda yadda);
int rc = read(fd, &buffer, sizeof(buffer);
Same as reading any other device.
If you mean something else, you'll have to explain..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160601/c4b43a3f/attachment.bin
^ permalink raw reply [flat|nested] 9+ messages in thread
* How to enable IIO driver in 3.18 kernel
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
0 siblings, 1 reply; 9+ messages in thread
From: =?gb18030?B?RnJhbmtZdQ==?= @ 2016-06-01 5:58 UTC (permalink / raw)
To: kernelnewbies
Sorry, I mean the mail's content
I can not read the mail, there's only a *.bin file attached
????iPhone
------------------ Original ------------------
From: Valdis.Kletnieks <Valdis.Kletnieks@vt.edu>
Date: ??,6? 1,2016 0:40 ??
To: 909655299 <909655299@qq.com>, munagala.nareshbabu <munagala.nareshbabu@gmail.com>, kernelnewbies <kernelnewbies@kernelnewbies.org>
Subject: Re: How to enable IIO driver in 3.18 kernel
On Wed, 01 Jun 2016 12:18:55 +0800, "FrankYu" said:
> How can I read the content?
I admit confusion. The content of what? And read it from where? Userspace?
int fd = open ("/dev/iio:whatever",yadda yadda);
int rc = read(fd, &buffer, sizeof(buffer);
Same as reading any other device.
If you mean something else, you'll have to explain..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160601/476573f6/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0601_1.jpg
Type: application/octet-stream
Size: 22474 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160601/476573f6/attachment-0001.obj
^ permalink raw reply [flat|nested] 9+ messages in thread
* How to enable IIO driver in 3.18 kernel
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==?=
0 siblings, 1 reply; 9+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2016-06-01 7:02 UTC (permalink / raw)
To: kernelnewbies
On Wed, 01 Jun 2016 13:58:20 +0800, you said:
> Sorry, I mean the mail's content?
> I can not read the mail, there's only a *.bin file attached?
You have a defective mail reader, which is unable to recognize
a digital signature. There's been an Internet standard for that
since 1995, so there's *really* no excuse.
1847 Security Multiparts for MIME: Multipart/Signed and
Multipart/Encrypted. J. Galvin, S. Murphy, S. Crocker, N. Freed.
October 1995. (Format: TXT=23679 bytes) (Status: PROPOSED STANDARD)
(DOI: 10.17487/RFC1847)
Even if your mail reader doesn't understand how to verify a PGP
digital signature, it should at *least* tell you "This was a text
mail with a digital signature I can't handle".
It's 2016. Even Outlook figured out how to do this a decade ago.
Complain to whoever did your mail software.
^ permalink raw reply [flat|nested] 9+ messages in thread
* How to enable IIO driver in 3.18 kernel
2016-06-01 7:02 ` Valdis.Kletnieks at vt.edu
@ 2016-06-01 7:06 ` =?gb18030?B?RnJhbmtZdQ==?=
0 siblings, 0 replies; 9+ messages in thread
From: =?gb18030?B?RnJhbmtZdQ==?= @ 2016-06-01 7:06 UTC (permalink / raw)
To: kernelnewbies
Tx
May be I should change a mail client
:)
------------------ Original ------------------
From: Valdis.Kletnieks <Valdis.Kletnieks@vt.edu>
Date: ??,6? 1,2016 3:03 ??
To: FrankYu <909655299@qq.com>
Cc: munagala.nareshbabu <munagala.nareshbabu@gmail.com>, kernelnewbies <kernelnewbies@kernelnewbies.org>
Subject: Re: How to enable IIO driver in 3.18 kernel
On Wed, 01 Jun 2016 13:58:20 +0800, you said:
> Sorry, I mean the mail's content
> I can not read the mail, there's only a *.bin file attached
You have a defective mail reader, which is unable to recognize
a digital signature. There's been an Internet standard for that
since 1995, so there's *really* no excuse.
1847 Security Multiparts for MIME: Multipart/Signed and
Multipart/Encrypted. J. Galvin, S. Murphy, S. Crocker, N. Freed.
October 1995. (Format: TXT=23679 bytes) (Status: PROPOSED STANDARD)
(DOI: 10.17487/RFC1847)
Even if your mail reader doesn't understand how to verify a PGP
digital signature, it should at *least* tell you "This was a text
mail with a digital signature I can't handle".
It's 2016. Even Outlook figured out how to do this a decade ago.
Complain to whoever did your mail software.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160601/47195143/attachment.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* How to enable IIO driver in 3.18 kernel
2016-06-01 4:11 ` Valdis.Kletnieks at vt.edu
[not found] ` <tencent_70035EF62DF5627F0836F8CD@qq.com>
@ 2016-06-01 14:26 ` Munagala Naresh
2016-06-01 14:41 ` Daniel Baluta
1 sibling, 1 reply; 9+ messages in thread
From: Munagala Naresh @ 2016-06-01 14:26 UTC (permalink / raw)
To: kernelnewbies
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".
Thanks,
Naresh
On Wed, Jun 1, 2016 at 9:41 AM, <Valdis.Kletnieks@vt.edu> wrote:
> On Wed, 01 Jun 2016 08:19:20 +0530, Munagala Naresh said:
>
> > We are integrating one sensor driver in to LE platform. After adding
> sensor
> > driver, it is creating device @ /sys/bus/iio/devices/iio:device0,1,2.
>
> > Sensor driver makes use of IIO subsystem framework. We are not seeing iio
> > device creation @ */dev/iio:device0*,1,2
>
> The kernel is creating your device in /sys. You need to either get udev
> knowing what
> to do to mknod the /dev entry, or check if your kernel config has:
>
> CONFIG_DEVTMPFS=y
> CONFIG_DEVTMPFS_MOUNT=y
>
> so the kernel takes care of it for you.
>
--
Regards
Naresh Babu
09900139337
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160601/3d88dec9/attachment.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* How to enable IIO driver in 3.18 kernel
2016-06-01 14:26 ` Munagala Naresh
@ 2016-06-01 14:41 ` Daniel Baluta
2016-06-02 4:24 ` Munagala Naresh
0 siblings, 1 reply; 9+ messages in thread
From: Daniel Baluta @ 2016-06-01 14:41 UTC (permalink / raw)
To: kernelnewbies
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.
^ permalink raw reply [flat|nested] 9+ messages in thread
* How to enable IIO driver in 3.18 kernel
2016-06-01 14:41 ` Daniel Baluta
@ 2016-06-02 4:24 ` Munagala Naresh
0 siblings, 0 replies; 9+ messages in thread
From: Munagala Naresh @ 2016-06-02 4:24 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2016-06-02 4:24 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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.