problem getting android source & kernel source from kernel.org

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

problem getting android source & kernel source from kernel.org

2,406 Views
CJLim
Contributor I
I'm having problems getting the andriod source & kernel source from kernel.org. Seems like it is still recovering. Is there anywhere else that I can download them with repo & git?
Tags (1)
0 Kudos
16 Replies

2,080 Views
JasonMoss
NXP Employee
NXP Employee

Patch is no longer necessary and has been removed to avoid confusion.

 

The r10.3 BSP has been updated with new instructions and is available for download from Freescale.com:

1.  Go to http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=IMX53_SW

2.  Scroll down to the SABRE for Tablet section and click on the 'i.MX53 Android 10.3 Source Code' link.


 

0 Kudos

2,080 Views
MichaelGale
Contributor II

It seems these instructions are all out of date -- most of the referenced Git servers do not exist. Is there a current set of instructions for the SABRE board when you want to build the Android OS, kernel, and boot loader? 

0 Kudos

2,080 Views
CJLim
Contributor I

Thanks everyone for your help. Managed to download everything following Jason's method.

However upon building Android image, I got the following error

cts/apps/CtsVerifier/tests/src/com/android/cts/verifier/CtsVerifierActivityTest.java:47: cannot find symbol
symbol  : variable welcome
location: class com.android.cts.verifier.R.id
        mWelcomeTextView = (TextView) mActivity.findViewById(R.id.welcome);
                                                                 ^
1 error
make: *** [out/target/common/obj/APPS/CtsVerifierTests_intermediates/classes-full-debug.jar] Error 41

 

Complete the build, I need to change the source to

mWelcomeTextView = (TextView) mActivity.findViewById(R.id.welcome_text);

Is this correct?

0 Kudos

2,080 Views
kevinkeryk
Contributor I

Thanks Jason!

 

I was able to clone that kernel repository just fine and checkout the v2.6.35.3 tag

 

The patches appear to apply just fine also.
0 Kudos

2,080 Views
AlbertoM_Scatto
Contributor I

Adeneo has kindly updated their FTP site with a patched download_android.sh!

You just need to download the fixed script :)

Thanks a lot Adeneo!

0 Kudos

2,080 Views
JasonMoss
NXP Employee
NXP Employee
Slight correction - note it should be "android-2.3.7_r1" and not "android_2.3.7_r1" ... for the repo init for 10.3.x ./repo init -u https://android.googlesource.com/platform/manifest -b android-2.3.7_r1
0 Kudos

2,080 Views
JasonMoss
NXP Employee
NXP Employee

Kevin - I should've included this in the original reply too :)

 

I haven't tried applying the patches with 10.2 ... but for 10.3 I used this for the git source:

 

"git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git kernel_imx"

 

See if that works for you too.

0 Kudos

2,080 Views
kevinkeryk
Contributor I

Thanks Jason!

 

Your patch works great for downloading vanilla Android sources but what about the kernel source?

 

The r10.2 download_android.sh script is performing the following to obtain kernel sources:

 

git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.35.y.git kernel_imx &&
cd kernel_imx &&
git checkout v2.6.35.3

 

Has anyone found an equivalent git source that will work okay when the QSB patches are applied?

0 Kudos

2,080 Views
daiane_angolini
NXP Employee
NXP Employee

It worked for me.

 

Thanks a lot.

0 Kudos

2,080 Views
AlbertoM_Scatto
Contributor I

Thanks Charles, this is the error that I get. As far as I understand it, it is still searching for the old repo on kernel.org.

 

[tdfs@Movy ~/i.MX53-QSB-Android-Gingerbread-Release4.0/scripts ]$ ./download_android.sh
/home/tdfs/i.MX53-QSB-Android-Gingerbread-Release4.0/install/imx-android-r10 already exists
Cowardly refusing to clobber it
Extracting FSL code...
Getting repo ...
from git://android.git.kernel.org/tools/repo.git
fatal: unable to connect to android.git.kernel.org:
android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused

[tdfs@Movy ~/i.MX53-QSB-Android-Gingerbread-Release4.0/scripts ]$

0 Kudos

2,080 Views
charleschang
Contributor III

could you list some the of error message ?

repo error or site error ?

Alberto M. Scattolo said:

I just estracted Adeneo i.MX53-QSB-Android-Gingerbread-Release4.0. I tryed to run scripts/download_android.sh and of course it fails because it points to kernel.org repo. Than I edited install/imx-android-r10.2/code/r10.2/default.xml and tryed download_android.sh and it fails again, for the same reason.

Where is my mistake? Thanks a lot!

0 Kudos

2,080 Views
AlbertoM_Scatto
Contributor I

I just estracted Adeneo i.MX53-QSB-Android-Gingerbread-Release4.0. I tryed to run scripts/download_android.sh and of course it fails because it points to kernel.org repo. Than I edited install/imx-android-r10.2/code/r10.2/default.xml and tryed download_android.sh and it fails again, for the same reason.

Where is my mistake? Thanks a lot!

0 Kudos

2,080 Views
charleschang
Contributor III

Thanks, this is a good replacement.

just modify the default.xml, then everythis is OK.


Lily Zhang said:

You can try to clone from Linaro android: http://android.git.linaro.org/gitweb
0 Kudos

2,080 Views
LilyZhang
Contributor I
You can try to clone from Linaro android: http://android.git.linaro.org/gitweb
0 Kudos

2,080 Views
charleschang
Contributor III
the android repo will be moved to
https://android.googlesource.com

and according this thread : https://groups.google.com/forum/#!topic/android-building/IwlEJtE1LsI

the alsa_lib, alsa_utils, alas_sound will not be included anymore.
0 Kudos

2,080 Views
AlbertoM_Scatto
Contributor I

I've the same problem.

According to this (https://groups.google.com/forum/#!msg/android-building/IwlEJtE1LsI/WtHcsPkUPMcJ) and this (http://source.android.com/source/downloading.html) I did these steps:

1. modified i.MX53-QSB-Android-Gingerbread-Release4.0/script/download_android.sh to download the repo bin by google

2. modified the reposity address and protocol (near line 100):

# ./repo init -u git://android.git.kernel.org/platform/manifest.git -b android-2.3.3_r1 || exit 1
./repo init -u https://android.googlesource.com/platform/manifest -b android-2.3.3_r1 || exit 1

 

Unfortnunately this seems not enought. I hope someone will help.

Thanks a lot.

0 Kudos