From: "Zubair Lutfullah :" <zubair.lutfullah@gmail.com>
To: Jonathan Cameron <jic23@kernel.org>
Cc: gmane@reliableembeddedsystems.com, linux-iio@vger.kernel.org,
Zubair Lutfullah: zubair.lutfullah@gmail.com
Subject: Re: iio on beagle bone black 3.13.6 kernel
Date: Sun, 23 Mar 2014 18:54:47 +0000 [thread overview]
Message-ID: <20140323185446.GA2485@gmail.com> (raw)
In-Reply-To: <532F1DE0.9090908@kernel.org>
On Sun, Mar 23, 2014 at 05:46:08PM +0000, Jonathan Cameron wrote:
> On 22/03/14 17:19, gmane@reliableembeddedsystems.com wrote:
> >Hi,
> >
> >I use a beagle bone black with a 3.13.6 kernel and would like to get the
> >./generic_buffer test which comes with the kernel to work.
> >
> >This is what I do:
> >
> >echo 1 > /sys/bus/iio/devices/iio_sysfs_trigger/add_trigger
> >
> >ls /sys/bus/iio/devices/
> >iio:device0 iio_sysfs_trigger trigger0
> >
> >cat /sys/bus/iio/devices/trigger0/name
> >sysfstrig1
> >
> >echo 1 > /sys/bus/iio/devices/iio:device0/scan_elements/in_voltage5_en
> >
> >
> >./generic_buffer.out -n TI-am335x-adc -t sysfstrig1 -l 128
> >iio device number being used is 0
> >iio trigger number being used is 0
> > sysfstrig1
> >---> Could not open /trigger/current_trigger
> >Failed to write current_trigger file
> >
> >How can I get rid of this?
> >
> >Is this a problem with my driver, or should I just create this magic
> >file somewhere?
> Does /sys/bus/iio/device/iio:device0/trigger/current_trigger exist?
> If so, try
> echo sysfstrig1 > /usys/bus/iio/device/iio:device0/trigger/current_trigger
> and see if that gives an error or not, then cat the same file to see if
> it 'took'.
>
> Otherwise, I'm not sure...
>
> Zubair, any thoughts?
>
I thought we removed trigger from this driver for using continuous sampling.
It was a hardware buffer driver with not proper support in generic_buffer.c
For one-shot sampling you just cat /sys/bus/iio/devices/iio:device0/channel etc.
For continuous sampling, modify generic_buffer.c to remove trigger checks.
Could you please tell me where you got this driver? It shouldn't be in any tree..
Regards
ZubairLK
next prev parent reply other threads:[~2014-03-23 18:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-22 17:19 iio on beagle bone black 3.13.6 kernel gmane
[not found] ` <532F1DE0.9090908@kernel.org>
2014-03-23 18:54 ` Zubair Lutfullah : [this message]
[not found] ` <532F3724.3020302@kernel.org>
2014-04-04 13:59 ` gmane
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=20140323185446.GA2485@gmail.com \
--to=zubair.lutfullah@gmail.com \
--cc=gmane@reliableembeddedsystems.com \
--cc=jic23@kernel.org \
--cc=linux-iio@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.