All of lore.kernel.org
 help / color / mirror / Atom feed
* Kernel git repo fetch issue
@ 2015-04-29 15:21 Joel (Xi Zhou) Zhou
  2015-04-29 15:29 ` Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Joel (Xi Zhou) Zhou @ 2015-04-29 15:21 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 664 bytes --]

Hi all,

We have an in-house git repo for Linux kernel:
ssh://svcswgit@git-ccxsw.inhouse.com/linux-lsk

So in linux-lsk_3.14.29.bb file, we define:
SRC_URI = "ssh://svcswgit@git-ccxsw.inhouse.com/linux-lsk;bareclone=1;branch=${KBRANCH}"

Then 'bitbake linux-lsk' can't fetch the URL:

ERROR: Fetcher failure: Fetch command failed with exit code 1, output:
FATAL: unknown git/gitolite command: 'scp -r -f linux-linaro-stable'

ERROR: Function failed: Fetcher failure for URL: ' ssh://svcswgit@git-ccxsw.inhouse.com/linux-lsk;bareclone=1;branch=3.14_common_dev'. Unable to fetch URL from any source.

Any idea how to fix this issue?

Thanks,
Joel

[-- Attachment #2: Type: text/html, Size: 3104 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Kernel git repo fetch issue
  2015-04-29 15:21 Kernel git repo fetch issue Joel (Xi Zhou) Zhou
@ 2015-04-29 15:29 ` Khem Raj
  2015-04-29 17:16   ` Joel (Xi Zhou) Zhou
  0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2015-04-29 15:29 UTC (permalink / raw)
  To: Joel (Xi Zhou) Zhou; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 666 bytes --]


> On Apr 29, 2015, at 8:21 AM, Joel (Xi Zhou) Zhou <joel.zhou@broadcom.com> wrote:
> 
> So in linux-lsk_3.14.29.bb file, we define:
> SRC_URI = "ssh://svcswgit@git-ccxsw.inhouse.com/linux-lsk;bareclone=1;branch=${KBRANCH} <ssh://svcswgit@git-ccxsw.inhouse.com/linux-lsk;bareclone=1;branch=${KBRANCH}>"
> 


create a .netrc in your home folder like

machine  git-ccxsw.inhouse.com <http://git-ssxsw.inhouse.com/> login svcswgit  password <passwd>


then change the SRC_URI to something

SRC_URI = “git://git-ccxsw.inhouse.com/linux.lsk;bareclone=1;branch=<branch> <git://git-ccxsw.inhouse.com/linux.lsk;bareclone=1;branch=%3Cbranch%3E>;protocol=ssh"

[-- Attachment #2: Type: text/html, Size: 2266 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Kernel git repo fetch issue
  2015-04-29 15:29 ` Khem Raj
@ 2015-04-29 17:16   ` Joel (Xi Zhou) Zhou
  0 siblings, 0 replies; 3+ messages in thread
From: Joel (Xi Zhou) Zhou @ 2015-04-29 17:16 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1464 bytes --]

Thanks Khem.
The git repo can accessed by public key, so user/passwd are not need.
After changing the URL to this:
SRC_URI = "git://svcswgit@git-ccxsw.inhouse.com/linux-lsk;bareclone=1;branch=${KBRANCH};protocol=ssh"

Then “bitbake linux-lsk –c fetch” return no error, but the source folder in working directory is empty.
In log.do_fetch
DEBUG: Fetcher failure: Fetch command failed with exit code 8, output:
http://downloads.yoctoproject.org/mirror/sources/git2_git-ccxsw.rtp. inhouse.com. linux-lsk.tar.gz:
2015-04-29 12:49:36 ERROR 404: Not Found.

Thanks,
Joel
From: Khem Raj [mailto:raj.khem@gmail.com]
Sent: Wednesday, April 29, 2015 11:30 AM
To: Joel (Xi Zhou) Zhou
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] Kernel git repo fetch issue


On Apr 29, 2015, at 8:21 AM, Joel (Xi Zhou) Zhou <joel.zhou@broadcom.com<mailto:joel.zhou@broadcom.com>> wrote:

So in linux-lsk_3.14.29.bb file, we define:
SRC_URI = "ssh://svcswgit@git-ccxsw.inhouse.com/linux-lsk;bareclone=1;branch=${KBRANCH}<ssh://svcswgit@git-ccxsw.inhouse.com/linux-lsk;bareclone=1;branch=$%7bKBRANCH%7d>"



create a .netrc in your home folder like

machine  git-ccxsw.inhouse.com<http://git-ssxsw.inhouse.com> login svcswgit  password <passwd>


then change the SRC_URI to something

SRC_URI = “git://git-ccxsw.inhouse.com/linux.lsk;bareclone=1;branch=<branch><git://git-ccxsw.inhouse.com/linux.lsk;bareclone=1;branch=%3Cbranch%3E>;protocol=ssh"

[-- Attachment #2: Type: text/html, Size: 6774 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-29 17:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-29 15:21 Kernel git repo fetch issue Joel (Xi Zhou) Zhou
2015-04-29 15:29 ` Khem Raj
2015-04-29 17:16   ` Joel (Xi Zhou) Zhou

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.