Is there a method such as dvflasher for programming the bootloader (UBL
and u-boot) to Nand flash on the EVM355 via the uart .

James 
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: 19 February 2008 17:59
To: davinci-linux-open-source@linux.davincidsp.com
Subject: Davinci-linux-open-source Digest, Vol 26, Issue 65

Send Davinci-linux-open-source mailing list submissions to
        davinci-linux-open-source@linux.davincidsp.com

To subscribe or unsubscribe via the World Wide Web, visit
        
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Davinci-linux-open-source digest..."


Today's Topics:

   1. Re: reading from usb serial gadget (Lloyd Sargent)
   2. RE: reading from usb serial gadget (Kim Klaiman)
   3. Re: reading from usb serial gadget (Lloyd Sargent)
   4. Audio question (Stephen Berry)
   5. Re: [PATCH] ARM: DaVinci: Dma: clear events on open(v2)
      (Dirk Behme)
   6. RE: How to debug DSP flow ? (Ring, Chris)


----------------------------------------------------------------------

Message: 1
Date: Tue, 19 Feb 2008 09:39:48 -0600
From: Lloyd Sargent <[EMAIL PROTECTED]>
Subject: Re: reading from usb serial gadget
To: davinci-linux-open-source@linux.davincidsp.com
Cc: Kim Klaiman <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;  charset="iso-8859-1"

Hi,

I have not tried this, but have you tried using the select() function?

Cheers,

Lloyd

On Tuesday 12 February 2008 08:36, Kim Klaiman wrote:
> Hi,
>
> Just wanted to follow up if anyone has any idea about this issue.
>
> Thanks in advance,
> Kim Klaiman
>
> -----Original Message-----
> From:
>
[EMAIL PROTECTED]
> idsp.com
>
[mailto:[EMAIL PROTECTED]
> x.davincidsp.com] On Behalf Of Kim Klaiman
> Sent: February 4, 2008 10:26 AM
> To: davinci-linux-open-source@linux.davincidsp.com
> Subject: reading from usb serial gadget
>
> Hello all,
>
> I'm using USB serial gadget to read data from PC.
>
> At the beginning, I'm opening the device with open(/dev/ttygserial)
and
> then try to read data.
>
> If I launch the application and then connect the USB cable, everything
> works fine. My problem is when the USB cable is disconnected and
> reconnected while the application is running. Since read is blocking,
I
> cannot check if the device is opened, read does not return and I'm
> stuck.
>
> How can I solve this situation?
>
> Thanks,
> Kim
>
> _______________________________________________
> Davinci-linux-open-source mailing list
> Davinci-linux-open-source@linux.davincidsp.com
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
> _______________________________________________
> Davinci-linux-open-source mailing list
> Davinci-linux-open-source@linux.davincidsp.com
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


------------------------------

Message: 2
Date: Tue, 19 Feb 2008 10:55:31 -0500
From: "Kim Klaiman" <[EMAIL PROTECTED]>
Subject: RE: reading from usb serial gadget
To: <[EMAIL PROTECTED]>,
        <davinci-linux-open-source@linux.davincidsp.com>
Message-ID:
        
<[EMAIL PROTECTED]>
Content-Type: text/plain;       charset="us-ascii"

No, I haven't.
Where can I find how to use it to get the status of device?

