Android5.1 SDK 下载编译问题
按WIKI步骤,打算编译内核玩玩,弄了一天了没成功,原因是 Android5.1 SDK 下载极慢,卡在这个步骤:git pull bitbucket Firefly-RK3288:Firefly-RK3288我的是Firefly-RK3288-Reload板,git reset --hard后,编译内核,提示:
*** Can't find default configuration "arch/arm/configs/firefly-rk3288-reload_defconfig"!
然后就想用git pull bitbucket Firefly-RK3288:Firefly-RK3288更新,经过几个小时的漫长等待,结果没更新成功。
提示
remote: Counting objects: 20378, done.
remote: Compressing objects: 100% (16377/16377), done.
error: RPC failed; result=18, HTTP code = 200MiB | 45 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
下载 Android SDK
由于 SDK 比较大,请选择以下云盘之一下载 firefly-rk3288_android5.1_git_20150910.tar:
百度云盘
Google Drive
下载完成后先验证一下 MD5 码:
$ md5sum /path/to/firefly-rk3288_android5.1_git_20150910.tar
83a07f127abe57482047a417f29e3115firefly-rk3288_android5.1_git_20150910.tar
确认无误后,就可以解压:
mkdir -p ~/proj/firefly-rk3288-lollipop
cd ~/proj/firefly-rk3288-lollipop
tar xf /path/to/firefly-rk3288_android5.1_git_20150910.tar
git reset --hard
# git remote add bitbucket https://bitbucket.org/T-Firefly/firenow-lollipop.git
以后就可以直接从 bitbucket 处更新:
git pull bitbucket Firefly-RK3288:Firefly-RK3288 remote: Counting objects: 430442, done.
remote: Compressing objects: 100% (1597/1597), done.
Receiving objects:11% (47410/430442), 89.73 MiB | 4 KiB/s
尝试了几次,几个小时又过去了,卡在这里一动不动。 root@ubuntu:/home/lsc/RK3288/Android5.1# git pull bitbucket Firefly-RK3288:Firefly-RK3288
remote: Counting objects: 20378, done.
remote: Compressing objects: 100% (16377/16377), done.
Receiving objects:73% (15014/20378), 29.15 MiB | 28 KiB/s
又不动了。 本帖最后由 firefly8 于 2016-8-3 07:07 编辑
root@ubuntu:/home/lsc/RK3288/Android5.1# git pull bitbucket Firefly-RK3288:Firefly-RK3288
remote: Counting objects: 20378, done.
remote: Compressing objects: 100% (16377/16377), done.
error: RPC failed; result=18, HTTP code = 200 MiB | 27 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
放了一个晚上,结果是这样。
git pull bitbucket Firefly-RK3288:Firefly-RK3288 一早起来重新pull,速度能到600KIB/S root@ubuntu:/home/lsc/RK3288/Android5.1# git pull bitbucket Firefly-RK3288:Firefly-RK3288
remote: Counting objects: 20378, done.
remote: Compressing objects: 100% (16377/16377), done.
remote: Total 20378 (delta 11368), reused 4044 (delta 2305)
Receiving objects: 100% (20378/20378), 286.98 MiB | 586 KiB/s, done.
Resolving deltas: 100% (11368/11368), done.
From https://bitbucket.org/T-Firefly/firenow-lollipop
8edf8bc..3daaa76Firefly-RK3288 -> Firefly-RK3288
* FirePrime_Android5.1_201506260948 -> FirePrime_Android5.1_201506260948
* FirePrime_Android5.1_201507211424 -> FirePrime_Android5.1_201507211424
* rk312x_android5.1_rel_v1.09_0529 -> rk312x_android5.1_rel_v1.09_0529
* rk312x_android5.1_rel_v1.10_0603 -> rk312x_android5.1_rel_v1.10_0603
From https://bitbucket.org/T-Firefly/firenow-lollipop
* Firefly-RK3288-Reload_Android5.1_201603151017 -> Firefly-RK3288-Reload_Android5.1_201603151017
* Firefly-RK3288_Android5.1_201607151016 -> Firefly-RK3288_Android5.1_201607151016
* rk3288_box_android-5.1_v2.00 -> rk3288_box_android-5.1_v2.00
Warning: fetch updated the current branch head.
Warning: fast-forwarding your working tree from
Warning: commit 8edf8bc1e1655f488bef409d848320977c5af641.
error: Entry 'kernel/scripts/kconfig/mconf' not uptodate. Cannot merge.
Cannot fast-forward your working tree.
After making sure that you saved anything precious from
$ git diff 8edf8bc1e1655f488bef409d848320977c5af641
output, run
$ git reset --hard
to recover.
root@ubuntu:/home/lsc/RK3288/Android5.1# firefly8 发表于 2016-8-3 07:13
root@ubuntu:/home/lsc/RK3288/Android5.1# git pull bitbucket Firefly-RK3288:Firefly-RK3288
remote: C ...
无数次尝试,这算更新成功了吧 但是这个目录下kernel/arch/arm/configs/为什么还是没有firefly-rk3288-reload_defconfig?
*** Can't find default configuration "arch/arm/configs/firefly-rk3288-reload_defconfig"! 本帖最后由 firefly8 于 2016-8-3 07:21 编辑
/RK3288/Android5.1/kernel# make firefly-rk3288-reload_defconfig
***
*** Can't find default configuration "arch/arm/configs/firefly-rk3288-reload_defconfig"!
***
make: *** Error 1
make: *** Error 2
这个问题怎么解决呢,我是新手请指点 看看,,,arch/arm/configs/ 这个路径下,,,有firefly-rk3288-reload_defconfig这个文件吗?