主题 : 最新android4源码编译打包后在tiny210v2上跑不起来? 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 7283
精华: 0
发帖: 38
金钱: 215 两
威望: 59 点
综合积分: 76 分
注册时间: 2009-07-08
最后登录: 2016-03-28
楼主  发表于: 2013-02-25 09:57

 最新android4源码编译打包后在tiny210v2上跑不起来?

最新android4源码编译打包后在tiny210v2上跑不起来,应该怎么办呀?

周末在tiny210v2上,花了一天折腾这个源码包,最终编译打包可以成功,但是烧录下去后,在内核可以启动,但android部分不正常,始终停留在小企鹅界面,连android的logo都没看到。
adb shell进去,看到的也都是乱七八糟的东西。

这个源码包不知版主都试过没有。

编译android 4过程中,也是非常多的错误,当然这些通过网罗后都解决了。 可是现在跑不起来。应该怎么办呢?唉。。。。


源码来源
http://www.aiothome.net/read.php?tid-17639.html 一帖在手与时俱进,友善210平台Android4.0更新记录篇(—2013.02.21)


自由,自强,共享,共创。
级别: 论坛版主
UID: 12573
精华: 27
发帖: 8838
金钱: 46490 两
威望: 9298 点
综合积分: 18216 分
注册时间: 2010-01-09
最后登录: 2019-07-16
1楼  发表于: 2013-02-25 10:14
这个太老了,请下载2013-2-21版本的吧

我们发布下载的代码和烧写文件都是经过测试的。
新手如何向我们反馈有效的信息,以便解决问题,见此贴:
http://www.arm9home.net/read.php?tid-14431.html

[注]: 此处签名链接仅为指引方向,而非解答问题本身.
级别: 新手上路
UID: 7283
精华: 0
发帖: 38
金钱: 215 两
威望: 59 点
综合积分: 76 分
注册时间: 2009-07-08
最后登录: 2016-03-28
2楼  发表于: 2013-02-25 10:27
是最新2013-02-21版本的

是从百度云盘下载的
http://pan.baidu.com/share/link?shareid=286678&uk=959766272#dir/path=%2F210%2F210-A%2FAndroid
源码包文件名是  android-4.0.3_r1-fs-20130219.tar.gz
级别: 总版主
UID: 45585
精华: 3
发帖: 628
金钱: 3375 两
威望: 675 点
综合积分: 1316 分
注册时间: 2011-05-06
最后登录: 2018-10-18
3楼  发表于: 2013-02-25 12:48
什么系统编译的,如何编译,编译后如何生成IMAGE的?
级别: 新手上路
UID: 73200
精华: 0
发帖: 39
金钱: 195 两
威望: 39 点
综合积分: 78 分
注册时间: 2012-07-05
最后登录: 2014-02-12
4楼  发表于: 2013-02-25 15:17
<命令行>:0:0: 警告: “_FORTIFY_SOURCE”重定义 [默认启用]
frameworks/base/tools/aapt/CrunchCache.cpp:1:0: 附注: 这是先前定义的位置
In file included from frameworks/base/include/utils/AssetManager.h:25:0,
                 from frameworks/base/tools/aapt/AaptAssets.h:10,
                 from frameworks/base/tools/aapt/AaptAssets.cpp:5:
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android::DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp<AaptSymbols>]’:
frameworks/base/tools/aapt/AaptAssets.h:446:59:   required from here
frameworks/base/include/utils/KeyedVector.h:193:31: 错误: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:193:31: 附注: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptSymbols> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: 附注: use ‘this->indexOfKey’ instead
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android::DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp<AaptGroup>]’:
frameworks/base/tools/aapt/AaptAssets.cpp:1636:41:   required from here
frameworks/base/include/utils/KeyedVector.h:193:31: 错误: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:193:31: 附注: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptGroup> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: 附注: use ‘this->indexOfKey’ instead
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android::DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp<AaptDir>]’:
frameworks/base/tools/aapt/AaptAssets.cpp:1700:53:   required from here
frameworks/base/include/utils/KeyedVector.h:193:31: 错误: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:193:31: 附注: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptDir> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: 附注: use ‘this->indexOfKey’ instead
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/AaptAssets.o] 错误 1
make: *** 正在等待未完成的任务....
In file included from frameworks/base/tools/aapt/FileFinder.h:14:0,
                 from frameworks/base/tools/aapt/CrunchCache.cpp:12:
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android::DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp<AaptSymbols>]’:
frameworks/base/tools/aapt/AaptAssets.h:446:59:   required from here
frameworks/base/include/utils/KeyedVector.h:193:31: 错误: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:193:31: 附注: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptSymbols> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: 附注: use ‘this->indexOfKey’ instead
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android::DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String16; VALUE = unsigned int]’:
frameworks/base/tools/aapt/ResourceTable.h:485:100:   required from here
frameworks/base/include/utils/KeyedVector.h:193:31: 错误: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:193:31: 附注: declarations in dependent base ‘android::KeyedVector<android::String16, unsigned int>’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: 附注: use ‘this->indexOfKey’ instead
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android::DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = long int]’:
frameworks/base/tools/aapt/CrunchCache.cpp:101:87:   required from here
frameworks/base/include/utils/KeyedVector.h:193:31: 错误: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:193:31: 附注: declarations in dependent base ‘android::KeyedVector<android::String8, long int>’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: 附注: use ‘this->indexOfKey’ instead
In file included from frameworks/base/include/utils/AssetManager.h:25:0,
                 from frameworks/base/tools/aapt/AaptAssets.h:10,
                 from frameworks/base/tools/aapt/Main.h:14,
                 from frameworks/base/tools/aapt/Command.cpp:6:
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android::DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp<AaptSymbols>]’:
frameworks/base/tools/aapt/AaptAssets.h:446:59:   required from here
frameworks/base/include/utils/KeyedVector.h:193:31: 错误: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:193:31: 附注: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptSymbols> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: 附注: use ‘this->indexOfKey’ instead
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android::DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String16; VALUE = unsigned int]’:
frameworks/base/tools/aapt/ResourceTable.h:485:100:   required from here
frameworks/base/include/utils/KeyedVector.h:193:31: 错误: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:193:31: 附注: declarations in dependent base ‘android::KeyedVector<android::String16, unsigned int>’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: 附注: use ‘this->indexOfKey’ instead
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/CrunchCache.o] 错误 1
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/Command.o] 错误 1


