AnsweredAssumed Answered

Fetcher failure: Unable to find file file:

Question asked by Anshul khare on Sep 9, 2018
Latest reply on Sep 16, 2018 by Anshul khare

Hello All,

 i am trying to add patch in U-boot , i have build and installed as per the document QORIQ-SDK-2.0-1701-IC-REV0.pdf

to add a patch into a package i followed the below instructions,

 

1. cd <sdk-install-dir>/build_<machine>

2. bitbake -c cleansstate <package-name>

3. cd <RECIPE_FOLDER>

4. mkdir -p <RECIPE_FOLDER>/files

5. Copy patch into <RECIPE_FOLDER>/files

6. Modify <BB_FILE> and add follow content in package-name-<version>.bb file

SRC_URI += "file://<name-of-patch1>"

7. Rebuild this package:
bitbake <package-name>

 

in my case package name is u-boot and RECIPE_FOLDER is recipes-bsp.

i have appended the file u-boot-qoriq_2016.09.bb as

SRC_URI = "git://git.freescale.com/ppc/sdk/u-boot.git;nobranch=1"
SRCREV = "2735535eeb666cc440c0aeb46493eca9c4f8ab93"

SRC_URI += "file://0001-sample_check.patch"

after this when i am running command bitbake u-boot i am getting error in logs.

 

Fetcher failure: Unable to find file file://0001-sample_check.patch anywhere. The paths that were searched were:
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/u-boot-qoriq-2016.09+fslgit/fsl-qoriq
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/u-boot-qoriq/fsl-qoriq
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/files/fsl-qoriq
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/u-boot-qoriq-2016.09+fslgit/t2080rdb-64b
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/u-boot-qoriq/t2080rdb-64b
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/files/t2080rdb-64b
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/u-boot-qoriq-2016.09+fslgit/t2080
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/u-boot-qoriq/t2080
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/files/t2080
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/u-boot-qoriq-2016.09+fslgit/t2
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/u-boot-qoriq/t2
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/files/t2
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/u-boot-qoriq-2016.09+fslgit/qoriq
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/u-boot-qoriq/qoriq
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/files/qoriq
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/u-boot-qoriq-2016.09+fslgit/qoriq-ppc
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/u-boot-qoriq/qoriq-ppc
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/files/qoriq-ppc
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/u-boot-qoriq-2016.09+fslgit/e6500-64b
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/u-boot-qoriq/e6500-64b
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/files/e6500-64b
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/u-boot-qoriq-2016.09+fslgit/powerpc64
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/u-boot-qoriq/powerpc64
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/files/powerpc64
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/u-boot-qoriq-2016.09+fslgit/
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/u-boot-qoriq/
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/files/
    /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/downloads
ERROR: Function failed: Fetcher failure for URL: 'file://0001-sample_check.patch'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b/tmp/work/t2080rdb_64b-fsl-linux/u-boot-qoriq/2016.09+fslgit-r0/temp/log.do_fetch.31985
ERROR: Task 4 (/home/project/SDK-V2.0-1701/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1701/recipes-bsp/u-boot/u-boot-qoriq_2016.09.bb, do_fetch) failed with exit code '1'

 

 

what could be the issue.

 

regards,

Anshul

Outcomes