Can not get the source from the 0xlab's Android distribution

1,309 views
Skip to first unread message

mr89...@gmail.com

unread,
Jan 10, 2012, 1:02:22 AM1/10/12
to 0xlab-discuss
I have a board Devkit8K, and i want to build image from source code.

According the website(http://code.google.com/p/0xdroid/wiki/Source?
tm=4),
first i get repo by typing command "curl -o ~/bin/repo
http://android.git.kernel.org/repo
".
Then do repo sync.
But, it shows the error message
"/home/charles/bin/repo: line 1: syntax error near unexpected token
`newline'
/home/charles/bin/repo: line 1: `<!DOCTYPE HTML PUBLIC "-//IETF//DTD
HTML 2.0//EN">'
"
Check the repo document : @ubuntu:~/bin$ more repo
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://android.googlesource.com/
repo">here</a
>.</p>
</body></html>

So, i get repo again, $ curl -o ~/bin/repo http://android.googlesource.com/repo
And, check it again, @ubuntu:~/bin$ more repo
<HTML>
<HEAD>
<TITLE>Not Found</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Not Found</H1>
<H2>Error 404</H2>
</BODY>
</HTML>

I still have the same error message, and can not download the source
code.
How can i do now?

Jim Huang

unread,
Jan 11, 2012, 2:37:53 PM1/11/12
to 0xlab-...@googlegroups.com
2012/1/10 mr89...@gmail.com <mr89...@gmail.com>:

> I have a board Devkit8K, and i want to build image from source code.
> Then do repo sync.
> But, it shows the error message
> "/home/charles/bin/repo: line 1: syntax error near unexpected token
> `newline'
> /home/charles/bin/repo: line 1: `<!DOCTYPE HTML PUBLIC "-//IETF//DTD
> HTML 2.0//EN">'

hi,

I think something wrong with gitorious. However, can you follow the
instructions mentioned in wiki?
http://code.google.com/p/0xdroid/wiki/0x7_leb_gingerbread

Thanks,
Jim Huang (jserv)
http://0xlab.org/

mr89...@gmail.com

unread,
Jan 13, 2012, 1:37:03 AM1/13/12
to 0xlab-...@googlegroups.com
Hi
 
I tryed, but had no luck.

/home/charles/bin/repo: line 1: syntax error near unexpected token `newline'
/home/charles/bin/repo: line 1: `<HTML>'
I think the root reason is the mistake repo file.
There is something wrong when i setup the repo file.
($ curl -o ~/bin/repo http://android.git.kernel.org/repo )
 
Do you have any other method to fix it?
Thanks.
 
CharlesKao
--
You received this message because you are subscribed to the Google Groups "0xlab-discuss" group.
To post to this group, send email to 0xlab-...@googlegroups.com.
To unsubscribe from this group, send email to 0xlab-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/0xlab-discuss?hl=en.


Jim Huang

unread,
Jan 13, 2012, 11:16:00 AM1/13/12
to 0xlab-...@googlegroups.com
2012/1/13 <mr89...@gmail.com>:

> I tryed, but had no luck.
>
> charles@ubuntu:~/Work_100G/DevKit8000/0xlab/0x7-leb-gingerbread$ repo init
> -u git://gitorious.org/0xdroid/manifest.git -b leb-0xdroid -m
> LEB-beaglexm.xml
>
> /home/charles/bin/repo: line 1: syntax error near unexpected token `newline'
> /home/charles/bin/repo: line 1: `<HTML>'
> I think the root reason is the mistake repo file.
> There is something wrong when i setup the repo file.
> ($ curl -o ~/bin/repo http://android.git.kernel.org/repo )

Hi !

The problem results from the incorrect 'repo'.

Please use the following instructions:
$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo

Reference:
http://source.android.com/source/downloading.html

Thanks for your report!

Sincerely,

Kerick

unread,
Jan 13, 2012, 10:47:39 PM1/13/12
to 0xlab-discuss
I encounter the same problem of repo before.
Yes,the problem results from the incorrect 'repo'.
Now I can repo sync but always stop in the same status following:

kerick@linuxmint ~/beagle-donut $ repo sync
Fetching projects: 65% (104/160) android.git.kernel.org[0:
149.20.4.77]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)
android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)
error: Cannot fetch platform/packages/apps/DeskClock

