Concise Manual: rCore-Tutorial-Guide
Detail Book rCore-Tutorial-Book-v3
$ git clone https://github.com/LearningOS/2026s-rcore-[YOUR_USER_NAME].git
$ cd 2026s-rcore-[YOUR_USER_NAME]
# setup build&run environment first
$ git clone https://github.com/LearningOS/rCore-Tutorial-Test.git user
$ git checkout ch$ID
$ cd os
# run OS in ch$ID
$ make run
If you want to use docker to build and run, you can use the following command:
# After clone the `rCore-Tutorial-Test` repository to your local machine, you can use the following command to build and run:
$ make build_docker
$ make docker
If you experience network issues when accessing foreign resources such as GitHub in Docker, you can follow the following suggestions according to your stage:
Docker pull:
use proxy: https://docs.docker.com/reference/cli/docker/image/pull/#proxy-configuration
use available domestic source (self-search)
Docker build: use proxy https://docs.docker.com/engine/cli/proxy/#build-with-a-proxy-configuration
Docker run: use proxy option, related operations are similar to Docker build, can refer to the relevant materials by yourself
Notice: $ID is from [1-9]
# setup build&run environment first
$ rm -rf ci-user
$ git clone https://github.com/LearningOS/rCore-Tutorial-Checker.git ci-user
$ git clone https://github.com/LearningOS/rCore-Tutorial-Test.git ci-user/user
$ git checkout ch$ID
# check&grade OS in ch$ID with more tests
$ cd ci-user && make test CHAPTER=$ID
Notice: $ID is from [3,4,5,6,8]
本仓库部署在 CNB 平台,评测通过提 PR 触发,而非直接 push。 This repo is on CNB. Grading is triggered by opening a Pull Request, not by pushing directly.
1. Fork 本仓库
在 CNB 页面点击右上角 Fork,将本仓库 fork 到你自己的账号下。
2. Clone 你的 fork
git clone https://cnb.cool/[YOUR_CNB_USERNAME]/rCore-Tutorial-2026S.git
cd rCore-Tutorial-2026S
3. 切换到对应章节分支并完成实验
git checkout ch$ID # $ID 为章节号,如 3、4、5、6、8
# ... 编写代码 ...
git add .
git commit -m "finish ch$ID"
git push origin ch$ID
4. 在 CNB 上提 Pull Request
进入你 fork 的仓库页面 → 点击 Pull Requests → New Pull Request:
ch$ID 分支LearningOS/OSCamp-2026S/rCore-Tutorial-2026S 的 ch$ID 分支提交 PR 后,CI 流水线将自动运行测试,满分通过后自动上传分数到 OpenCamp。
评测章节 / Graded chapters:ch3、ch4、ch5、ch6、ch8 ch1、ch2 无需提交评测。
在 PR 页面可以实时查看 CI 运行日志。测试通过后日志末尾会显示:
PASSED: full score X/X Uploading score for chapter N by user YOUR_USERNAME