How to Use a linux kernel to develop my own os ?

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.
Post Reply
sreejan
Posts: 2
Joined: Sat Aug 07, 2010 3:24 pm

How to Use a linux kernel to develop my own os ?

Post by sreejan »

Hii
Could anyone tell me that how could i use a preexisting linux kernel to develop my own operating system .
Also how could the grub and the kernel are all linked ....
please guide me with these stuffs !!!!1
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:

Re: How to Use a linux kernel to develop my own os ?

Post by Combuster »

Hi and welcome to these forums. Please take care to read the forum rules, the wiki, and the guide on getting good answers. Almost everything to get started is covered between these.

If I interpreted the question correctly, you should specifically check http://www.linuxfromscratch.org/ - if that isn't what you wanted, read the aforementioned resources, and then elaborate on your actual intentions.
"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 ]
sreejan
Posts: 2
Joined: Sat Aug 07, 2010 3:24 pm

Re: How to Use a linux kernel to develop my own os ?

Post by sreejan »

@combuster :thanxxx but could help me with the internal details that what basically i will have to do in order to use a linux kernel.....
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:

Re: How to Use a linux kernel to develop my own os ?

Post by Combuster »

Combuster wrote:Hi and welcome to these forums. Please take care to read the forum rules, the wiki, and the guide on getting good answers. Almost everything to get started is covered between these.
I doubt you could've read that all in the time since my reply. The forum rules are not a joke (and if you read them, you'd know you're violating them). Please, do not force us to remind you.
"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 ]
eugene2k
Posts: 5
Joined: Thu May 13, 2010 1:41 am

Re: How to Use a linux kernel to develop my own os ?

Post by eugene2k »

Not sure what you mean. If you're asking how to develop a userspace on top of the linux kernel, then you should probably have a look at Linux From Scratch project and Gustavo Duarte's post here: http://duartes.org/gustavo/blog/post/ke ... ot-process and also google for "kernel boot process".
skyking
Member
Member
Posts: 174
Joined: Sun Jan 06, 2008 8:41 am

Re: How to Use a linux kernel to develop my own os ?

Post by skyking »

This really depends on what you're trying to do...

If you're planning to use linux as the kernel for your OS you need to study the linux manual. If you're using grub or lilo you can via command line arguments specify which partition to use as root fs and which (statically linked) executable to use as init process.

If you're planning to develop under a common linux distro and run your userspace under the same linux you have to write a simulator for your low-level API (which should be drop-in replacement lib for your native API lib). How easy/hard this is depends on your low-level API is designed, but once it is done the rest should be quite straight forward. Be aware though that you may get integration problems with your own kernel if you don't plan this out properly...
Post Reply