- 浏览: 1579180 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (289)
- java 语法基础 (51)
- spring (8)
- mvc struct /Ant --build.xml (8)
- SOA (0)
- oracle 9i/10g (23)
- sql server 2000-2005 (3)
- 数据库基础知识 (6)
- 设计模式与软件架构 (10)
- Hibernate 持久化 (9)
- J2SE/J2EE/J2ME/AJAX 技术 (8)
- JSF 技术 (3)
- JAVA 图形化 (0)
- JMS (40)
- Eclipse 3.2 IDE 开发技巧 (13)
- 项目处理方法集合 (2)
- html/jsp/javascript (2)
- Unix/Linux (9)
- j2me/ARM/windriver/嵌入式 (4)
- 电信科学 (8)
- jsp (1)
- c/c++ (1)
- LZW压缩算法(java) (2)
- Android (77)
- 版本管理git/svn (2)
最新评论
-
huihai:
有demo吗?
NamingStrategy实现动态表名映射 -
cangbaotu:
推荐给大家一些有用的爬虫源码:https://github.c ...
网络爬虫(源代码参考) -
tuspark:
除了.classpath文件以外,.project文件也应该了 ...
Eclipse .classpath文件浅谈 -
tuspark:
造成eclipse自动关闭的原因有很多,这里有很多介绍:ecl ...
eclipse 自动关闭 解决方案 -
DEMONU:
网上都是这些,这种文章。。。
ActiveMQ中的消息持久性
To clone one of these trees, install git , and run:
git clone git://android.git.kernel.org/
+ project path.
To clone the entire platform, install repo , and run:
mkdir mydroid
cd mydroid
repo init -u git://android.git.kernel.org/platform/manifest.git
repo sync
For more information about git , see an overview
打算全部下载回来再说,先下载repo脚本
更多git和repo使用说明看这里:
http://source.android.com/download/using-repo
curl http://android.git.kernel.org/repo >repo
chmod +x repo
wen@debian:~/android/source$
./repo init -u git://android.git.kernel.org/platform/manifest.git
gpg: keyring `/home/wen/.repoconfig/gnupg/secring.gpg' created
gpg: keyring `/home/wen/.repoconfig/gnupg/pubring.gpg' created
gpg: /home/wen/.repoconfig/gnupg/trustdb.gpg: trustdb created
gpg: key 920F5C65: public key "Repo Maintainer <repo@android.kernel.org
>" imported
gpg: Total number processed: 1
gpg: imported: 1
Getting repo ...
from git://android.git.kernel.org/tools/repo.git
wen@debian:~/android/source$ ./repo sync
和远程服务器同步,过程比较长,全部代码下来好几Gb
打算编译一个vmware虚拟机上能运行的
目前google已经出e pc支持的版本了
切换到cupcake 分支,master分支不是太稳定
$ repo init -u git://android.git.kernel.org/platform/manifest.git -b
cupcake
$ repo sync
同步后,很多的更改会uncommit
建立一个local_manifest.xml
$ vi ./.repo/local_manifest.xml
<manifest>
<project name="platform/vendor/asus/eee_701" path="vendor/asus/
eee_701"/>
</manifest>
$ repo sync
... A new repo command ( 1.8) is available.
... You should upgrade soon:
cp /home/invain/bin_x86/mydroid/.repo/repo/repo /home/invain/bin/
repo
Initializing project platform/vendor/asus/eee_701 ...
remote: Counting objects: 33, done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 33 (delta 2), reused 33 (delta 2)
Unpacking objects: 100% (33/33), done.
From git://android.git.kernel.org/platform/vendor/asus/eee_701
* [new branch] cupcake -> korg/cupcake
* [new branch] master -> korg/master
Ubuntu Linux (32-bit x86)
- Required Packages:
- Git 1.5.4 or newer and the GNU Privacy Guard.
- Git 1.5.4 or newer and the GNU Privacy Guard.
-
- JDK 5.0, update 12 or higher. Java 6 is not supported, because of incompatibilities with @Override.
- JDK 5.0, update 12 or higher. Java 6 is not supported, because of incompatibilities with @Override.
-
- flex, bison, gperf, libsdl-dev, libesd0-dev, libwxgtk2.6-dev (optional), build-essential, zip, curl.
$ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl li b ncurses5-dev zlib1g-dev
- You might also want Valgrind, a tool that will help you find memory leaks, stack corruption, array bounds overflows, etc.
$ sudo apt-get install valgrind
- Intrepid ( 8.10) users may need a newer version of libreadline:
Device drivers / Network device support / Ethernet (10 or 100Mbit) / EISA, VLB, PCI and on board controllers / AMD PCnet32 PCI support
Device drivers / Graphics support / Support for frame buffer devices / VESA VGA graphics support
Device drivers / Graphics support / Console display driver support / Framebuffer Console support
Device drivers / Graphics support / Console display driver support / Select Compiled-in fonts (VGA 8x8 font, VGA 8x16 font)
,再把這些取消:
Device drivers / Real Time Clock / Android alarm driver
Device drivers / Misc devices / Android pmem allocator
,然後重新建置 kernel:make bzImage。
編譯好之後,把 arch/x86/boot/bzImage 複製為 mydroid/vendor/asus/eee_701/kernel。
TARGET_ARCH=x86 TARGET_PRODUCT=eee_701 DISABLE_DEXPREOPT=
true
make
-j2 installer_img CC=gcc CXX=g++
出现错误
No rule to make target `vendor/google/frameworks/maps/com.google.android.maps.xml'
把eee_701.mk中的 'generic_with_google.mk' 改为 'generic.mk'
编译遇到新错误
其他用户编译会提示没有找到e2fschk
这里不能简单的把文件从sbin目录复制到bin目录
否则会和root用户编译一样
出现下面的错误
Copy: out/target/product/eee_701/installer/root/system/bin/netcfg
Copying installer base files...
Copy: out/target/product/eee_701/obj/lib/libdiskconfig.so -> out/
target/product/eee_701/installer/root/system/lib/libdiskconfig.so
Copy: ->
dirname: missing operand
Try `dirname --help' for more information.
mkdir: missing operand
Try `mkdir --help' for more information.
cp: missing file operand
Try `cp --help' for more information.
Copy: ->
dirname: missing operand
Try `dirname --help' for more information.
mkdir: missing operand
Try `mkdir --help' for more information.
cp: missing file operand
Try `cp --help' for more information.
Copy: ->
dirname: missing operand
Try `dirname --help' for more information.
mkdir: missing operand
Try `mkdir --help' for more information.
cp: missing file operand
Try `cp --help' for more information.
Copy: ->
dirname: missing operand
Try `dirname --help' for more information.
mkdir: missing operand
Try `mkdir --help' for more information.
cp: missing file operand
Try `cp --help' for more information.
Copy: ->
dirname: missing operand
Try `dirname --help' for more information.
mkdir: missing operand
Try `mkdir --help' for more information.
cp: missing file operand
Try `cp --help' for more information.
Copy: ->
dirname: missing operand
Try `dirname --help' for more information.
mkdir: missing operand
Try `mkdir --help' for more information.
cp: missing file operand
Try `cp --help' for more information.
Copy: ->
dirname: missing operand
Try `dirname --help' for more information.
mkdir: missing operand
Try `mkdir --help' for more information.
cp: missing file operand
Try `cp --help' for more information.
Copy: ->
dirname: missing operand
Try `dirname --help' for more information.
mkdir: missing operand
Try `mkdir --help' for more information.
cp: missing file operand
android目录下的external/e2fsprogs 就是这些工具,没有编译而已
打下面的patch
project external/e2fsprogs/
diff --git a/Android.mk b/Android.mk
index e71cf08..3d39a41 100644
--- a/Android.mk
+++ b/Android.mk
@@ -1,3 +1,3 @@
-ifneq ($(TARGET_SIMULATOR),true)
-# include $(call all-subdir-makefiles)
+ifeq ($(TARGET_ARCH),x86)
+include $(call all-subdir-makefiles)
endif
这样e2fsprogs下面的工具就编译好了,可以在out/target/
发表评论
-
APN(default、mms、supl、dun、hipri接入点类型的区别)
2013-10-10 19:31 45606设置APN上网时,大家可能经常遇到这个问题:为什么有时要填写 ... -
AMR音频编码器概述及文件格式分析
2013-10-10 19:29 3915全称Adaptive Multi-Rate,自适应多速率编码 ... -
pad 强制加载 Hdpi资源 (2.3 dpi < 240)
2012-07-16 16:47 0pad 强制加载 Hdpi资源 (2.3 dpi < ... -
android 设计模式-享元模式
2011-12-16 23:01 2155享元(FlyWeight)模式,原意是“轻量级”模式,它用来解 ... -
statusbar 2.3
2011-11-08 16:04 1245以前我的文章分析过Stat ... -
android 输入法默认设置
2011-07-07 14:00 7149设置默认输入法 在 frameworks\base\co ... -
Android Media Scanner Process
2011-06-06 22:58 3358下面是系统图 Medi ... -
handler与多线程消息处理
2011-06-04 13:42 8244在Android下面也有多线程的概念,在C/C++中,子线程可 ... -
android light
2011-03-24 16:15 3383背光设置是在:设置->声音和显示->亮度,通过进度 ... -
PowerManagerService sensor
2011-03-22 20:06 2638默认分类 2010-12-24 14:34:55 阅读144 ... -
android 单例
2011-02-15 09:26 41911. Framework层的代码: A ... -
Android 开发之 Services 服务
2010-11-02 18:21 4196Service Service ... -
深入学习android之AlarmManager
2010-11-01 16:50 34684对应AlarmManage有一个Alarm ... -
eclipse+android+ddms+adt
2010-09-14 10:30 8394用eclipse + ADT作为android ... -
Menus
2010-09-05 19:01 1760Android Menus 文章分类:移动开发 1.O ... -
Android开机自启动应用开发
2010-08-28 10:07 4558目前需要开发一个开机自启动的GTD应用程序来提醒用户的 ... -
Android2.1_Launcher学习笔记
2010-08-11 13:40 3808文章分类:移动开发 好么,2.0的源码没看几天,2.1的 ... -
Browsing Android Source in Eclipse
2010-08-09 16:00 3391Google’s Android SDK includes ... -
android 编译
2010-08-07 16:31 24931 我的系统是Ubuntu 8.04 * 2 系统上 ... -
Ubuntu linux 右键添加"以管理员身份打开","在终端中打开"
2010-08-02 15:04 4554Ubuntu linux 右键添加"以管理员身份打开 ...
相关推荐
如何获取android源码及如何在eclipse中查看源码
获取Android源代码并建立本地版本库镜像,方便地在本地获取不同分支.
linux 或cygwin,前提是需要装git, 直接运行该脚本就行 ./GetAndroidSourceCode
Android应用源码45套安卓源码合集: android中文离线发音引擎FOCTTS使用源码.rar Android应用源码(精)LBS...Android应用源码获取手机信息.rar Android应用源码讯飞语音测试源码.rar Android应用源码飞碟说欢迎界面.rar
安卓Android源码——获取通讯录程序源码.zip
Android使用WebView获取网页的源码,将WebView封装进ArthurWebView,直接创建并初始化即可使用!
获取Android系统程序信息 源代码
android获取通讯录源码
Android获取系统信息,比如获取Android版本,手机名称、硬件信息等,在手机的系统信息里可以查到这些信息,就是通过类似这样的小程序来获取后显示给用户的,本程序的原型机为levono手机。
android下一个获取制定url的一个页面源代码的例子简单例子,因为找了几个都无法正常运行。源码获取部分代码来源于http://blog.csdn.net/honglei_zh/article/details/8537394
获取百度地图android源代码,使用android studio软件编写。
A tool class that gets the unique ID of the Android device(一个获取Android设备唯一id的工具类)
android 获取Gps信息的程序源码.rar Android 高德地图图层效果源码.rar Android中英文电子词典源码(so easy).rar android仿开心网源代码.rar android及时通讯源码:实时对讲机.rar android在线订餐项目源码.rar ...
Android源码之用HttpClient获取网页技术分享
1 Android PDF 阅读器源码 2 Android Txt文本阅读器源码 3 Android SqliteManager 源码 4 Android 个人记账程序源码 ...39 Android源代码定时情景模式切换 40 android源码分享之带手势划动功能的日历源码
Android Studio实现天气预报APP系统源码(也可做Android本科毕业设计Android Studio实现天气预报APP系统源码(也可做Android本科毕业设计Android Studio实现天气预报APP系统源码(也可做Android本科毕业设计Android ...
Android 获取通讯录程序源码.zip
Android通过异步处理获取任意网页源码,懂技术的会用得上!
安卓Android源码——获取Android系统程序信息.zip
获取android设备有线连接时的网络信息,ip,子网掩码,网关,dns时,需要用到EthernetManager这个被android api隐藏的类,这个jar包就是从源码抽出来的网络模块,导入可直接使用。