LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-16-2012, 01:01 PM   #1
amitkpa
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Rep: Reputation: Disabled
Is it possible to install Linux Kernel on a bare machine?


Hi,

Actually, I just bought a new laptop which has DOS support only.
Now I can install any Windows distribution or any other Linux distributions using DVDs or live CDs.

What, I just want to know that without installing any other Linux distribution, is it possible to install the Linux kernel onto my Laptop.

Means Is it possible to just download the latest Vanila-Kernel from http://www.kernel.org/ and install the same using some bootloader.
 
Old 10-16-2012, 01:11 PM   #2
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
Hi, welcome to LQ

Yes, but it would be useless. Linux is less than DOS. You will not have the real command prompt, only the basic kernel one, used for debugging purposes. You wont be able to do anything useful at all. You also need to compile it first. It is like having an engine without a car, don't expect to drive anywhere with it. Just like an engine, it will start* , "do something", but alone, it won't be enough. But it is nice to try, just for fun. It is very educational.

*(given there is gas inside the engine and ignition power, just like the computer have to be plugged and you need to press the power button)
 
Old 10-16-2012, 01:45 PM   #3
amitkpa
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks to reply

:-) Yes, I agree with your opinion.

Can you just let me know, How to start this engine alone :-)
I mean to say, where to compile the Kernel source code, because we are not having any other ditros so we don't have the libraries required for compilation of kernel source code.

Again, if compilation is possible(I am assuming that you will provide me some suggestion like compiling the kernel using some other computer or something), then what would be the next steps like how configure the kernel for the specific architecture and all that.
 
Old 10-16-2012, 02:02 PM   #4
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802

Rep: Reputation: 157Reputation: 157
The kernel is just part of the OS,... A kernel alone is (relatively) useless. You need all the GNU tools to build a complete OS.

And to build it, you need a build environment. The first Linux distros were born by compiling them on other OSes...

For a project intended to help build Linux based systems for the embedded market,... look here;
http://www.yoctoproject.org/about

That ought to help you to understand what is needed...
 
Old 10-16-2012, 02:05 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
To better understand how to create a minimal bare bones Linux system you may want to have a look at Linux from Scratch: http://www.linuxfromscratch.org/lfs/
 
Old 10-16-2012, 03:02 PM   #6
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by amitkpa View Post
Thanks to reply

:-) Yes, I agree with your opinion.

Can you just let me know, How to start this engine alone :-)
I mean to say, where to compile the Kernel source code, because we are not having any other ditros so we don't have the libraries required for compilation of kernel source code.

Again, if compilation is possible(I am assuming that you will provide me some suggestion like compiling the kernel using some other computer or something), then what would be the next steps like how configure the kernel for the specific architecture and all that.
The best way is to compile it in another Linux distributions. There is very little libraries dependencies as the kernel can not use libraries, as such, it does not require any. The only ones are used by the compiler itself. You could compile it in Mac OSX with xcode command line utilities installed or in Windows with much, much more preliminary setup, but it is harder than seflhosting it (compile Linux in Linux). I am not stating it is impossible, but it is impractical. Just download a distribution and win it in a VM if you don't want to install it. The compilation does not have to take place on the same computer.

Then, just install a bootloader capable of running Linux and point it to the executable. There is no other step required just to have Linux to start. Again, it wont do anything. It will just print some text then an error ().
 
Old 10-16-2012, 03:17 PM   #7
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
You can create a kernel that will self-load from the MBR of a PC. You may be able to find one already built for you. You can use a live CD to provide the dd command to write the kernel image file to your hard disk. As others have said, it will do approximately four-fifths of the square-root of diddly-squat. I feel certain that this is the very ablsolute minimum Linux possible.

EDIT: The OP asked about installing with a bootloader. In most common usage, a bootloader is used to boot a kernel into memory from storage somewhere. A kernel is 'installed' by storing it in that place from where the booloader fetches it. If the question intended some other context, then the OP should clarify.

Last edited by theNbomr; 10-16-2012 at 05:50 PM.
 
Old 10-16-2012, 03:17 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I think the Linux from Scratch is the way you are asking about.

You could even get something like zipslack and run it on a umsdos filesystem.

I assume you have either a new laptop with freedos or a very old laptop with some version of DOS. If this is an old system you may not get linux to run.
 
  


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
LXer: Linux kernel needs more modularity for bare-metal hypervisor viability LXer Syndicated Linux News 0 01-21-2009 10:40 PM
RHEL 5.X - Xen Kernel Works, But Bare Metal Kernel Does Not rkmason Red Hat 6 09-05-2008 07:20 PM
How to install a bare kernel alone? shamju Linux - Kernel 1 10-04-2006 11:02 AM
bare ide and bare acpi kernels denning Slackware 1 03-04-2005 05:50 AM
creating a bare-bare-barebones system for an underpowered laptop orange400 Linux - General 3 06-15-2004 05:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:28 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