- From: Kri Vijay <kri_vijay_at_yahoo.com>
- Date: Wed, 24 Oct 2007 07:53:18 -0700 (PDT)
Hi Gianluca,
I noticed that the driver is based off the Sensoray
driver & the problem might have carried over.
(something is changed in this kernel)
I forgot to mention that when I tried the sensoray
driver, my program would hang. I narrowed it down to
an inf. loop in
static void WaitDoneADC( struct CORE_OBJ *c, U16
*pdata )
_at_[s626core.c:1415]while(MC_TEST( P_MC2, MC2_ADC_RPS
));
(it is a check on the data).
I changed this to a finite loop & expanded the macros:
rr7146_p_mc2 = S626MOD_ReadMem ( (U32 *)( c->MyBase +
(P_MC2) ) );
if ( ( rr7146_p_mc2 & MC2_ADC_RPS ) == 0 )
break;
I didnt know how to expand or check
"ioctl( m->hSX, S626_IOC_ReadRegister, &prmt )"
thanx
Kris
--nextPart14040337.eY90MYEFKv
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi Kri
probably your system recognize the s626 at boot time
and load the needed=20
comedi modules and the rtai_sched, but not
rtai_comedi.
To configure your s626, you have to remove manually
the modules s626, comed=
i,=20
comedi_fc, rtai_sched and rtai_hal, then modprobe
rtai_comedi and modprobe=
=20
s626. After these operations, you can safely configure
your card with=20
comedi_config.
Let me know if this works.
Gianluca
On Sunday 21 October 2007 20:05:47 Kri Vijay wrote:
> Hi,
>
> I am trying to get S626 card running with Debian
> (2.6.18)
> I compile and installed comedilib-0.8.0 &
> comedi-0.7.74. I also tried using libcomedi-0.7.22
(I
> guess debians comedilib 0.7.22) in the place of
> comedilib-0.8.0.
>
> I did modprobe comedi and modprobe s626.
> Then when I try comedi_config /dev/comedi0 s626,
the
> system freezes. Upon reboot (restart power) the
kernel
> log says
> ...
> Oct 21 08:23:17 name kernel: comedi: version 0.7.74
-
> David Schleef <ds _at_schleef.org>
> Oct 21 08:23:17 name kernel: Linux video capture
> interface: v2.00
> Oct 21 08:23:17 name kernel: saa7146: register
> extension 'dpc7146 demon stration board'.
> Oct 21 08:23:17 name kernel: PCI: Found IRQ 11 for
> device 0000:00:0f.0
> Oct 21 08:23:17 name kernel: saa7146: found saa7146
_at_
> mem c48f8000 (rev ision 1, irq 11) (0x0000,0x0000).
> ...
>
> Any help/debugging suggesions would be appreciated
>
> thanx
> Kris
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
protection around
> http://mail.yahoo.com
>
> _______________________________________________
> comedi mailing list
> comedi_at_comedi.org
>
https://mail.comedi.org/cgi-bin/mailman/listinfo/comedi
=2D-=20
Gianluca Palli, PhD
University of Bologna
DEIS - Department of Electronics, Computer Science and
Systems
LAR - Laboratory of Automation and Robotics
Viale Risorgimento 2
40136 Bologna - Italy
tel: (+39) 051 20 93903
(+39) 051 20 93079 (LAB)
fax: (+39) 051 20 93073
ICQ: 149748789
mailto: gianluca.palli_at_unibo.it
http://www-lar.deis.unibo.it/people/gpalli/
Computers are like air conditioners; they stop working
properly
when you open Windows...
--nextPart14040337.eY90MYEFKv
Content-Type: application/pgp-signature;
name=signature.asc
Content-Description: This is a digitally signed
message part.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQBHHfgGkcQgNcwtrmcRAoqSAJsGSWSZK2eJWSVV1AQeHZy2a6ZZLgCffAH4
xcSO0JySMHti8TEIKuJWGFk=
=gJ/P
-----END PGP SIGNATURE-----
--nextPart14040337.eY90MYEFKv--
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Received on 2007-10-24Z13:53:18