os-tutorial README

The project's README from github.com/cfenollosa/os-tutorial. As one markdown file: README.md.

os-tutorial

⚠️ Hey! This is an old, abandoned project, with both technical and design issues listed here. Please have fun with this tutorial but do look for more modern and authoritative sources if you want to learn about OS design. ⚠️

How to create an OS from scratch!

I have always wanted to learn how to make an OS from scratch. In college I was taught how to implement advanced features (pagination, semaphores, memory management, etc) but:

Inspired by this document and the OSDev wiki, I'll try to make short step-by-step READMEs and code samples for anybody to follow. Honestly, this tutorial is basically the first document but split into smaller pieces and without the theory.

Updated: more sources: the little book about OS development, JamesM's kernel development tutorials

Features

How to use this tutorial

  1. Start with the first folder and go down in order. They build on previous code, so if you jump right to folder 05 and don't know why there is a mov ah, 0x0e, it's because you missed lecture 02. Really, just go in order. You can always skip stuff you already know.

  2. Open the README and read the first line, which details the concepts you should be familiar with before reading the code. Google concepts you are not familiar with. The second line states the goals for each lesson. Read them, because they explain why we do what we do. The "why" is as important as the "how".

  3. Read the rest of the README. It is very concise.

  4. (Optional) Try to write the code files by yourself after reading the README.

  5. Look at the code examples. They are extremely well commented.

  6. (Optional) Experiment with them and try to break things. The only way to make sure you understood something is trying to break it or replicate it with different commands.

TL;DR: First read the README on each folder, then the code files. If you're brave, try to code them yourself.

Strategy

We will want to do many things with our OS:

Probably we will go through them in that order, however it's soon to tell.

If we feel brave enough:

Contributing

This is a personal learning project, and even though it hasn't been updated for a long time, I still have hopes to get into it at some point.

I'm thankful to all those who have pointed out bugs and submitted pull requests. I will need some time to review everything and I cannot guarantee that at this moment.

Please feel free to fork this repo. If many of you are interested in continuing the project, let me know and I'll link the "main fork" from here.

os-tutorial (cfenollosa/os-tutorial)

Searching Database…

Что это такое?Пошаговое руководство, которое помогает собрать небольшую операционную систему с нуля: от загрузочного сектора до простого ядра.
Это готовая ОС или серия уроков?Это серия пронумерованных папок с уроками, в каждой из которых есть короткий README и подробно прокомментированный код; каждый урок опирается на предыдущий.
Как проходить руководство?Начните с первой папки и идите по порядку: сначала прочитайте README папки (предварительные требования и цели), затем изучите код с комментариями, а при желании попробуйте написать его сами, прежде чем смотреть на готовый пример.
Что нужно знать перед началом?В README каждого урока заранее указаны необходимые предварительные знания. Автор рассчитывает, что вы уверенно чувствуете себя в низкоуровневом программировании и сами ищете информацию, а не полагаетесь на встроенную теорию.
Проект ещё поддерживается и актуален?Нет. Автор прямо пишет, что это старый заброшенный проект с известными техническими и архитектурными проблемами, и рекомендует более современные источники для изучения устройства ОС.
Что руководство уже реализовало?Согласно списку стратегии, оно охватывает загрузку без GRUB, переход в 32-битный режим, переход из Assembly в C, обработку прерываний, ввод-вывод на экран и с клавиатуры и небольшую растущую libc. Все эти пункты отмечены как DONE.
Какие темы запланированы, но не сделаны?Управление памятью, файловая система, простая оболочка (shell), пользовательский режим и несколько процессов с планированием отмечены как ещё не сделанные. Интерпретатор BASIC, GUI и сетевая поддержка числятся как дополнительные цели.
Почему в уроках так мало теории?Автор намеренно почти не даёт теорию, считая, что избыток теории после университета делает разработку ОС более сложной, чем она есть на самом деле, и ожидает, что читатели сами будут гуглить незнакомые понятия.
Могу ли я продолжить проект, если автор неактивен?Да. Автор приглашает делать форки и пишет, что добавит ссылку на «главный форк», если найдётся достаточно людей, желающих продолжить разработку.
Creator
cfenollosa
Size
0.1 MB
Stars
30.8K
Updated
CommitFeb 04
Age
12y
Commits · 90 Days