How to solve it?

thanks

On Jan 14, 12:16 am, Jim Huang <js...@0xlab.org> wrote:
> 2012/1/13  <mr894...@gmail.com>:
>
> > I tryed, but had no luck.
>
> > charles@ubuntu:~/Work_100G/DevKit8000/0xlab/0x7-leb-gingerbread$ repo init
> > -u git://gitorious.org/0xdroid/manifest.git -b leb-0xdroid -m
> > LEB-beaglexm.xml
>
> > /home/charles/bin/repo: line 1: syntax error near unexpected token `newline'
> > /home/charles/bin/repo: line 1: `<HTML>'
> > I think the root reason is the mistake repo file.
> > There is something wrong when i setup the repo file.
> > ($ curl -o ~/bin/repohttp://android.git.kernel.org/repo )
>
> Hi !
>
> The problem results from the incorrect 'repo'.
>
> Please use the following instructions:
> $ mkdir ~/bin
> $ PATH=~/bin:$PATH
> $ curlhttps://dl-ssl.google.com/dl/googlesource/git-repo/repo> ~/bin/repo

Jim Huang

unread,
Jan 16, 2012, 5:23:53 AM1/16/12
to 0xlab-...@googlegroups.com
2012/1/14 Kerick <keric...@gmail.com>:

> kerick@linuxmint ~/beagle-donut $ repo sync
> Fetching projects:  65% (104/160)  android.git.kernel.org[0:
> 149.20.4.77]: errno=Connection refused
> fatal: unable to connect a socket (Connection refused)
> android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused
> fatal: unable to connect a socket (Connection refused)
> error: Cannot fetch platform/packages/apps/DeskClock

hi Kerick,

You have to use the latest 'repo' from the following:

If you saw anything related to "android.git.kernel.org", try to lift
it. The old git server is no longer working.

Thanks for your patience.

mr89...@gmail.com

unread,
Jan 20, 2012, 5:15:56 AM1/20/12
to 0xlab-...@googlegroups.com
 
Hi
I have use the latest repo.
But i still have the same error message.
 
charles@ubuntu:~/Work_100G/DevKit8000/0xlab/beagle-eclair$ repo sync
Fetching projects:  64% (102/159)  android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused

fatal: unable to connect a socket (Connection refused)
android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)
error: Cannot fetch platform/packages/apps/DeskClock

Can not fetch projects from android.git.kernel.org.
And, i check the repo shell script, there's no related patterns "android.git.kernel.org"
What's wrong?
 
BR.
Charleskao

Jim Huang

unread,
Jan 20, 2012, 5:30:29 AM1/20/12
to 0xlab-...@googlegroups.com
2012/1/20 <mr89...@gmail.com>:

> I have use the latest repo.
> But i still have the same error message.
>
> charles@ubuntu:~/Work_100G/DevKit8000/0xlab/beagle-eclair$ repo sync
> Fetching projects:  64% (102/159)  android.git.kernel.org[0: 149.20.4.77]:
> errno=Connection refused

hi,

Thanks for reporting.

Please follow the instructions in wiki:
http://code.google.com/p/0xdroid/wiki/Source
http://code.google.com/p/0xdroid/wiki/0x7_leb_gingerbread

manifests should be already fixed according to new GIT schema.

Kerick

unread,
Jan 16, 2012, 8:54:51 AM1/16/12
to 0xlab-discuss
Hi Jserv,
Follow that you say, I still have the same problem...
I delete bin and .repo folder then do again from the website

kerick@linuxmint ~ $ mkdir ~/bin
kerick@linuxmint ~ $ PATH=~/bin:$PATH
kerick@linuxmint ~ $ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo
> ~/bin/repo
% Total % Received % Xferd Average Speed Time Time
Time Current
Dload Upload Total Spent
Left Speed
100 19933 100 19933 0 0 76307 0 --:--:-- --:--:--
--:--:-- 91857
kerick@linuxmint ~ $ chmod a+x ~/bin/repo
kerick@linuxmint ~ $ mkdir beagle-eclari
kerick@linuxmint ~ $ cd beagle-eclari/
kerick@linuxmint ~/beagle-eclari $ repo init -u git://gitorious.org/0xdroid/manifest.git
-b beagle-eclair

