LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 07-22-2010, 11:25 AM   #1
imagine_me2
Member
 
Registered: Nov 2009
Location: Kolkata, India
Distribution: Fedora 11
Posts: 136

Rep: Reputation: 22
bulding only a kernel and shell


From source i need to boot the kernel and run a shell , there are no other requirements.
What are the minimum tasks to do it?

Thanks
 
Old 07-22-2010, 12:02 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Partition and format disk, mount partition, install boot loader, install kernel, install userland libs, install shell, install a getty, run kernel with init=/path/to/shell and pray you don't miss anything essential like /dev entries, mounting /proc, userland libs dependencies and so on? I mean what's the use of asking anything like that? And have you tried (finding out) anything yourself?
 
Old 07-22-2010, 12:55 PM   #3
imagine_me2
Member
 
Registered: Nov 2009
Location: Kolkata, India
Distribution: Fedora 11
Posts: 136

Original Poster
Rep: Reputation: 22
i have compiled a kernel. booted the kernel using isolinux in a virtual machine with 30M raw disk.
But all i want to do is execute a program (shell) after booting the kernel.
Actually LFS approach is making a full length distro. I was searching for a incremental approach where i add small programs(which may by built using another machine), to the bare kernel, until i have installed gcc and glibc. if you could help me a one step at a time.

Thanks
 
Old 07-22-2010, 04:48 PM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Buildroot allows you to create the whole she-bang with one tool (except for the bootloader part, I think). It is a scheme for creating root filesystems, toolchains, and kernels, primarily for embedded systems.
--- rod.
 
Old 08-05-2010, 05:51 AM   #5
Suresh Maniyath
Member
 
Registered: Feb 2009
Location: India
Distribution: Fedora, Ubuntu
Posts: 37

Rep: Reputation: 19
Cool File-system

BusyBox is the one for you......

Please find it here --> http://www.busybox.net/

Best regards,
Suresh Maniyath
 
  


Reply



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
Kernel VS Shell, & Shell theory wow Linux - Newbie 7 10-05-2009 10:35 PM
Bulding a new kernal, ramdisk os 48MB BIG?????? wufo Ubuntu 0 01-24-2009 01:24 PM
gonna start bulding lfs 6. advice needed liljhand Linux From Scratch 5 02-20-2005 01:34 PM
bulding a gcc toolchain with uclibc behmjose Programming 1 02-29-2004 09:54 PM
Bulding SMP file server artur Linux - General 3 04-17-2002 01:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:07 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration