mirror of
https://github.com/LearningOS/rust-based-os-comp2022.git
synced 2026-11-03 14:05:13 +08:00
deploy: 851a7f83a3
This commit is contained in:
@@ -312,17 +312,25 @@
|
||||
<p>上述的3,4,5步不是必须的,你也可以线下本地开发。</p>
|
||||
<p>注:如果是本地的ubuntu中建立开发环境,可在shell中执行 <code class="docutils literal notranslate"><span class="pre">make</span> <span class="pre">ubuntu_local_setenv</span></code> 来自动安装配置开发环境(执行``sudo``需要root权限,仅需要执行一次)。</p>
|
||||
</div>
|
||||
<p>获取本章代码:</p>
|
||||
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>git clone https://github.com/LearningOS/rust-based-os-comp2022.git
|
||||
<span class="gp">$ </span><span class="nb">cd</span> rust-based-os-comp2022/
|
||||
<span class="gp">$ </span>make setupclassroom_test6 //注意:这一步很重要,是用于github classroom自动评测你的工作。这一步只需在首次克隆项目仓库时执行一次,以后一般就不用执行了,除非 .github/workflows/classroom.yml发生了变化。
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>在 qemu 模拟器上运行本章代码参考框架:</p>
|
||||
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span><span class="nb">cd</span> os6-ref
|
||||
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>git clone <span class="sb">``</span>gitaddr of github-classroom-build-lab4<span class="sb">``</span>
|
||||
<span class="gp">$ </span><span class="nb">cd</span> <span class="sb">``</span>github-classroom-build-lab4<span class="sb">``</span>
|
||||
<span class="gp">$ </span>make setupclassroom_test6 //注意:这一步很重要,是用于github classroom自动评测你的工作。这一步只需在首次克隆项目仓库时执行一次,以后一般就不用执行了,除非 .github/workflows/classroom.yml发生了变化。
|
||||
<span class="gp">$ </span><span class="nb">cd</span> os6-ref
|
||||
<span class="gp">$ </span>make run
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="admonition note">
|
||||
<p class="admonition-title">注解</p>
|
||||
<p>实验名称 :实验编号
|
||||
- lab0-0 : test1
|
||||
- lab0-1:test2
|
||||
- lab1:test3
|
||||
- lab2:test4
|
||||
- lab3:test5
|
||||
- lab4:test6
|
||||
- lab5:test8</p>
|
||||
</div>
|
||||
<p>内核初始化完成之后就会进入shell程序,在这里我们运行一下本章的测例 <code class="docutils literal notranslate"><span class="pre">ch6b_filetest_simple</span></code> :</p>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>>> ch6b_filetest_simple
|
||||
file_test passed!
|
||||
|
||||
Reference in New Issue
Block a user