Skip to content

Commit

Permalink
Site updated: 2024-03-02 23:12:28
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuzhuzhus committed Mar 2, 2024
1 parent dab49f7 commit cbd7ed9
Show file tree
Hide file tree
Showing 8 changed files with 1,240 additions and 5 deletions.
14 changes: 10 additions & 4 deletions 2024/01/18/日志/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
<link rel="dns-prefetch" href="http://example.com">
<title>日志 | zhuzhuzhu&#39;s blog</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="2024&#x2F;2&#x2F;22今天算是学完了Linux的系统移植,也成功在自己的板子上移植了自己的Linux系统,总结回顾全部移植过程就是: 首先创建自己的uboot文件,具体就是创建自己的config配置文件,以及板子对应的头文件和板级文件夹 根据自己的板子修改相关驱动,如LCD和网络驱动 接着在Linux下添加自己的开发板,也就是添加自己板子的配置文件以及设备树文件 再根据自己的">
<meta name="description" content="2024&#x2F;3&#x2F;2今天学习了设备树的基本框架和语法,但是很多东西感觉很模糊,明天减少任务量并复习总结前面的内容 2024&#x2F;3&#x2F;1今天还是编写LED驱动,但是不同的是今天编写的LED驱动不需要手动查看可用设备号然后手动申请,并且可以自动分配子设备号,同时还学习了通过class类直接部署驱动到&#x2F;dev中,并且可以将一个设备创建一个结构体保存该设备的数">
<meta property="og:type" content="article">
<meta property="og:title" content="日志">
<meta property="og:url" content="http://example.com/2024/01/18/%E6%97%A5%E5%BF%97/index.html">
<meta property="og:site_name" content="zhuzhuzhu&#39;s blog">
<meta property="og:description" content="2024&#x2F;2&#x2F;22今天算是学完了Linux的系统移植,也成功在自己的板子上移植了自己的Linux系统,总结回顾全部移植过程就是: 首先创建自己的uboot文件,具体就是创建自己的config配置文件,以及板子对应的头文件和板级文件夹 根据自己的板子修改相关驱动,如LCD和网络驱动 接着在Linux下添加自己的开发板,也就是添加自己板子的配置文件以及设备树文件 再根据自己的">
<meta property="og:description" content="2024&#x2F;3&#x2F;2今天学习了设备树的基本框架和语法,但是很多东西感觉很模糊,明天减少任务量并复习总结前面的内容 2024&#x2F;3&#x2F;1今天还是编写LED驱动,但是不同的是今天编写的LED驱动不需要手动查看可用设备号然后手动申请,并且可以自动分配子设备号,同时还学习了通过class类直接部署驱动到&#x2F;dev中,并且可以将一个设备创建一个结构体保存该设备的数">
<meta property="og:locale" content="en_US">
<meta property="article:published_time" content="2024-01-18T13:38:43.000Z">
<meta property="article:modified_time" content="2024-02-22T10:52:04.059Z">
<meta property="article:modified_time" content="2024-03-02T15:11:37.107Z">
<meta property="article:author" content="ZHUJIALE">
<meta property="article:tag" content="日记">
<meta name="twitter:card" content="summary">
Expand Down Expand Up @@ -182,6 +182,12 @@ <h1 class="article-title" itemprop="name">

<span id="more"></span>

