介紹
這是 Redox OS 的手冊,將涵蓋(幾乎)所有有關 Redox 的內容:設計、理念、如何運作、如何貢獻、如何部署 Redox,以及更多其他內容。
Please keep in mind that this book is work-in-progress and sometimes can be outdated, any help to improve it is important.
如果您想直接跳到嘗試 Redox 的階段,請參見開始使用頁面。
If you want to contribute to Redox, read the following guides: CONTRIBUTING and Developing for Redox.
Conventions
Notices
The following notices are commonly used throughout the book to convey noteworthy information:
| Notice | Meaning |
|---|---|
| 🛈 Info | Provides neutral information to deliver key facts. |
| 📝 備註 | Provides information to enhance understanding. |
| 💡 Tip | Offers suggestions to optimize an experience. |
| ⚠️ 警告 | Highlights potential risks or mistakes. |
什麼是 Redox?
Redox OS 是一款以 Rust 語言編寫的通用作業系統。我們的目標是提供一個功能完備、類 Unix 且基於微內核的作業系統,並確保其安全性、可靠性與自由免費。
We have modest compatibility with POSIX, allowing Redox to run many programs without porting.
我們從 Plan 9、Minix、seL4、Linux、OpenBSD 和 FreeBSD 中獲得靈感。Redox 致力於將多年的研究成果與得來不易的經驗結合,打造出一個既現代又讓人感到熟悉的系統。
This book is written in such a way that you don't require any prior knowledge of Rust or OS development.
起源故事
Redox OS 創立於 2015 年,當時 Rust 編譯器的第一個穩定版本 (1.0) 尚未發布,它是首批以 Rust 編寫的作業系統之一。它最初是以獨核作業系統(unikernel,且不含虛擬機器監視器)的形式起步,並匯集了許多 Rust 開發者的貢獻。
隨著專案的進展,Jeremy Soller 決定將作業系統的重點放在穩定性與安全性上。為了達成這個目標,Redox 經過重新設計,採用了微內核架構以及統一的資源系統 API。
Minix 與 Plan 9 是該系統初期設計的主要靈感來源。