From: John Stanley <jpsinthemix@verizon.net>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: status grub2 port of grub-legasy map command
Date: Fri, 17 Apr 2009 20:01:38 -0400 [thread overview]
Message-ID: <49E91862.9090103@verizon.net> (raw)
In-Reply-To: <d7ead6de0904171646w5e8f7f0dia8cf80ab1158157b@mail.gmail.com>
Ok, that sounds good... I feel better about it then. I didn't mean
directly modifying bios data, but through doc'd bios ints of course. It
been a long, long time since I've looked at (or dealt with) bios code,
so I was was simply wondering if boot device naming could be modified
in a documented way nowadays-- after all, the functionality has been
available in the bios setup in pcs for at least 10 years or so.
Vladimir Serbinenko wrote:
>
>
> On Sat, Apr 18, 2009 at 1:12 AM, John Stanley <jpsinthemix@verizon.net
> <mailto:jpsinthemix@verizon.net>> wrote:
>
> Hi Javier and all,
> I could probably have a version of the drivemap completed this
> weekend as well, but since I've basically simply adapted your
> drivempa.patch.8 to r2106, with little change, I'd be more
> comfortable going with your new patch since you know the code much
> better.
>
> In addition, in the last several days, have started leaning away
> from it altogether -- because of the use of an int13 intercept
> TSR. When I started looking at the drivemap patch about a week
> ago, I assumed it simply did some sort of bios (internal) table
> swapping only. I'm not really comfort able with the int13 handler
> redirect. I worry about (possibly rare) problems downstream while
> running Windows. On the other hand, I know it "does work," as I
> and many others have been using map with grub-legasy for several
> years now. Nevertheless, I'm now a bit apprehensive.
>
> Modifying internal bios tables isn't practicable because they may be
> anywhere and in any format. Windows follows the memory map supplied by
> int12/int15/bda which says that the ranges used by hook are unusable.
> Also even if windows overwrites int13 handle it doesn't matter at all
> because windows switches to its own disk drivers after initial start
>
>
> For me, for the time-being, as my laptops are all Thinkpads, which
> have bios supplied "boot device table" functionality (via f12 on
> poweron), I can live without drivemap for those occasions when I
> need to come down from the hilltop to work on Windows.
>
> What I'd like to do with drivemap, is to do boot device swapping
> by changing in the bios which device is to be treated as the
> "first" boot device, which is the second, etc. I know this is
> doable in principle, but it may not be practical, or wise-- I'm
> not sure.
>
> There is no public API to do so. So you need to reverse engineer BIOS
> which is impractical to do for every possible mobo.
>
> It would also have to be done in a way which does not "pull the
> rug out on grub" insofar as boot device enumeration is concerned.
>
>
> Javier Martín wrote:
>
> Hello there. I am the original author of the drivemap command.
> I was
> told by a friend that it was being discussed again on the GRUB
> list, so
> I came back and examined the two new enabling functionalities,
> preboot
> hooks and mmap. I've adapted drivemap to use them both, and I'm
> polishing some rough edges. I might send a new version of the
> patch this
> weekend. Should people, however, prefer John's version, I'd be
> glad to
> assist.
>
> El mié, 15-04-2009 a las 11:34 +0200, phcoder escribió:
>
>
> Yes it is. Also it's better to use grub_mmap_iterate
> instead of basing the location on 0x413 value. How to do
> it look at mmap/i386/pc/mmap.c
>
>
> The preboot hooks patch works beautifully. However, mmap
> causes some
> sort of glitch that makes FreeDOS (one of my three drivemap tests,
> together with ReactOS and XP) triple-fault. I've been trying
> to debug it
> with GDB-over-QEMU, but it is a real PITA. I haven't found any
> sort of
> bug in the mmap code, so I'm quite dumbfounded right now.
> Nevertheless,
> I'm proceeding to the XP test, which would likely be the most
> common use
> case for drivemap.
>
> ------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org <mailto:Grub-devel@gnu.org>
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org <mailto:Grub-devel@gnu.org>
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
next prev parent reply other threads:[~2009-04-18 0:11 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-14 1:03 status grub2 port of grub-legasy map command John Stanley
2009-04-14 7:33 ` Felix Zielcke
2009-04-14 9:21 ` John Stanley
2009-04-14 9:04 ` phcoder
2009-04-15 8:55 ` John Stanley
2009-04-15 9:06 ` phcoder
2009-04-15 9:30 ` John Stanley
2009-04-15 9:34 ` phcoder
2009-04-17 21:20 ` Javier Martín
2009-04-17 21:42 ` Vladimir Serbinenko
2009-04-17 23:12 ` John Stanley
2009-04-17 23:46 ` Vladimir Serbinenko
2009-04-18 0:01 ` John Stanley [this message]
2009-04-18 2:18 ` Javier Martín
2009-04-18 2:36 ` Vladimir Serbinenko
2009-05-03 0:02 ` Javier Martín
2009-05-03 9:17 ` Vladimir 'phcoder' Serbinenko
2009-05-03 19:45 ` Pavel Roskin
2009-05-03 20:59 ` Pavel Roskin
2009-05-03 23:37 ` Javier Martín
2009-05-04 3:57 ` Pavel Roskin
2009-05-06 18:41 ` Javier Martín
2009-05-09 9:17 ` Vladimir 'phcoder' Serbinenko
2009-05-09 13:27 ` Javier Martín
2009-05-09 14:04 ` Vladimir 'phcoder' Serbinenko
2009-05-09 15:42 ` Javier Martín
2009-05-10 11:47 ` Vladimir 'phcoder' Serbinenko
2009-05-10 17:03 ` Javier Martín
2009-05-14 1:51 ` Pavel Roskin
2009-05-14 6:49 ` Vladimir 'phcoder' Serbinenko
2009-05-14 14:03 ` Pavel Roskin
2009-05-14 15:01 ` Vladimir 'phcoder' Serbinenko
2009-05-14 18:17 ` Pavel Roskin
2009-05-14 18:38 ` Vladimir 'phcoder' Serbinenko
2009-05-15 22:46 ` Javier Martín
2009-05-30 15:28 ` Vladimir 'phcoder' Serbinenko
2009-05-31 10:01 ` Javier Martín
2009-05-31 11:36 ` Vladimir 'phcoder' Serbinenko
2009-05-31 12:48 ` Javier Martín
2009-05-31 16:00 ` Vladimir 'phcoder' Serbinenko
2009-05-31 16:26 ` Javier Martín
2009-05-31 18:05 ` Vladimir 'phcoder' Serbinenko
2009-05-31 18:50 ` Javier Martín
2009-05-31 19:00 ` Vladimir 'phcoder' Serbinenko
2009-05-31 19:35 ` Christian Franke
2009-05-31 20:13 ` Javier Martín
2009-06-01 9:53 ` Vladimir 'phcoder' Serbinenko
2009-06-01 20:41 ` Javier Martín
2009-06-01 21:45 ` Vladimir 'phcoder' Serbinenko
2009-06-04 18:56 ` Vladimir 'phcoder' Serbinenko
2009-06-05 13:55 ` Vladimir 'phcoder' Serbinenko
2009-06-05 14:06 ` Javier Martín
2009-05-14 6:53 ` Vladimir 'phcoder' Serbinenko
2009-05-14 14:11 ` 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=49E91862.9090103@verizon.net \
--to=jpsinthemix@verizon.net \
--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.