top | item 10798523

Xv6, a simple Unix-like teaching operating system

63 points| rspivak | 10 years ago |pdos.csail.mit.edu | reply

14 comments

order
[+] shavenwarthog2|10 years ago|reply
This is an excellent tool for learning Unix-type systems. At < 10K lines, it's much smaller than Linux v1, but has most of the parts of a more mature kernel. The source code is clear, and well documented in its own booklet.

Highly recommended.

[+] luckydude|10 years ago|reply
Huh, I think HN killed their git server, I started the clone and it's just sitting there doing nothing after 100K. Eventually dies with:

pdos.csail.mit.edu[0: 128.52.129.126]: errno=Connection timed out

Just FYI for anyone else trying. I looked and this seems to be a mirror that contains the branch they mention:

https://github.com/sometimesfood/xv6

and you might need this (I did):

sudo apt-get install libc6-dev-i386

but the stock qemu didn't seem to work, their server is kaput, and no mirror on github :(

[+] jbangert|10 years ago|reply
MIT PDOS also cleaned up its infrastructure a while back. Jon (a student there who does cool scalability research) replaced the old ailing server that hosted a lot of things and that wasn't really maintained by anybody with a set of modern vms, not sure if he also moved over the public git server...
[+] jlappi|10 years ago|reply
This is an excellent little project to play with if you want to learn more about the functions of the kernel. The accompanying book is a great resource and provides relatively simple projects.
[+] IshKebab|10 years ago|reply
Seems a bit sad to me that we're still teaching a 40 year old OS. Hasn't computing advanced since then? Where's the Plan9-like teaching OS?
[+] gravypod|10 years ago|reply
Are there any projects like that that show people how to write a bootloader? I have been wanting to write something like Xv6 except I want to write everything that will be running except BIOS code.

I have yet to find something on bootloader code.

[+] sfishman|10 years ago|reply
Harvard also has something similar for their OS course (now used outside of Harvard as well) called OS/161.

http://os161.eecs.harvard.edu

[+] mveety|10 years ago|reply
I really like the System/161 simulator that they use with it. They made some good choices sticking to the simple R3000 MMU model.