OSDev.org

The Place to Start for Operating System Developers
It is currently Wed Apr 24, 2024 3:49 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: How to Use a linux kernel to develop my own os ?
PostPosted: Sat Aug 07, 2010 3:35 pm 
Offline

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


Top
 Profile  
 
 Post subject: Re: How to Use a linux kernel to develop my own os ?
PostPosted: Sat Aug 07, 2010 3:52 pm 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9301
Location: On the balcony, where I can actually keep 1½m distance
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 ]


Top
 Profile  
 
 Post subject: Re: How to Use a linux kernel to develop my own os ?
PostPosted: Sat Aug 07, 2010 4:01 pm 
Offline

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


Top
 Profile  
 
 Post subject: Re: How to Use a linux kernel to develop my own os ?
PostPosted: Sat Aug 07, 2010 4:03 pm 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9301
Location: On the balcony, where I can actually keep 1½m distance
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 ]


Top
 Profile  
 
 Post subject: Re: How to Use a linux kernel to develop my own os ?
PostPosted: Sun Aug 08, 2010 1:54 pm 
Offline

Joined: Thu May 13, 2010 1:41 am
Posts: 5
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/kernel-boot-process and also google for "kernel boot process".


Top
 Profile  
 
 Post subject: Re: How to Use a linux kernel to develop my own os ?
PostPosted: Mon Aug 09, 2010 3:39 am 
Offline
Member
Member

Joined: Sun Jan 06, 2008 8:41 am
Posts: 174
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...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 151 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group