《操作系统》的实验代码。
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.

148 lines
5.6 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
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
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
12 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. * [newest os course summary materials](https://github.com/chyyuu/mooc_os)
  22. * [newest chinese README for ucore_lab](https://github.com/chyyuu/ucore_lab/)
  23. labs info
  24. ----------------
  25. lab0: preparing
  26. lab1: boot/protect mode/stack/interrupt
  27. lab2: physical memory management
  28. lab3: virtual memory management
  29. lab4: kernel thread management
  30. lab5: user process management
  31. lab6: scheduling
  32. lab7: mutex/sync
  33. lab8: filesystem
  34. WORK IN MS WINDOWS
  35. ==================
  36. Working in Linux is encouraged. But If you like to work in MS Windows, we provide virtual machine environment (Runnint Ubuntu in VirtualBox) in
  37. 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
  38. 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.
  39. 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
  40. is an VirtualBox disk image (contains ubuntu 12.04 and needed softs, and is zipped with zip and xz format), and can be unzipped
  41. by haozip software (http://www.haozip.com).
  42. After unzip oslabs_for_student_XXX.zip, you will get
  43. ---
  44. C:\vms\ubuntu-14.04.vbox.xz
  45. C:\vms\ubuntu-14.04.vmdk.vmdk.xz
  46. C:\vms\ubuntu-14.04.vmdk-flat.vmdk.xz
  47. ---
  48. then you will continue unzip all these files, and get
  49. ---
  50. C:\vms\ubuntu-14.04.vbox
  51. C:\vms\ubuntu-14.04.vmdk.vmdk
  52. C:\vms\ubuntu-14.04.vmdk-flat.vmdk
  53. ---
  54. If you installed VirtualBox soft, then the last step is: double clik file "ubuntu-12.04.vbox" and run ubuntu 12.04 in VirtualBox.
  55. In ubuntu 12.04 login Interface:
  56. username: chy
  57. password: <SPACE KEY>
  58. After you login, you will see the directory ucore_lab in HOME directory.
  59. TESTED ENVIRONMENT
  60. ==================
  61. UBUNTU 14.04: GCC-4.8.2 CLANG-3.5
  62. FEDORA 20: GCC-4.8.2
  63. EXERCISE STEPS
  64. ==============
  65. 0 Get the newest os lab src codes/docs.(Insure you can connect to github in ubuntu running on VrtualBox)
  66. 0.1 If you try to get all codes
  67. $rm -rf ucore_lab
  68. $git clone git://github.com/chyyuu/ucore_lab.git
  69. $cd ucore_lab
  70. 0.2 If you gloned ucore_lab and only try to get the updated codes
  71. $cd ucore_lab
  72. $git pull
  73. 1 $cd labX
  74. 2 read codes (specially the modified or added files)
  75. 3 add your code
  76. 4 compile your code
  77. $make
  78. 5 check your code
  79. $make qemu
  80. OR
  81. $make grade
  82. 6 debug your code
  83. $make debug
  84. 7 handin your code
  85. $make handin
  86. OPTION
  87. ==============
  88. Now, ucore suuport LLVM/Clang-3.5 +
  89. in step4:
  90. $ USELLVM=1 make
  91. then you will use clang to compile ucore
  92. GRADE/RANK
  93. ==========
  94. Superman: Finish all OS labs in one month by yourself
  95. Master: Finish all OS labs in two month by yourself
  96. Veteran: Finish all OS labs in three month by yourself
  97. Apprentice: Finish all OS labs in one semester with other guy's help
  98. RESOURCE REPOSITORY
  99. ===================
  100. Basic OS labs (for students who learn OS course)
  101. The newest lab codes and docs is in https://github.com/chyyuu/ucore_lab
  102. Advanced OS labs (for OS geeks or hackers or guys with Superman/Master Rank)
  103. The newest lab codes and docs is in https://github.com/chyyuu/ucore_plus
  104. LEARNING DISSCUSS GROUPS
  105. ========================
  106. os learning group based on QQ
  107. -------------------------------
  108. QQ id: 181873534
  109. general discuss
  110. --------------------------------
  111. If you have any questions about ucore basic os labs,
  112. you can subscribe to the Google Groups "os-course" group (http://groups.google.com/group/oscourse?hl=en.)
  113. To post to this group, send email to oscourse@googlegroups.com.
  114. To unsubscribe from this group, send email to oscourse+unsubscribe@googlegroups.com.
  115. For more options, visit this group at http://groups.google.com/group/oscourse?hl=en.
  116. DEVELOPMENT DISCUSS GROUPS
  117. ==========================
  118. If you have any questions about ucore advanced os labs,
  119. If you want to be a developer of ucore or pay attention to the development of ucore,
  120. you can subscribe to the Google Groups "ucore_dev" group (http://groups.google.com/group/ucore_dev?hl=en.)
  121. To post to this group, send email to ucore_dev@googlegroups.com.
  122. To unsubscribe from this group, send email to ucore_dev+unsubscribe@googlegroups.com.
  123. For more options, visit this group at http://groups.google.com/group/ucore_dev?hl=en.
  124. UCORERS (Contributors)
  125. ======================
  126. Junjie Mao, Yuheng Chen, Cong Liu, Yang Yang, Zhun Qu, Shengwei Ren, Wenlei Zhu, Cao Zhang, Tong Sen, Xu Chen,
  127. Cang Nan, Yujian Fang, Wentao Han, Kaichen Zhang, Xiaolin Guo, Tianfan Xue, Gang Hu, Cao Liu, Yu Su,Xinhao Yuan, ...