Your Name [Kerick]:
Your Email [kerick@linuxmint.(none)]:

Your identity is: Kerick <kerick@linuxmint.(none)>
is this correct [y/N]? y

repo initialized in /home/kerick

kerick@linuxmint ~/beagle-eclari $ repo sync
Fetching projects: 64% (102/159) android.git.kernel.org[0:
149.20.4.77]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)
android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused
error: Cannot fetch platform/packages/apps/DeskClock

I have download Android v4.0 and kernel src in AOSP by using repo
sync, but don't know why can't get 0xdroid.

Thanks.

On Jan 16, 6:23 pm, Jim Huang <js...@0xlab.org> wrote:
> 2012/1/14 Kerick <kerick0...@gmail.com>:
>
> > kerick@linuxmint ~/beagle-donut $ repo sync
> > Fetching projects:  65% (104/160)  android.git.kernel.org[0:
> > 149.20.4.77]: errno=Connection refused
> > fatal: unable to connect a socket (Connection refused)
> > android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused
> > fatal: unable to connect a socket (Connection refused)
> > error: Cannot fetch platform/packages/apps/DeskClock
>
> hi Kerick,
>
> You have to use the latest 'repo' from the following:
>     $ curlhttps://dl-ssl.google.com/dl/googlesource/git-repo/repo> ~/bin/repo

Kito Cheng

unread,
Jan 20, 2012, 5:23:53 AM1/20/12
to 0xlab-...@googlegroups.com
hi,

Can you check your repo by `repo --version`
and make sure which repo you executed by `which repo`?

Jim Huang

unread,
Jan 20, 2012, 7:50:50 AM1/20/12
to 0xlab-...@googlegroups.com
2012/1/16 Kerick <keric...@gmail.com>:

> Follow that you say, I still have the same problem...
[...]

> kerick@linuxmint ~ $ chmod a+x ~/bin/repo
> kerick@linuxmint ~ $ mkdir beagle-eclari
> kerick@linuxmint ~ $ cd beagle-eclari/
> kerick@linuxmint ~/beagle-eclari $ repo init -u git://gitorious.org/0xdroid/manifest.git
> -b beagle-eclair

hi Kerick,

I think that resulted from incorrect Android manifests used in repo.
The problem should be resolved now.

However, toward future 0xdroid development, we wish to merge into
upstream as possible as we can. Therefore, we work with CyanogenMod,
Linaro, and AOSP.

wendel...@gmail.com

unread,
Mar 29, 2012, 5:49:52 AM3/29/12
to 0xlab-...@googlegroups.com
I removed projects below in *.xml, then sync successfully.

<project name="platform/packages/apps/DeskClock" path="packages/apps/DeskClock" remote="korg" revision="92c9a6fe2e5a576de50d08e08a332a774f4cf2d4"/>
<project name="platform/packages/providers/ManagementProvider" path="packages/providers/ManagementProvider" remote="korg" revision="6353461f3b15fa035ccf99774d7e716021b511ed"/>
<project name="platform/packages/wallpapers/Basic" path="packages/wallpapers/Basic" remote="korg" revision="ea0f3e9deb05f2a77a616428db0d65d4579d013d"/>
<project name="platform/packages/wallpapers/LivePicker" path="packages/wallpapers/LivePicker" remote="korg" revision="20c7cfb334124a537c281c32cc8a13ec37d5957c"/>
<project name="platform/packages/wallpapers/MagicSmoke" path="packages/wallpapers/MagicSmoke" remote="korg" revision="e2bb5c459608224989dd3f9d5c462790c5f92332"/>
<project name="platform/packages/wallpapers/MusicVisualization" path="packages/wallpapers/MusicVisualization" remote="korg" revision="aaeb76551421f62f4a3140825faaa70e33a22f0f"/>
Reply all
Reply to author
Forward
0 new messages