随笔分类 -  android 驱动开发

【转】LINUX系统I/O复用技术之二:poll() -- 不错
摘要:原文网址:http://www.cnblogs.com/alyssaCui/archive/2013/04/01/2993886.html poll poll或select为大部分Unix/Linux程序员所熟悉,这俩个东西原理类似,性能上也不存在明显差异,但select对所监控的文件描述符数量有限 阅读全文

posted @ 2016-04-27 15:09 wi100sh 阅读(439) 评论(0) 推荐(0) 编辑

【转】Android驱动开发之earlysuspend睡眠模式编程总结
摘要:原文网址:http://blog.csdn.net/bigapple88/article/details/8669537 (1)添加头文件: #include <linux/earlysuspend.h> (2)在特定驱动结构体中添加early_suspend结构: #ifdef CONFIG_HA 阅读全文

posted @ 2016-02-23 14:01 wi100sh 阅读(892) 评论(0) 推荐(0) 编辑

【转】NDK编译可执行文件在Android L中运行显示error: only position independent executables (PIE) are supported.失败问题解决办法。
摘要:原文网址:http://blog.csdn.net/hxdanya/article/details/39371759 由于使用了NDK编译的可执行文件在应用中调用,在4.4及之前的版本上一直没出问题。最近由于要测试在Android L上的运行情况发现,当运行该可执行文件时,报如下错误: error: 阅读全文

posted @ 2016-01-28 11:34 wi100sh 阅读(472) 评论(0) 推荐(0) 编辑

Android常用的一些make命令(转载)--不错
摘要:原文网址:http://blog.sina.com.cn/s/blog_abc7e49a01011y0n.html1.make -jXXXX表示数字,这个命令将编译Android系统并生成镜像,XX表示可以使用到的CPU核数,这在配置好的电脑上特别有用,公司的16核ubuntu服务器执行make -... 阅读全文

posted @ 2016-01-19 10:25 wi100sh 阅读(1438) 评论(0) 推荐(0) 编辑

【转】内核态文件操作--不错
摘要:原文网址:http://blog.csdn.net/yf210yf/article/details/8997007有时候需要在Linux kernel--大多是在需要调试的驱动程序--中读写文件数据。在kernel中操作文件没有标准库可用,需要利用kernel的一些函数,这些函数主 要有: filp... 阅读全文

posted @ 2016-01-05 15:30 wi100sh 阅读(356) 评论(0) 推荐(0) 编辑

【转】 Linux内核中读写文件数据的方法--不错
摘要:原文网址:http://blog.csdn.net/tommy_wxie/article/details/8193954Linux内核中读写文件数据的方法有时候需要在Linuxkernel--大多是在需要调试的驱动程序--中读写文件数据。在kernel中操作文件没有标准库可用,需要利用kernel的... 阅读全文

posted @ 2015-12-31 10:52 wi100sh 阅读(1160) 评论(0) 推荐(0) 编辑

【转】在linux内核中读写文件 -- 不错
摘要:原文网址:http://blog.csdn.net/tommy_wxie/article/details/81942761. 序曲在用户态,读写文件可以通过read和write这两个系统调用来完成(C库函数实际上是对系统调用的封装)。 但是,在内核态没有这样的系统调用,我们又该如何读写文件呢?阅读l... 阅读全文

posted @ 2015-12-31 10:50 wi100sh 阅读(735) 评论(0) 推荐(0) 编辑

【转】ubuntu连接android设备(附最简单方法)
摘要:原文网址:http://blog.csdn.net/maosidiaoxian/article/details/22661725在ubuntu下连接android设备,虽然不用像windows那样安装驱动,然而却会遇见一个错误:输入adb shell,会提示insufficient permissi... 阅读全文

posted @ 2015-10-10 16:11 wi100sh 阅读(567) 评论(0) 推荐(0) 编辑

【转】【Android】HAL分析
摘要:原文网址:http://www.cnblogs.com/lcw/p/3335505.htmlHAL概述 以下是基于android4.0.3,对应其他低版本的代码,可能有所差异,但基本大同小异。Android的HAL是为了保护一些硬件提供商的知识产权而提出的,是为了避开linux的GPL束缚。 思... 阅读全文

posted @ 2015-07-02 10:04 wi100sh 阅读(373) 评论(0) 推荐(0) 编辑

【转】Kconfig,Makefile 和 .config
摘要:原文网址:http://blog.csdn.net/nxh_love/article/details/11846861最新在做Sensor驱动移植的时候,发现了Android driver 中有Kconfig,Makefile文件。在查看编译后的文件时,又发现还存在.config文件。自己对这几个文... 阅读全文

