OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 16, 2024 1:34 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: GRUB; the fat worm.
PostPosted: Sat Dec 31, 2005 8:45 pm 
I have been considering writing a bootloader vs. using GRUB (2). I was reading through the GRUB Wiki, and was shocked when i started on their... ambitious, TODO list. It looks more like they're developing a full operating system or something, because GRUB is starting to take on the appearance of "bloat-ware".

For example:
  • Add a fancy menu interface which utilizes the GraphicsMode extensively with many eye-candies. This is important to beat GRUB legacy
  • Use GRUB memory management in grub-emu (yes, it has MM)
  • Scripting (it's already there, but they want to expand it to the config file and menu)

Now for the disscussion: has GRUB become overly feature-rich or am I being to Minimalistic (excuse my spelling :P)? Also, what do you think GRUB needs/can get rid of?


Top
  
 
 Post subject: Re:GRUB; the fat worm.
PostPosted: Sat Dec 31, 2005 10:51 pm 
Ew I wouldn't want a UI for a loader. Thier menu is enough. Although I'd like a simpler menu maybe something like

[pre]
1. Windows
2. Linux
3. Nelson's SuperDuper OS
4. FreeBSD
[/pre]


Top
  
 
 Post subject: Re:GRUB; the fat worm.
PostPosted: Sat Dec 31, 2005 11:26 pm 
I agree much with that. My bootloader's design follows the "simple is sweet" ideaolgy. You got a list, you enter a number. If something fails, enter "manual" or something to get a commandline that allows you to enter the boot parameters. Simple.


Top
  
 
 Post subject: Re:GRUB; the fat worm.
PostPosted: Sun Jan 01, 2006 5:29 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7614
Location: Germany
What you're talking about is GRUB 2, which is a completely new beast compared to what they call "GRUB legacy" (and which the rest of the world simply refers to as "GRUB").

I agree that GRUB 2 seems a bit overly ambitious, and loaded with lots of not-really-essential features. But nothing beats GRUB (legacy) to get you started into kernel space (IMHO).

Then again... in the end you'll have to cope with whatever your users decide to set up, which might not always be what you imagined. ;)

_________________
Every good solution is obvious once you've found it.


Top
 Profile  
 
 Post subject: Re:GRUB; the fat worm.
PostPosted: Sun Jan 01, 2006 6:46 am 
I'd just vouch for a home brewed boot loader, who wants a MB compliant boot loader if for example they only run your OS? Sure YOU get the advantages of GRUB but they just see a menu instead of just booting the OS.

I'd use a homebrew and if they want to dual boot they can install GRUB themselves then chainload


Top
  
 
 Post subject: Re:GRUB; the fat worm.
PostPosted: Sun Jan 01, 2006 7:50 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 2:31 am
Posts: 5964
Location: In a galaxy, far, far away
i've been running my own bootloader, made of bits gathered here and there and glued together for about 5 years now. I recently switched to multiboot-compliant kernel (e.g. using "grub legacy") and i should say it's a breath of fresh air ...

I don't mind too much about what they feel interresting to put in GRUB 2 as long as they keep the binary compatibility with "multiboot" ...

_________________
Image May the source be with you.


Top
 Profile  
 
 Post subject: Re:GRUB; the fat worm.
PostPosted: Sun Jan 01, 2006 8:21 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7614
Location: Germany
Nelson wrote:
...who wants a MB compliant boot loader if for example they only run your OS?


It will be a far cry before any of our operating systems will be installed as the only one on any machine. The idea is more like, virtually everyone tinkering with multiboot systems already has GRUB installed.

Quote:
Sure YOU get the advantages of GRUB but they just see a menu instead of just booting the OS.


Set timeout to 0 and you don't see a menu at all. (I'm doing that on my laptop, which has nothing but Gentoo Linux installed.)

_________________
Every good solution is obvious once you've found it.


Top
 Profile  
 
 Post subject: Re:GRUB; the fat worm.
PostPosted: Sun Jan 01, 2006 8:38 am 
Solar wrote:
Nelson wrote:
...who wants a MB compliant boot loader if for example they only run your OS?


It will be a far cry before any of our operating systems will be installed as the only one on any machine. The idea is more like, virtually everyone tinkering with multiboot systems already has GRUB installed.

Quote:
Sure YOU get the advantages of GRUB but they just see a menu instead of just booting the OS.


Set timeout to 0 and you don't see a menu at all. (I'm doing that on my laptop, which has nothing but Gentoo Linux installed.)



