All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yoshinori K. Okuji" <okuji@enbug.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: My Summer of Code Project
Date: Wed, 25 Apr 2007 20:12:05 +0200	[thread overview]
Message-ID: <200704252012.05519.okuji@enbug.org> (raw)
In-Reply-To: <8c0c43de0704242149m4721854bo8f221346aa65111a@mail.gmail.com>

On Wednesday 25 April 2007 06:49, Alex Roman wrote:
> Right now I'm pondering whether it is worth implementing a BIOS calls
> CDROM boot support, or whether I should just go right ahead and do it
> all with the ATA controller.

It is definitely worth doing. When BIOS works gracefully, you do not have to 
worry about interference with BIOS functions, and it will work, regardless of 
the type of a drive (e.g. SCSI or USB). And, if my understanding is correct, 
recent BIOSes are not that buggy with this regard, so it is the best solution 
in a long term. Also this is the easiest thing to implement. Thus I specified 
this as the first task to do.

Besides that, device drivers would be useful even for some other 
architectures, potentially. So I would say that both are equally important 
for GRUB. But our priority is to motivate GRUB Legacy users to switch to GRUB 
2, so supporting PC BIOS is more urgent, IMO.

> Technically, if the ATA/IDE driver is there, implementing the ATAPI
> command set to "talk" to the CDROM and interpreting the El-Torito spec
> shouldn't be that hard.
>
> If CD-ROM drives are ATAPI on all platforms (where they use ATA), and
> the ATA code is there, the ATAPI and El Torito layer should stay
> cross-platform.

Potentially, yes. But I am not sure if it is feasible, because PC has more 
restriction. Because a drive must be accessible via BIOS calls, the code must 
be small enough to fit into somewhere below 1MB.

In addition, such code needs to be, at least partially, 16-bit code for BIOS 
calls. But I am afraid that 16-bit code support by GCC is quite poor, so you 
would have to implement the code in assembly, thus it would result in 
non-portable code.

Okuji



  parent reply	other threads:[~2007-04-25 18:18 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-21 14:17 My Summer of Code Project Alex Roman
2007-04-24 20:06 ` Devils-Hawk
2007-04-24 20:17   ` Stefan Reinauer
2007-04-25 12:38     ` Marco Gerards
2007-04-25  4:49   ` Alex Roman
2007-04-25  5:52     ` Andrei E. Warkentin
2007-04-25  8:07     ` Vesa Jääskeläinen
2007-04-25 13:01     ` Marco Gerards
2007-04-25 14:20       ` Alex Roman
2007-04-25 16:08         ` Marco Gerards
2007-04-25 16:41           ` Alex Roman
2007-04-25 18:26             ` Yoshinori K. Okuji
2007-04-25 18:12     ` Yoshinori K. Okuji [this message]
2007-04-25 12:33   ` Marco Gerards
2007-04-25 12:28 ` Marco Gerards
     [not found] <200704211558.l3LFwgRT001308@correoredir01.dinaserver.com>
2007-04-23  0:01 ` adrian15
2007-04-25 18:17   ` Yoshinori K. Okuji

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=200704252012.05519.okuji@enbug.org \
    --to=okuji@enbug.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.