posted @ 2015-07-01 16:26 wi100sh 阅读(391) 评论(0) 推荐(0) 编辑

【转】Android(4.2) Sensors 学习——G-sensor,Gyroscope驱动移植
摘要:原文网址:http://blog.csdn.net/nxh_love/article/details/11804841本人对驱动可谓是一点不懂,鉴于公司目前高驱动的人手不够,所以我也只能两眼一抹黑硬上咯,最原来Android 4.1上的正常使用的驱动完整的移植到Android 4.2上。这篇文件讲记... 阅读全文

posted @ 2015-07-01 16:25 wi100sh 阅读(1564) 评论(0) 推荐(0) 编辑

【转】用户空间使用i2c_dev--不错
摘要:原文网址:http://blog.csdn.net/yuanlulu/article/details/6161706============================================作者:yuanluluhttp://blog.csdn.net/yuanlulu版权没有,但是转... 阅读全文

posted @ 2015-06-25 15:31 wi100sh 阅读(445) 评论(0) 推荐(0) 编辑

【转】Android出现“Read-only file system”解决办法
摘要:原文网址:http://www.111cn.net/sj/android/44496.htm下面介绍一篇Android出现“Read-only file system”解决办法 有碰到这类问题的朋友可参考参考。Android-出现Read-only file system的解决方法输入命令:代码如下... 阅读全文

posted @ 2015-06-12 10:45 wi100sh 阅读(1599) 评论(0) 推荐(0) 编辑

【转】Ubuntu10.04上编译Android源码(Build Android source in Ubuntu10.04 Platform)
摘要:原文网址:http://blog.csdn.net/chenyafei617/article/details/6570928一、Introduction今天我们就来谈谈如何在Ubuntu平台上面编译android源码,我的是ubuntu10.04版本,在进行编译流程讲解之前我想讲一下 make 、m... 阅读全文

posted @ 2015-06-12 10:41 wi100sh 阅读(442) 评论(0) 推荐(0) 编辑

【转】GCC4.6编译的warning -Werror
摘要:原文网址:http://blog.sina.com.cn/s/blog_605f5b4f0101bct7.htmlNew warnings for unused variables and parametersThe behavior of-Wallhas changed and now inclu... 阅读全文

posted @ 2015-06-10 11:36 wi100sh 阅读(2078) 评论(0) 推荐(0) 编辑

【转】各个层次的gcc警告 #pragma GCC diagnostic ignored "-Wunused-parameter" --不错
摘要:原文网址:http://blog.csdn.net/lizzywu/article/details/9419145各个层次的gcc警告从上到下覆盖变量(代码)级:指定某个变量警告int a __attribute__ ((unused));指定该变量为"未使用的".即使这个变量没有被使用,编译时也会... 阅读全文

posted @ 2015-06-10 11:34 wi100sh 阅读(1749) 评论(0) 推荐(0) 编辑

【转】GCC警告选项例解 -- 不错
摘要:原文网址:http://blog.csdn.net/hcx25909/article/details/7383716程序员是追求完美的一族,即使是一般的程序员大多也都不想看到自己的程序中有甚至那么一点点的瑕疵。遇到任意一条编译器警告都坚决不放过。有人会说:我们可以使用比编译器更加严格的静态代码检查工... 阅读全文

posted @ 2015-06-10 10:17 wi100sh 阅读(868) 评论(0) 推荐(0) 编辑

【转】理解 Android Build 系统----不错
摘要:$ mmm -help用法:make [选项] [目标] ...选项: -b, -m 忽略兼容性。 -B, --always-make Unconditionally make all targets. -C 目录, --direc... 阅读全文

posted @ 2015-06-09 14:41 wi100sh 阅读(348) 评论(0) 推荐(0) 编辑

【转】Android HAL实例解析
摘要:原文网址:http://www.embedu.org/Column/Column339.htm作者:刘老师,华清远见嵌入式学院讲师。一、概述本文希望通过分析台湾的Jollen的mokoid 工程代码,和在s5pc100平台上实现过程种遇到的问题,解析Andorid HAL的开发方法。二、HAL介绍现... 阅读全文

posted @ 2015-06-04 17:10 wi100sh 阅读(1394) 评论(0) 推荐(0) 编辑

【转】adb push&pull bug --- Permission denied----不错
摘要:原文网址:http://blog.csdn.net/hengkong_horse/article/details/8708076问题背景:adbpushE:\\rrr.txt/data/显示如下:Failedtocopy'E:\\rrr.txt'to'/data/':Permissiondenied... 阅读全文

posted @ 2015-06-02 10:17 wi100sh 阅读(828) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示