Click here to Skip to main content
15,884,628 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends..
plz help me in creating a simple boot loader and a kernel using c.
Posted
Comments
[no name] 21-Jun-11 0:16am    
Who knows?

This is not a simple topic; you cannot hope you can get on the road after you got few simple answers.

You should understand that the kernel mode is closed for application programmers in nearly all modern operating system. You can only access kernel mode through device driver or bootstrap code you can possibly write.

(Years ago, I started from MS DOS (and later Windows 95) and gained access to the kernel. You cannot do such tricks it in modern NT-based Windows or Linux.)

Literature on kernel mode is also limited.

Look at these CodeProject articles:
How to develop your own Boot Loader[^],
Building your own operating system[^].

See also:
http://www.wikihow.com/Make-a-Computer-Operating-System[^].

This book is incomplete but deserves a look:
http://www.acm.uiuc.edu/sigops/roll_your_own/[^].

Google for more:
http://en.lmgtfy.com/?q=create+your+own+(OS+OR+%22Operating+System%22+OR+%22boot+loader%22)[^] — not all of the 107,000,000 results are really relevant though :-).

—SA
 
Share this answer
 
v2
Comments
Kim Togo 15-Jun-11 16:41pm    
Good answer, my 5.
Sergey Alexandrovich Kryukov 15-Jun-11 16:41pm    
Thank you, Kim.
--SA
nthamizh 16-Jun-11 10:52am    
thanks dude..:)
Sergey Alexandrovich Kryukov 16-Jun-11 11:20am    
You're very welcome.
Will you formally accept this answer (green button)?
Thank you.
--SA
nthamizh 16-Jun-11 11:34am    
this is my first question, and i am new to codeproject site
Here is an extremely useful site: http://www.osdev.org/[^]

You will also need to learn Assembler, for controlling hardware etc.
 
Share this answer
 
Comments
Kim Togo 15-Jun-11 16:40pm    
My 5. Nice link
Sergey Alexandrovich Kryukov 15-Jun-11 16:42pm    
Sure, good to know. My 5.
--SA
nthamizh 16-Jun-11 10:50am    
thanks dude.
http://osdev.org
http://osdever.net

i think, it will solve your problem...
 
Share this answer
 
Comments
nthamizh 21-Jun-11 12:38pm    
thanks dude :)
I'd suggest buying another processor + pcboard + manuals + probe package online...
Maybe a ARM or a POWERPC or something. You get complete packages with enough information, help, tools, compilers, whatever else to be able to talk to the hardware and write software for it.
Hell, if you're up for some really exciting stuff you can build yourself a pc bord up from scratch.
Design it on you pc with a pcboard design tool, put on the hardware you want e.g. processor, ethernet, usb, ram, serial port, fpga, have your design made by some pcbord manifacturing company and start pluging away at it. I haven't done it myself but have seen it beeing done before. From there on out you can create your own OS if you'd like... Call it Nthacosoft if you'd like.
 
Share this answer
 
v2
Comments
nthamizh 21-Jun-11 13:25pm    
i never heard those golden words from any one
thank u very much dude!!
thank u friend.. i am little familiar with basics and i developed a 16 Bit boot loader and a Kernel for Real Time Operating System support of our day today normal desktop coded completely with Assembly language[NASM]to control some of the devices using serial ports of PC using RS232.

this is working of my comm RTOS screen captured in vmware
http://www.youtube.com/watch?v=e5I6B18bAxs
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900