asysbang

标题: 环境搭建 [打印本页]

作者: admin    时间: 2013-12-12 11:24
标题: 环境搭建
可以安装的iso下载地址
http://code.google.com/p/android-x86/downloads/list

可以编译的代码下载地址
http://www.android-x86.org/getsourcecode   

repo需要最新版本,否则repo init报错
================错误如下==================
      object 12fd10c20115046dcd2fbe468a45e566f38ffbc9
      type commit
      tag v1.12.7
      tagger Conley Owens <cco3@android.com> 1381959964 -0700

      repo 1.12.7

      gpg: Signature made Thu 17 Oct 2013 05:46:04 AM CST using RSA key ID 692B382C
      gpg: Can't check signature: public key not found
      error: could not verify the tag 'v1.12.7'
====================================


建议使用4.0 -ics 因为好像只有这个版本提供arm支持,如果为了体验android最新版本那么可以直接下载iso   ,有人说其他的iso都报错只有eeepc这个没问题,代验证


Arm-Translator 参考  http://www.charlesmaggs.com/home ... edded-linux/android
原来http://androvm.org  现在变成了  https://cloud.genymotion.com   不过genymotion1.1.0时还是支持arm的 最新的好像不支持了(公告中有提到,所以没敢更新最新版本测试)

repo sync 一直有问题,后来发现是prebuilt目录太大,同步特别慢,所以就在manifest.xml中注释掉了这个仓储,把其另外一个4.0的prebuilt目录拷贝过来用

===========编译过程问题==========
x86/external/llvm/lib/Support/Mutex.cpp:143: undefined reference to `pthread_mutex_trylock'
修改external/llvm/llvm-host-build.mk   添加LOCAL_LDLIBS := -lpthread -ldl


******************************
You have tried to change the API from what has been previously approved.

To make these errors go away, you have two choices:
   1) You can add "@hide" javadoc comments to the methods, etc. listed in the
      errors above.

   2) You can update current.txt by executing the following command:
         make update-api

      To submit the revised current.txt to the main Android repository,
      you will need approval.
******************************
因为api和android默认的不一致 所以需要  make update-api


一切顺利,可以安装iso,并且android系统正常运行了


=====================解决不能上网问题==============
因为用的笔记本所以有wifi网卡,但是还是折腾了好久才能上网
网络中选的是“桥接网卡”  界面名称 选的是 无线那个
高级中 控制芯片选的是PCnet-PCI II (Am79C970A)  因为这个之前用默认的一直不行

android系统启动后进入shell界面  然后dhcpcd eth0   然后setprop net.dns1 8.8.8.8  (这个可以配置到image里面)

shell中默认的ifconfig 不好用的话 可以用busybox  ifconfig

然后在设置中打开usb调试

然后可以用过adb connect xx.xx.xx.xx这样就可以看虚拟机中的log了






作者: admin    时间: 2013-12-16 13:39
iso待修改问题
1、添加net.dns1 property
2、自启动 dhcpcd eth0
3、修改获得网络状态函数,或者添加以太网模块




欢迎光临 asysbang (http://asysbang.com/) Powered by Discuz! X2.5