《操作系统》的实验代码。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

143 lines
5.5 KiB

12 years ago
11 years ago
11 years ago
11 years ago
12 years ago
11 years ago
11 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
12 years ago
11 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
12 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
10 years ago
12 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
12 years ago
11 years ago
11 years ago
11 years ago
12 years ago
11 years ago
12 years ago
11 years ago
12 years ago
11 years ago
12 years ago
11 years ago
10 years ago
9 years ago
10 years ago
12 years ago
11 years ago
12 years ago
11 years ago
12 years ago
  1. INTRODUCTION
  2. ============
  3. ucore labs was used as OS Experiments in OS Course Of Dept. of Computer Science & Technology, Tsinghua University.
  4. ucore is a teaching OS which is derived from xv6&jos in MIT, OS161 in Harvard and Linux.
  5. ucore was developed and used in Department of Computer Science & Technology, Institute for Interdisciplinary Information Sciences, Tsinghua University.
  6. The codes in the files that constitute xv6&jos are Copyright (2006-Current) Frans Kaashoek, Robert Morris, and Russ Cox and uses MIT License.
  7. The codes in the files that constitute OS/161 are written by David A. Holland.
  8. The codes in the files that constitute ucore are Copyright (2010-Current) Yu Chen, Naizheng Wang, Yong Xiang and uses GPL License.
  9. The documents in the files that constitute ucore are Copyright (2010-Current) Yu Chen, Yong Xiang and uses Creative Commons Attribution/Share-Alike (CC-BY-SA) License.
  10. PEOPLES
  11. ========
  12. OS course for Dept. CS. in Tsinghua Univ., and MOOC OS course
  13. -----------------------------------
  14. Lectures: Chen, Yu http://soft.cs.tsinghua.edu.cn/~chen
  15. TA: Qi, Xiao qixiao0113@gmail.com
  16. TA: Mao, Junjie eternal.n08@gmail.com
  17. CONTENTS
  18. ========
  19. os course info
  20. ----------------
  21. [os course summary materials](https://github.com/chyyuu/mooc_os)
  22. labs info
  23. ----------------
  24. lab0: preparing
  25. lab1: boot/protect mode/stack/interrupt
  26. lab2: physical memory management
  27. lab3: virtual memory management
  28. lab4: kernel thread management
  29. lab5: user process management
  30. lab6: scheduling
  31. lab7: mutex/sync
  32. lab8: filesystem
  33. WORK IN MS WINDOWS
  34. ==================
  35. Working in Linux is encouraged. But If you like to work in MS Windows, we provide virtual machine environment (Runnint Ubuntu in VirtualBox) in
  36. Windows to help you to finish the labs. If you don't want to install ubuntu and other softs to finish these labs in Windows, you can use
  37. VirtualBox soft (https://www.virtualbox.org/) and a virtual disk image with all these softs. Below example is shown how to setup lab environment in Windows.
  38. You can download this virtual disk image -- oslabs_for_student_2012.zip (576.2MB,) from http://pan.baidu.com/share/link?shareid=69868&uk=2585194235, which
  39. is an VirtualBox disk image (contains ubuntu 12.04 and needed softs, and is zipped with zip and xz format), and can be unzipped
  40. by haozip software (http://www.haozip.com).
  41. After unzip oslabs_for_student_2012.zip, you will get
  42. ---
  43. C:\vms\ubuntu-12.04.vbox.xz
  44. C:\vms\ubuntu-12.04.vmdk.vmdk.xz
  45. C:\vms\ubuntu-12.04.vmdk-flat.vmdk.xz
  46. ---
  47. then you will continue unzip all these files, and get
  48. ---
  49. C:\vms\ubuntu-12.04.vbox
  50. C:\vms\ubuntu-12.04.vmdk.vmdk
  51. C:\vms\ubuntu-12.04.vmdk-flat.vmdk
  52. ---
  53. If you installed VirtualBox soft, then the last step is: double clik file "ubuntu-12.04.vbox" and run ubuntu 12.04 in VirtualBox.
  54. In ubuntu 12.04 login Interface:
  55. username: chy
  56. password: <SPACE KEY>
  57. After you login, you will see the directory ucore_lab in HOME directory.
  58. TESTED ENVIRONMENT
  59. ==================
  60. UBUNTU 14.04: GCC-4.8.2 CLANG-3.5
  61. FEDORA 20: GCC-4.8.2
  62. EXERCISE STEPS
  63. ==============
  64. 0 Get the newest os lab src codes/docs.(Insure you can connect to github in ubuntu running on VrtualBox)
  65. 0.1 If you try to get all codes/docs
  66. $rm -rf ucore_lab
  67. $git clone git://github.com/chyyuu/ucore_lab.git
  68. $cd ucore_lab
  69. 0.2 If you gloned ucore_lab and only try to get the updated codes/docs
  70. $cd ucore_lab
  71. $git pull
  72. 1 $cd labX
  73. 2 read codes (specially the modified or added files)
  74. 3 add your code
  75. 4 compile your code
  76. $make
  77. 5 check your code
  78. $make qemu
  79. OR
  80. $make grade
  81. 6 handin your code
  82. $make handin
  83. OPTION
  84. ==============
  85. Now, ucore suuport LLVM/Clang-3.5 +
  86. in step4:
  87. $ USELLVM=1 make
  88. then you will use clang to compile ucore
  89. GRADE/RANK
  90. ==========
  91. Superman: Finish all OS labs in one month by yourself
  92. Master: Finish all OS labs in two month by yourself
  93. Veteran: Finish all OS labs in three month by yourself
  94. Apprentice: Finish all OS labs in one semester with other guy's help
  95. RESOURCE REPOSITORY
  96. ===================
  97. Basic OS labs (for students who learn OS course)
  98. The newest lab codes and docs is in https://github.com/chyyuu/ucore_lab
  99. Advanced OS labs (for OS geeks or hackers or guys with Superman/Master Rank)
  100. The newest lab codes and docs is in https://github.com/chyyuu/ucore_plus
  101. LEARNING DISSCUSS GROUPS
  102. ========================
  103. os learning group based on QQ
  104. -------------------------------
  105. QQ id: 181873534
  106. general discuss
  107. --------------------------------
  108. If you have any questions about ucore basic os labs,
  109. you can subscribe to the Google Groups "os-course" group (http://groups.google.com/group/oscourse?hl=en.)
  110. To post to this group, send email to oscourse@googlegroups.com.
  111. To unsubscribe from this group, send email to oscourse+unsubscribe@googlegroups.com.
  112. For more options, visit this group at http://groups.google.com/group/oscourse?hl=en.
  113. DEVELOPMENT DISCUSS GROUPS
  114. ==========================
  115. If you have any questions about ucore advanced os labs,
  116. If you want to be a developer of ucore or pay attention to the development of ucore,
  117. you can subscribe to the Google Groups "ucore_dev" group (http://groups.google.com/group/ucore_dev?hl=en.)
  118. To post to this group, send email to ucore_dev@googlegroups.com.
  119. To unsubscribe from this group, send email to ucore_dev+unsubscribe@googlegroups.com.
  120. For more options, visit this group at http://groups.google.com/group/ucore_dev?hl=en.
  121. UCORERS (Contributors)
  122. ======================
  123. Junjie Mao, Yuheng Chen, Cong Liu, Yang Yang, Zhun Qu, Shengwei Ren, Wenlei Zhu, Cao Zhang, Tong Sen, Xu Chen,
  124. Cang Nan, Yujian Fang, Wentao Han, Kaichen Zhang, Xiaolin Guo, Tianfan Xue, Gang Hu, Cao Liu, Yu Su,Xinhao Yuan, ...