android内核编译及模拟器运行过程记录
来源:互联网 发布:小众软件网 编辑:程序博客网 时间:2024/06/05 07:54
android内核是在前段时间下载的,由于之前android的源码没有编译成功,所以只是拿来看代码。今天把android的源码编过了,开始到kernel了。
在kernel目录查看版本情况:
[zzz@localhost goldfish]$ git branch -a
* (detached from origin/android-goldfish-3.4)
master
remotes/origin/HEAD -> origin/master
remotes/origin/android-3.10
remotes/origin/android-3.18
remotes/origin/android-3.4
remotes/origin/android-goldfish-2.6.29
remotes/origin/android-goldfish-3.10
remotes/origin/android-goldfish-3.10-l-mr1-dev
remotes/origin/android-goldfish-3.10-m-dev
remotes/origin/android-goldfish-3.18-dev
remotes/origin/android-goldfish-3.4
remotes/origin/android-goldfish-3.4-l-mr1-dev
remotes/origin/linux-goldfish-3.0-wip
remotes/origin/master
重新checkout 了3.4的goldfish的内核:
git checkout remotes/origin/android-goldfish-3.4
这个很快。
[gumh@localhost goldfish]$ make ARCH=arm goldfish_armv7_defconfig .config
configuration written to .config
make[1]: Nothing to be done for `.config’.
[zzz@localhost goldfish]$ make ARCH=arm CROSS_COMPILE=/home/gumh/opensource/android-src/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-
上面要说明一下,这个CROSS_COMPILE工具网上有些说要下载,我这边是看到在下载的android的源码的prebuilts目录下就自带了。
scripts/kconfig/conf –silentoldconfig Kconfig
WRAP arch/arm/include/generated/asm/auxvec.h
WRAP arch/arm/include/generated/asm/bitsperlong.h
WRAP arch/arm/include/generated/asm/cputime.h
WRAP arch/arm/include/generated/asm/emergency-restart.h
WRAP arch/arm/include/generated/asm/errno.h
WRAP arch/arm/include/generated/asm/ioctl.h
WRAP arch/arm/include/generated/asm/irq_regs.h
WRAP arch/arm/include/generated/asm/kdebug.h
WRAP arch/arm/include/generated/asm/local.h
WRAP arch/arm/include/generated/asm/local64.h
…
AS arch/arm/boot/compressed/lib1funcs.o
SHIPPED arch/arm/boot/compressed/ashldi3.S
AS arch/arm/boot/compressed/ashldi3.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
运行模拟器:
[zzz@localhost generic]emulator -image system.img -data userdata.img -ramdisk ramdisk.img -kernel ~/opensource/android/goldfish/arch/arm/boot/zImage &
[1] 22352
[zzz@localhost generic] emulator: WARNING: Please note that -image is obsolete and that -system is now used to point
to the system image. Next time, try using ‘-sysdir -system ’ instead.
emulator: WARNING: system partition size adjusted to match image file (1536 MB > 200 MB)
emulator: WARNING: data partition size adjusted to match image file (550 MB > 200 MB)
emulator: WARNING: Increasing RAM size to 1GB
emulator: UpdateChecker: skipped version check
等了很多(5,6分钟吧),看起来图片是这样的:
好像不成功的样子。。。。
再等多3分钟左右:
出来主界面了~~~~~~
操作一下,解锁进入主界面:
看一下联系人应用:
感觉还是不错的 ~~~
接下来可开始学习写hal层的代码,熟悉其流程了。
- android内核编译及模拟器运行过程记录
- Android模拟器*内核下载-编译-运行
- Android源码编译及模拟器运行
- 编译运行Android模拟器
- 编译运行Android模拟器
- 编译运行Android模拟器
- 编译运行Android模拟器
- 编译Android模拟器内核goldfish
- Android 内核编译运行
- android内核编译过程
- Ubuntu下,Android编译和模拟器运行
- 运行编译好的Android模拟器
- 【学习anroid编译】关于运行android模拟器
- Android源代码编译完成之后运行模拟器
- Android 4.0.1 模拟器内核 最新下载地址及编译步骤
- 一个hello程序的android内核模块编译方法及在模拟器中进行测试结论
- Nexus5 内核编译烧录过程记录
- 编译Android内核 运行内核(kernel)
- 月圆之夜,紫禁之巅,一剑西来,天外飞仙
- c++堆和栈(2)
- Play Framework2.1源码分析 - 架构设计及线程策略分析
- 局部变量、全局变量、堆、堆栈、静态和全局
- 深入学习微框架:Spring Boot
- android内核编译及模拟器运行过程记录
- 隐式数据共享 深拷贝 浅拷贝
- 使用dom4j来解析xml文件的基本操作
- Spark修炼之道(基础篇)——Linux大数据开发基础:第十三节:Shell编程入门(五)
- UI第四天 触摸 响应者链 target-action
- java文件IO操
- JAVA中关于静态static和final
- Struts2 学习系列 (6) 消息处理与国际化
- C++之string学习笔记(1)