Well yea I was just finding things to complain about.
You know..if things went my way. :/


Top
  
 
 Post subject: Re:GRUB; the fat worm.
PostPosted: Sun Jan 01, 2006 8:52 am 
Dragon_Hilord wrote:
...
  • Scripting (it's already there, but they want to expand it to the config file and menu)
...


The scripting thing reminds me of the native FreeBSD bootloader, IIRC they used Forth or something there to make the loader fully programmable. But IMO this doesn't belong to a 'grand unified bootloader' which should be able to boot virtually any type of OS out there...

I like using GRUB (legacy, of course) though, just for fetching the files needed for booting and then switching to protected mode - things like relocation or dynamic linking (like the freebsd loader does) will be done in a seperate, 'intermediate loader' file though, as well as switching to long mode (which is what I'm currently working at).

So, for me, GRUB legacy does about everything I'll need...

cheers Joe


Top
  
 
 Post subject: Re:GRUB; the fat worm.
PostPosted: Sun Jan 01, 2006 9:07 am 
Offline
Member
Member
User avatar

Joined: Sat Jan 15, 2005 12:00 am
Posts: 8561
Location: At his keyboard!
Hi,

Dragon_Hilord wrote:
Now for the disscussion: has GRUB become overly feature-rich or am I being to Minimalistic (excuse my spelling :P)? Also, what do you think GRUB needs/can get rid of?


I don't like GRUB much, but I've seen the specs for EFI. Trust me when I say GRUB isn't bloated....


Cheers,

Brendan

_________________
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.


Top
 Profile  
 
 Post subject: Re:GRUB; the fat worm.
PostPosted: Sun Jan 01, 2006 1:08 pm 
Have none of you heard of "KISS" :o, why make things difficult, all you need is something like "bootprog" available here: http://alexfru.chat.ru/epm.html#bootprog
Not one of you has a OS, thats anywhere near needing some thing like GRUB.

I could make a small and simple bootloader, full of great looking i-candy, but still none of you would use it.

PS: I-candy does not mean blotware, if care is taken. this is coded in ASM in less than 200bytes including the vesa code. it could be a boot menu as well.


Top
  
 
 Post subject: Re:GRUB; the fat worm.
PostPosted: Sun Jan 01, 2006 11:18 pm 
Quote:
Not one of you has a OS, thats anywhere near needing some thing like GRUB.


That's a pretty bold statement, considering that you don't know the full scope of everyone's OS projects.

I for one have looked at "bootprog", but opted not to use it. This is primarily due to its requirement that the OS kernel be a DOS-style .COM or .EXE on a FAT12/16 formatted disk.

For me, I'd much rather use GRUB which supports a wider variety of OSes and filesystems. I've also explored the use of the L4 microkernel as a possible base for a more powerful version of my OS. With GRUB, loading modules at boot is trivial. Nothing I've seen of "bootprog" gives me any reason to assume that it supports loading modules at boot.


Top
  
 
 Post subject: Re:GRUB; the fat worm.
PostPosted: Mon Jan 02, 2006 7:55 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7614
Location: Germany
Dex4u wrote:
Have none of you heard of "KISS"


Yes we have, and GRUB provides me with a boot menu, loads ELF files and modules off my ReiserFS partition by name, switches to Protected Mode and gives me a map of available memory. That's KISS for me.

_________________
Every good solution is obvious once you've found it.


Top
 Profile  
 
 Post subject: Re:GRUB; the fat worm.
PostPosted: Mon Jan 02, 2006 11:34 am 
<moderated> things about ASM vs C and the like </moderated>

count the number of time you read this "I can not get GRUB to work" or get addvice like this
Quote:
avoid using DJGPP.
why because you need to use dos and does not like ELF files.

Well that useless thing called DOS that is 20 years old, is more usefull than any hobby OS, so far made, so what does that say about how far hobby OS dev has come.
Maybe if more OS dev's used the "KISS" principle, this would not be the case.


Top
  
 
 Post subject: Re:GRUB; the fat worm.
PostPosted: Mon Jan 02, 2006 1:04 pm 
Offline
Member
Member
User avatar

Joined: Tue Oct 17, 2006 11:33 pm
Posts: 3882
Location: Eindhoven
Dex4u wrote:
Kemp wrote:
Wow, you really are trying to insult as many people as possible.

I would call it educate, as many people as possible.


Replies like these are not going to change the fact that multiple people here consider this patronizing and insulting.

Just one reply: If you are so smart, why don't you do better?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 61 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