[Fwd: Re: how do I build the dvsdk to use the lastest git kernel?]

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Fwd: Re: how do I build the dvsdk to use the lastest git kernel?]

Steve Chen
On Tue, 2009-11-03 at 09:35 +0200, Shlomo Kut wrote:

> Hi Kevin,
>
> I am trying to build the dvsdk against that latest git kernel
> linux-davinci-2.6.32-rc5 and I am having problems.
>
> I am using  dvsdk_2_10_01_18. Is there a more up to date version of the
> dvsdk available?
>
> I append some of my build problems.
>
> Please can you help?
>
> regards
>
> Shlomo Kut
>
> --------
>
>
> CC[M]  /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.o
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c:53:2: warning: #warning *** not a warning *** Note: LINUX_VERSION_CODE >= 2.6.26
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c: In function ?set_cached?:
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c:1086: error: ?L_PTE_CACHEABLE? undeclared (first use in this function)
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c:1086: error: (Each undeclared identifier is reported only once
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c:1086: error: for each function it appears in.)
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c:1086: error: ?L_PTE_BUFFERABLE? undeclared (first use in this function)

Are you building cmem against the davinci git kernel?  According to the
warning message, it may not work.  Since the git kernel is 2.6.32, but
cmem needs kernel version < 2.6.26.

>
> CC[M]  /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.o
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:29:27: error: asm-arm/memory.h: No such file or directory
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:33:27: error: asm/arch/edma.h: No such file or directory
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:74: warning: type defaults to ?int? in declaration of ?DECLARE_MUTEX_LOCKED?
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:74: warning: parameter names (without types) in function declaration
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:
> In function ?ioctl?:
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:123: error: ?EDMA_TCC_ANY? undeclared (first use in this function)
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:123: error: (Each undeclared identifier is reported only once
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:123: error: for each function it appears in.)
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:124: error: storage size of ?paramentry? isn?t known
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:136: error: ?dm365mmap_reply_mutex? undeclared (first use in this function)
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:134: warning: unused variable ?retval?
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:160: error: implicit declaration of function ?davinci_request_dma?
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:160: error: ?EDMA_DMA_CHANNEL_ANY? undeclared (first use in this function)
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:162: error: ?EVENTQ_1? undeclared (first use in this function)
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:171: error: implicit declaration of function ?davinci_stop_dma?
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:173: error: implicit declaration of function ?davinci_set_dma_src_params?
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:177: error: implicit declaration of function ?davinci_set_dma_dest_params?
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:181: error: implicit declaration of function ?davinci_set_dma_src_index?
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:183: error: implicit declaration of function ?davinci_set_dma_dest_index?
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:185: error: implicit declaration of function ?davinci_set_dma_transfer_params?
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:189: error: implicit declaration of function ?davinci_get_dma_params?
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:195: error: implicit declaration of function ?davinci_set_dma_params?
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:196: error: implicit declaration of function ?davinci_start_dma?
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:201: error: implicit declaration of function ?davinci_free_dma?
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:124: warning: unused variable ?paramentry?
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:
> In function ?dm365mmap_init?:
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:243: error: implicit declaration of function ?class_device_create?
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:
> In function ?dm365mmap_exit?:
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c:258: error: implicit declaration of function ?class_device_destroy?
> make[3]:
> [/home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.o]
> Error 1 (ignored)
>

Do you have all the paths set correctly?  Seems like the build has some
problems finding the header files.

Regards,

Steve


Reply | Threaded
Open this post in threaded view
|

[Fwd: Re: how do I build the dvsdk to use the lastest git kernel?]

Steve Chen
On Tue, 2009-11-03 at 14:55 +0200, Shlomo Kut wrote:
> Hi Steve,
>
> We are working with the dm365 which I don't think is supported by the
> 2.6.26 kernel

Support for dm365 is not in community 2.6.26 kernel, but it is in the
kernel that comes with DVSDK (which is the same kernel as Monta Vista
Pro5 - 2.6.18).

Regards,

Steve



Reply | Threaded
Open this post in threaded view
|

[Fwd: Re: how do I build the dvsdk to use the lastest git kernel?]

Tivy, Robert
In reply to this post by Steve Chen
 
See below...

Regards,

- Rob

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]
> ] On Behalf Of Steve Chen
> Sent: Tuesday, November 03, 2009 4:53 AM
> To: Shlomo Kut
> Cc: [hidden email]
> Subject: Re: [Fwd: Re: how do I build the dvsdk to use the
> lastest git kernel?]
>
> On Tue, 2009-11-03 at 09:35 +0200, Shlomo Kut wrote:
> > Hi Kevin,
> >
> > I am trying to build the dvsdk against that latest git kernel
> > linux-davinci-2.6.32-rc5 and I am having problems.
> >
> > I am using  dvsdk_2_10_01_18. Is there a more up to date version of
> > the dvsdk available?
> >
> > I append some of my build problems.
> >
> > Please can you help?
> >
> > regards
> >
> > Shlomo Kut
> >
> > --------
> >
> >
> > CC[M]  
> >
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/linuxutils_2_24_02/package
> > s/ti/sdo/linuxutils/cmem/src/module/cmemk.o
> >
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/linuxutils_2_24_02/package
> > s/ti/sdo/linuxutils/cmem/src/module/cmemk.c:53:2: warning: #warning
> > *** not a warning *** Note: LINUX_VERSION_CODE >= 2.6.26
> >
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/linuxutils_2_24_02
/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c: In function 'set_cached':

> >
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/linuxutils_2_24_02/package
> > s/ti/sdo/linuxutils/cmem/src/module/cmemk.c:1086: error:
> > 'L_PTE_CACHEABLE' undeclared (first use in this function)
> >
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/linuxutils_2_24_02/package
> > s/ti/sdo/linuxutils/cmem/src/module/cmemk.c:1086: error: (Each
> > undeclared identifier is reported only once
> >
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/linuxutils_2_24_02/package
> > s/ti/sdo/linuxutils/cmem/src/module/cmemk.c:1086: error: for each
> > function it appears in.)
> >
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/linuxutils_2_24_02/package
> > s/ti/sdo/linuxutils/cmem/src/module/cmemk.c:1086: error:
> > 'L_PTE_BUFFERABLE' undeclared (first use in this function)
>
> Are you building cmem against the davinci git kernel?  
> According to the warning message, it may not work.  Since the
> git kernel is 2.6.32, but cmem needs kernel version < 2.6.26.

The "about-to-be-released" LinuxUtils 2.25 has a fix for this.  If you like you can just edit your current release, changing the following line
    vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) |
                                 (L_PTE_CACHEABLE | L_PTE_BUFFERABLE)
                                );

with
    vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) |
                                 (L_PTE_MT_WRITETHROUGH | L_PTE_MT_BUFFERABLE)
                                );

>
> >
> > CC[M]  
> >
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.o
> >
> /home/shlomo/work/DaVinchi/dvsdk_2_10_01_18/dm365mm/module/dm365mmap.c
> > :29:27: error: asm-arm/memory.h: No such file or directory

I believe I've seen this error when I use a kernel source base that hasn't been built.  Performing the 'make xxx_config' and 'make uImage' phases might fix this.