撰写了文档: 《构建DragonOS》

This commit is contained in:
longjin 2022-06-18 00:33:33 +08:00
parent 0d0705a169
commit 8e366105c3
5 changed files with 40 additions and 3 deletions

View File

@ -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

View File

@ -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连接到虚拟机。

View File

@ -1,2 +1,3 @@
# 简介
DragonOS龙操作系统以下简称“DragonOS”是一个基于x86-64体系结构开发的基于GPLv2协议开放源代码的64位操作系统。

1
docs/kernel/intro.md Normal file
View File

@ -0,0 +1 @@
# 内核层

1
docs/userland/intro.md Normal file
View File

@ -0,0 +1 @@
# 应用层