上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 71 下一页
摘要: From: http://learn.akae.cn/media/ch17s04.html4. MMU 请点评现代操作系统普遍采用虚拟内存管理(Virtual Memory Management)机制,这需要处理器中的MMU(Memory Management Unit,内存管理单元)提供支持,本节简要介绍MMU的作用。首先引入两个概念,虚拟地址和物理地址。如果处理器没有MMU,或者有MMU但没有启用,CPU执行单元发出的内存地址将直接传到芯片引脚上,被内存芯片(以下称为物理内存,以便与虚拟内存区分)接收,这称为物理地址(Physical Address,以下简称PA),如下图所示。图 17. 阅读全文
posted @ 2012-06-21 13:21 super119 阅读(961) 评论(0) 推荐(0) 编辑
摘要: From: http://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-gitGit is quite common nowadays and a lot of people are asking me how they can create a patch file. Creating a patch file with git is quite easy to do, you just need to see how it's done a few times.This article will show y 阅读全文
posted @ 2012-06-20 17:22 super119 阅读(531) 评论(0) 推荐(0) 编辑
摘要: 这是因为/opt/etc/profile文件中重定义了PATH和LD_LIBRARY_PATH这两个环境变量导致的。这导致所有的linux关键程序,so都来自/opt,而这显然是不对的。因为我们的/opt不是一个完整的系统。而每次登录由于/etc/profile会去source /opt/etc/profile,所以导致了该问题。解决办法很简单,编辑/opt/etc/profile(/etc/profile 只读),将针对PATH和LD_LIBRARY_PATH的设定都注释掉就OK了。 阅读全文
posted @ 2012-06-16 09:24 super119 阅读(586) 评论(0) 推荐(0) 编辑
摘要: From: http://hi.baidu.com/serial_story/blog/item/d40d49c6907212129c163ded.html 如何调整Linux内核启动中的驱动初始化顺序【问题】此处我要实现的是将芯片的ID用于网卡MAC地址,网卡驱动是enc28j60_init。但是,读取芯片ID的函数,在as352x_afe_init模块中,所以要先初始化as352x_afe_init。此处,内核编译完之后,在生成的system.map中可以看到,enc28j60_init在as352x_afe_init之前,所以,无法去读芯片ID。所以我们的目标是,将as352x_afe_ 阅读全文
posted @ 2012-06-07 14:46 super119 阅读(845) 评论(0) 推荐(0) 编辑
摘要: RT. 阅读全文
posted @ 2012-06-06 15:01 super119 阅读(434) 评论(0) 推荐(0) 编辑
摘要: -L option表示程序不等待DCD信号。DCD信号是串口通讯时的一个信号,表示Data Carrier Detected,一般是modem连通之后会发送回来的一个信号,表示数据载波OK,可以继续通信了。但是,在现在的串口通信中,特别是嵌入式开发的时候,开发板上的串口,DCD这个pin一般都不会连线的,一般只连tx/rx/cts/rts四根线就OK了。所以,如果getty或者agetty没有指定-L选项,那么open /dev/ttyS0就会block在那里,因为kernel会wait在一个waitqueue上,等待串口的DCD信号上来(通过中断)。事实上,在getty/agetty程序中, 阅读全文
posted @ 2012-06-04 17:17 super119 阅读(1338) 评论(0) 推荐(0) 编辑
摘要: /* UTF-8 encoding00000000-01111111 00-7F US-ASCII (single byte)10000000-10111111 80-BF Second, third, or fourth byte of a multi-byte sequence11000000-11011111 C0-DF Start of 2-byte sequence11100000-11101111 E0-EF Start of 3-byte sequence11110000-11110100 F0-F4 Start of 4-byte sequence*/ 阅读全文
posted @ 2012-06-01 12:52 super119 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Q. I'd like to rebuild a Debian / Ubuntu package called foo with additional option. How do I recompile .deb packages? A. To build a Debian package, you need the following packages / software installed on system [a] fakeroot : fakeroot package - runs a command in an environment wherein it appears 阅读全文
posted @ 2012-05-29 10:16 super119 阅读(756) 评论(0) 推荐(0) 编辑
摘要: Here is the answer, from stackoverflow:I have been fighting this one as well, and have just found a solution that actually makes sense. I ended up having to build a debug version of the WindowsAccessBridge.dll and used the debugger to step into it to watch what was happening. ?The call to 'initi 阅读全文
posted @ 2012-05-29 09:22 super119 阅读(1098) 评论(1) 推荐(0) 编辑
摘要: Early Suspend、Late ResumeEarly Suspend和Late Resume是Android在標準Linux的基礎上增加的一項特性。當使用者空間的向內核請求進入suspend時,這時候會先進入early suspend狀態,驅動程式可以註冊early suspend的回呼函數,當進入該狀態時,內核會逐一地調用這些回呼函數。例如顯示幕的驅動程式通常會註冊early suspend,在他的回呼函數中,驅動程式會把螢幕和背光都關閉。在這種狀態下,所有的後臺進程都還在活動中,該播放歌曲的播放歌曲,該下載資料的依然在下載,只是顯示幕不良而已。進入early suspend狀態以後 阅读全文
posted @ 2012-05-24 16:12 super119 阅读(752) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 71 下一页