Device Tree常用方法解析Device Tree在Linux内核驱动中的使用源于2011年3月17日Linus Torvalds在ARM Linux邮件列表中的一封邮件,他宣称“this whole ARM thing is a f*cking pain in the ass”,并提倡学习P...
分类:
其他好文 时间:
2014-10-29 16:45:44
阅读次数:
204
转载:http://blog.csdn.net/21cnbao/article/details/84575461. ARM Device Tree起源Linus Torvalds在2011年3月17日的ARM Linux邮件列表宣称“this whole ARM thing is a f*cking...
分类:
系统相关 时间:
2014-10-29 16:27:37
阅读次数:
366
hw.machine 这个值对应相关代码最好在后台管理,减少手机端代码更新次数
if ([platform isEqualToString:@"iPhone1,1"]) return @"iPhone 2G (A1203)";
if ([platform isEqualToString:@"iPhone1,2"]) return @"iPhone 3G (A1241/A1324)";
...
分类:
其他好文 时间:
2014-10-29 13:01:38
阅读次数:
162
文中代码均来源于:http://www.appcoda.com/introduction-to-core-data/希望学习 Core Data 的同学不要错过:)以下是我个人记录的一些常用代码片段。有一个 Entity:Device,有三个属性:company、name、version。1.获取 context 的方法:- (NSManagedObjectContext *)managedObj...
分类:
移动开发 时间:
2014-10-29 12:57:55
阅读次数:
296
Using the Android Device's Back Button To make your application handle when users press the Back button on their Android device, add an event handler....
分类:
移动开发 时间:
2014-10-29 12:24:52
阅读次数:
530
今天才发现这家伙。。。怎么讲。。。深以为耻。晚上的任务是加深对它的了解,就这么定了。1. General questions.1.1 What is the TUN ?The TUN is Virtual Point-to-Point network device.TUN driver was de...
分类:
系统相关 时间:
2014-10-29 12:07:56
阅读次数:
267
devicetree中数据和structdevice有什么关系总体来说,devicetree与structdevice的关系应该还是在其生成platformdevice的时候,一直传递的structdevice *parent参数。下面先把其源码中传递过程描述如下(仍以At91rm9200为例):1...
分类:
其他好文 时间:
2014-10-28 20:01:19
阅读次数:
112
DTS结构及其编译方法一:主要问题1,需要了解dtsi与dts的关系2,dts的结构模型3,dts是如何被编译的,以及编译后会生成一个什么文件.二:参考文字1,DTS(device tree source).dts文件是一种ASCII文本格式的DeviceTree描述。基本上,在ARMLinux内,...
分类:
其他好文 时间:
2014-10-28 19:53:34
阅读次数:
380
devicetree的书写规范下面从节点,属性,reg,ranges,中断控制器等几个方面叙述devicetree的书写规范。1,dts的基本元素:节点.dts(或者其include的.dtsi)基本元素为结点和属性。举例说明节点的概念:/ { node1 { a-string-...
分类:
其他好文 时间:
2014-10-28 19:48:44
阅读次数:
236
本文以At91rm9200平台为例,从源码实现的角度来分析驱动加载时,Device tree的属性是如何取得的。一:系统级初始化DT_MACHINE_START 主要是定义"struct machine_desc"的类型,放在 section(".arch.info.init"),是初始化数据,Ke...
分类:
其他好文 时间:
2014-10-28 19:31:44
阅读次数:
204