All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Roskin <proski@gnu.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Some ideas about new features of grub
Date: Thu, 02 Jul 2009 17:23:07 -0400	[thread overview]
Message-ID: <1246569787.20370.46.camel@mj> (raw)
In-Reply-To: <d7ead6de0907021238j487be835wba581fbb2bc626f5@mail.gmail.com>

On Thu, 2009-07-02 at 21:38 +0200, Vladimir 'phcoder' Serbinenko wrote:

> > I don't care about MS DOS.  Other OSes should not need GRUB.  If you
> > want GRUB to be a supervisor or a microkernel, it's better that GRUB
> > loads them instead of incorporating their functionality.
> >
> This isn't about just msdos. Disk emulation may need this design
> change. It may be used in future for booting proprietary OSes from
> disk images.But it shouldn't matter for free OSes which either support
> initrd in some form or such feature can be added to them. I wouldn't
> spend a lot of effort to implement something which is useful only for
> proprietary OSes. Leaving entire grub is perhaps a bit of overkill. I
> would prefer another approach: compile kernel twice: once as normal
> kernel and another time as kernel for persistent grub. Modules can be
> the same. This approach has an advantage of not increasing core.img
> size (we already not too far from the wall) while implementing kernel
> feature. We should take more care about core.img size
> But another reason

OK, whoever wants to implement that will need to provide a use case.

> >> LUA integration.
> >> LUA is quite powerful, it's more suitable to do complicated task than
> >> sh script. For example, we can use it to detect os at runtime,
> >> implement simple commands, or draw the graphic menu.
> >
> > Yes, I think LUA improvements should continue.  We may switch to a LUA
> > implementation of grub.cfg at some point.
> >
> Even if LUA is great I don't agree with its usage as default. LUA is
> under a bit different copyright license. While it's ok for it to be
> incorporated and used you should be able to use grub even without LUA.
> Additionally at least some feature aren't too hard to implement in sh
> and I find sh more appropriate for menu generation.

I really like the idea of looking for the kernels on the fly.  If we can
do it in sh, let's do it.

> > Hard drives and CD-ROMs are usually large and would take a lot of space
> > in memory that would need to remain allocated.  I think we need a strong
> > case to start that effort.
> >
> Todays RAM is usually big enough. This feature would mainly be used to
> boot install images and not normal OSes and install image + memory
> needed for installer usually fits 1GiB. On the other hand small
> laptops and netbook usualy have no CD. It would also be possible not
> to store the image in RAM and read it directly from disk if grub's
> drivers are left in memory one way or another.

I think keeping the whole GRUB in memory for that purpose would be a
major overkill.  I would probably create a file map on the disk (like,
sectors 0-10 of the file are in sectors 1000-1010 of the disk etc) and
leave a simple interrupt handler that would emulate a BIOS disk by using
that map.

But I don't see it as priority.

> > I'd rather see an effort to support CD-ROM and other ATAPI devices
> > without disrupting BIOS access to the hard drives and floppies.
> You can't have 2 disk drivers operation on same device without taking
> some risk.

Floppies are not the same device.  Yes, there is some risk accessing a
CD-ROM while BIOS accesses a hard drive on the same controller.  But I
think GRUB would never do it in parallel.

>  I would prefer ehci driver and floppy driver if someone
> still needs them

USB needs work, that's for sure.

Floppies can be supported via int 13 even if the ATA module is in use.
Or we can use int 40 to be extra safe.

> >  We also
> > need AHCI support.
> >
> Isn't it already the case?

I don't see it.

-- 
Regards,
Pavel Roskin



  reply	other threads:[~2009-07-02 21:23 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-02  8:48 Some ideas about new features of grub Bean
2009-07-02 17:51 ` Pavel Roskin
2009-07-02 18:38   ` Duboucher Thomas
2009-07-02 20:44     ` Pavel Roskin
2009-07-02 19:38   ` Vladimir 'phcoder' Serbinenko
2009-07-02 21:23     ` Pavel Roskin [this message]
2009-07-02 21:37       ` Vladimir 'phcoder' Serbinenko
2009-07-04  4:57         ` Pavel Roskin
2009-07-31  8:18   ` Marco Gerards
2009-07-04 20:18 ` Robert Millan
2009-07-05  3:13   ` Bean
2009-07-07 18:39     ` Robert Millan
2009-07-08  6:19       ` Pavel Roskin
2009-07-10 17:11         ` Robert Millan
2009-07-10 21:27           ` BandiPat
2009-07-11  6:53             ` Bean
2009-07-11 16:20               ` Michal Suchanek
2009-07-11 18:32                 ` Colin Watson
2009-07-11 18:55                   ` Robert Millan
2009-07-11 18:33                 ` Felix Zielcke
2009-07-11 18:27               ` Robert Millan
2009-07-12 13:40               ` Pavel Roskin
2009-08-23 12:55 ` Robert Millan
2009-08-23 12:56 ` Robert Millan
2009-08-23 15:22   ` adrian15
2009-08-23 16:58     ` Vladimir 'phcoder' Serbinenko
2009-08-23 23:02       ` Robert Millan
2009-09-11 21:48   ` Pavel Roskin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1246569787.20370.46.camel@mj \
    --to=proski@gnu.org \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.