📄 理解和使用linux的硬件抽象层hal - colorant的专栏 - csdn博客.htm
字号:
lang=EN-US><FONT face="Times New Roman">HAL</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的官方网址:</SPAN><SPAN
lang=EN-US><A href="http://www.freedesktop.org/wiki/Software/hal"><FONT
face="Times New Roman">http://www.freedesktop.org/wiki/Software/hal</FONT></A><FONT
face="Times New Roman"> </FONT></SPAN></FONT></P>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A
href="http://opensolaris.org/os/project/tamarack/hal_re.html"><FONT
face="Times New Roman"
size=3>http://opensolaris.org/os/project/tamarack/hal_re.html</FONT></A><FONT
face="Times New Roman" size=3> solaris</FONT></SPAN><FONT size=3><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">系统上的同志写的一篇分析</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">HAL</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">框架原理的文章。很好,就是版本稍微有点旧</SPAN></FONT></P>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A
href="http://people.freedesktop.org/~david/talks/dynamic-device-handling-OLS-2006.pdf"><FONT
face="Times New Roman" color=#0000cc
size=3>http://people.freedesktop.org/~david/talks/dynamic-device-handling-OLS-2006.pdf</FONT></A><FONT
face="Times New Roman"><FONT size=3><SPAN style="mso-spacerun: yes">
</SPAN>2006</FONT></FONT></SPAN><FONT size=3><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">年</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">Linux</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">研讨会上,</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">Hal</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的作者</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">David Zeuthen</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">所提交的</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">Paper</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">。</SPAN></FONT></P>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><FONT size=3><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">顺便提一下,研讨会的网址是:</SPAN><SPAN
lang=EN-US><A href="http://www.linuxsymposium.org/"><FONT
face="Times New Roman">http://www.linuxsymposium.org/</FONT></A><FONT
face="Times New Roman"> </FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">有不少</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">Paper</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">看起来真的很不错啊,很有兴趣!今年的会议有好多</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">Paper</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">我都等不及想看看了。</SPAN></FONT></P>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><SPAN lang=PT-BR
style="mso-ansi-language: PT-BR"><O:P><FONT face="Times New Roman"
size=3></FONT></O:P></SPAN></P>
<H2 style="MARGIN: 0cm 0cm 0pt 31.2pt"><SPAN lang=PT-BR
style="mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: PT-BR"><SPAN
style="mso-list: Ignore"><FONT face="Times New Roman">1.2<SPAN
style="FONT: 7pt 'Times New Roman'"><FONT
size=5>
</FONT></SPAN></FONT></SPAN></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: PT-BR">工作环境</SPAN><SPAN
lang=PT-BR style="mso-ansi-language: PT-BR"><O:P></O:P></SPAN></H2>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><FONT size=3><SPAN
lang=PT-BR style="mso-ansi-language: PT-BR"><FONT
face="Times New Roman">Hal</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: PT-BR">本身对环境的要求是:</SPAN><SPAN
lang=PT-BR style="mso-ansi-language: PT-BR"><O:P></O:P></SPAN></FONT></P>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><SPAN lang=PT-BR
style="mso-ansi-language: PT-BR"><O:P><FONT face="Times New Roman"
size=3></FONT></O:P></SPAN></P>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>Linux kernel <ST1:CHSDATE year="1899" month="12"
day="30" islunardate="False" isrocdate="False" w:st="on">2.6.17</ST1:CHSDATE>
(or later) </FONT></SPAN></P>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>util-linux 2.12r (or later) </FONT></SPAN></P>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>udev 089 (or later) </FONT></SPAN></P>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>dbus 0.61 (or later) </FONT></SPAN></P>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>glib <ST1:CHSDATE year="1899" month="12" day="30"
islunardate="False" isrocdate="False" w:st="on">2.6.0</ST1:CHSDATE> (or later)
</FONT></SPAN></P>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><SPAN lang=PT-BR
style="mso-ansi-language: PT-BR"><O:P><FONT face="Times New Roman"
size=3></FONT></O:P></SPAN></P>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><FONT size=3><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: PT-BR">我想,关键是内核了,低于这个版本的内核就不用玩了</SPAN><SPAN
lang=PT-BR style="mso-ansi-language: PT-BR"><FONT face="Times New Roman"> 8
</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: PT-BR">)至于我的环境:</SPAN><SPAN
lang=PT-BR style="mso-ansi-language: PT-BR"><O:P></O:P></SPAN></FONT></P>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><SPAN lang=PT-BR
style="mso-ansi-language: PT-BR"><O:P><FONT face="Times New Roman"
size=3></FONT></O:P></SPAN></P>
<P class=MsoListBullet2 style="MARGIN: 0cm 0cm 0pt 39pt"><SPAN lang=PT-BR
style="FONT-FAMILY: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings; mso-ansi-language: PT-BR"><SPAN
style="mso-list: Ignore"><FONT size=3>Ø</FONT><SPAN
style="FONT: 7pt 'Times New Roman'">
</SPAN></SPAN></SPAN><FONT size=3><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: PT-BR">硬件平台:基于</SPAN><SPAN
lang=PT-BR style="mso-ansi-language: PT-BR"><FONT
face="Times New Roman">ARM</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: PT-BR">的嵌入式板子</SPAN><SPAN
lang=PT-BR style="mso-ansi-language: PT-BR"><O:P></O:P></SPAN></FONT></P>
<P class=MsoListBullet2 style="MARGIN: 0cm 0cm 0pt 39pt"><SPAN lang=PT-BR
style="FONT-FAMILY: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings; mso-ansi-language: PT-BR"><SPAN
style="mso-list: Ignore"><FONT size=3>Ø</FONT><SPAN
style="FONT: 7pt 'Times New Roman'">
</SPAN></SPAN></SPAN><FONT size=3><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: PT-BR">软件环境:</SPAN><SPAN
lang=PT-BR style="mso-ansi-language: PT-BR"><FONT face="Times New Roman">Linux
<ST1:CHSDATE year="1899" month="12" day="30" islunardate="False"
isrocdate="False" w:st="on">2.6.21</ST1:CHSDATE> </FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: PT-BR">,自制文件系统</SPAN><SPAN
lang=PT-BR style="mso-ansi-language: PT-BR"><O:P></O:P></SPAN></FONT></P>
<P class=MsoListBullet2 style="MARGIN: 0cm 0cm 0pt 39pt"><SPAN lang=PT-BR
style="FONT-FAMILY: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings; mso-ansi-language: PT-BR"><SPAN
style="mso-list: Ignore"><FONT size=3>Ø</FONT><SPAN
style="FONT: 7pt 'Times New Roman'">
</SPAN></SPAN></SPAN><SPAN lang=PT-BR style="mso-ansi-language: PT-BR"><FONT
size=3><FONT face="Times New Roman">Dbus <ST1:CHSDATE year="1899" month="12"
day="30" islunardate="False" isrocdate="False"
w:st="on">1.0.2</ST1:CHSDATE><O:P></O:P></FONT></FONT></SPAN></P>
<P class=MsoListBullet2 style="MARGIN: 0cm 0cm 0pt 39pt"><SPAN lang=PT-BR
style="FONT-FAMILY: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings; mso-ansi-language: PT-BR"><SPAN
style="mso-list: Ignore"><FONT size=3>Ø</FONT><SPAN
style="FONT: 7pt 'Times New Roman'">
</SPAN></SPAN></SPAN><SPAN lang=PT-BR style="mso-ansi-language: PT-BR"><FONT
size=3><FONT face="Times New Roman">Hal <ST1:CHSDATE year="1899" month="12"
day="30" islunardate="False" isrocdate="False"
w:st="on">0.5.10</ST1:CHSDATE><O:P></O:P></FONT></FONT></SPAN></P>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><SPAN lang=PT-BR
style="mso-ansi-language: PT-BR"><O:P><FONT face="Times New Roman"
size=3></FONT></O:P></SPAN></P>
<H1 style="MARGIN: 0cm 0cm 0pt 24.1pt"><SPAN lang=PT-BR
style="mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: PT-BR"><SPAN
style="mso-list: Ignore"><FONT face="Times New Roman">2<SPAN
style="FONT: 7pt 'Times New Roman'"><FONT
size=6>
</FONT></SPAN></FONT></SPAN></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: PT-BR">理解</SPAN><SPAN
lang=PT-BR style="mso-ansi-language: PT-BR"><FONT
face="Times New Roman">HAL<O:P></O:P></FONT></SPAN></H1>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><SPAN lang=PT-BR
style="mso-ansi-language: PT-BR"><O:P><FONT face="Times New Roman"
size=3></FONT></O:P></SPAN></P>
<H2 style="MARGIN: 0cm 0cm 0pt 31.2pt"><SPAN lang=PT-BR
style="mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: PT-BR"><SPAN
style="mso-list: Ignore"><FONT face="Times New Roman">2.1<SPAN
style="FONT: 7pt 'Times New Roman'"><FONT
size=5>
</FONT></SPAN></FONT></SPAN></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: PT-BR">什么是</SPAN><SPAN
lang=PT-BR style="mso-ansi-language: PT-BR"><FONT
face="Times New Roman">HAL<O:P></O:P></FONT></SPAN></H2>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><FONT size=3><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: PT-BR">说实话,这部分很多人写过,不过为了文章的完备性,我还是从我理解的侧重点再写一下。</SPAN><SPAN
lang=PT-BR style="mso-ansi-language: PT-BR"><O:P></O:P></SPAN></FONT></P>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 20pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">首先</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 10pt; COLOR: black"><FONT
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -