I have downloaded the kernel and test on Overo Gumstix board. I did not get the source code for FPGA to check the exact communication. So i wrote myself the code which writes data to BRAM from GPMC. in this driver i did not understand the DMA working and "RX_DATA_READY_GPIO ,TX_SPACE_AVAILABLE_GPIO" pin working
I have bypassed the dma and wrote directly data to GPMC with memcpy. but it shows very slow speed. The time between two packets transfer is round about 8ms. its huge time how can i reduce this time. //============ for(i=0;i<100;i++) n = write(fp, buf, Wbytes); //============== is there the FPGA code and c user level(application) code available to test the driver? On Monday, 17 June 2013 23:53:12 UTC+5:30, Philip wrote: > > I did this a while back: > > > https://github.com/balister/linux-omap-philip/blob/e100-2.6.38/drivers/misc/usrp_e.c > > and (for GPMC setup see): > > > https://github.com/balister/linux-omap-philip/blob/e100-2.6.38/arch/arm/mach-omap2/board-overo.c > > No devicetree help here though. I also do build system work and ignore > Lazerman. > > Philip > > > On Mon, Jun 17, 2013 at 1:55 PM, Jack Mitchell > <[email protected]<javascript:> > > wrote: > >> On 17/06/2013 18:25, Mark Lazarewicz wrote: >> >>> Jack >>> >>> the TRM discusses GPMC and EDMA >>> 7.1 GPMC >>> 7.1.1 Introduction >>> >>> Examples on How to set it up might be tough I would check the starterware >>> >>> I know of one military SDR app needed this so for OMAP4 I am sure the >>> GPMC is similar but you wont find that code in the public domain >>> >>> Dont expect any help from most the SW people on here they spend their >>> lives writing convoluted scripts to build Linux and have no real >>> >> >> Heh, there are some extremely talented people on this list, who will >> answer properly phrased questions; where previous research and attempts at >> solutions are presented. >> >> >> >>> Your asking for help in a area ecompassing REAL world applications >>> in a forum >>> addressing some hobbyist version of Linux that targets the mobile world >>> and is DOMINATED by FAE scripsters adept at convoluting how to build a >>> kernel >>> >> >> I think you'll find that those convoluted kernel scripts enable me to >> build professional broadcasting products based on Linux in a >> _deterministic_ way. I would imagine that is as real world as it gets, and >> is no way related to anything mobile; what you have stated is nonsense. >> >> I think there is an FPGA cape which uses the GPMC bus, whether that uses >> it in a similar way to what you are envisioning; I don't know, but the code >> is GPL licensed, and as such available to view. >> >> If you wish to do low level work like this I would recommend you either >> delve into some Linux Kernel programming guides or move to something a >> little closer to the metal, such as the suggested StarterWare, which TI >> provides support for. >> >> The mmc and spi drivers that the 'convoluted' kernel scrips build, make >> use of edma within the Linux kernel, that would also be a good place to go >> exploring. >> >> Cheers, >> >> -- >> >> Jack Mitchell ([email protected] <javascript:>) >> Embedded Systems Engineer >> http://www.embed.me.uk >> >> -- >> >> -- >> For more options, visit http://beagleboard.org/discuss >> --- You received this message because you are subscribed to the Google >> Groups "BeagleBoard" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
