Problem in getting Android source code from Google repo

1,342 views
Skip to first unread message

srinivasan shanmugam

unread,
Nov 10, 2011, 6:13:59 PM11/10/11
to Repo and Gerrit Discussion
Hi,

As specified in the
i.MX Android R9.4 User Guide

in section
2. Build Android for i.MX
2.1 Get Android Source Code (Android/Kernel/U-Boot)

While getting the Android source code from Google repo, wen i was
executing the following step:

ubuntu@ubuntu-laptop:~/myandroid$ ./repo init -u
git://android.git.kernel.org/platform/manifest.git -b android-2.2.1_r1



I was facing the below problem while downloading the android-2.2.1_r1
in the terminal window of ubuntu


Getting manifest ...
from git://android.git.kernel.org/platform/manifest.git
android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)
fatal: cannot obtain manifest git://android.git.kernel.org/platform/manifest.git
ubuntu@ubuntu-laptop:~/myandroid$



Could ne body pls kindly do the needful in resolving the above issue
so that i can proceed further



ne help would be greatly appreciated



Awaiting for your replies

Thanks!

Srinivasan

mail id:sriniva...@gmail.com

Jean-Baptiste Queru

unread,
Nov 10, 2011, 8:14:27 PM11/10/11
to Repo and Gerrit Discussion
The server has moved.

Use "-u https://android.googlesource.com/platform/manifest" in your
repo init command.

You'll first need to have a recent version of repo:

curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo

JBQ

> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>

--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

srinivasan shanmugam

unread,
Nov 11, 2011, 2:15:18 AM11/11/11
to Repo and Gerrit Discussion

Hi Jean,
Thanks for your replies,

after i made the below changes & when i proceeded further i was again
facing sme different kind of issue ie.,

wen i started excecuting the repo sync command it was throwing the
below errors


ubuntu@ubuntu-laptop:~/myandroid$ repo sync
android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)
error: Cannot fetch platform/bionic
ubuntu@ubuntu-laptop:~/myandroid$

could u pls provide ne solutions for overcming this type of issue

Kindly do the needful as soon as possible,

Awaiting for your reply
Advanced thanks,
Srinivasan S
mail id:sriniva...@gmail.com

On Nov 11, 6:14 am, Jean-Baptiste Queru <j...@android.com> wrote:
> The server has moved.
>
> Use "-uhttps://android.googlesource.com/platform/manifest" in your
> repo init command.
>
> You'll first need to have a recent version of repo:
>
> curlhttps://dl-ssl.google.com/dl/googlesource/git-repo/repo> ~/bin/repo
> > mail id:srinivasan....@gmail.com
>
> > --
> > To unsubscribe, email repo-discuss...@googlegroups.com
> > More info athttp://groups.google.com/group/repo-discuss?hl=en

Magnus Bäck

unread,
Nov 11, 2011, 2:40:50 AM11/11/11
to Repo and Gerrit Discussion
On Friday, November 11, 2011 at 08:15 CET,
srinivasan shanmugam <sriniva...@gmail.com> wrote:

> after i made the below changes & when i proceeded further i was again
> facing sme different kind of issue ie.,
>
> wen i started excecuting the repo sync command it was throwing the
> below errors
>
>
> ubuntu@ubuntu-laptop:~/myandroid$ repo sync
> android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused
> fatal: unable to connect a socket (Connection refused)
> error: Cannot fetch platform/bionic
> ubuntu@ubuntu-laptop:~/myandroid$

It looks you didn't do anything of what JBQ said. Make sure you have the
most recent Repo version by curling it according to the previous
instructions. Then, run the following in a new directory:

repo init -u https://android.googlesource.com/platform/manifest
repo sync

I have a very hard time believing that this would cause the same
errors.

--
Magnus Bäck Opinions are my own and do not necessarily
SW Configuration Manager represent the ones of my employer, etc.
Sony Ericsson

srinivasan shanmugam

unread,
Nov 11, 2011, 4:54:03 AM11/11/11
to Repo and Gerrit Discussion
Hi,

I am facing the below problem in getting the kernel source code from
kernel.org with the tag of 2.6.35.3

ubuntu@ubuntu-laptop:~/IMX_Android$ git clone
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.35.y.git
kernel_imx
Initialized empty Git repository in /home/ubuntu/IMX_Android/
kernel_imx/.git/
fatal: The remote end hung up unexpectedly

Could ne body pls kindly do the needful in resolving the above issue
so that i can get the kernel source code downloaded without ne issues

ne help would be greatly appreciated

Advanced thnks,
Srinivasan
mail id:sriniva...@gmail.com




Get a clean kernel source code from kernel.org, and checkout the tag
of 2.6.35.3:
On Nov 11, 12:40 pm, Magnus Bäck <magnus.b...@sonyericsson.com> wrote:
> On Friday, November 11, 2011 at 08:15 CET,
>      srinivasan shanmugam <srinivasan....@gmail.com> wrote:
>
> > after i made the below changes & when i proceeded further i was again
> > facing sme different kind of issue ie.,
>
> > wen i started excecuting the repo sync command it was throwing the
> > below errors
>
> > ubuntu@ubuntu-laptop:~/myandroid$ repo sync
> > android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused
> > fatal: unable to connect a socket (Connection refused)
> > error: Cannot fetch platform/bionic
> > ubuntu@ubuntu-laptop:~/myandroid$
>
> It looks you didn't do anything of what JBQ said. Make sure you have the
> most recent Repo version by curling it according to the previous
> instructions. Then, run the following in a new directory:
>
>    repo init -uhttps://android.googlesource.com/platform/manifest
Reply all
Reply to author
Forward
0 new messages