-----Original Message-----
From: Lloyd Sargent [mailto:[EMAIL PROTECTED] 
Sent: February 19, 2008 10:40 AM
To: davinci-linux-open-source@linux.davincidsp.com
Cc: Kim Klaiman
Subject: Re: reading from usb serial gadget

Hi,

I have not tried this, but have you tried using the select() function?

Cheers,

Lloyd

On Tuesday 12 February 2008 08:36, Kim Klaiman wrote:
> Hi,
>
> Just wanted to follow up if anyone has any idea about this issue.
>
> Thanks in advance,
> Kim Klaiman
>
> -----Original Message-----
> From:
>
[EMAIL PROTECTED]
> idsp.com
>
[mailto:[EMAIL PROTECTED]
> x.davincidsp.com] On Behalf Of Kim Klaiman
> Sent: February 4, 2008 10:26 AM
> To: davinci-linux-open-source@linux.davincidsp.com
> Subject: reading from usb serial gadget
>
> Hello all,
>
> I'm using USB serial gadget to read data from PC.
>
> At the beginning, I'm opening the device with open(/dev/ttygserial)
and
> then try to read data.
>
> If I launch the application and then connect the USB cable, everything
> works fine. My problem is when the USB cable is disconnected and
> reconnected while the application is running. Since read is blocking,
I
> cannot check if the device is opened, read does not return and I'm
> stuck.
>
> How can I solve this situation?
>
> Thanks,
> Kim
>
> _______________________________________________
> Davinci-linux-open-source mailing list
> Davinci-linux-open-source@linux.davincidsp.com
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
> _______________________________________________
> Davinci-linux-open-source mailing list
> Davinci-linux-open-source@linux.davincidsp.com
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


------------------------------

Message: 3
Date: Tue, 19 Feb 2008 10:16:39 -0600
From: Lloyd Sargent <[EMAIL PROTECTED]>
Subject: Re: reading from usb serial gadget
To: "Kim Klaiman" <[EMAIL PROTECTED]>
Cc: davinci-linux-open-source@linux.davincidsp.com
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;  charset="iso-8859-1"

In a console window type the following:

man -S 2 select

And that will give you info - but to use it is rather non-obvious. Here
is an 
example for a serial port:

int uartWaitForData(int milliseconds)
{
        int maxfd = uartfd + 1;                                 //
create the maximum FD to look for 
        fd_set readfs;
// file descriptor set
        struct timeval timeout;
        int result;

        //----- set the timeout value
        timeout.tv_sec = milliseconds / 1000;
        timeout.tv_usec = milliseconds * 1000;

        FD_ZERO(&readfs);
// clear the file selector set 
        FD_SET(uartfd, &readfs);
// add file descriptor  to the file selector set
        result = select(maxfd, &readfs, NULL, NULL, &timeout); // see if
any chars 
        if (result <= 0)
                return (-1);

//      if (FD_ISSET(fd, &readfs))                              // see
if ready to be read 
//              return (1);

        return (1);
}

I was merely looking to see if it timed out... and it MIGHT help you
determine 
if port closed (I don't know). YMMV as they say.

Good luck!

Cheers,

Lloyd


On Tuesday 19 February 2008 09:55, Kim Klaiman wrote:
> No, I haven't.
> Where can I find how to use it to get the status of device?
>
> -----Original Message-----
> From: Lloyd Sargent [mailto:[EMAIL PROTECTED]
> Sent: February 19, 2008 10:40 AM
> To: davinci-linux-open-source@linux.davincidsp.com
> Cc: Kim Klaiman
> Subject: Re: reading from usb serial gadget
>
> Hi,
>
> I have not tried this, but have you tried using the select() function?
>
> Cheers,
>
> Lloyd
>
> On Tuesday 12 February 2008 08:36, Kim Klaiman wrote:
> > Hi,
> >
> > Just wanted to follow up if anyone has any idea about this issue.
> >
> > Thanks in advance,
> > Kim Klaiman
> >
> > -----Original Message-----
> > From:
>
>
[EMAIL PROTECTED]
>
> > idsp.com
>
>
[mailto:[EMAIL PROTECTED]
>
> > x.davincidsp.com] On Behalf Of Kim Klaiman
> > Sent: February 4, 2008 10:26 AM
> > To: davinci-linux-open-source@linux.davincidsp.com
> > Subject: reading from usb serial gadget
> >
> > Hello all,
> >
> > I'm using USB serial gadget to read data from PC.
> >
> > At the beginning, I'm opening the device with open(/dev/ttygserial)
>
> and
>
> > then try to read data.
> >
> > If I launch the application and then connect the USB cable,
everything
> > works fine. My problem is when the USB cable is disconnected and
> > reconnected while the application is running. Since read is
blocking,
>
> I
>
> > cannot check if the device is opened, read does not return and I'm
> > stuck.
> >
> > How can I solve this situation?
> >
> > Thanks,
> > Kim
> >
> > _______________________________________________
> > Davinci-linux-open-source mailing list
> > Davinci-linux-open-source@linux.davincidsp.com
> >
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
> > _______________________________________________
> > Davinci-linux-open-source mailing list
> > Davinci-linux-open-source@linux.davincidsp.com
> >
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

-- 
Lloyd Sargent
Texas Digital Systems, Inc.
400 Technology Parkway
College Station, TX


------------------------------

Message: 4
Date: Tue, 19 Feb 2008 12:11:03 -0500
From: Stephen Berry <[EMAIL PROTECTED]>
Subject: Audio question
To: davinci-linux-open-source@linux.davincidsp.com
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1

First, before I get to the question - here is a little background:

    We have developed our own DM350 product that is loosely based on the
355EVM. We have replaced the decoder, removed the MSP430, redesigned the
switcher etc... I also - by accident - moved the audio codec to McBSP0,
when the original device was using McBSP1.

Because of this, quite a few things in the MVL (yes we are using 2.6.10)
distribution had to change. It seems that there was a bit of hacking to
make the audio work with the 355, and none of it considered that you
might want to use a codec on the other McBSP.

So, here is my problem - the DMA channel that is "assigned" for the
audio_open() (davinci-audio.c) function is wrong. And I can't figure out
where it is coming from !

Here are some snippets from davinci-audio.c

this structure is exported with platform_device_register:

/* Device Information */
static struct platform_device davinci_audio_device = {
    .name = DAVINCI_AUDIO_NAME,
    .dev = {
        .driver_data = &audio_state,
        .release = audio_free,
        },
    .id = 0,
};
...
        audio_state_t *state = (&audio_state);
...
        audio_stream_t *is = state->input_stream;
...
        DPRINTK("DMA REQUEST FOR record\n");
        DPRINTK("Channel requested %d, DMA dev %d\n", is->id,
is->dma_dev);
        DMA_REQUEST(err, is, audio_dma_callback);

So what I see is that 'is->dma_dev' is being passed to me as a 9. This
corresponds to the EDMA channel for ASP1 - not zero like I want. I
confirmed that this was indeed the problem by forcing the channel to 3
(ASP0 for record) and I suddenly have tons of dma !

But I need to fix the underlying problem ... Can anyone tell me who or
what determines the DMA channel for the audio?

Thanks!

 Steve Berry
 



------------------------------

Message: 5
Date: Tue, 19 Feb 2008 18:17:27 +0100
From: Dirk Behme <[EMAIL PROTECTED]>
Subject: Re: [PATCH] ARM: DaVinci: Dma: clear events on open(v2)
To: Troy Kisky <[EMAIL PROTECTED]>,
        davinci-linux-open-source@linux.davincidsp.com
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Troy Kisky wrote:
> When a dma channel is opened, clear all pending events.
> Remove SAM & DAM bits if source or destination
> isn't a fifo.
> 
> Signed-off-by: Troy Kisky <[EMAIL PROTECTED]>

Thanks! I think this replaces the first version of the patch?

Dirk

Btw: I created a wiki page

http://wiki.davincidsp.com/index.php?title=Linux_patches

to try to track all pending patches until Kevin has time to apply them.


------------------------------

Message: 6
Date: Tue, 19 Feb 2008 11:58:32 -0600
From: "Ring, Chris" <[EMAIL PROTECTED]>
Subject: RE: How to debug DSP flow ?
To: "Saravanan S" <[EMAIL PROTECTED]>,
        <davinci-linux-open-source@linux.davincidsp.com>
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"

Depending on what and how you want to debug, you can use this:
http://wiki.davincidsp.com/index.php?title=Debugging_the_DSP_side_of_a_C
E_application_on_DaVinci_using_CCS
 
... and/or if you're using Codec Engine, you can enable the tracing in
that framework.
http://wiki.davincidsp.com/index.php?title=Codec_Engine_FAQ#How_can_I_se
e_the_DSP_side_trace_from_Code_Composer_Studio_.28CCS.29.3F
 
Chris

________________________________

        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Saravanan S
        Sent: Friday, February 15, 2008 9:52 PM
        To: davinci-linux-open-source@linux.davincidsp.com
        Subject: How to debug DSP flow ?
        
        
        Hi,
         
            Is there any option or method to debug DSP side execution
flow?
         
         
        Thanks,
        Saravanan S
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://linux.omap.com/pipermail/davinci-linux-open-source/attachments/20
080219/2dde35c3/attachment.htm

------------------------------

_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


End of Davinci-linux-open-source Digest, Vol 26, Issue 65
*********************************************************

_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to