LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 08-13-2009, 06:33 AM   #1
eliza
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
procedure for making simplified linux kernel from scratch


i want to make a kernel with minimum functionality that just boots and displays a prompt. I dont know from where to start,and what are the componenets that i have to develop in order to make this kernel functional and from where can i get source code related to any of these components.
 
Old 08-13-2009, 07:56 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Take a look at
LFS
http://www.linuxfromscratch.org/
 
Old 08-13-2009, 07:56 AM   #3
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,750
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
You'll need more than the kernel to get a prompt. Start here --> http://www.linuxfromscratch.org/lfs/ or here if you have other than an x86 machine --> http://trac.cross-lfs.org/
 
Old 08-13-2009, 09:05 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
"Just booting to a prompt" is not really a kernel function. It is the shell that gives you the command interface if no GUI is installed. You can configure any Linux system to not start the GUI by default.

Perhaps if you tell us more about what you need to do, we can give better advice.

AND--Welcome to LQ!!
 
Old 08-18-2009, 06:26 AM   #5
eliza
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pixellany View Post
"Just booting to a prompt" is not really a kernel function. It is the shell that gives you the command interface if no GUI is installed. You can configure any Linux system to not start the GUI by default.

Perhaps if you tell us more about what you need to do, we can give better advice.

AND--Welcome to LQ!!
i actually want to write code for a simple kernel by using BIOS calls.
how can i do that?
 
Old 08-24-2009, 07:46 AM   #6
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 492

Rep: Reputation: 50
What you want to do isn't clear... But if you just want to play with an easy kernel, you could take a look to an early linux kernel there http://www.kernel.org/pub/linux/kern...x-0.01.tar.bz2
Or maybe take a look to MINIX, eCos or any other "simple" kernels.
If you just want to have a minimal system (since a kernel alone isn't really useful), it's not too difficult to make one around the linux kernel and the busybox tool, but you have to basically understand the LINUX system (file tree, init process, shell, config files ans so on...). To do so, playing with "Linux from scratch", or any live system "generator" could be good start points.
 
Old 08-27-2009, 01:46 PM   #7
anshexp
LQ Newbie
 
Registered: Jul 2009
Posts: 14

Rep: Reputation: 0
Quote:
Originally Posted by eliza View Post
i want to make a kernel with minimum functionality that just boots and displays a prompt. I dont know from where to start,and what are the componenets that i have to develop in order to make this kernel functional and from where can i get source code related to any of these components.


first u need to download a kernel source 2.6 and uncompressed it copy it to /usr/src directory
change ur current directory to ur kernel directory
for minimistic kernel u have to configure the kernel.
with
make allnoconfig
this will put only strongly recommended sevices in kernel

after that u configure
the kernel according to ur need

after that compile by
make
that will compile kernel and all modules
make modules install
that will install all modules
then
make install
will complete all compilation.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with making a package management system (doing Linux From Scratch) ReyJavikVI Linux - General 4 07-21-2009 08:48 AM
Cross Linux From Scratch 5.7: Problems Making binutils-2.18 Yaro Linux From Scratch 3 11-12-2008 04:00 AM
Installing a packaging system when making a linux system from scratch idamlaj Linux - Software 1 03-01-2006 03:01 PM
In search of simplified Howto's (compiling kernel) ThrobberTon Linux - Newbie 1 12-02-2002 04:47 PM


All times are GMT -5. The time now is 07:44 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration