Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm not sure whether it's the right place for this question. I am writing a kernel from scratch and want links or tutorials where I can get a few pointers.

share|improve this question

closed as not constructive by Michael Mrozek Mar 13 '12 at 17:52

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

Are you trying to compile your own version of the Linux or Unix kernels, or write your very own kernel from scratch? – Daniel Quinn Mar 13 '12 at 14:50
If you are writing from scratch, you'll need more than a few pointers. – msw Mar 13 '12 at 15:30
@DanielQuinn Write my very own kernel from scratch. – Nihar Sarangi Mar 13 '12 at 16:06
@msw True, For a 32-bit OS, you'd need 4294967296. – Kevin Mar 13 '12 at 17:13
There are many pointers in the linux kernel source :) grep char* – stardt Mar 13 '12 at 17:20

Minix and its associated book, Tanenbaum's Operating System Design and Implementation. It is, as I understand, the OS book, and the book Linus was reading when he started Linux.

share|improve this answer
Thanks. That's a real nice book, am a fan. – Nihar Sarangi Mar 13 '12 at 16:08
+1, although, what if he wants to write a monolithic kernel? :) oreilly.com/catalog/opensources/book/appa.html – Justin Ethier Mar 13 '12 at 17:30

Take a look at MIT's Xv6, which is a part of some course called "6.828". The reference material for that course also looks good.

You could look at LoseThos, too, although the author appears to be decaying mentally.

share|improve this answer
A programmer probably has to be a bit crazy to write an operating system at all. – Zan Lynx Mar 13 '12 at 16:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.