📄 uclinux 的framebuffer简介-如何配置framebufferuclinuxframebuffer.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0073)http://www.armsystem.com.cn/article/ARM7-artilcle/cphelp/20061013384.html -->
<HTML><HEAD><TITLE>uClinux 的framebuffer简介/如何配置framebuffer||uclinux|framebuffer|</TITLE>
<META http-equiv=Content-Language content=zh-cn>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META http-equiv=keywords
content=ARM开发板|S3C2440|S3C2410|S3C44b0|arm9开发板|arm7开发板|嵌入式系统|2440|2410|44B0
name=keywords>
<META http-equiv=description
content="做最专业的嵌入式计算机系统供应商,杭州立宇泰电子专业提供以三星S3C2440,S3C2410,S3C44B0处理器为核心的ARM9/ARM7开发板,提供各种规格STN/TFT液晶模块和驱动方案,提供工业PDA,手持POS,GPS,各种嵌入式终端设备产品的解决方案。立宇泰2440开发板提供WINCE5.0 BSP,支持板上所有硬件接口和摄像头,ARMSYS2410-MULTIUART多串口通信终端服务器,ARM开发板|S3C2440|S3C2410|S3C44b0|arm9开发板|arm7开发板|嵌入式系统|2440|2410|44B0"
name=description>
<SCRIPT language=JavaScript>
function fontZoom(size)
{
document.getElementById('fontzoom').style.fontSize=size+'px'
}
</SCRIPT>
<SCRIPT language=JavaScript>
function check(theForm,textlengh) {
if(theForm.ReviewName.value == "" || theForm.Content.value == "" ) {
alert("对不起!姓名和留言内容必须填写!");
return false;
}
if (theForm.Content.value.length > textlengh){
alert("对不起!留言长度不能超过500字符");
return false;
}
return true;
document.form1.reset();
}
</SCRIPT>
<LINK
href="uClinux 的framebuffer简介-如何配置framebufferuclinuxframebuffer.files/index.css"
type=text/css rel=stylesheet>
<STYLE>TABLE {
TABLE-LAYOUT: fixed; WORD-WRAP: break-word
}
DIV {
WORD-WRAP: break-word
}
</STYLE>
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY>
<DIV id=center>
<TABLE cellSpacing=0 cellPadding=0 width=800 align=center bgColor=#ffffff
border=0>
<TBODY>
<TR>
<TD width=180 rowSpan=4><A
href="http://www.armsystem.com.cn/index.html"><IMG height=50
src="uClinux 的framebuffer简介-如何配置framebufferuclinuxframebuffer.files/logo5.gif"
width=180 border=0></A></TD>
<TD align=middle height=35>
<SCRIPT language=javascript
src="uClinux 的framebuffer简介-如何配置framebufferuclinuxframebuffer.files/headtitle.htm"></SCRIPT>
</TD></TR>
<TR>
<TD align=right height=18>
<TABLE cellSpacing=0 cellPadding=0 width=600 align=center border=0>
<TBODY>
<TR>
<TD height=23><A href="http://www.armsystem.com.cn/index.html"><IMG
title=本站首页 height=23 alt=本站首页
src="uClinux 的framebuffer简介-如何配置framebufferuclinuxframebuffer.files/index.gif"
width=88 border=0 name=products></A></TD>
<TD><A title=产品频道|ARM7|ARM9
href="http://www.armsystem.com.cn/product.html"><IMG
title=产品频道|ARM7|ARM9 height=23 alt=产品频道|ARM7|ARM9
src="uClinux 的framebuffer简介-如何配置framebufferuclinuxframebuffer.files/product.gif"
width=88 border=0 name=applications></A></TD>
<TD><A title=文章频道|ARM7|ARM9
href="http://www.armsystem.com.cn/article.html"><IMG
title=文章频道|ARM7|ARM9|产品技术文档 height=23 alt=文章频道|ARM7|ARM9
src="uClinux 的framebuffer简介-如何配置framebufferuclinuxframebuffer.files/article.gif"
width=88 border=0 name=support></A></TD>
<TD><A href="http://www.armsystem.com.cn/odm.html"><IMG
title=解决方案|方案定制|技术服务 height=23 alt=技术服务
src="uClinux 的framebuffer简介-如何配置framebufferuclinuxframebuffer.files/tec.gif"
width=88 border=0 name=partners></A></TD>
<TD><A title="" href="http://www.armsystem.com.cn/lxwm.html"><IMG
title=联系方法|购买方式 height=23 alt=联系方法|购买方式
src="uClinux 的framebuffer简介-如何配置framebufferuclinuxframebuffer.files/lxwm.gif"
width=88 border=0 name=news></A></TD>
<TD><A title=专业的ARM技术论坛|大量的ARM技术资料
href="http://www.hzlitai.com.cn/bbs" target=_blank><IMG
title=专业的ARM技术论坛|大量的ARM技术资料 height=23 alt=专业的ARM技术论坛|大量的ARM技术资料
src="uClinux 的framebuffer简介-如何配置framebufferuclinuxframebuffer.files/armbbs.gif"
width=88 border=0 name=about></A></TD>
<TD><A href="http://www.armsystem.com.cn/zhaopin.html"><IMG
title=诚聘英才 height=23 alt=诚聘英才
src="uClinux 的framebuffer简介-如何配置framebufferuclinuxframebuffer.files/zhaopin.gif"
width=88 border=0
name=buy></A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><!--################coolpic Start#############################-->
<DIV id=center>
<DIV style="MARGIN: 0px auto; WIDTH: 800px; BACKGROUND-COLOR: #ffffff">
<SCRIPT language=javascript
src="uClinux 的framebuffer简介-如何配置framebufferuclinuxframebuffer.files/coolpic.htm"></SCRIPT>
</DIV></DIV><!--################coolPic End#############################--></TD></DIV>
<DIV id=center>
<DIV id=navbar
style="PADDING-LEFT: 10px; MARGIN-LEFT: auto; WIDTH: 790px; MARGIN-RIGHT: auto; PADDING-TOP: 8px; HEIGHT: 18px; BACKGROUND-COLOR: #ffffff; TEXT-ALIGN: left">您现在的位置
: <A href="http://www.armsystem.com.cn/index.html"><SPAN
class=style1>首页</SPAN></A>>><A
href="http://www.armsystem.com.cn/article.html"><SPAN
class=style1>文章频道</SPAN></A>>> <A
href="http://www.armsystem.com.cn/article/ARM7-artilcle/ARM7-artilcle.html">ARM7开发平台相关</A>>><A
href="http://www.armsystem.com.cn/article/ARM7-artilcle/cphelp_1.html"><SPAN
class=style1>产品FAQ</SPAN></A>>> <SPAN class=style2><FONT
color=#ff0000>uClinux 的framebuffer简介/如何配置framebuffer</FONT>【正文】</SPAN>
</DIV></DIV>
<TABLE class=border style="BORDER-TOP: #000000 1px solid" cellSpacing=0
cellPadding=0 width=800 align=center bgColor=#ffffff border=0>
<TBODY>
<TR>
<TD align=middle height=10>
<TABLE class=pageSeparator cellSpacing=6 cellPadding=0 width=800
border=0><TBODY>
<TR>
<TD align=middle height=16><FONT
style="FONT-SIZE: 9pt">来自:原创 作者:立宇泰|support@hzlitai.com.cn
时间:2005年12月14日 查看次数:
<SCRIPT language=JavaScript
src="uClinux 的framebuffer简介-如何配置framebufferuclinuxframebuffer.files/Counter.htm"></SCRIPT>
</FONT>
关键字:【|uclinux|framebuffer|】</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<DIV
style="FONT-SIZE: 12px; MARGIN: 0px auto; WIDTH: 800px; COLOR: #000000; BORDER-BOTTOM: #000000 1px solid; FONT-FAMILY: '宋体'; HEIGHT: 28px; BACKGROUND-COLOR: #ffffff; TEXT-ALIGN: center"><!--上一篇--> <A
title=在uClinux下添加SL811HS的硬件底层驱动
href="http://www.armsystem.com.cn/article/ARM7-artilcle/cphelp/20061013383.html">上一篇:在uClinux下添加SL811HS的硬件底层驱动</A> <A
title=如何在44B0开发板ARMSYS上建立基于Nandflash的JFFS2文件系统
href="http://www.armsystem.com.cn/article/ARM7-artilcle/cphelp/20061013386.html">下一篇:如何在44B0开发板ARMSYS上建立基于Nandflash的JFFS2文件系统</A>
</DIV><!--下一篇-->
<TABLE class=border
style="PADDING-RIGHT: 20px; PADDING-LEFT: 20px; PADDING-BOTTOM: 20px; PADDING-TOP: 20px"
cellSpacing=6 cellPadding=0 width=800 align=center bgColor=#ffffff border=0>
<TBODY>
<TR>
<TD align=middle><FONT
style="FONT-WEIGHT: bold; FONT-SIZE: 16px; COLOR: #666666">uClinux 的framebuffer简介/如何配置framebuffer</FONT>
</TD></TR>
<TR align=middle>
<TD class=listcontent id=fontzoom vAlign=top align=left
height=293>
<P>
<P>
<P>
<TABLE style="TABLE-LAYOUT: fixed; WORD-BREAK: break-all" height="85%"
width="95%" align=center border=0>
<TBODY>
<TR>
<TD style="FONT-SIZE: 9pt; LINE-HEIGHT: 12pt" vAlign=top width=*
height="100%">
<P align=left>下面的内容主要是关于framebuffer 的一些知识,
主要是根据我们实际开发过程中的一些体会,其中难免错漏之处, 欢迎指正。
<P></P>
<P></P>
<P align=left><B>什么是</B><B><FONT face="Times New Roman">framebuffer
</FONT></B><B>设备
<P></P></B>
<P></P>
<P align=left>framebuffer
是一种能够提取图形的硬件设备,是用户进入图形界面很好的接口。有了framebuffer,用户的应用程序不需要对底层的驱动的深入了解就能够做出很好的图形。
<P></P>
<P></P>
<P align=left>对于用户而言,它和/dev 下面的其他设备没有什么区别,用户可以把
<P></P>
<P></P>
<P align=left>framebuffer 看成一块内存,既可以向这块内存中写入数据,也可以从这块内存中读取数据。
<P></P>
<P></P>
<P align=left>第一个被注册的framebuffer 的minor 等于0,第二个被注册的framebuffer
<P></P>
<P></P>
<P align=left>的minor 等于1,以此类推。
<P></P>
<P></P>
<P align=left><B><FONT face="Times New Roman">framebuffer
</FONT></B><B>内部结构
<P></P></B>
<P></P>
<P align=left>数据结构:framebuffer 设备很大程度上依靠了下面四个数据结构。这三个结构在fb.h 中声明。
<P></P>
<P></P>
<P align=left>Struct fb_var_screeninfo
<P></P>
<P></P>
<P align=left>Struct fb_fix_screeninfo
<P></P>
<P></P>
<P align=left>Struct fb_info
<P></P>
<P></P>
<P align=left>第一个结构是用来描述图形卡的特性的。通常是被用户设置的。
<P></P>
<P></P>
<P align=left>第二个结构定义了图形卡的硬件特性,是不能改变的,用户选定了哪一个图形卡,那么它的硬件特性也就定下来了。
<P></P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -