All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Cc: Lucas Gadani <lgadani@gmail.com>
Subject: Re: [PATCH] Fix chainloding + Chainloading into logical partitions
Date: Sun, 6 Jul 2008 20:41:47 +0200	[thread overview]
Message-ID: <20080706184147.GE22023@thorin> (raw)
In-Reply-To: <891e76af0806291928r242db017wd0891a67f2301e68@mail.gmail.com>

On Mon, Jun 30, 2008 at 02:28:24AM +0000, Lucas Gadani wrote:
> Hello,
> 
> This is my first patch for GRUB, and I haven't found any coding
> styles/formatting, nor developer documentation, so, if there's
> something wrong, please, forgive me and point me to the right
> direction.
> 
> Current implementation of the chainloading code does not work, cause
> it reads the partition table from the first sector of the root device,
> and the root device does not contain partition information. I've
> changed the way partition table are loaded, keeping a copy of the
> partition entry in grub_partition_t structs data field, and just
> loading this information in the correct address when chainloading.
> I've also changed the logical partitions start address to point to the
> actual disk sector, instead of pointing to the sector relative to the
> beginning of the extended partition, so we can now boot into logical
> partitions (for example, syslinux doesn't boot if the partition table
> doesn't map to the correct disk sector).
> 
> Any comments are appreciated.

Looks like it increases pc.mod code to store information that is only useful
to the chainloader.  Is there a reason for not having the chainloader
retrieve it?  (note that for disk access we have a cache)

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What good is a phone call… if you are unable to speak?
(as seen on /.)



  parent reply	other threads:[~2008-07-06 18:42 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-30  2:28 [PATCH] Fix chainloding + Chainloading into logical partitions Lucas Gadani
2008-06-30 19:56 ` Fulvio Scapin
2008-07-06 18:41 ` Robert Millan [this message]
2008-07-06 20:47   ` Lucas Gadani
2008-07-10 14:08     ` Lucas Gadani
2008-07-10 15:28       ` Bean
     [not found] <d013d84b0907221500h690d263g4cd1b9949c53c4b8@mail.gmail.com>
2009-07-22 22:11 ` Jean-Pierre Flori
2009-07-22 22:18   ` Vladimir 'phcoder' Serbinenko
2009-07-23  0:04     ` Pavel Roskin
2009-07-23  7:59       ` Vladimir 'phcoder' Serbinenko
2009-07-24 15:04       ` Gregg C Levine
2009-07-23 12:05   ` Jean-Pierre Flori

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=20080706184147.GE22023@thorin \
    --to=rmh@aybabtu.com \
    --cc=grub-devel@gnu.org \
    --cc=lgadani@gmail.com \
    /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.