<h2 id="2024-3-2"><a href="#2024-3-2" class="headerlink" title="2024&#x2F;3&#x2F;2"></a>2024&#x2F;3&#x2F;2</h2><p>今天学习了设备树的基本框架和语法,但是很多东西感觉很模糊,明天减少任务量并复习总结前面的内容</p>
<h2 id="2024-3-1"><a href="#2024-3-1" class="headerlink" title="2024&#x2F;3&#x2F;1"></a>2024&#x2F;3&#x2F;1</h2><p>今天还是编写LED驱动,但是不同的是今天编写的LED驱动不需要手动查看可用设备号然后手动申请,并且可以自动分配子设备号,同时还学习了通过class类直接部署驱动到&#x2F;dev中,并且可以将一个设备创建一个结构体保存该设备的数据例如设备号,class类等</p>
<h2 id="2024-2-29"><a href="#2024-2-29" class="headerlink" title="2024&#x2F;2&#x2F;29"></a>2024&#x2F;2&#x2F;29</h2><p>今天编写了LED的字符设备驱动,了解了编写驱动的具体流程和需要使用的函数等</p>
<h2 id="2024-2-28"><a href="#2024-2-28" class="headerlink" title="2024&#x2F;2&#x2F;28"></a>2024&#x2F;2&#x2F;28</h2><p>今天通过编写字符驱动程序了解了字符驱动程序的编写流程,搜先要编写注册和退出函数,传入的参数有主设备号,设备姓名,函数表。还有退出函数,</p>
<p>接着还要设置open,write,read,close等函数,同时在应用程序也要设置对应的调用,在设置例如write调用的时候,内核的值不能直接赋给应用,应用的值也不可以直接赋值给内核,都要通过相应的函数如copy_to_user copy_from_user等</p>
<h2 id="2024-2-27"><a href="#2024-2-27" class="headerlink" title="2024&#x2F;2&#x2F;27"></a>2024&#x2F;2&#x2F;27</h2><p>今天了解了驱动开发的流程,大致就是根据Linux提供的框架编写驱动,编写完成后还要编写一个简单的应用程序应用程序进行测试。还了解了Linux驱动开发的分类分为字符设备驱动,网络设备驱动,块设备驱动</p>
<h2 id="2024-2-22"><a href="#2024-2-22" class="headerlink" title="2024&#x2F;2&#x2F;22"></a>2024&#x2F;2&#x2F;22</h2><p>今天算是学完了Linux的系统移植,也成功在自己的板子上移植了自己的Linux系统,总结回顾全部移植过程就是:</p>
<ol>
<li>首先创建自己的uboot文件,具体就是创建自己的config配置文件,以及板子对应的头文件和板级文件夹</li>
Expand Down Expand Up @@ -351,7 +357,7 @@ <h2 id="2024-1-18"><a href="#2024-1-18" class="headerlink" title="2024&#x2F;1&#x
</span>
<span class="tooltip-content">
<div class="toc-article">
<ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-2-22"><span class="toc-number">1.</span> <span class="toc-text">2024&#x2F;2&#x2F;22</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-2-20"><span class="toc-number">2.</span> <span class="toc-text">2024&#x2F;2&#x2F;20</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-2-19"><span class="toc-number">3.</span> <span class="toc-text">2024&#x2F;2&#x2F;19</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-2-18"><span class="toc-number">4.</span> <span class="toc-text">2024&#x2F;2&#x2F;18</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-2-17"><span class="toc-number">5.</span> <span class="toc-text">2024&#x2F;2&#x2F;17</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-2-6"><span class="toc-number">6.</span> <span class="toc-text">2024&#x2F;2&#x2F;6</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-1-26"><span class="toc-number">7.</span> <span class="toc-text">2024&#x2F;1&#x2F;26</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-1-24-25"><span class="toc-number">8.</span> <span class="toc-text">2024&#x2F;1&#x2F;24-25</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-1-23"><span class="toc-number">9.</span> <span class="toc-text">2024&#x2F;1&#x2F;23</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-1-19"><span class="toc-number">10.</span> <span class="toc-text">2024&#x2F;1&#x2F;19</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-1-18"><span class="toc-number">11.</span> <span class="toc-text">2024&#x2F;1&#x2F;18</span></a></li></ol>
<ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-3-2"><span class="toc-number">1.</span> <span class="toc-text">2024&#x2F;3&#x2F;2</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-3-1"><span class="toc-number">2.</span> <span class="toc-text">2024&#x2F;3&#x2F;1</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-2-29"><span class="toc-number">3.</span> <span class="toc-text">2024&#x2F;2&#x2F;29</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-2-28"><span class="toc-number">4.</span> <span class="toc-text">2024&#x2F;2&#x2F;28</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-2-27"><span class="toc-number">5.</span> <span class="toc-text">2024&#x2F;2&#x2F;27</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-2-22"><span class="toc-number">6.</span> <span class="toc-text">2024&#x2F;2&#x2F;22</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-2-20"><span class="toc-number">7.</span> <span class="toc-text">2024&#x2F;2&#x2F;20</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-2-19"><span class="toc-number">8.</span> <span class="toc-text">2024&#x2F;2&#x2F;19</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-2-18"><span class="toc-number">9.</span> <span class="toc-text">2024&#x2F;2&#x2F;18</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-2-17"><span class="toc-number">10.</span> <span class="toc-text">2024&#x2F;2&#x2F;17</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-2-6"><span class="toc-number">11.</span> <span class="toc-text">2024&#x2F;2&#x2F;6</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-1-26"><span class="toc-number">12.</span> <span class="toc-text">2024&#x2F;1&#x2F;26</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-1-24-25"><span class="toc-number">13.</span> <span class="toc-text">2024&#x2F;1&#x2F;24-25</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-1-23"><span class="toc-number">14.</span> <span class="toc-text">2024&#x2F;1&#x2F;23</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-1-19"><span class="toc-number">15.</span> <span class="toc-text">2024&#x2F;1&#x2F;19</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2024-1-18"><span class="toc-number">16.</span> <span class="toc-text">2024&#x2F;1&#x2F;18</span></a></li></ol>
</div>
</span>
</div>
Expand Down
9 changes: 9 additions & 0 deletions 2024/01/18/系统移植篇/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,15 @@ <h3 id="BusyBox构建根文件系统"><a href="#BusyBox构建根文件系统" cl

<nav id="article-nav">

<a href="/2024/02/27/Linux%E9%A9%B1%E5%8A%A8%E5%BC%80%E5%8F%91/" id="article-nav-newer" class="article-nav-link-wrap">
<i class="icon-circle-left"></i>
<div class="article-nav-title">

Linux驱动开发

</div>
</a>


<a href="/2024/01/18/%E6%97%A5%E5%BF%97/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">日志</div>
Expand Down
Loading

0 comments on commit cbd7ed9

Please sign in to comment.