OS dev tutorial

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
Zacariaz
Member
Member
Posts: 1069
Joined: Tue May 22, 2007 2:36 pm
Contact:

OS dev tutorial

Post by Zacariaz »

No, im not asking for tutorials here, ive actually found one that i think is rather good, but it has happened before that iwas mislead due to bad tutorials, so i was wondering if anyone would care to take a brief look at it, or if anyone know it allready. All in all, i would like an evaluation of it before i start using it as the OS dev bible.

Link: http://www.mt2002.sitesled.com/OSDevIndex.html
Last edited by Zacariaz on Sat Aug 25, 2007 10:43 pm, edited 1 time in total.
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Post by Alboin »

Where is it? ...
C8H10N4O2 | #446691 | Trust the nodes.
theforrestgump
Posts: 2
Joined: Sat Aug 25, 2007 9:40 pm

Post by theforrestgump »

i would like to take a look at it as well
_______________________________________
SHAKE THE PILLARS OF HEAVEN
User avatar
Zacariaz
Member
Member
Posts: 1069
Joined: Tue May 22, 2007 2:36 pm
Contact:

Post by Zacariaz »

lol, stupid me, forgot to post the link ;)
sry bout that, here it is: http://www.mt2002.sitesled.com/OSDevIndex.html
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

While you're at it, could you have a quick gander at

http://www.jamesmolloy.co.uk/tutorial_html/index.html

Those are some tutorials I'm making atm, been working on them a week and have got as far as the GDT/IDT. Let me know what you think!

JamesM
theforrestgump
Posts: 2
Joined: Sat Aug 25, 2007 9:40 pm

Post by theforrestgump »

looks good....try looking into this as well

http://linuxgazette.net/issue77/krishnakumar.html

a little less disconnected
_______________________________________
SHAKE THE PILLARS OF HEAVEN
calpol
Posts: 5
Joined: Sun Aug 26, 2007 10:15 am

Post by calpol »

I've been reading that OS tutorial also, it's the best one i've found so far. The person that writes it is a member here i believe.

just about all OS books or tutorials are either 100% theory or those weird books which are all theory but have 100 pages at the end of solid uncommented code #-o. This one actually does implementation, theory and explains how things works :shock:.
Last edited by calpol on Sun Aug 26, 2007 10:43 am, edited 3 times in total.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

Which OSTUT?
calpol
Posts: 5
Joined: Sun Aug 26, 2007 10:15 am

Post by calpol »

JamesM wrote:Which OSTUT?
The one in the first post.
SpooK
Member
Member
Posts: 260
Joined: Sun Jun 18, 2006 7:21 pm

Re: OS dev tutorial

Post by SpooK »

Zacariaz wrote:No, im not asking for tutorials here, ive actually found one that i think is rather good, but it has happened before that iwas mislead due to bad tutorials, so i was wondering if anyone would care to take a brief look at it, or if anyone know it allready. All in all, i would like an evaluation of it before i start using it as the OS dev bible.

Link: http://www.mt2002.sitesled.com/OSDevIndex.html
OK so far. Needs much editing work.

One, outright, erroneous thing that caught my attention so far is...
Note: DOS is a 16 bit operating system. During this timeframe, DOS had to refrence memory through Linear Addressing, and disks through LBA (Linear Block Addressing). Because the x86 platform is backward compatible, When the PC boots it is in 16 bit mode (Real Mode), and still has LBA. More on this later.
Unless I have been mistaken for over 15 years, and have ignored the obvious legacy BIOS settings/routines I have played around with, I have to say that it should be CHS and not LBA.
User avatar
Zacariaz
Member
Member
Posts: 1069
Joined: Tue May 22, 2007 2:36 pm
Contact:

Post by Zacariaz »

Ok, error do happen.
As far as i know it is allso being worked on.
I thought it might be worth mentioning that i dont think of this as a complete tutorial, only the most basic stuff.
The thing that interest me the most is if the DT parts is ok, or if theres major errors included...
SpooK
Member
Member
Posts: 260
Joined: Sun Jun 18, 2006 7:21 pm

Post by SpooK »

Zacariaz wrote:Ok, error do happen.
As far as i know it is allso being worked on.
I thought it might be worth mentioning that i dont think of this as a complete tutorial, only the most basic stuff.
The thing that interest me the most is if the DT parts is ok, or if theres major errors included...
I have finished reading the tutorial. It was OK. There are many useless tidbit-like distractions coupled with smiley faces, and it was difficult to follow the author's logic flow from time to time. The latter is simply a side-effect of your mind "filling in the blanks" on a subject you already know about, so to say.

However, it is good to see a guide with practical approach instead of theory that you can get in any OS development course. If you follow the content closely, you will be able to get a basic 32-bit kernel running in very little time. This is good for all that grunt-code that just has to exist to get Protected Mode running in a stable manner.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

All in all, i would like an evaluation of it before i start using it as the OS dev bible.

Link: http://www.mt2002.sitesled.com/OSDevIndex.html
What strikes me, is that the author uses a dated toolchain (DJGPP) for compilation, and intends to support more broken and incompatible toolchains (MSVC, MinGW)

Also, due to the number of typos and small technical inaccuracies I don't consider this anything near a bible, but for starters it should work (if you want some sort of bible, I suggest you list all of Brendan's posts :wink:)
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Zacariaz
Member
Member
Posts: 1069
Joined: Tue May 22, 2007 2:36 pm
Contact:

Post by Zacariaz »

Combuster wrote:I suggest you list all of Brendan's posts :wink:)
It is funny... Again and again "Brendans" tutorial is mentioned however i have yet to see a link to it. Yes, at the osdever site there is a tutorial named "Brens tutorial" or something simular, but i have never actually been told that this was the right one. Allso i have tryed to read it, and while it may be a very "correct" and extensive tutorial, i dont think i will be able to learn much from it. Its simply too geeky.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

Zacarias - did you look at my tutorials? I posted the link above. They're very similar in starting point to Bran's tutorials, I've just started them, and would really appreciate it if you could give them a read and see if they're 'too geeky' too, or any other comments.

link again: http://www.jamesmolloy.co.uk

JamesM
Post Reply