Quantcast

Problem in xdctools of meta-ti layer when building Yocto projcet

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Problem in xdctools of meta-ti layer when building Yocto projcet

bowu86
Hi all,

We are trying to build a yocto image for image processing with e-cam support. For this, we downloaded the meta-ecam layer and meta-ti layer from https://github.com/jumpnow/meta-ti.

However when building the image by the command

bitbake ecam-console-image

We got the following error after a long wait :

QA Issue: ti-xdctools: Files/directories were installed but not shipped

And then a long long list of directories
    /usr
   /usr/share
   /usr/share/ti
   /usr/share/ti/ti-xdctools-trees
.....

Then the building process terminated. Did a lot of search but still could not figure out why and how to solve it... Meta-ti layer should be a standard layer but it causes problems...

Any ideas?

Thanks,
Bo
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem in xdctools of meta-ti layer when building Yocto projcet

Scott Ellis
Here's an example local.conf

https://github.com/jumpnow/meta-dsp-overo/blob/dora/conf/local.conf-sample

The BBMASK and INSANE_SKIP statements are what I needed without going
into the individual recipes to fix.

This was using the [dora] branch of Yocto.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem in xdctools of meta-ti layer when building Yocto projcet

bowu86
Thanks for your quick reply, scott! We will try that shortly.

Bo
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem in xdctools of meta-ti layer when building Yocto projcet

bowu86
This post was updated on .
Thanks to Scott, the xdctools problem got solved. Yet the building process ran into another error...

ERROR: Command Error: exit status: 1  Output:
Applying patch ienc1.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ru dmai/packages/ti/sdo/dmai/ce/Ienc1.c dmai.new/packages/ti/sdo/dmai/ce/Ienc1.c
|--- dmai/packages/ti/sdo/dmai/ce/Ienc1.c    2013-08-06 08:57:41.000000000 -0700
|+++ dmai.new/packages/ti/sdo/dmai/ce/Ienc1.c    2013-08-23 09:32:14.855847975 -0700
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 36
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ru dmai/packages/ti/sdo/dmai/ce/Ienc1.h dmai.new/packages/ti/sdo/dmai/ce/Ienc1.h
|--- dmai/packages/ti/sdo/dmai/ce/Ienc1.h    2013-08-06 08:57:41.000000000 -0700
|+++ dmai.new/packages/ti/sdo/dmai/ce/Ienc1.h    2013-08-23 09:39:45.218186154 -0700
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
Patch ienc1.patch does not apply (enforce with -f)

Looks like the patch file could not find the file to patch...... Any one had the similar problem before? Really appreciate any suggestions.

B0
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem in xdctools of meta-ti layer when building Yocto projcet

vin047
experienced a similar problem today. close look at the directory where ti-dmai source files are downloaded shows that the svn repository has not been downloaded yet, and hence you get "no file to patch" errors; it's trying to patch source files that haven't been downloaded yet.

i solved this by removing the patches from the recipe. this prevents bitbake from failing and so allows the svn repo to download, but the build failed (probably because the patches are needed for successful build). so, without cleaning, i add back the patches to the recipe and issue bitbake again. Seemed to work.

Would love someone to figure out a proper fix for this though.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem in xdctools of meta-ti layer when building Yocto projcet

bowu86
This post was updated on .
Thanks, vin047. We will try your way to work around this problem.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem in xdctools of meta-ti layer when building Yocto projcet

dilipkumar
In reply to this post by vin047
vin047 wrote
experienced a similar problem today. close look at the directory where ti-dmai source files are downloaded shows that the svn repository has not been downloaded yet, and hence you get "no file to patch" errors; it's trying to patch source files that haven't been downloaded yet.

i solved this by removing the patches from the recipe. this prevents bitbake from failing and so allows the svn repo to download, but the build failed (probably because the patches are needed for successful build). so, without cleaning, i add back the patches to the recipe and issue bitbake again. Seemed to work.

Would love someone to figure out a proper fix for this though.
Hi vin,

I'm facing a similar error when building ti-dmai using yocto. Could you be a little more specific and explain which files you changed to get it working? These are the errors I get :

