* Copying the kernel in the poky directory
@ 2015-11-26 7:39 Deepika Teriar
2015-11-26 13:41 ` Bruce Ashfield
0 siblings, 1 reply; 4+ messages in thread
From: Deepika Teriar @ 2015-11-26 7:39 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 997 bytes --]
Hi
I am customizing yocto for beaglebone black
I do not want my kernel to get downloaded from the git after I clean the
build directory. So i have kept the linux-kernel directory with the name
kernel-3.14.29 in the poky directory.
And in the linux-yocto_3.14.bb file i have changed SRC_URI *from:*
SRC_URI = "git://
git.yoctoproject.org/linux-yocto-3.14.git;bareclone=1;branch=${KBRANCH},${KMETA};name=machine,meta
"
*to :*
SRC_URI = "file://${COREBASE}/kernel-3.14.29"
On compiling core-image-minimal I am getting the following error
*ERROR: ExpansionError during parsing
/home/deepika/bbb/poky/meta/recipes-kernel/linux/linux-yocto_3.14.bb
<http://linux-yocto_3.14.bb>: Failure expanding variable do_patch:
ExpansionError: Failure expanding variable SRCPV, expression was
${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher
failure: SRCREV was used yet no valid SCM was found in SRC_URI*
Can any one tell me the error?
Thanks
Deepika
[-- Attachment #2: Type: text/html, Size: 1385 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Copying the kernel in the poky directory 2015-11-26 7:39 Copying the kernel in the poky directory Deepika Teriar @ 2015-11-26 13:41 ` Bruce Ashfield 2015-11-27 6:55 ` Deepika Teriar 0 siblings, 1 reply; 4+ messages in thread From: Bruce Ashfield @ 2015-11-26 13:41 UTC (permalink / raw) To: Deepika Teriar, yocto On 15-11-26 02:39 AM, Deepika Teriar wrote: > Hi > > I am customizing yocto for beaglebone black > I do not want my kernel to get downloaded from the git after I clean the > build directory. So i have kept the linux-kernel directory with the name > kernel-3.14.29 in the poky directory. > And in the linux-yocto_3.14.bb <http://linux-yocto_3.14.bb> file i have > changed SRC_URI *from:* > > SRC_URI = > "git://git.yoctoproject.org/linux-yocto-3.14.git;bareclone=1;branch=${KBRANCH},${KMETA};name=machine,meta > <http://git.yoctoproject.org/linux-yocto-3.14.git;bareclone=1;branch=${KBRANCH},${KMETA};name=machine,meta>" > > *to :* > > SRC_URI = "file://${COREBASE}/kernel-3.14.29" > > On compiling core-image-minimal I am getting the following error > * > ERROR: ExpansionError during parsing > /home/deepika/bbb/poky/meta/recipes-kernel/linux/linux-yocto_3.14.bb > <http://linux-yocto_3.14.bb>: Failure expanding variable do_patch: > ExpansionError: Failure expanding variable SRCPV, expression was > ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: > Fetcher failure: SRCREV was used yet no valid SCM was found in SRC_URI > > * > Can any one tell me the error? You still need the git protocol, the fetcher can't determine what to do with the SRCREV. Try: SRC_URI = "git://${COREBASE}/kernel-3.14.29;protocol=file;bareclone=1;branch=${KBRANCH},${KMETA};name=machine,meta" Bruce > > Thanks > Deepika > > > > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Copying the kernel in the poky directory 2015-11-26 13:41 ` Bruce Ashfield @ 2015-11-27 6:55 ` Deepika Teriar 2015-11-27 19:54 ` Daniel. 0 siblings, 1 reply; 4+ messages in thread From: Deepika Teriar @ 2015-11-27 6:55 UTC (permalink / raw) To: Bruce Ashfield; +Cc: yocto [-- Attachment #1: Type: text/plain, Size: 3332 bytes --] Hi Bruce It was not successful. Its giving me a fetcher failure. *WARNING: Failed to fetch URL ftp://ftp.debian.org/debian/pool/main/b/base-passwd/base-passwd_3.5.29.tar.gz <ftp://ftp.debian.org/debian/pool/main/b/base-passwd/base-passwd_3.5.29.tar.gz>, attempting MIRRORS if availableWARNING: Failed to fetch URL git:///home/deepika/bbb/poky/kernel-3.14.29;protocol=file;bareclone=1;branch=standard/common-pc/base,meta;name=machine,meta, attempting MIRRORS if availableERROR: Fetcher failure: Fetch command failed with exit code 128, output:Cloning into bare repository '/home/deepika/bbb/poky/build/downloads/git2/.home.deepika.bbb.poky.kernel-3.14.29'...error: object directory /home/deepika/bbb/poky/build/downloads/git2/git.yoctoproject.org.linux-yocto-3.14.git/objects does not exist; check .git/objects/info/alternates.fatal: git upload-pack: cannot find object dbe5b52e93ff114b2c0f5da6f6af91f52c18f2b8:fatal: The remote end hung up unexpectedlyERROR: Function failed: Fetcher failure for URL: 'git:///home/deepika/bbb/poky/kernel-3.14.29;protocol=file;bareclone=1;branch=standard/common-pc/base,meta;name=machine,meta'. Unable to fetch URL from any source.ERROR: Logfile of failure stored in: /home/deepika/bbb/poky/build/tmp/work/qemux86-poky-linux/linux-yocto/3.14.29+gitAUTOINC+6eddbf4787_f6aa7aaca8-r0/temp/log.do_fetch.26206ERROR: Task 75 (/home/deepika/bbb/poky/meta/recipes-kernel/linux/linux-yocto_3.14.bb <http://linux-yocto_3.14.bb>, do_fetch) failed with exit code '1'* Can anyone help On Thu, Nov 26, 2015 at 7:11 PM, Bruce Ashfield < bruce.ashfield@windriver.com> wrote: > On 15-11-26 02:39 AM, Deepika Teriar wrote: > >> Hi >> >> I am customizing yocto for beaglebone black >> I do not want my kernel to get downloaded from the git after I clean the >> build directory. So i have kept the linux-kernel directory with the name >> kernel-3.14.29 in the poky directory. >> And in the linux-yocto_3.14.bb <http://linux-yocto_3.14.bb> file i have >> changed SRC_URI *from:* >> >> SRC_URI = >> "git:// >> git.yoctoproject.org/linux-yocto-3.14.git;bareclone=1;branch=${KBRANCH},${KMETA};name=machine,meta >> <http://git.yoctoproject.org/linux-yocto-3.14.git;bareclone=1;branch=$%7BKBRANCH%7D,$%7BKMETA%7D;name=machine,meta> >> < >> http://git.yoctoproject.org/linux-yocto-3.14.git;bareclone=1;branch=${KBRANCH},${KMETA};name=machine,meta >> >" >> >> *to :* >> >> SRC_URI = "file://${COREBASE}/kernel-3.14.29" >> >> On compiling core-image-minimal I am getting the following error >> * >> ERROR: ExpansionError during parsing >> /home/deepika/bbb/poky/meta/recipes-kernel/linux/linux-yocto_3.14.bb >> <http://linux-yocto_3.14.bb>: Failure expanding variable do_patch: >> ExpansionError: Failure expanding variable SRCPV, expression was >> ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: >> Fetcher failure: SRCREV was used yet no valid SCM was found in SRC_URI >> >> * >> Can any one tell me the error? >> > > You still need the git protocol, the fetcher can't determine what to > do with the SRCREV. > > Try: > > SRC_URI = > "git://${COREBASE}/kernel-3.14.29;protocol=file;bareclone=1;branch=${KBRANCH},${KMETA};name=machine,meta" > > Bruce > > >> Thanks >> Deepika >> >> >> >> >> > [-- Attachment #2: Type: text/html, Size: 4724 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Copying the kernel in the poky directory 2015-11-27 6:55 ` Deepika Teriar @ 2015-11-27 19:54 ` Daniel. 0 siblings, 0 replies; 4+ messages in thread From: Daniel. @ 2015-11-27 19:54 UTC (permalink / raw) To: Deepika Teriar; +Cc: yocto@yoctoproject.org A suggestion, Fork the wanted kernel tree and add a .bbappend at a custom layer. This way you can follow forked kernel updates and keep poky recipes clean. If you insist to keep things local, maybe this helps: http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#local-projects Regards, - dhs 2015-11-27 4:55 GMT-02:00 Deepika Teriar <deepteriar@gmail.com>: > Hi Bruce > > It was not successful. Its giving me a fetcher failure. > > WARNING: Failed to fetch URL > ftp://ftp.debian.org/debian/pool/main/b/base-passwd/base-passwd_3.5.29.tar.gz, > attempting MIRRORS if available > WARNING: Failed to fetch URL > git:///home/deepika/bbb/poky/kernel-3.14.29;protocol=file;bareclone=1;branch=standard/common-pc/base,meta;name=machine,meta, > attempting MIRRORS if available > ERROR: Fetcher failure: Fetch command failed with exit code 128, output: > Cloning into bare repository > '/home/deepika/bbb/poky/build/downloads/git2/.home.deepika.bbb.poky.kernel-3.14.29'... > > error: object directory > /home/deepika/bbb/poky/build/downloads/git2/git.yoctoproject.org.linux-yocto-3.14.git/objects > does not exist; check .git/objects/info/alternates. > fatal: git upload-pack: cannot find object > dbe5b52e93ff114b2c0f5da6f6af91f52c18f2b8: > fatal: The remote end hung up unexpectedly > > ERROR: Function failed: Fetcher failure for URL: > 'git:///home/deepika/bbb/poky/kernel-3.14.29;protocol=file;bareclone=1;branch=standard/common-pc/base,meta;name=machine,meta'. > Unable to fetch URL from any source. > ERROR: Logfile of failure stored in: > /home/deepika/bbb/poky/build/tmp/work/qemux86-poky-linux/linux-yocto/3.14.29+gitAUTOINC+6eddbf4787_f6aa7aaca8-r0/temp/log.do_fetch.26206 > ERROR: Task 75 > (/home/deepika/bbb/poky/meta/recipes-kernel/linux/linux-yocto_3.14.bb, > do_fetch) failed with exit code '1' > > Can anyone help > > > On Thu, Nov 26, 2015 at 7:11 PM, Bruce Ashfield > <bruce.ashfield@windriver.com> wrote: >> >> On 15-11-26 02:39 AM, Deepika Teriar wrote: >>> >>> Hi >>> >>> I am customizing yocto for beaglebone black >>> I do not want my kernel to get downloaded from the git after I clean the >>> build directory. So i have kept the linux-kernel directory with the name >>> kernel-3.14.29 in the poky directory. >>> And in the linux-yocto_3.14.bb <http://linux-yocto_3.14.bb> file i have >>> changed SRC_URI *from:* >>> >>> SRC_URI = >>> >>> "git://git.yoctoproject.org/linux-yocto-3.14.git;bareclone=1;branch=${KBRANCH},${KMETA};name=machine,meta >>> >>> <http://git.yoctoproject.org/linux-yocto-3.14.git;bareclone=1;branch=${KBRANCH},${KMETA};name=machine,meta>" >>> >>> *to :* >>> >>> SRC_URI = "file://${COREBASE}/kernel-3.14.29" >>> >>> On compiling core-image-minimal I am getting the following error >>> * >>> ERROR: ExpansionError during parsing >>> /home/deepika/bbb/poky/meta/recipes-kernel/linux/linux-yocto_3.14.bb >>> <http://linux-yocto_3.14.bb>: Failure expanding variable do_patch: >>> ExpansionError: Failure expanding variable SRCPV, expression was >>> ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: >>> Fetcher failure: SRCREV was used yet no valid SCM was found in SRC_URI >>> >>> * >>> Can any one tell me the error? >> >> >> You still need the git protocol, the fetcher can't determine what to >> do with the SRCREV. >> >> Try: >> >> SRC_URI = >> "git://${COREBASE}/kernel-3.14.29;protocol=file;bareclone=1;branch=${KBRANCH},${KMETA};name=machine,meta" >> >> Bruce >> >>> >>> Thanks >>> Deepika >>> >>> >>> >>> >> > > > -- > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto > -- "Do or do not. There is no try" Yoda Master ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-11-27 19:55 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-11-26 7:39 Copying the kernel in the poky directory Deepika Teriar 2015-11-26 13:41 ` Bruce Ashfield 2015-11-27 6:55 ` Deepika Teriar 2015-11-27 19:54 ` Daniel.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.