From mboxrd@z Thu Jan 1 00:00:00 1970 From: munagala.nareshbabu@gmail.com (Munagala Naresh) Date: Thu, 2 Jun 2016 09:54:17 +0530 Subject: How to enable IIO driver in 3.18 kernel In-Reply-To: References: <16140.1464754265@turing-police.cc.vt.edu> Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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 wrote: > On Wed, Jun 1, 2016 at 5:26 PM, Munagala Naresh > 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