From 8e366105c330c45eaa977b57e7d87c30d2abbbca Mon Sep 17 00:00:00 2001 From: longjin Date: Sat, 18 Jun 2022 00:33:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=B0=E5=86=99=E4=BA=86=E6=96=87=E6=A1=A3:?= =?UTF-8?q?=20=E3=80=8A=E6=9E=84=E5=BB=BADragonOS=E3=80=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/index.rst | 8 +++++--- docs/introduction/build_system.md | 32 +++++++++++++++++++++++++++++++ docs/introduction/intro.md | 1 + docs/kernel/intro.md | 1 + docs/userland/intro.md | 1 + 5 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 docs/introduction/build_system.md create mode 100644 docs/kernel/intro.md create mode 100644 docs/userland/intro.md diff --git a/docs/index.rst b/docs/index.rst index a372054c..651428ff 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -7,22 +7,24 @@ ==================================== .. toctree:: - :maxdepth: 2 + :maxdepth: 1 :caption: 入门 introduction/intro + introduction/build_system .. toctree:: :maxdepth: 2 :caption: 内核层 - introduction/intro + kernel/intro + .. toctree:: :maxdepth: 2 :caption: 用户层 - introduction/intro + userland/intro .. toctree:: :maxdepth: 2 diff --git a/docs/introduction/build_system.md b/docs/introduction/build_system.md new file mode 100644 index 00000000..f125b8f7 --- /dev/null +++ b/docs/introduction/build_system.md @@ -0,0 +1,32 @@ +# 构建DragonOS + +## 软件依赖 + +- GNU make +- GCC >= 8.3.0 +- xorriso +- grub 2.04 + +## 开发环境 + +​ 目前,DragonOS在Deepin V20上进行开发。经测试,在Debian bullseye上,可以正常编译、运行。建议使用Docker运行debian镜像进行开发。(后期将会发布开发环境的docker镜像) + +## 运行环境 + +1. qemu 6.2.0(编译安装并启用gdb调试选项) +2. gdb +3. VNC Viewer + +## 编译DragonOS + +1. 安装编译及运行环境 +2. 进入DragonOS文件夹 +3. 输入命令:`make -j 16`即可编译 + +## 运行DragonOS + +​ 在运行DragonOS之前,需要先使用tools目录下的脚本,创建一至少为16MB磁盘镜像(类型选择raw)。并建立MBR分区表,然后将第一个分区格式化为FAT32分区。 + +​ 在完成以上操作后,将创建的磁盘文件移动至bin文件夹(若不存在,则需要您手动创建),并将其重命名为“disk.img” + +​ 最后,在DragonOS目录下运行 `bash run.sh`脚本,将会完成编译、文件拷贝、内核镜像打包、启动qemu虚拟机的全过程。当qemu虚拟机启动后,即可使用VNC Viewer连接到虚拟机。 \ No newline at end of file diff --git a/docs/introduction/intro.md b/docs/introduction/intro.md index 163c2a07..43533970 100644 --- a/docs/introduction/intro.md +++ b/docs/introduction/intro.md @@ -1,2 +1,3 @@ # 简介 +DragonOS龙操作系统(以下简称“DragonOS”)是一个基于x86-64体系结构开发的,基于GPLv2协议开放源代码的64位操作系统。 \ No newline at end of file diff --git a/docs/kernel/intro.md b/docs/kernel/intro.md new file mode 100644 index 00000000..ebf923a3 --- /dev/null +++ b/docs/kernel/intro.md @@ -0,0 +1 @@ +# 内核层 \ No newline at end of file diff --git a/docs/userland/intro.md b/docs/userland/intro.md new file mode 100644 index 00000000..4defac2d --- /dev/null +++ b/docs/userland/intro.md @@ -0,0 +1 @@ +# 应用层 \ No newline at end of file