请版主关注下,我在64位ubuntu 12.10下编译不过,我是从云盘下载的android-4.0.3_r1-fs-20130219.tar.gz
级别: 新手上路
UID: 7283
精华: 0
发帖: 38
金钱: 215 两
威望: 59 点
综合积分: 76 分
注册时间: 2009-07-08
最后登录: 2016-03-28
5楼  发表于: 2013-02-25 16:02
引用第3楼xoom于2013-02-25 12:48发表的  :
什么系统编译的,如何编译,编译后如何生成IMAGE的?

我是基于 32位 ubuntu 12.10系统
交叉编译器 arm-linux-gcc 4.5.1
gcc       g++          4.4.7

编译是运行的 android-4.0.3_r1 目录中的 build-android,
然后执行  genrootfs.sh  生成 rootfs_dir目录,
最后执行  mkyaffs2image-mlc2  rootfs_dir rootfs_android-mlc2.img


新买的tiny210v2,sp3232芯片究竟是坏的,刚换了个max 3232,看到了串口的信息。。。
[   11.741286] FriendlyARM http://www.arm9.net
[   11.849291] asoc: wm8960-hifi <-> samsung-i2s.0 mapping ok
[   11.885097] input: ft5x0x_ts as /devices/virtual/input/input3
[   11.897636] ft5x0x_ts 2-0038: Firmware version 0x11
[   11.897686] ft5x0x_ts 2-0038: FocalTech ft5x0x 7 TouchScreen initialized
[   12.051905] Compat-wireless backport release: compat-wireless-2012-05-04
[   12.051967] Backport based on linux-next.git next-20120510
[   12.103432] cfg80211: Calling CRDA to update world regulatory domain
[   12.131381] libertas_sdio: Libertas SDIO driver
[   12.131427] libertas_sdio: Copyright Pierre Ossman
[   12.339814] usbcore: registered new interface driver ath9k_htc
[   12.370062] usbcore: registered new interface driver rt73usb
[   12.396910] usbcore: registered new interface driver rt2800usb
[   12.559495]
[   12.559501] rtw driver version=v3.3.2_3192.20120103
[   12.559560] ##########rtw_suspend_lock_init ###########
[   12.559887] usbcore: registered new interface driver rtl8192cu
[   12.582146] usbcore: registered new interface driver zd1211rw  串口看到,最后一行就停在这,不动了。。。



另外4楼遇到 的问题我 也遇到了,解决方法已经整理在我的空间中了 http://hi.baidu.com/9562512/item/f7a379e477a021c3bbf37dee
[ 此帖被baiyygtfj在2013-02-25 16:27重新编辑 ]
级别: 新手上路
UID: 7283
精华: 0
发帖: 38
金钱: 215 两
威望: 59 点
综合积分: 76 分
注册时间: 2009-07-08
最后登录: 2016-03-28
6楼  发表于: 2013-02-26 09:19
呵呵,系统换成Fedora搞定。

但是目前看起来启动时间太长,从上电到android主界面出来80秒,不知有没有办法提速。
[ 此帖被baiyygtfj在2013-02-26 09:31重新编辑 ]
级别: 新手上路
UID: 73200
精华: 0
发帖: 39
金钱: 195 两
威望: 39 点
综合积分: 78 分
注册时间: 2012-07-05
最后登录: 2014-02-12
7楼  发表于: 2013-02-28 15:18
谢谢楼主,按照你的方式,是可以解决编译问题的。
不过我现在不想用android了,跑debian就可以解决我的问题了:)