Firefly开源社区

标题: Android5.1 SDK 下载编译问题 [打印本页]

作者: firefly8    时间: 2016-8-2 22:06
标题: 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
83a07f127abe57482047a417f29e3115  firefly-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
作者: firefly8    时间: 2016-8-2 22:18
remote: Counting objects: 430442, done.
remote: Compressing objects: 100% (1597/1597), done.
Receiving objects:  11% (47410/430442), 89.73 MiB | 4 KiB/s  

尝试了几次,几个小时又过去了,卡在这里一动不动。
作者: firefly8    时间: 2016-8-2 23:03
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:04
本帖最后由 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
放了一个晚上,结果是这样。

作者: firefly8    时间: 2016-8-3 07:09
git pull bitbucket Firefly-RK3288:Firefly-RK3288 一早起来重新pull,速度能到600KIB/S
作者: firefly8    时间: 2016-8-3 07:13
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..3daaa76  Firefly-RK3288 -> Firefly-RK3288
* [new tag]         FirePrime_Android5.1_201506260948 -> FirePrime_Android5.1_201506260948
* [new tag]         FirePrime_Android5.1_201507211424 -> FirePrime_Android5.1_201507211424
* [new tag]         rk312x_android5.1_rel_v1.09_0529 -> rk312x_android5.1_rel_v1.09_0529
* [new tag]         rk312x_android5.1_rel_v1.10_0603 -> rk312x_android5.1_rel_v1.10_0603
From https://bitbucket.org/T-Firefly/firenow-lollipop
* [new tag]         Firefly-RK3288-Reload_Android5.1_201603151017 -> Firefly-RK3288-Reload_Android5.1_201603151017
* [new tag]         Firefly-RK3288_Android5.1_201607151016 -> Firefly-RK3288_Android5.1_201607151016
* [new tag]         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:14
firefly8 发表于 2016-8-3 07:13
root@ubuntu:/home/lsc/RK3288/Android5.1# git pull bitbucket Firefly-RK3288:Firefly-RK3288
remote: C ...

无数次尝试,这算更新成功了吧
作者: firefly8    时间: 2016-8-3 07:18
但是这个目录下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:20
本帖最后由 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[1]: *** [firefly-rk3288-reload_defconfig] Error 1
make: *** [firefly-rk3288-reload_defconfig] Error 2
这个问题怎么解决呢,我是新手请指点
作者: loading    时间: 2016-8-3 16:44
看看,,,arch/arm/configs/ 这个路径下,,,有firefly-rk3288-reload_defconfig这个文件吗?
作者: firefly8    时间: 2016-8-3 22:15
loading 发表于 2016-8-3 16:44
看看,,,arch/arm/configs/ 这个路径下,,,有firefly-rk3288-reload_defconfig这个文件吗?

找过了 没看到有。
作者: firefly8    时间: 2016-8-3 22:15
看过了,没有
作者: loading    时间: 2016-8-4 09:40
可能是你代码没更新好,或者是更新的分支有问题,我在他们托管网站有看到下面几个,供参考
https://bitbucket.org/T-Firefly/firenow-lollipop/
firefly-rk3288-reload-lcdTP_defconfig       
firefly-rk3288-reload-linux_defconfig       
firefly-rk3288-reload_defconfig
firefly-rk3288_defconfig
作者: firefly8    时间: 2016-8-4 11:49
本帖最后由 firefly8 于 2016-8-4 14:08 编辑

你说的对,知道上面有,但不知道怎么更新这个分支,请指教,谢谢:)
作者: firefly8    时间: 2016-8-6 07:21
lsc@ubuntu:~/rockchip/rk3288_android51$ git pull bitbucket Firefly-RK3288:Firefly-RK3288
remote: Counting objects: 20378, done.
remote: Compressing objects: 100% (16377/16377), done.
remote: Total 20378 (delta 11367), reused 4044 (delta 2305)
Receiving objects: 100% (20378/20378), 286.98 MiB | 592 KiB/s, done.
Resolving deltas: 100% (11367/11367), done.
From https://bitbucket.org/T-Firefly/firenow-lollipop
   8edf8bc..3daaa76  Firefly-RK3288 -> Firefly-RK3288
* [new tag]         FirePrime_Android5.1_201506260948 -> FirePrime_Android5.1_201506260948
* [new tag]         FirePrime_Android5.1_201507211424 -> FirePrime_Android5.1_201507211424
* [new tag]         rk312x_android5.1_rel_v1.09_0529 -> rk312x_android5.1_rel_v1.09_0529
* [new tag]         rk312x_android5.1_rel_v1.10_0603 -> rk312x_android5.1_rel_v1.10_0603
From https://bitbucket.org/T-Firefly/firenow-lollipop
* [new tag]         Firefly-RK3288-Reload_Android5.1_201603151017 -> Firefly-RK3288-Reload_Android5.1_201603151017
* [new tag]         Firefly-RK3288_Android5.1_201607151016 -> Firefly-RK3288_Android5.1_201607151016
* [new tag]         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.
Already up-to-date.

作者: firefly8    时间: 2016-8-6 07:33
本帖最后由 firefly8 于 2016-8-6 07:53 编辑

root@ubuntu:/home/lsc/rockchip/rk3288_android51# make menuconfig============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
TARGET_PRODUCT=rk3288_box
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a15
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.5.0-23-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=LMY49F
OUT_DIR=out
============================================
Checking build tools versions...
************************************************************
You are attempting to build with the incorrect version
of javac.

Your version is: javac 1.6.0_45.
The required version is: "1.7"

版本不对肿莫办
Please follow the machine setup instructions at
    https://source.android.com/source/download.html
************************************************************
build/core/main.mk:221: *** stop.  Stop.
root@ubuntu:/home/lsc/rockchip/rk3288_android51#
这个问题谁处理过?你们是怎么解决的呢

作者: firefly8    时间: 2016-8-6 07:48
本帖最后由 firefly8 于 2016-8-6 07:54 编辑

arch/arm/boot/compressed/atags_to_fdt.c: In function 'merge_fdt_bootargs':
arch/arm/boot/compressed/atags_to_fdt.c:96:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
  AS      arch/arm/boot/compressed/piggy.lzo.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  Image:  kernel.img is ready
Pack to resource.img successed!
  Image:  resource.img (with firefly-rk3288-reload.dtb logo.bmp ) is ready
lsc@ubuntu:~/rockchip/rk3288_android51/kernel$
内核编译怎么这么快,不用半小时就编译好了。

作者: carter123456    时间: 2017-4-10 10:59
请问你carterli@carterli:~/proj/fireprime$ git pull bitbucket fireprime:fireprime
remote: Counting objects: 10183, done.
remote: Compressing objects: 100% (4236/4236), done.
error: RPC failed; result=18, HTTP code = 200.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack failed
怎么解决的
作者: dianziit    时间: 2017-4-10 16:14
感恩无私的分享与奉献 :)

作者: Lambert    时间: 2017-5-24 21:50
请问楼主最后是怎么解决这个问题的?我也遇到了这个问题。
作者: mars_poll    时间: 2019-3-7 16:57
同样遇到了Can't find default configuration "arch/arm64/configs/firefly_linux_defconfig"




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1