2011-08-05 11:24:58     Archive of AD7793 staging/iio/adc driver patches for 2010rc5 uclinux release

Document created by Aaronwu Employee on Aug 27, 2013
Version 1Show Document
  • View in full screen mode

2011-08-05 11:24:58     Archive of AD7793 staging/iio/adc driver patches for 2010rc5 uclinux release

Swarnamala Sankaranarayanan (INDIA)

Message: 102839   

 

Michael Hennerich

 

I am using Blackfin uclinux svn distribution version 2010 RC5.

 

I would like to use the AD7793 kernel driver for the codec on our BF526 based custom kit.

 

Kindly guide me as to where I can download the git V1 reference related source files/directory and all the patches.

 

-mala

QuoteReplyEditDelete

 

 

2011-08-05 14:31:10     AW: Archive of AD7793 staging/iio/adc driver patchesfor 2010rc5 uclinux release

Michael Hennerich (GERMANY)

Message: 102842    Hi Mala,

 

start reading here -

 

  wiki.analog.com/resources/tools-software/linux-drivers/iio-adc/ad7793

 

The driver currently exists in Greg's staging tree -

 

URL git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6.git

  git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6.git

https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6.git

 

-Michael

QuoteReplyEditDelete

 

 

2011-08-09 07:20:44     Re: AW: Archive of AD7793 staging/iio/adc driver patchesfor 2010rc5 uclinux release

Swarnamala Sankaranarayanan (INDIA)

Message: 102865   

 

Yes Michael. I did go through the wiki link  and installed latest git/gregkh/statging2.6.git  replacing the staging folder from it with  that in  2010rc5 distribution.

 

I get some errors in kernel make:

 

...

 

  CC      drivers/staging/iio/industrialio-core.o

drivers/staging/iio/industrialio-core.c:232: error: ‘noop_llseek’ undeclared here (not in a function)

drivers/staging/iio/industrialio-core.c: In function ‘iio_ev_state_store’:

drivers/staging/iio/industrialio-core.c:847: error: implicit declaration of function ‘strtobool’

make[4]: *** [drivers/staging/iio/industrialio-core.o] Error 1

make[3]: *** [drivers/staging/iio] Error 2

make[2]: *** [drivers/staging] Error 2

make[1]: *** [drivers] Error 2

make[1]: Leaving directory `/home/midas/Mala/Telemedicine/uclinux_source/uc2010_source/uclinux/2010R1/linux-2.6.x'

 

 

Are there any patches over this. Kindly advice.

 

Thanks

 

Mala

QuoteReplyEditDelete

 

 

2011-08-09 08:38:14     Re: AW: Archive of AD7793 staging/iio/adc driverpatchesfor 2010rc5 uclinux release

Michael Hennerich (GERMANY)

Message: 102866      lkml.org/lkml/2011/4/19/148

 

You need to applied all there patches in this series.

Alternatively use the staging kernel directly.

 

-Michael

QuoteReplyEditDelete

 

 

2011-08-14 10:41:17     Re: AW: Archive of AD7793 staging/iio/adc driverpatchesfor 2010rc5 uclinux release

Swarnamala Sankaranarayanan (INDIA)

Message: 102928   

 

Thanks Michael Hennerich.

 

I am able to use the staging kernel with the 2010 distribution. I am starting testing the on board AD7793 ADC chip with the driver provided in the new staging kernel.

 

-Mala

QuoteReplyEditDelete

 

 

2011-08-22 07:01:12     Re: AW: Archive of AD7793 staging/iio/adc driverpatchesfor 2010rc5 uclinux release

Swarnamala Sankaranarayanan (INDIA)

Message: 103077   

 

MIchael Hennerich,

 

The on board ADC AD7793 is confirmed to get configured and acquire data in continous conversion mode in driver at kernel level.

 

To get the samples to user space, I am trying to run the blackfin test code for iio-ring (generic-buffer.c in iio documentation directory). The code proceeds till trigger enable and enters poll . Opens buffer_access for read. But read() returns -1. Why read fails.

 

Please guide me as to how I proceed. Is there a more recent version of user test application with iio_util.h  for iio-ring?

 

Thanks

 

Mala

 

 

 

QuoteReplyEditDelete

 

 

2011-08-22 08:08:07     Re: AW: Archive of AD7793 staging/iio/adcdriverpatchesfor 2010rc5 uclinux release

Michael Hennerich (GERMANY)

Message: 103079    > But read() returns -1. Why read fails.

 

Did you check if /dev/device0:buffer0 exists?

 

The iio mailing list: linux-iio@vger.kernel.org

is a better place to have this conversation.

Attachments

    Outcomes