ERROR: Command Error: exit status: 1  Output:
Applying patch omap3530-r642-remove-include-videodev.diff
can't find file to patch at input line 18
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 06c4cfeec98f4f1e31543878ceb74c5fff1907e4 Mon Sep 17 00:00:00 2001
|From: Enrico Butera <ebutera@users.berlios.de>
|Date: Thu, 22 Dec 2011 11:01:58 +0100
|Subject: [PATCH 1/2] adjust videdev headers for recent kernels
|
|Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
|---
| .../packages/ti/sdo/dmai/linux/omap3530/Capture.c  |    1 -
| .../ti/sdo/dmai/linux/omap3530/Display_v4l2.c      |    1 -
| .../ti/sdo/dmai/linux/omap3530/_VideoBuf.c         |    1 -
| .../ti/sdo/dmai/linux/omap3530/priv/_VideoBuf.h    |    1 -
| 4 files changed, 0 insertions(+), 4 deletions(-)
|
|diff --git a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Capture.c b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Capture.c
|index a924169..c2b45d2 100644
|--- a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Capture.c
|+++ b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Capture.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 30
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Display_v4l2.c b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Display_v4l2.c
|index 0d01b39..0c35efe 100644
|--- a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Display_v4l2.c
|+++ b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Display_v4l2.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 42
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/_VideoBuf.c b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/_VideoBuf.c
|index 5615e2f..5cb712d 100644
|--- a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/_VideoBuf.c
|+++ b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/_VideoBuf.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 54
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/priv/_VideoBuf.h b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/priv/_VideoBuf.h
|index b2128a3..dbaa4eb 100644
|--- a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/priv/_VideoBuf.h
|+++ b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/priv/_VideoBuf.h
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
Patch omap3530-r642-remove-include-videodev.diff does not apply (enforce with -f)
ERROR: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: <path to yocto dir>/build/tmp/work/overo-poky-linux-gnueabi/ti-dmai/1_2_10_00_01+svnr642-r1o/temp/log.do_patch.9233
ERROR: Task 1630 (<path to yocto dir>/poky/meta-ti/recipes-ti/dmai/ti-dmai_svn.bb, do_patch) failed with exit code '1'


So I removed these patch files files from ti-dmai_svn.bb file by commenting the 3 lines 

#SRC_URI_append = " file://omap3530-r642-remove-include-videodev.diff;striplevel=3 \
#                   file://r642-fix-config-bld.diff;striplevel=3 \
#                 "

Now I'm getting this error when i try to bitbake

ERROR: Function failed: ti-dmai: LIC_FILES_CHKSUM points to an invalid file: <path to yocto dir>/build/tmp/work/overo-poky-linux-gnueabi/ti-dmai/1_2_10_00_01+svnr642-r1o/trunk/davinci_multimedia_application_interface/dmai_2_10_00_01+svnr642/dmai/dmai_2_10_00_01+svnr642_License.html
ERROR: Logfile of failure stored in: <path to yocto dir>/build/tmp/work/overo-poky-linux-gnueabi/ti-dmai/1_2_10_00_01+svnr642-r1o/temp/log.do_configure.10301
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function do_configure
| DEBUG: Shell function do_configure finished
| DEBUG: Executing python function do_qa_configure
| NOTE: Checking autotools environment for common misconfiguration
| DEBUG: Python function do_qa_configure finished
| ERROR: Function failed: ti-dmai: LIC_FILES_CHKSUM points to an invalid file: <path to yocto dir>/build/tmp/work/overo-poky-linux-gnueabi/ti-dmai/1_2_10_00_01+svnr642-r1o/trunk/davinci_multimedia_application_interface/dmai_2_10_00_01+svnr642/dmai/dmai_2_10_00_01+svnr642_License.html
ERROR: Task 1634 (<path to yocto dir>/poky/meta-ti/recipes-ti/dmai/ti-dmai_svn.bb, do_configure) failed with exit code '1'

On checking, the file "dmai_2_10_00_01+svnr642_License.html" is missing. Even after the changes I made, the required files are not being downloaded. Has anybody else faced this issue? How do i get past this?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem in xdctools of meta-ti layer when building Yocto projcet

