Hi,
is there any examples on how to configure VFDC component to utilize RGB instead of YUV signals. Is this supported?
Thanks,
Danillo
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
is there any examples on how to configure VFDC component to utilize RGB instead of YUV signals. Is this supported?
Thanks,
Danillo
Do you want to feed RGB buffer for display or do you want the output signal from display port to be RGB ? If you want to display a RGB buffer use fbdev interface which will use the HDVPSS graphics pipeline to display RGB data.
Thanks Badri.
I've been looking into using fbdev, and the only example that I found was the decodedisplay, outputting a colorbar on top of the video. But that is also not using any OMX component, just a thread that updates the buffer, right? I am going to try to use this interface, since VFDC does not support an RGB input.
Thanks
Danillo
Badri,
I was able to use the fbdev to display an RGB frame, however I had to use two buffers, one as the output of my DSP component which is connected to the FB, and the other buffer is the FB buffer obtained from the mmap function. I have to copy the DSP result buffer to the FB buffer, which takes a long time on the A8 (I am using a simple memcpy).
I tried to make the DSP component use the buffer obtained from the FB with OMX_UseBuffer(), but I get the following error message: Error in OMX_UseBuffer() : OMX_ErrorUndefined
Is there any faster way to display an RGB frame?
Thanks,
Danillo
Badri,
I was able to debug the program a little bit further, and the error actually comes from the function OmxRpc_PDmm_mapBuffer, that generates the error IDmm_errorInvalidMapAddress. Is that because I am using the wrong address for my FB buffers?
Thanks,
Danillo
Hello,
You could check this topic:
http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/p/360960/1268040.aspx
Best Regards,
Margarita
Hi Margarita,
thanks for your answer. I guess my only solution without modifying the OMX code is to use EDMA to transfer the buffers from the DSP output to the FB, is that right? How do I use EDMA in my application? I've seen the driver source code, but I am still having difficulties in integrating the EDMA driver into my application code. Do you have any example I could take a look at?
Thanks,
Danillo
Margarita,
I'm also not able to compile the edma_test module. Could you help me with this? I get the following error:
make all
echo /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma
make -C /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01 M=/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma ARCH=arm CROSS_COMPILE=/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/toolchain/codesourcery_arm2009q1-203/bin/arm-none-linux-gnueabi- modules
make[1]: Entering directory `/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01'
WARNING: Symbol version dump /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/Module.symvers
is missing; modules will have no dependencies and modversions.
In file included from include/linux/prefetch.h:14,
from include/linux/list.h:7,
from include/linux/module.h:9,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:37:
CC [M] /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.o
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/processor.h:98:5: warning: "__LINUX_ARM_ARCH__" is not defined
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/processor.h:118:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/module.h:9,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:37:
include/linux/list.h: In function 'list_del':
include/linux/list.h:102: error: implicit declaration of function '_AC'
include/linux/list.h:102: error: 'UL' undeclared (first use in this function)
include/linux/list.h:102: error: (Each undeclared identifier is reported only once
include/linux/list.h:102: error: for each function it appears in.)
include/linux/list.h: In function 'hlist_del':
include/linux/list.h:596: error: 'UL' undeclared (first use in this function)
In file included from include/linux/irqflags.h:15,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/system.h:61,
make[1]: Leaving directory `/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01'
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/bitops.h:27,
from include/linux/bitops.h:22,
from include/linux/kernel.h:17,
from include/linux/cache.h:4,
from include/linux/time.h:7,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:37:
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/irqflags.h:11:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/bitops.h:27,
from include/linux/bitops.h:22,
from include/linux/kernel.h:17,
from include/linux/cache.h:4,
from include/linux/time.h:7,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:37:
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/system.h:116:5: warning: "__LINUX_ARM_ARCH__" is not defined
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/system.h:122:5: warning: "__LINUX_ARM_ARCH__" is not defined
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/system.h:126:35: warning: "__LINUX_ARM_ARCH__" is not defined
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/system.h:260:5: warning: "__LINUX_ARM_ARCH__" is not defined
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/system.h:267:5: warning: "__LINUX_ARM_ARCH__" is not defined
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/system.h:337:5: warning: "__LINUX_ARM_ARCH__" is not defined
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/system.h:340:2: error: #error "SMP is not supported on this platform"
In file included from include/linux/bitops.h:22,
from include/linux/kernel.h:17,
from include/linux/cache.h:4,
from include/linux/time.h:7,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:37:
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/bitops.h:237:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/swab.h:6,
from include/linux/byteorder/little_endian.h:12,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/byteorder.h:21,
from include/linux/kernel.h:22,
from include/linux/cache.h:4,
from include/linux/time.h:7,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:37:
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/swab.h:25:28: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/thread_info.h:16,
from include/linux/thread_info.h:53,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:37:
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/fpstate.h:32:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/spinlock.h:87,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:37:
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/spinlock.h:4:5: warning: "__LINUX_ARM_ARCH__" is not defined
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/spinlock.h:5:2: error: #error SMP not supported on pre-ARMv6 CPUs
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/spinlock.h:10:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/spinlock.h:387,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:37:
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/atomic.h:30:5: warning: "__LINUX_ARM_ARCH__" is not defined
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/atomic.h:153:2: error: #error SMP not supported on pre-ARMv6 CPUs
In file included from include/linux/time.h:9,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:37:
include/linux/math64.h: In function 'div_u64_rem':
include/linux/math64.h:51: error: '__LINUX_ARM_ARCH__' undeclared (first use in this function)
In file included from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/page.h:26,
from include/linux/mmzone.h:20,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:37:
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/glue.h:119:2: error: #error Unknown data abort handler type
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/glue.h:160:2: error: #error Unknown prefetch abort handler type
In file included from include/linux/mmzone.h:20,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:37:
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/page.h:116:2: error: #error Unknown user operations model
In file included from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/page.h:202,
from include/linux/mmzone.h:20,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:37:
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/memory.h:19:25: error: mach/memory.h: No such file or directory
In file included from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/page.h:202,
from include/linux/mmzone.h:20,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:37:
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/memory.h: In function 'virt_to_phys':
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/memory.h:240: error: 'PLAT_PHYS_OFFSET' undeclared (first use in this function)
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/memory.h: In function 'phys_to_virt':
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/memory.h:245: error: 'PLAT_PHYS_OFFSET' undeclared (first use in this function)
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/memory.h: In function 'virt_to_bus':
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/memory.h:270: error: 'PLAT_PHYS_OFFSET' undeclared (first use in this function)
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/memory.h: In function 'bus_to_virt':
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/memory.h:275: error: 'PLAT_PHYS_OFFSET' undeclared (first use in this function)
In file included from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:37:
include/linux/mmzone.h: At top level:
include/linux/mmzone.h:73: error: 'CONFIG_ARM_L1_CACHE_SHIFT' undeclared here (not in a function)
include/linux/mmzone.h:73: error: requested alignment is not a constant
include/linux/mmzone.h:421: error: requested alignment is not a constant
In file included from include/linux/notifier.h:14,
from include/linux/memory_hotplug.h:6,
from include/linux/mmzone.h:659,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:37:
include/linux/rwsem.h:22:65: error: asm/rwsem.h: No such file or directory
In file included from include/linux/memory_hotplug.h:6,
from include/linux/mmzone.h:659,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:37:
include/linux/notifier.h:62: error: field 'rwsem' has incomplete type
In file included from include/linux/smp.h:37,
from include/linux/topology.h:33,
from include/linux/gfp.h:7,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:37:
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/smp.h:17:22: error: mach/smp.h: No such file or directory
In file included from include/linux/timex.h:174,
from include/linux/jiffies.h:8,
from include/linux/ktime.h:25,
from include/linux/timer.h:5,
from include/linux/workqueue.h:8,
from include/linux/kmod.h:26,
from include/linux/module.h:13,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:37:
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/timex.h:15:24: error: mach/timex.h: No such file or directory
In file included from include/linux/ktime.h:25,
from include/linux/timer.h:5,
from include/linux/workqueue.h:8,
from include/linux/kmod.h:26,
from include/linux/module.h:13,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:37:
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: division by zero in #if
In file included from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/hardirq.h:6,
from include/linux/hardirq.h:7,
from include/linux/interrupt.h:12,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:41:
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/irq.h:4:23: error: mach/irqs.h: No such file or directory
In file included from include/linux/hardirq.h:7,
from include/linux/interrupt.h:12,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:41:
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/hardirq.h:11: error: requested alignment is not a constant
In file included from include/linux/hardirq.h:7,
from include/linux/interrupt.h:12,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:41:
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/hardirq.h:15:5: warning: "NR_IRQS" is not defined
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/hardirq.h:17:7: warning: "NR_IRQS" is not defined
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/hardirq.h:28:27: warning: "NR_IRQS" is not defined
In file included from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:42:
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/io.h:101:21: error: mach/io.h: No such file or directory
In file included from include/linux/mm.h:14,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:45:
include/linux/mm_types.h:240: error: field 'mmap_sem' has incomplete type
In file included from include/linux/mm.h:40,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:45:
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/pgtable.h:23:26: error: mach/vmalloc.h: No such file or directory
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/pgtable.h:279:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/mm.h:40,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:45:
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/pgtable.h: In function 'pmd_page_vaddr':
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/pgtable.h:372: error: 'PLAT_PHYS_OFFSET' undeclared (first use in this function)
In file included from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:45:
include/linux/mm.h: In function 'is_vmalloc_addr':
include/linux/mm.h:294: error: 'VMALLOC_END' undeclared (first use in this function)
include/linux/mm.h: In function 'virt_to_head_page':
include/linux/mm.h:329: error: 'PLAT_PHYS_OFFSET' undeclared (first use in this function)
In file included from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:45:
include/linux/mm.h: In function 'lowmem_page_address':
include/linux/mm.h:604: error: 'PLAT_PHYS_OFFSET' undeclared (first use in this function)
In file included from include/linux/dma-mapping.h:7,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:46:
include/linux/scatterlist.h: In function 'sg_set_buf':
include/linux/scatterlist.h:112: error: 'PLAT_PHYS_OFFSET' undeclared (first use in this function)
include/linux/scatterlist.h: In function 'sg_phys':
include/linux/scatterlist.h:184: error: 'PLAT_PHYS_OFFSET' undeclared (first use in this function)
In file included from include/linux/dma-mapping.h:93,
from /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:46:
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/dma-mapping.h: In function 'page_to_dma':
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/dma-mapping.h:20: error: 'PLAT_PHYS_OFFSET' undeclared (first use in this function)
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/dma-mapping.h: In function 'dma_to_page':
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/dma-mapping.h:25: error: 'PLAT_PHYS_OFFSET' undeclared (first use in this function)
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/dma-mapping.h: In function 'dma_to_virt':
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/dma-mapping.h:30: error: 'PLAT_PHYS_OFFSET' undeclared (first use in this function)
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/dma-mapping.h: In function 'virt_to_dma':
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/dma-mapping.h:35: error: 'PLAT_PHYS_OFFSET' undeclared (first use in this function)
/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:49:27: error: mach/hardware.h: No such file or directory
make[2]: *** [/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.o] Error 1
make[1]: *** [_module_/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma] Error 2
make: *** [all] Error 2
This is my makefile, I did not alter the source file(edma_test.c):
include ${PWD}/../Rules.make
CFLAGS=
LDFLAGS=
obj-m = edma_test.o
all:
echo ${PWD}
make -C $(KERNEL_DIR) M=$(PWD) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) modules
clean:
@echo "Cleaning"
@rm -f *.ko *.o [mM]odule*.* *.mod.c
Thanks,
Danillo
Hello,
make clean;
make all.
It will be build it as a kernel module(edma_test.ko).
Do not change the make file in the EDMA folder (/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma) :
include ${PWD}/../Rules.make
# We are building kernel modules and should not pollute these flags
CFLAGS=
LDFLAGS=
obj-m = edma_test.o
all:
echo ${PWD}
make -C $(KERNEL_DIR) M=$(PWD) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) modules
clean:
@echo "Cleaning"
@rm -f *.ko *.o [mM]odule*.* *.mod.c
Best Regards,
Margarita
Hi Margarita,
unfortunately it is still not working. I cleaned and tried to recompile the module, and get the same error. Do you have any other ideas ?
Danillo
Hello,
Danillo Graziosi said:/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/io.h:101:21: error: mach/io.h: No such file or directory
Danillo Graziosi said:/home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma/edma_test.c:49:27: error: mach/hardware.h: No such file or directory
.....
It seems that it can not find some header files.
Could you check the paths to them.
Best Regards,
Margarita
Margarita,
I'm not completely sure where I should find those files, should they be in the directory /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/include/asm/mach ? This is the list of the content in this directory:
-rwxrwxrwx 1 dgraziosi dgraziosi 1614 2013-07-02 00:25 arch.h
-rwxrwxrwx 1 dgraziosi dgraziosi 1612 2013-07-02 00:25 dma.h
-rwxrwxrwx 1 dgraziosi dgraziosi 1174 2013-07-02 00:25 flash.h
-rwxrwxrwx 1 dgraziosi dgraziosi 557 2013-07-02 00:25 irda.h
-rwxrwxrwx 1 dgraziosi dgraziosi 815 2013-07-02 00:25 irq.h
-rwxrwxrwx 1 dgraziosi dgraziosi 1165 2013-07-02 00:25 map.h
-rwxrwxrwx 1 dgraziosi dgraziosi 2421 2013-07-02 00:25 pci.h
-rwxrwxrwx 1 dgraziosi dgraziosi 809 2013-07-02 00:25 serial_at91.h
-rwxrwxrwx 1 dgraziosi dgraziosi 799 2013-07-02 00:25 serial_sa1100.h
-rwxrwxrwx 1 dgraziosi dgraziosi 838 2013-07-02 00:25 sharpsl_param.h
-rwxrwxrwx 1 dgraziosi dgraziosi 1508 2013-07-02 00:25 time.h
-rwxrwxrwx 1 dgraziosi dgraziosi 1011 2013-07-02 00:25 udc_pxa2xx.h
Am I missing any files in my linux distribution? How can I fix this?
Thanks,
Danillo
Hello,
Where you are executing the make all command. Please try to execute it in the main ezsdk dir with the default ezsdk installation it should build the edma example also.
But if you execute make all command in the edma folder when you should make changes in the Rules.make file in the
/example-applications/linux-driver-examples-psp04.04.00.01.
INCLUDE_DIR = $(KERNEL_DIR)/include -I$(KERNEL_DIR)/arch/arm/include/ -I$(KERNEL_DIR)/arch/arm/plat-omap/include/
this line pointing where are the folder/headers. Example you need the asm/io.h it will find it here (KERNEL_DIR)/arch/arm/include/.
Best Regards,
Margarita
Hi Margarita,
my Rules.make file already has the line you mentioned. I did a make clean and make all on the ezsdk dir, as well as in the ezsdk/example-applications/linux-driver-examples-psp04.04.00.01/edma directory. Unfortunately I keep getting the same error.
I was able to make edma3lld driver work for the DSP, but not for the A8. Is there any specific configuration (or load) for the edma3_lld driver ?
Thanks,
Danillo
Margarita,
I figure out my problem. I was using the wrong kernel directory. I had
KERNEL_DIR = /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/ezsdk/board-support/linux-2.6.37-psp04.04.00.01
instead of
KERNEL_DIR = /home/dgraziosi/z3-netra/z3-netra-DM8168-PCI-RPS-20130702/kernels/linux
The example compiles, and I am able to run the edma_test. Now, how can I use this module on my application software? I have an OMX application, where I want to move the output of a DSP component to the FB memory. Is there any recommended implementation on how to use kernel modules in my application source code?
Thanks,
Danillo
Hello,
Check this e2e topic.
http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/t/164186.aspx
and
http://processors.wiki.ti.com/index.php/VSWMOSAIC
Hope this helps with some ideas.
Best Regards,
Margarita