Introduction
USTB OS Lab 2019 Unofficial Tutorial
Last updated
Was this helpful?
USTB OS Lab 2019 Unofficial Tutorial
Last updated
Was this helpful?
This document is an unofficial tutorial of USTB operating system course experiment (OS Lab). If you are tired of doing with the official tutorial, you can try to complete the course experiment by following the content of this tutorial.
As we all know, to complete the OS lab, you need to install the EOS SDK provided by Engintime company. This tutorial provided another way to complete OS lab: build a development environment based on Linux, that can compile, run and debug EOS in a simple way.
If you are experiencing difficulties with the official SDK, or just want to improve your engineering ability, you can try to configure the development environment using the method provided in this tutorial.
It should be noted that this document only provides a way to configure and use the environment. For details on the EOS implementation, please read the .
注意: 这篇文档只提供配置和使用开发环境的方法, 关于 EOS 实现的细节, 还请参考.
The author of this document, Max Xing, is a poor macOS user. When he found that there is only Windows version of official SDK, he was totally crushed.
Later, other students also learned that only the trial version of the official SDK can be installed on their computers. In order to complete the OS lab, we must use the experimental environment of the school computer room. Obviously, nobody is willing to go to the computer room, especially when the deadline is coming and his OS lab is not finished.
To prevent this from happening, Max Xing has configured a development environment on macOS that is sufficient to complete OS lab. Later he ported this environment to Linux, hoping to help everyone.
You have already discovered that this document has been written in English so far, clever! But why do we write the document in English instead of Chinese?
On the one hand, in international academic exchanges, the use of English has become a convention. This is also true in the field of computer science. In many excellent open source software projects, maintainers from all over the world use English to communicate.
On the other hand, affected by the above reasons, it has become increasingly difficult to retrieve valuable content on the Internet using only Chinese. If you need to follow the academic frontier, you will have to face many materials that are purely English and have no Chinese translation. Even many software manuals and API documents are only available in English. Therefore, for students majoring in computer science, reading English materials is an essential skill.
Only the first part of this document is written in English. If there is any important contents that requires extra attention, the Chinese annotation will be used, like this:
不必担心, 这篇文档只有第一部分使用英文叙述. 如果有需要额外注意的重要内容, 我们会使用中文醒目标注.
We highly recommend that you keep on reading the English part of this document, and try to not to use any translation tools. Actually, the document is very easy to understand, because the author's English level is very poor, can't write anything too complicated.
After following this tutorial for practice, you will learn:
How to use Docker.
How to use Linux.
How to use GDB.
How to use Git.
How to write Makefile.
How to get started with Vim.
All you need is:
A PC running Windows or Linux, or a Mac.
Ability to solve problems using search engines (exclude Baidu).
Lots of patience.
Here are some websites/manuals that might help you:
The next chapter will introduce how to install Linux in Docker.
Let's go!
注意:
or .
.
.
, a wiki about OS development.
.
.
.
第一章的内容高度参考了南京大学的 , 版权和许可协议相关的声明请参考.