Ash Charles
Hi,

I see the issue where do_patch can't apply patches when building
against the current yocto master.  In this case, the subversion
repository has been correctly downloaded.
The release.sh (last step) of do_prepsources in the ti-dmai.inc recipe
include refuses to populate the source into the version-specific
source directory dmai-${PV}| there are already files here.  In this
case, I think bitbake creates an empty 'patches' directory in ${S} as
part of the do_unpack.  My current hack is below:

diff --git a/recipes-ti/dmai/ti-dmai.inc b/recipes-ti/dmai/ti-dmai.inc
index 58955b5..f81b4cf 100644
--- a/recipes-ti/dmai/ti-dmai.inc
+++ b/recipes-ti/dmai/ti-dmai.inc
@@ -74,6 +74,7 @@ do_prepsources() {
     chmod a+x ${WORKDIR}/${DMAIBRANCH}/davinci_multimedia_application_interface/release.sh
     chmod a+x ${WORKDIR}/${DMAIBRANCH}/davinci_multimedia_application_interface/tdox
     sed -i 's|tdox|./tdox|g'
${WORKDIR}/${DMAIBRANCH}/davinci_multimedia_application_interface/release.sh
+    rm -rf ${WORKDIR}/${DMAIBRANCH}/davinci_multimedia_application_interface/dmai_${PV}/*
     (cd ${WORKDIR}/${DMAIBRANCH}/davinci_multimedia_application_interface;
./release.sh ${PV})
 }


This is rather awful...but then the recipe is rather crazy as-is ;-).
If anyone can suggest a cleaner fix, I'm happy to test and help out
getting it upstream.

--Ash

On Mon, Jun 9, 2014 at 11:11 PM, dilipkumar <[hidden email]> wrote:

> vin047 wrote
>> experienced a similar problem today. close look at the directory where
>> ti-dmai source files are downloaded shows that the svn repository has not
>> been downloaded yet, and hence you get "no file to patch" errors; it's
>> trying to patch source files that haven't been downloaded yet.
>>
>> i solved this by removing the patches from the recipe. this prevents
>> bitbake from failing and so allows the svn repo to download, but the build
>> failed (probably because the patches are needed for successful build). so,
>> without cleaning, i add back the patches to the recipe and issue bitbake
>> again. Seemed to work.
>>
>> Would love someone to figure out a proper fix for this though.
>
> *Hi vin,
>
> I'm facing a similar error when building ti-dmai using yocto. Could you be a
> little more specific and explain which files you changed to get it working?
> These are the errors I get :
> *
> ERROR: Command Error: exit status: 1  Output:
> Applying patch omap3530-r642-remove-include-videodev.diff
> can't find file to patch at input line 18
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |From 06c4cfeec98f4f1e31543878ceb74c5fff1907e4 Mon Sep 17 00:00:00 2001
> |From: Enrico Butera <[hidden email]>
> |Date: Thu, 22 Dec 2011 11:01:58 +0100
> |Subject: [PATCH 1/2] adjust videdev headers for recent kernels
> |
> |Signed-off-by: Koen Kooi <[hidden email]>
> |---
> | .../packages/ti/sdo/dmai/linux/omap3530/Capture.c  |    1 -
> | .../ti/sdo/dmai/linux/omap3530/Display_v4l2.c      |    1 -
> | .../ti/sdo/dmai/linux/omap3530/_VideoBuf.c         |    1 -
> | .../ti/sdo/dmai/linux/omap3530/priv/_VideoBuf.h    |    1 -
> | 4 files changed, 0 insertions(+), 4 deletions(-)
> |
> |diff --git
> a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Capture.c
> b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Capture.c
> |index a924169..c2b45d2 100644
> |---
> a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Capture.c
> |+++
> b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Capture.c
> --------------------------
> No file to patch.  Skipping patch.
> 1 out of 1 hunk ignored
> can't find file to patch at input line 30
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |diff --git
> a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Display_v4l2.c
> b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Display_v4l2.c
> |index 0d01b39..0c35efe 100644
> |---
> a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Display_v4l2.c
> |+++
> b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Display_v4l2.c
> --------------------------
> No file to patch.  Skipping patch.
> 1 out of 1 hunk ignored
> can't find file to patch at input line 42
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |diff --git
> a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/_VideoBuf.c
> b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/_VideoBuf.c
> |index 5615e2f..5cb712d 100644
> |---
> a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/_VideoBuf.c
> |+++
> b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/_VideoBuf.c
> --------------------------
> No file to patch.  Skipping patch.
> 1 out of 1 hunk ignored
> can't find file to patch at input line 54
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |diff --git
> a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/priv/_VideoBuf.h
> b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/priv/_VideoBuf.h
> |index b2128a3..dbaa4eb 100644
> |---
> a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/priv/_VideoBuf.h
> |+++
> b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/priv/_VideoBuf.h
> --------------------------
> No file to patch.  Skipping patch.
> 1 out of 1 hunk ignored
> Patch omap3530-r642-remove-include-videodev.diff does not apply (enforce
> with -f)
> ERROR: Function failed: patch_do_patch
> ERROR: Logfile of failure stored in: <path to yocto
> dir>/build/tmp/work/overo-poky-linux-gnueabi/ti-dmai/1_2_10_00_01+svnr642-r1o/temp/log.do_patch.9233
> ERROR: Task 1630 (<path to yocto
> dir>/poky/meta-ti/recipes-ti/dmai/ti-dmai_svn.bb, do_patch) failed with exit
> code '1'
>
>
> *So I removed these patch files files from ti-dmai_svn.bb file by commenting
> the 3 lines*
>
> #SRC_URI_append = "
> file://omap3530-r642-remove-include-videodev.diff;striplevel=3 \
> #                   file://r642-fix-config-bld.diff;striplevel=3 \
> #                 "
>
> *Now I'm getting this error when i try to bitbake*
>
> ERROR: Function failed: ti-dmai: LIC_FILES_CHKSUM points to an invalid file:
> <path to yocto
> dir>/build/tmp/work/overo-poky-linux-gnueabi/ti-dmai/1_2_10_00_01+svnr642-r1o/trunk/davinci_multimedia_application_interface/dmai_2_10_00_01+svnr642/dmai/dmai_2_10_00_01+svnr642_License.html
> ERROR: Logfile of failure stored in: <path to yocto
> dir>/build/tmp/work/overo-poky-linux-gnueabi/ti-dmai/1_2_10_00_01+svnr642-r1o/temp/log.do_configure.10301
> Log data follows:
> | DEBUG: Executing python function sysroot_cleansstate
> | DEBUG: Python function sysroot_cleansstate finished
> | DEBUG: Executing shell function do_configure
> | DEBUG: Shell function do_configure finished
> | DEBUG: Executing python function do_qa_configure
> | NOTE: Checking autotools environment for common misconfiguration
> | DEBUG: Python function do_qa_configure finished
> | ERROR: Function failed: ti-dmai: LIC_FILES_CHKSUM points to an invalid
> file: <path to yocto
> dir>/build/tmp/work/overo-poky-linux-gnueabi/ti-dmai/1_2_10_00_01+svnr642-r1o/trunk/davinci_multimedia_application_interface/dmai_2_10_00_01+svnr642/dmai/dmai_2_10_00_01+svnr642_License.html
> ERROR: Task 1634 (<path to yocto
> dir>/poky/meta-ti/recipes-ti/dmai/ti-dmai_svn.bb, do_configure) failed with
> exit code '1'
> *
> On checking, the file "dmai_2_10_00_01+svnr642_License.html" is missing.
> Even after the changes I made, the required files are not being downloaded.
> Has anybody else faced this issue? How do i get past this?*
>
>
>
>
> --
> View this message in context: http://gumstix.8.x6.nabble.com/Problem-in-xdctools-of-meta-ti-layer-when-building-Yocto-projcet-tp4969144p4969245.html
> Sent from the Gumstix mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
> Find What Matters Most in Your Big Data with HPCC Systems
> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
> http://p.sf.net/sfu/hpccsystems
> _______________________________________________
> gumstix-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gumstix-users

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Loading...