- From: Bob Apodaca <comedi_at_phxlab.honeywell.com>
- Date: Thu, 17 Jun 2004 06:38:25 -0700
Look in the daqboard2000.c driver for an example of how to perform a
download (in the daqboard2000_attach function). Search for:
it->options[COMEDI_DEVCONF_AUX_DATA]
it->options[COMEDI_DEVCONF_AUX_DATA_LENGTH]
Anne Smorthit wrote:
> I am returning to my driver for the Alphi Technologies AD8
>
> Previously I asked about downloading a file and I added the following code:
>
> if(it->options[0] && it->options[1]){
> size = it->options[1];
> dev->private->firmware = kmalloc(size,GFP_KERNEL);
> if(copy_from_user(dev->private->firmware,
> (unsigned char *)it->options[0],
> size)){
> printk("comedi_: usbdaqdt%d: ptr to
> firmware invalid\n",
> index);
> ret=-EFAULT;
> return ret;
> }
>
> I have now upgaded from comedi-0.7.66 to comedi-0.7.68
>
> The copy from user is not executed as options[0] = NULL and options[1] = 0
>
> My comedi_config command is:
>
> comedi_config -i Ad8.OUT /dev/comedi0 Alphi_Ad8
>
> Any ideas would be welcome
>
> Anne Smorthit
>
> _________________________________________________________________
> The new MSN 8: advanced junk mail protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> _______________________________________________
> comedi mailing list
> comedi_at_comedi.org
> https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
Received on 2004-06-17Z12:38:25