public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Linux image boot
@ 2009-04-16  7:45 Dragoslav Zaric
  0 siblings, 0 replies; 3+ messages in thread
From: Dragoslav Zaric @ 2009-04-16  7:45 UTC (permalink / raw)
  To: LKML

Can you boot linux without GRUB or LILO loader
if it is only OS on your computer ?

I mean does kernel image can boot it-self and if can,
where you should put it ?

thanks

Dragoslav Zaric
[Programmer; M Sc Astrophysics]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Linux image boot
@ 2009-04-16  9:48 devzero
  2009-04-16 10:17 ` Dragoslav Zaric
  0 siblings, 1 reply; 3+ messages in thread
From: devzero @ 2009-04-16  9:48 UTC (permalink / raw)
  To: linux-kernel; +Cc: Dragoslav Zaric

Linux could directly boot from floppy in the past, but that feature has been obsoleted and removed in 2003 - see http://lkml.org/lkml/2003/1/29/197

Afaik, you always need a bootloader to boot Linux nowadays.

Only exception coming to my mind is booting a UserModeLinux kernel. That one can directly boot from the commandline.

regards
roland



Date Thu, 16 Apr 2009 09:45:14 +0200 
Subject Linux image boot 
>From Dragoslav Zaric <> 

Can you boot linux without GRUB or LILO loader
if it is only OS on your computer ?

I mean does kernel image can boot it-self and if can,
where you should put it ?

thanks

Dragoslav Zaric
[Programmer; M Sc Astrophysics]



______________________________________________________
GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://movieflat.web.de


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Linux image boot
  2009-04-16  9:48 Linux image boot devzero
@ 2009-04-16 10:17 ` Dragoslav Zaric
  0 siblings, 0 replies; 3+ messages in thread
From: Dragoslav Zaric @ 2009-04-16 10:17 UTC (permalink / raw)
  To: devzero; +Cc: LKML

Hey thanks roland,

the link is just what I was interested in. So GRUB does that loading
back and forth around
first 1 MB. I just looked at article:

http://duartes.org/gustavo/blog/post/how-computers-boot-up

and it says that there:
------------------------------------------------------------------------------
There’s a complication worth mentioning (aka, I told you this thing is
hacky). The image for a current Linux kernel, even compressed, does
not fit into the 640K of RAM available in real mode. My vanilla Ubuntu
kernel is 1.7 MB compressed. Yet the boot loader must run in real mode
in order to call the BIOS routines for reading from the disk, since
the kernel is clearly not available at that point. The solution is the
venerable unreal mode. This is not a true processor mode (I wish the
engineers at Intel were allowed to have fun like that), but rather a
technique where a program switches back and forth between real mode
and protected mode in order to access memory above 1MB while still
using the BIOS. If you read GRUB source code, you’ll see these
transitions all over the place (look under stage2/ for calls to
real_to_prot and prot_to_real). At the end of this sticky process the
loader has stuffed the kernel in memory, by hook or by crook, but it
leaves the processor in real mode when it’s done.
------------------------------------------------------------------------------

Thanks again,

Dragoslav Zaric
[Programmer; M Sc Astrophysics]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-04-16 10:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-16  9:48 Linux image boot devzero
2009-04-16 10:17 ` Dragoslav Zaric
  -- strict thread matches above, loose matches on Subject: below --
2009-04-16  7:45 Dragoslav Zaric

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox