自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(24)
  • 收藏
  • 关注

原创 Android suspend/resume flow (上篇: User mode)

<br />当用户按下Power button:<br />0) android/frameworks/base/services/java/com/android/server/WindowManagerService.java<br />                    boolean screenIsOff = !mPowerManager.isScreenOn();<br />                    boolean screenIsDim = !mPowerManage

2011-05-08 17:16:00 7294

原创 Android Factory Reset flow

<br />===== 应用流程 =====<br />====>frameworks/base/services/java/com/android/server/MasterClearReceiver.java<br />RecoverySystem.rebootWipeUserData(context);<br /><br />====>framesworks/base/core/java/android/os/RecoverySystem.java<br />rebootWipeUse

2011-05-08 10:27:00 9730 2

原创 Work queue 详解 (ZZ)

<br />原帖见:www.embexperts.com<br /><br />先简单快速总结一下,更详细的剖析后续用帖子编辑方式逐步完成。<br /><br />分成两大部分,第一部分是用来执行work queue中每个节点上挂载的函数的内核线程,第二部分是从驱动程序的角度看work queue的使用。<br /><br />第一部分 worker_thread内核线程<br />Linux系统启动期间会创建一名为worker_thread线程,该线程创建之后就处于sleep状态。这里所谓的内核线程,从调

2011-04-22 12:17:00 4025

转载 Android low memory killer 详解

<br /> <br />Android在内存管理上与linux有些小的区别。其中一个就是引入了Low memory killer.<br /> <br />1. 引入原因<br />      Android是一个多任务系统,也就是说可以同时运行多个程序,这个大家应该很熟悉。一般来说,启动运行一个程序是有一定的时间开销的,因此为了加快运行速度,当你退出一个程序时,Android并不会立即杀掉它,这样下次再运行该程序时,可以很快的启动。随着系统中保留的程序越来越多,内存肯定会出现 不足,low memory

2011-04-11 13:06:00 1527

原创 How to use "man" effectively in the development of Linux

<br />man is the system's manual pager.      <br /> <br />The table below shows the section numbers of the manual followed by the types of pages they contain.<br /><br />       1   Executable programs or shell commands<br />       2   System calls (fun

2010-10-12 22:25:00 764

原创 安装OpenGrok来查阅代码

<br />OpenGrok is a fast and usable source code search and cross reference engine. It helps you search, cross-reference and navigate your source tree. It can understand various program file formats and version control histories like Mercurial, Git, S

2010-10-01 14:12:00 12073 1

原创 Basic concepts about camera

About camera interface:There are mipi and VIP type of sensors. The former is serialinterface while the later is parallel interface. Some sensorsespecially old sensors only supports paralle

2010-05-28 16:39:00 1028

转载 Writing good commit messages

The author of Pro Git (an excellent online book) gives this advice for commit messages:Getting in the habit of creating quality commit messages makes usingand collaborating with Git

2010-05-28 13:45:00 786

原创 Blue Tooth

Blue tooth has some protocols, such as H4, BCSP and H4DS, etc.Topic One: Deep Sleep1) H4 protocol does not support Deep Sleep.2) Either BCSP or H4DS should be u

2010-05-18 19:06:00 1966

转载 What is Virtual Memory?

If you had asked me what virtual memory was severalyears ago, Id have given you some hand-wave explanation about makingit appear as if your computerhas much more RAM than it actually does. Wh

2010-05-08 09:31:00 1485

转载 Linux Daemon Writing HOWTO

This document shows how to write a daemon in Linux using GCC. Knowledge of Linux and a familiarity with C are necessary to use this document. This HOWTO is Copyright by Devin Watson, under the terms

2010-05-06 22:46:00 673

原创 Android 开机画面

Android 开机会出现3个画面:a.  Bootloader启动,出现Android机器人图像;b.  Android平台启动初始化,出现"A N D R I O D"文字字样画面;c.  Android平台图形系统启动,出现含闪动的ANDROID字样的动画图片(start)。 a. Bootloader显示的Android机器人图像 b.

2010-04-28 11:09:00 5594 1

转载 NAND坏块

1. 为什么会出现坏块       由于NAND Flash的工艺不能保证NAND的MemoryArray在其生命周期中保持性能的可靠,因此,在NAND的生产中及使用过程中会产生坏块。坏块的特性是:当编程/擦除这个块时,不能将某些位拉高,这会造成Page Program和Block Erase操作时的错误,相应地反映到Status Register的相应位。 2. 坏块的分类

2010-04-26 17:02:00 1282

转载 CE6内核启动过程

开发人员有必要理解CE系统启动过程。首先回顾一下系统怎样建立起来的。微软工具链生成.exe和.dll文件。这些文件都包含了PortableExecutable格式,简称PE格式。它们的结构都是一样的:1、  是一种common object文件格式的扩展2、  有导入、导出表3、  头部有入口点,是开始执行的地方。 操作系统都是由编译器生成的,一个exe(nk.ex

2010-04-24 15:32:00 692

转载 CE5 vs CE6

主要区别:1、 进程地址空间由原来的32M,增大到1GB2、 进程数量由32个,增大到32768个3、 有内核态和用户态的驱动4、 Device/Filesys/GWES,3大exe合并到内核中,变为DLL5、 SetKMode、SetProcPermissions函数不再提供6、 系统调度的效率提高了 1.   进程地址空间:CE5是Slot机制,每个

2010-04-24 14:28:00 1948

原创 NFS 系统配置

1.1 DHCP server on Ubuntu 9.041.1.1 Setup interface Figure out which ethernet port youll use to connect your PCto the target board and configure it to use a static IP of 10.0.0.1. B

2010-04-21 15:37:00 619

转载 嵌入式系统文件系统比较 jffs2, yaffs, cramfs, romfs, ramdisk, ramfs/tmpfs

Linux支持多种文件系统,包括ext2、ext3、vfat、ntfs、iso9660、jffs、romfs和nfs等,为了对各类文件系统进行统一管理,Linux引入了虚拟文件系统VFS(Virtual FileSystem),为各类文件系统提供一个统一的操作界面和应用编程接口。  Linux启动时,第一个必须挂载的是根文件系统;若系统不能从指定设备上挂载根文件系统,则系统会出错而

2010-04-14 21:29:00 579

原创 函数指针和指针函数

【函数指针】      在程序运行中,函数代码是程序的算法指令部分,它们和数组一样也占用存储空间,都有相应的地址。可以使用指针变量指向数组的首地址,也可以使用指针变量指向函数代码的首地址,指向函数代码首地址的指针变量称为函数指针。1.函数指针定义函数类型 (*指针变量名)(形参列表);"函数类型"说明函数的返回类型,由于"()"的优先级高于"*",所以指针变量名外的括号必不可少

2010-04-09 15:42:00 784

原创 Android Bionic TLS简单介绍

Whats TLS?      TLS即Thread LocalStorage。支持TLS的线程有三种类型的变量:线程局部变量,线程本地变量(TLS)和全局变量。TLS的不同之处:所有线程以同一个变量名或索引访问TLS变量,但不同线程的TLS变量存储在不同的内存区域。简而言之,就是同一个名字,不同的存储。      例如,有TLS变量errno,每个线程执行相同的语句“e

2010-04-09 15:19:00 3275

原创 Git VS. Gerrit

1) You need git access to pull the code, I think anyone can do that. http://git-master for git, 2) You need gerrit configured and with ssh key etc. to push code. If you are going to be involve

2010-04-09 15:16:00 1279

原创 Linux下patch的制作和应用

1. Diff--------------------NAME       diff - find differences between two filesSYNOPSIS       diff [options] from-file to-file--------------------Diff的功能就是用来比较两个文件的不同,然后记录下来,也就是所谓的di

2010-04-09 14:36:00 509

原创 BMP文件结构

BMP文件由4部分组成:1) 位图文件头(bitmap-file header)2) 位图信息头(bitmap-information header)3)   颜色表(color table)4)   颜色点阵数据(bits data) 24位真彩色位图没有颜色表,所以只有1、2、4这三部分。用UltraEdit打开demo.bmp,可以看到这个文件的全部数据如下图

2010-04-06 17:34:00 813

转载 程序员每天该做的事

Normal 0 false false false EN-US ZH-CN X-NONE MicrosoftInternetExplorer4

2010-04-01 16:24:00 623

转载 android 启动过程 [ZZ]

主要介绍linux 内核启动过程以及挂载android 根文件系统的过程,以及介绍android 源代码中文件系统部分的浅析。一. 主要源代码目录介绍Makefile (全局的Makefile)bionic (Bionic 含义为仿生,这里面是一些基础的库的源代码)bootable (引导加载器)build (build 目录中的内容不是目标所用的代码,而是编译和配置所需要

2010-04-01 16:19:00 1513

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除