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

107 lines
4.8 KiB

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