Android
文章平均质量分 50
sourthstar
这个作者很懒,什么都没留下…
展开
-
Android4: emulator使用
进入Android4源码目录直接编译,就会在out/host/bin下生成emulator。emulator程序就是android4的模拟器。可以在shell中直接运行. ./emulator -kernel -show-kernel. //用zImage的kernel启动模拟器,并打印内原创 2012-04-05 10:24:02 · 372 阅读 · 0 评论 -
building bootloader and kernel for pandaboard
refer:http://blog.csdn.net/moonlight_in_bluesky/article/details/7745920Building bootloader and kernelBootloaderStartwith building the bootloader. To learn more about the bootloader pro转载 2013-01-29 18:12:37 · 738 阅读 · 0 评论 -
busybox编译时编译器的选择
busybox编译成arm平台的二进制文件时,需要注意编译器选项。推荐使用codesourcery提供的交叉编译器,它默认提供的-march参数是 armv5te. 而ubuntu软件包中的交叉编译器默认的march参数是armv7-a. 具体的参数区别如下: codesourcery:Using built-in specs.Target: arm-no原创 2012-10-08 13:59:31 · 1287 阅读 · 0 评论 -
Netlink实现网卡上下线监控
http://www.cpplive.com/html/1542.html之前有一篇文章《Netlink实现Linux内核与用户空间通信》专门介绍了Netlink相比其他内核交互方式的优点以及Netlink的调用方法,并以NETLINK_KOBJECT_UEVENT(内核事件向用户态通知)为例演示了U盘热插拔信息的捕捉,衍生出另一篇文章《Linux下自动检测USB热插拔》,转载 2012-09-13 17:40:15 · 4227 阅读 · 0 评论 -
android设置网络地址及dncp
进控制台: netcfg eth0 dncp 发送dhcp来分配网络地址.setprop net.dns1 8.8.8.8 设置dns地址。netcfg 会显示如下:lo UP 127.0.0.1/8 0x00000049 00:00:00:00:ef:aa...eth0 UP 19原创 2012-08-23 11:46:25 · 1481 阅读 · 0 评论 -
gcc选项--显示include的路径
gcc 生成map文件:gcc -Wl,-Map,xx.map ...gcc 生成include路径文件gcc -MDgcc -MMDGCC 2 url: http://www.shanghai.ws/gnu/gcc_2.htmSection: GNU Tools (1)Updated: 2003/12/05Supporter:转载 2012-07-11 11:26:36 · 3403 阅读 · 0 评论 -
uboot.lds分析
http://hi.baidu.com/kkernel/item/d821c3f8b06e9b1da729886c对于.lds文件,决定一个可执行程序的各个段的存储位置,以及入口地址,这也是链接定位的作用。这里以u- boot的lds为例说明uboot的链接过程。首先看一下GNU官方网站上对.lds文件形式的完整描述:SECTIONS {...sec转载 2012-08-20 14:48:38 · 411 阅读 · 0 评论 -
ffmpeg移植到android平台
http://blog.csdn.net/perfectpdl/article/details/6932696一:生成动态库(.so文件)-->环境:操作系统:Ubuntu9.10ffmpeg源码版本:ffmpeg-0.6.1(可以在http://ffmpeg.org/download.html 下载源码)androidndk版本转载 2012-07-25 13:23:37 · 624 阅读 · 0 评论 -
busybox编译
BusyBox的交叉编译开发平台:Ubuntu11.10 目 标板:ARM体系结构 编 译器:arm-gcc-4.1.1.tar.bz2 (可从http://download.csdn.net/detail/npy_lp/3821111上下载) 源代码:busybox-1.19.2.tar.bz2(可从http://www.busybox.net/转载 2012-04-05 22:19:21 · 581 阅读 · 0 评论 -
android中的进程互斥实现
Futex系统调用Futex是一种用户态和内核态混合机制,所以需要两个部分合作完成,linux上提供了sys_futex系统调用,对进程竞争情况下的同步处理提供支持。其原型和系统调用号为 #include #include int futex (int *uaddr, int op, int val, const struct timespec *time转载 2012-07-05 14:29:27 · 2033 阅读 · 0 评论 -
fastboot编译
在linux下编译android系统时有时需要生成windows应用程序.这时就需要MingW环境来生成windows下的程序。MingW提供一种在linux链接生成windows程序的环境。它可以用在linux系统上编译windows应用程序,编译完的程序可直接在windows上运行。还有一个工具是cygwin这个是在windows上提供一个模拟linux的环境。但它主要是运行在wind原创 2012-05-14 11:04:24 · 2468 阅读 · 0 评论 -
android开源网址
htc开源:androidhtc: http://androidhtc.git.sourceforge.net/git/gitweb-index.cgi 或在sourceforge上搜索android htc;moto开源: http://sourcefo原创 2012-05-11 15:49:33 · 532 阅读 · 0 评论 -
在android模拟器中用gdb调试linux kernel
首先需要建一个gdb.cmd里边存放一些初始化的命令:vim gdb.cmdset solib-absolute-prefix target remote :1234b start_kernel 接下来建立一个用于连接emualtor的调试脚本 gdb.shvim gdb.sh#!/bin/bashar原创 2012-04-24 18:57:22 · 2233 阅读 · 0 评论 -
bootloader/ uboot
uboot概述: http://www.doc88.com/p-694165430358.htmlarmboot编译步骤: 首先从armboot.sourceforge.net下载armboot原码。 然后选用arm-linux-3.3编译器,还要注意cpu/arm920t/config.mk中的 -msoft-flo转载 2012-04-05 11:10:28 · 332 阅读 · 0 评论 -
如何确定Android中刚修改后的c/c++是否编译成功
在Android系统源码上开发有时候会遇到一些问题,比如加入新代码或修改了一些代码后运行发现新加入的代码不启作用。这时可能要查一下原因,有时是因为Android编译环境配置存在问题,就会出现上述情况(有一次加入了自己的代码,但是没有在项目目录下加入Android.mk,最后只能把out目录全部删除掉才能编译出来). 下面就有一个快速的方法来判断自己的代码有没有编译出来。An原创 2012-04-08 15:30:46 · 1269 阅读 · 0 评论 -
uboot编译
uboot源码可以到sourceforge上去下载:http://sourceforge.net/scm/?type=git&group_id=336846git仓库: git://u-boot-gms.git.sourceforge.net/gitroot/u-boot-gms/u-boot-gmsuboot最新版可以用arm-none-eabi-gc原创 2012-04-05 20:02:19 · 521 阅读 · 0 评论 -
玩转pandaboard之rootfs制作及启动
refer: http://blog.csdn.net/melody_lu123/article/details/7220386linaro工具: https://wiki.linaro.org/Platform/Android/ImageInstallation?action=show&redirect=Platform%2FAndroid%2FInstal转载 2013-01-29 16:47:09 · 908 阅读 · 0 评论