xref: /DragonOS/docs/community/ChangeLog/V0.1.x/V0.1.3.md (revision 52da9a59374752b4d01907b052135a0d317781dd)
1# V0.1.3
2
3:::{note}
4本文作者:龙进 <longjin@RinGoTek.cn>
5
62023年1月8日
7:::
8
9## 贡献者名单
10
11DragonOS V0.1.3版本由以下小伙伴贡献代码:
12
13- 龙进 <longjin@RinGoTek.cn>
14- 吴宇健 <wuyujian@DragonOS.org>
15- 关锦权 <guanjinquan@DragonOS.org>
16- Gou Ngai <sujintao@DragonOS.org>
17
18## 赞助者名单
19
20感谢以下同学的赞赏,我们将不断努力!
21
22- David Wen
23- [Seele.Clover](https://github.com/seeleclover)
24- TerryLeeSCUT
25- 悟
26- slientbard
27
28## 更新内容-内核
29
30- syscall: new: 增加getpid系统调用 (#120)
31- signal: update: 对于除了SIGKILL以外的信号,也将他们加入SigQueue (#120)
32- rtc: refactor: 使用Rust重构RTC驱动 (#118)
33- doc: new: 新增signal的文档 (#126)
34- Spinlock: new: 新增rust写的RawSpinlock (#127)
35- arch: update: 在lib.rs中,将arch模块的路径进行更改,使得其他模块使用arch的代码时,不需要指定arch::x86_64 (#128)
36- mm: bugfix: 修复页面分配器在初始化时,ZONE_NORMAL_INDEX始终为0的bug (#129)
37- scheduler: new: 使用Rust重构CFS调度器 (#131)
38- smp: 删除已经在smp中废弃的HPET中断转发函数 (#131)
39- process: bugfix: 修复init进程忘记设定fs gs寄存器的问题。 (#132)
40- vfs: update: 将VFS文件夹重命名为vfs (#133)
41- lockref: new: 新增rust版本的lockref (#135)
42- cpu: new: new:Rust封装cpu_relax(),通过pause指令,让cpu休息一会儿,降低空转功耗. (#135)
43- 使用rust重构softirq机制 (#138)
44
45
46## 更新内容-用户环境
47
48- libc: bugfix: 注册信号处理函数时,总是注册sigkill的问题 (#120)
49- libc: new: 增加了raise、kill、abort (#120)
50- libc: new: 新增arch文件夹,在下面新增crt0 crti crtn文件 (#134)
51- libc: new: 新增`fflush()`, `fprintf()`, `stdin`, `stdout`, `stderr`, `ferror()`, `fopen()`, `fclose()`, `putchar()`, `puts()` (#136)
52- libc: new: 简单添加了`fopen()`对mode参数的处理。请注意,它没有完全遵循posix,也与Linux的不一致,将来使用Rust的时候完善它。 (#141)
53- 移植: new: 新增了gmp, mpfr, mpc的移植构建脚本 (#136)
54- 移植: new: 新增了gcc、binutils的交叉编译构建脚本以及gcc-11.3.0, binutils-2.38的补丁(在DragonOS-community下的仓库中)(#136)
55- compile: update: 更改编译器的Include路径,使得include时不需要加`<libc/src/include/>`前缀 (#124)
56
57## 更新内容-其他
58
59- bugfix: 修复docker安装时异常退出的bug (#116)
60- new: 新增目标为x86_64-elf的GCC裸机编译器,并使用它来编译DragonOS (#111)
61- update: 更新Docker编译镜像至版本`dragonos/dragonos-dev:v1.2`, 并支持从Dockerfile构建这个编译镜像 (#111)
62- bugfix: 修复MBR磁盘镜像未设置启动标志的bug (#111)
63- update: 更新github workflow,增加cache,加快build check的速度
64- bugfix: 修复下载grub2.06时的提示错误 (#125)
65
66## 更新内容-软件移植
67
68- new: gcc 11.3.0 userland cross-compiler, 提交:`64a5b1cbf28e3305560e166c1b6624e99745c720`, 仓库:[https://github.com/DragonOS-Community/gcc](https://github.com/DragonOS-Community/gcc)
69- new: binutils 2.38 cross-compile tools, 提交:`a0ae560e0065862a9867b9e1f8364749ef38d99e`, 仓库:[https://github.com/DragonOS-Community/binutils](https://github.com/DragonOS-Community/binutils)
70- new: gmp 6.2.1, 提交:`dd9eee5778fb6027fafa4fe850aff21b1a71c18e`, 仓库:[https://github.com/DragonOS-Community/gmp-6.2.1](https://github.com/DragonOS-Community/gmp-6.2.1)
71- new: mpfr 4.1.1, 提交:`fa8e30cdc2e838fdd82b60fec31fcfc5e118aad6`, 仓库:[https://github.com/DragonOS-Community/mpfr](https://github.com/DragonOS-Community/mpfr)
72- new: mpc 1.2.1, (无需打补丁即可移植),仓库:[https://github.com/DragonOS-Community/mpc](https://github.com/DragonOS-Community/mpc)
73
74
75## 源码、发布版镜像下载
76
77&emsp;&emsp;您可以通过以下方式获得源代码:
78
79### 通过Git获取
80
81- 您可以访问[https://github.com/fslongjin/DragonOS/releases](https://github.com/fslongjin/DragonOS/releases)下载发布版的代码,以及编译好的,可运行的磁盘镜像。
82- 我们在gitee上也有镜像仓库可供下载:[https://gitee.com/DragonOS/DragonOS](https://gitee.com/DragonOS/DragonOS)
83
84### 通过DragonOS软件镜像站获取
85
86&emsp;&emsp;为解决国内访问GitHub慢、不稳定的问题,同时为了方便开发者们下载DragonOS的每个版本的代码,我们特意搭建了镜像站,您可以通过以下地址访问镜像站:
87
88&emsp;&emsp;您可以通过镜像站获取到DragonOS的代码压缩包,以及编译好的可运行的磁盘镜像。
89
90- [https://mirrors.DragonOS.org](https://mirrors.DragonOS.org)
91- [https://mirrors.DragonOS.org.cn](https://mirrors.DragonOS.org.cn)
92- 国内镜像加速: [https://mirrors.ringotek.cn/] (https://mirrors.ringotek.cn/)
93
94## 开放源代码声明
95
96
97:::{note}
98为促进DragonOS项目的健康发展,DragonOS以GPLv2开源协议进行发布。所有能获得到DragonOS源代码以及相应的软件制品(包括但不限于二进制副本、文档)的人,都能享有我们通过GPLv2协议授予您的权利,同时您也需要遵守协议中规定的义务。
99
100这是一个相当严格的,保护开源软件健康发展,不被侵占的协议。
101
102对于大部分的善意的人们而言,您不会违反我们的开源协议。
103
104我们鼓励DragonOS的自由传播、推广,但是请确保所有行为没有侵犯他人的合法权益,也没有违反GPLv2协议。
105
106请特别注意,对于违反开源协议的,尤其是**商业闭源使用以及任何剽窃、学术不端行为将会受到严肃的追责**。(这是最容易违反我们的开源协议的场景)。
107
108并且,请注意,按照GPLv2协议的要求,基于DragonOS修改或二次开发的软件,必须同样采用GPLv2协议开源,并标明其基于DragonOS进行了修改。亦需保证这些修改版本的用户能方便的获取到DragonOS的原始版本。
109
110您必须使得DragonOS的开发者们,能够以同样的方式,从公开渠道获取到您二次开发的版本的源代码,否则您将违反GPLv2协议。
111
112关于协议详细内容,还敬请您请阅读项目根目录下的**LICENSE**文件。请注意,按照GPLv2协议的要求,**只有英文原版才具有法律效力**。任何翻译版本都仅供参考。
113:::
114
115### 开源软件使用情况
116
117&emsp;&emsp;DragonOS在开发的过程中,参考了一些开源项目的设计,或者引入了他们的部分代码,亦或是受到了他们的启发。现将他们列在下面。我们对这些开源项目的贡献者们致以最衷心的感谢!
118
119格式:<项目名> - <链接> - <开源协议>
120
121- Linux - 	https://git.kernel.org/ - GPLv2
122- skiftOS - https://github.com/skiftOS/skift - MIT
123- FYSOS - https://github.com/fysnet/FYSOS - [FYSOS' License](https://github.com/fysnet/FYSOS/blob/9a8968e3d6600de34539c028c843f4c06d134039/license.txt)
124- LemonOS - https://github.com/LemonOSProject/LemonOS.git - BSD 2-Clause License
125- LZ4 - https://github.com/lz4/lz4 - BSD 2-Clause license
126- SerenityOS - https://github.com/SerenityOS/serenity.git - BSD 2-Clause license
127- MINE - 《一个64位操作系统的设计与实现》田宇; 人民邮电出版社
128- chcore - 《现代操作系统:设计与实现》陈海波,夏虞斌; 机械工业出版社
129- SimpleKernel - https://github.com/Simple-XX/SimpleKernel - MIT
130- rcore-fs - https://github.com/rcore-os/rcore-fs.git - MIT
131
132## 当前版本的所有提交记录
133
134```text
135commit a8b621c8d1fe77251b8e4eafe258dc0ee7366dd5
136Author: login <longjin@ringotek.cn>
137Date:   Sun Jan 8 15:47:44 2023 +0800
138
139    修正由于libc中具有crti.Scrtn.S,造成的与x86_64-elf-gcc不兼容的问题 (#144)
140
141commit 9358ff0f6f7daa18d6fab4497de025736b3d6725
142Author: login <longjin@ringotek.cn>
143Date:   Sun Jan 8 15:06:52 2023 +0800
144
145    Add v0.1.3 changelog (#143)
146
147    * new: 0.1.3发行日志
148
149    * 新增输出指定时间范围内的贡献者名单的脚本
150
151    * 更新bootloader文档
152
153    * update: 简介文档
154
155    * new: 镜像站文档
156
157    * update: 功能特性文档
158
159commit fd91905f022b3ceaa59e666d1ff42d91fb8d40ef
160Author: login <longjin@ringotek.cn>
161Date:   Sun Jan 8 11:38:59 2023 +0800
162
163    解决编译gcc、binutils的脚本中,变量名称错误的问题 (#142)
164
165commit 62e4613978193aaf5d949a331df0398f2d085a30
166Author: Gou Ngai <94795048+AlbertSanoe@users.noreply.github.com>
167Date:   Sat Jan 7 23:15:37 2023 +0800
168
169    使用rust重构softirq机制;解决Rtc驱动的编译警告问题 (#138)
170
171    * 使用rust重构softirq机制
172    * 解决Rtc驱动的编译警告问题
173
174    Co-authored-by: longjin <longjin@RinGoTek.cn>
175
176commit e9fdc57bf878f1bc5cc5743dfaeeaef743439291
177Author: login <longjin@ringotek.cn>
178Date:   Sat Jan 7 22:36:49 2023 +0800
179
180    简单添加了fopen对mode参数的处理。请注意,它没有完全遵循posix,也与Linux的不一致,将来使用Rust的时候完善它。 (#141)
181
182commit 2224c93ea968bc74621f7e124b4aca04875b3e6a
183Author: guanjinquan <1666320330@qq.com>
184Date:   Fri Jan 6 21:29:23 2023 +0800
185
186    完善libc,构建了OS-specific工具链,编译了基于gcc-11.3.0的DragonOS userland compiler,移植了mpfr,gmp,mpc库 (#134)
187
188    * 修改include路径
189
190    * 添加了创建libsysapi.a/bin/sysroot/usr/include/+lib/的代码
191
192    * 修补.gitignore
193
194    * 删除多余项
195
196    * 优化脚本可读性
197
198    * 新增crt0 crti crtn
199
200    * 编译binutils所需的东西
201
202    * fflush()和fprintf()的简单实现
203
204    * 应用程序启动前,调用初始化libc的函数
205
206    * 自动创建sysroot
207
208    * 添加了stderr的初始化
209
210    * 修改了stderr的初始化
211
212    * 内核添加对stdio的简略处理
213
214    * 格式化代码
215
216    * 修正打开stdio文件描述符的问题
217
218    * bugfix: 修复fprintf忘记释放buf的问题
219
220    * 修复shell错误地把入口设置为main而不是_start的问题
221
222    * 新增__cxa_atexit  (gcc要求libc提供这个)
223
224    * 增加putchar puts
225
226    * 更新写入磁盘镜像的脚本,默认无参数时,使用legacy方式安装
227
228    * 更新编译脚本
229
230    * stdio增加eof的定义
231
232    * 新增extern cplusplus
233
234    * mpfr gmp mpc 构建脚本
235
236    * 更新libsysapi.alibc.a
237
238    * 加上ferror fopen fclose
239
240    * 更新移植的软件的构建脚本
241
242    * 更改build_gcc_toolchain.sh中的-save参数名为-save-cache
243
244    Co-authored-by: longjin <longjin@RinGoTek.cn>
245
246commit 61de2cdc3f29cdc6c441f128119e01e003e6f3ca
247Author: login <longjin@ringotek.cn>
248Date:   Tue Jan 3 23:09:25 2023 +0800
249
250    新增rust版本的lockref (#135)
251
252    * new:Rust封装cpu_relax(),通过pause指令,让cpu休息一会儿。降低空转功耗
253
254    * new: Rust版本的lockref
255
256    * Rust的RawSpinlock新增is_locked()和set_value()方法。
257
258    * lockref文档
259
260commit 2726f101b4cc787bbd36a69afffb0112f3a6567f
261Author: login <longjin@ringotek.cn>
262Date:   Tue Jan 3 21:01:56 2023 +0800
263
264    删除无用的cfs.h (#136)
265
266commit 587086d3f299f7394559d547c828191be20cfc11
267Author: login <longjin@ringotek.cn>
268Date:   Sun Jan 1 16:53:57 2023 +0800
269
270    1、在文件系统目录下增加mod.rs 2、将VFS的路径改为vfs(#133)
271
272    2、将VFS的路径改为vfs
273
274commit 843e442971a47693f37a5f8d3452c383f7325359
275Author: login <longjin@ringotek.cn>
276Date:   Sat Dec 31 18:43:05 2022 +0800
277
278    修复init进程忘记设定fs gs寄存器的问题。 (#132)
279
280commit 74bde36e014ff501241bf40dd83653db47a2c8e4
281Author: guanjinquan <1666320330@qq.com>
282Date:   Sat Dec 31 17:35:39 2022 +0800
283
284    Patch porting gcc v2 (#124)
285
286    * 更改编译器的Include路径,使得include时不需要加`<libc/src/include/>`前缀
287
288    * 修改include路径
289
290    Co-authored-by: longjin <longjin@RinGoTek.cn>
291
292commit d4f3de93a23e4bd4f000a3663768d47d094bf188
293Author: login <longjin@ringotek.cn>
294Date:   Sat Dec 31 17:26:12 2022 +0800
295
296    使用Rust重构CFS调度器 (#131)
297
298    * 新建调度器的文件
299
300    * 把softirq vector移动到c文件中(原来在.h)
301
302    * 将进程切换方式改为“中断返回时切换”
303
304    * new:使用rust重构CFS
305
306    * 删除已经在smp中废弃的HPET中断转发函数
307
308    * 代码格式化
309
310    * 删除多余的dunce依赖
311
312commit 156949680c83f2d7e3b21ed68b11698b88eaf396
313Author: login <longjin@ringotek.cn>
314Date:   Sat Dec 31 13:47:49 2022 +0800
315
316    bugfix:修复当使用sched()运行调度器,在切换进程的时候,由于不在中断上下文内,导致当前进程的上下文丢失的问题。 (#130)
317
318    bugfix:修复当使用sched()运行调度器,在切换进程的时候,由于不在中断上下文内,导致当前进程的上下文丢失的问题。
319    bugfix:修复切换进程的宏的汇编代码的损坏部分,未声明rax寄存器,从而导致的编译器未定义行为问题。
320
321commit 882f0b7e7498dbff8de527b2b9159b7f6e6359c9
322Author: YJwu2023 <119829947+YJwu2023@users.noreply.github.com>
323Date:   Wed Dec 28 19:35:17 2022 +0800
324
325    修复内存bug与grub安装脚本的错误 (#129)
326
327    * 修复内存bug与grub安装脚本的错误
328
329    * 修改小bug
330
331commit adc1846b06fb862caed049f435fc0061488a6ff9
332Author: login <longjin@ringotek.cn>
333Date:   Mon Dec 26 13:13:12 2022 +0800
334
335    内核:在lib.rs中,将arch模块的路径进行更改,使得其他模块使用arch的代码时,不需要指定arch::x86_64 (#128)
336
337commit ac643d420b22f9d454ecefccd51ed34a9664586b
338Author: login <longjin@ringotek.cn>
339Date:   Sun Dec 25 23:53:35 2022 +0800
340
341    new:新增rust写的RawSpinlock (#127)
342
343commit 998390210549b47e6bdcc3fdab49eff4086ad18b
344Author: login <longjin@ringotek.cn>
345Date:   Sat Dec 24 23:30:26 2022 +0800
346
347    新增signal文档 (#126)
348
349    * 新增signal文档
350
351commit a7f5ca7b67160557abf84a1169dd60093220aeb0
352Author: YJwu2023 <119829947+YJwu2023@users.noreply.github.com>
353Date:   Sat Dec 24 23:29:36 2022 +0800
354
355    修复下载grub2.06时的提示错误 (#125)
356
357    * 修复grub下载显示提示显示错误
358
359commit 82762007da41148e1ed1df465211eb5c8ba2c15e
360Author: login <longjin@ringotek.cn>
361Date:   Fri Dec 23 18:11:47 2022 +0800
362
363    Update makefile.yml
364
365commit b975025ec8854ca232152f4ee44cc2226891a34c
366Author: login <longjin@ringotek.cn>
367Date:   Fri Dec 23 11:45:19 2022 +0800
368
369    Update makefile.yml
370
371commit ad2bb74d949bfcb2935e43ac7b261d7ecce23389
372Author: login <longjin@ringotek.cn>
373Date:   Fri Dec 23 11:21:22 2022 +0800
374
375    Update makefile.yml
376
377commit 6b7776d189ab5f19fbab20d6c5c9ed3ab20c7ab6
378Author: login <longjin@ringotek.cn>
379Date:   Fri Dec 23 10:59:15 2022 +0800
380
381    修正smp的makefile中没有替换AS的问题
382
383commit beb12a188b6c6bc4196796ac2ae1ecd7d8ed8223
384Author: login <longjin@ringotek.cn>
385Date:   Fri Dec 23 10:57:39 2022 +0800
386
387    Update makefile.yml
388
389commit d65c527730e5c8a75f6dad0f996c093040699ee3
390Author: login <longjin@ringotek.cn>
391Date:   Thu Dec 22 22:58:28 2022 +0800
392
393    Update makefile.yml (#121)
394
395commit 5ed4cd460200cb19aae8c3c67dfd77e1e9f0e105
396Author: guanjinquan <75822481+guanjinquan@users.noreply.github.com>
397Date:   Thu Dec 22 21:09:12 2022 +0800
398
399    Patch gcc toolchain (#111)
400
401    * 添加了GCC_cross_compile——tool_chain
402
403    * - 解决环境变量路径拼接时,多了`/`的问题
404    - apt安装时增加-y,不需用户确认
405
406    * 解决添加环境变量的命令有误的问题
407
408    * 修正编译错误时,还会执行下一步的问题
409
410    * new: 编译完成后清理临时文件
411
412    * 更新makefile
413
414    * 调整:把grub安装在 $HOME/opt/dragonos-grub415
416    * new: 新增dockerfile
417
418    * 将镜像源换成中科大的(原因是清华的总是ban掉用于构建镜像的服务器的ip)
419
420    * 修改为基于debian bullseye构建
421
422    * 取消指定版本
423
424    * 修复MBR磁盘镜像未设置启动标志的bug
425
426    * 取消在docker中安装grub
427
428    * 安装grub的过程改到客户机上进行
429
430    * bootstrap.sh 添加--no-docker
431
432    * 使用新版的docker编译镜像
433
434    * 修补, 添加了一些关于gcc的check
435
436    Co-authored-by: longjin <longjin@RinGoTek.cn>
437
438commit ba0d93d8b26034abc54bcaf3f0ff04863bbd076e
439Author: Gou Ngai <94795048+AlbertSanoe@users.noreply.github.com>
440Date:   Mon Dec 19 15:04:37 2022 +0800
441
442    refactor rtc module in rust (#118)
443
444    * 用rust重构rtc模块
445
446    * refactor the rtc module by rust
447
448    * rtc-updated
449
450    * rtc-updated-4
451
452    * rtc
453
454commit c588d6f77f4b38939701b946228218ea81a7c8dc
455Author: login <longjin@ringotek.cn>
456Date:   Mon Dec 19 15:03:44 2022 +0800
457
458    Patch add abort func (#120)
459
460    * 对于除了sigkill以外的信号,也加入队列
461
462    * bugfix:libc中,注册信号处理函数时,总是注册sigkill的问题
463
464    * 增加getpid系统调用
465
466    * 增加了raise、kill、abort
467
468commit 47f0d12a1f1a1aa11be8e751ecdbf76f0cb596d9
469Author: YJwu2023 <119829947+YJwu2023@users.noreply.github.com>
470Date:   Mon Dec 19 14:53:51 2022 +0800
471
472    修复docker安装时异常退出的bug (#119)
473
474    * 修复docker安装时异常退出的bug
475
476    * 修复grub编译脚本的小bug
477
478commit 978043e47d1143ca2d5cf22b20793f032e8eb5a5
479Author: login <longjin@ringotek.cn>
480Date:   Sun Dec 18 15:09:15 2022 +0800
481
482    修复当系统中不存在dosfstools时,无法正确格式化磁盘镜像的问题 (#117)
483
484    * 修复当系统中不存在dosfstools时,无法正确格式化磁盘镜像的问题
485
486commit f9127772dc372a2e607388fdd6818d3f9c4c6d28
487Author: YJwu2023 <119829947+YJwu2023@users.noreply.github.com>
488Date:   Sat Dec 17 23:43:23 2022 +0800
489
490    修复docker安装时异常退出的bug (#116)
491
492```