Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ka93H-0004Kt-09 for mharc-grub-devel@gnu.org; Mon, 01 Sep 2008 09:02:39 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ka93E-0004J1-Me for grub-devel@gnu.org; Mon, 01 Sep 2008 09:02:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ka93A-0004Ga-Lf for grub-devel@gnu.org; Mon, 01 Sep 2008 09:02:35 -0400 Received: from [199.232.76.173] (port=56340 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ka93A-0004GP-8K for grub-devel@gnu.org; Mon, 01 Sep 2008 09:02:32 -0400 Received: from ti-out-0910.google.com ([209.85.142.190]:47052) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ka939-0006IB-IT for grub-devel@gnu.org; Mon, 01 Sep 2008 09:02:32 -0400 Received: by ti-out-0910.google.com with SMTP id u5so1126011tia.10 for ; Mon, 01 Sep 2008 06:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=NGHI7taQXK0izXSuLGgaP4Pa0gaZWDro8s0ddnPAPAU=; b=Uax9MebHhY22y3ssc7Dv6MlND/j0mBnfyc+uDr2D/LM5inzBSH4OJDpW1cJSJZunbK 0nxHoXHClbNT16AeZ6UqEu1Nld2/3KhzILrsG2nlYrgPwyn0/RI7kyd2uV/xx7ocj2lW DrINLcU58JPtpt2ggbfQGDOxIqAOmHs+0BiL4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=DE/RqxIY72DSPSxe1/wQPOnaEXS2xT7DlgXNTQ5k2+o0T+FH3tXqL0EjQQhrkuctqm cCWNm/xTMDkukH1K6d+03euZmCJc0AELNqQIc9hbuvdrmPumH/XahveoSdQ6FCtUvWUW mtUa1EdqyTY0xHlAtdT+BzyKFdvB4np8BcNZ0= Received: by 10.110.93.12 with SMTP id q12mr7778511tib.16.1220274148461; Mon, 01 Sep 2008 06:02:28 -0700 (PDT) Received: by 10.110.57.17 with HTTP; Mon, 1 Sep 2008 06:02:28 -0700 (PDT) Message-ID: Date: Mon, 1 Sep 2008 21:02:28 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <460235.273.qm@web31601.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_103837_15205463.1220274148460" References: <460235.273.qm@web31601.mail.mud.yahoo.com> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: Windows,grub and grub2 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2008 13:02:36 -0000 ------=_Part_103837_15205463.1220274148460 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Mon, Sep 1, 2008 at 6:48 PM, Viswesh S wrote: > > > ----- Original Message ---- > From: Bean > To: The development of GRUB 2 > Sent: Monday, 1 September, 2008 3:46:32 PM > Subject: Re: Windows,grub and grub2 > > On Mon, Sep 1, 2008 at 5:08 PM, Viswesh S wrote: >> >> > > Hi, > > Do you mean the result is still the same after you apply my patch ? I > check the source code of grub legacy, the handling should be exactly > the same. Are you using the official branch grub 0.96, or some package > with modification ? > > You can also check memory at 0x7be, this should be the partition table > in mbr, %esi would point to the boot partition. > > -- > Bean > > Hi, > > The result is still the same after the patch. > > I am using the official grub2 released package 1.96. > > In that the chainloader patch wasnt there.Hence applied that according to > your inputs as in the mail. > > I checked the memory at 0x7be, which is the same as 0x1be in the mbr. > > The first partition was already active also. > > Also as I mentioned,what about the code for the int 13 extension and and > their functionalities for 2,41,42. > > Is there any change there. > > Otherwise I am not really sure, why grub is able to boot,but grub2 not. Hi, I doubt that this is caused by int 13, as grub2 doesn't change it. Besides, the boot sector is read properly in grub2, so int 13 should be working. I have thought of another possible reason for this. In grub2, %dh is 0, perhaps it should be set to the partition number. Please test if the new patch works. -- Bean ------=_Part_103837_15205463.1220274148460 Content-Type: text/x-diff; name=chain2.diff Content-Transfer-Encoding: base64 X-Attachment-Id: f_fkl3lnya0 Content-Disposition: attachment; filename=chain2.diff ZGlmZiAtLWdpdCBhL2xvYWRlci9pMzg2L3BjL2NoYWlubG9hZGVyLmMgYi9sb2FkZXIvaTM4Ni9w Yy9jaGFpbmxvYWRlci5jCmluZGV4IDgyNWRiYjMuLjVkY2MwOGEgMTAwNjQ0Ci0tLSBhL2xvYWRl ci9pMzg2L3BjL2NoYWlubG9hZGVyLmMKKysrIGIvbG9hZGVyL2kzODYvcGMvY2hhaW5sb2FkZXIu YwpAQCAtMTAxLDEyICsxMDEsMjUgQEAgZ3J1Yl9jaGFpbmxvYWRlcl9jbWQgKGNvbnN0IGNoYXIg KmZpbGVuYW1lLCBncnViX2NoYWlubG9hZGVyX2ZsYWdzX3QgZmxhZ3MpCiAJICAvKiBJbiBpMzg2 LXBjLCB0aGUgaWQgaXMgZXF1YWwgdG8gdGhlIEJJT1MgZHJpdmUgbnVtYmVyLiAgKi8KIAkgIGRy aXZlID0gKGludCkgZGlzay0+aWQ7CiAKLQkgIGlmIChwKQorCSAgaWYgKChwKSAmJiAocC0+aW5k ZXggPCA0KSkKIAkgICAgewotCSAgICAgIGdydWJfZGlza19yZWFkIChkaXNrLCBwLT5vZmZzZXQs IDQ0NiwgNjQsCi0JCQkgICAgICAoY2hhciAqKSBHUlVCX01FTU9SWV9NQUNISU5FX1BBUlRfVEFC TEVfQUREUik7CisgICAgICAgICAgICAgIGludCBpOworCisJICAgICAgZGlzay0+ZGV2LT5yZWFk IChkaXNrLCAwLCAxLAorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChjaGFyICopIEdS VUJfTUVNT1JZX01BQ0hJTkVfU0NSQVRDSF9BRERSKTsKKworICAgICAgICAgICAgICBncnViX21l bWNweSAoKGNoYXIgKikgR1JVQl9NRU1PUllfTUFDSElORV9QQVJUX1RBQkxFX0FERFIsCisgICAg ICAgICAgICAgICAgICAgICAgICAgICAoY2hhciAqKSBHUlVCX01FTU9SWV9NQUNISU5FX1NDUkFU Q0hfQUREUiArIDB4MWJlLAorICAgICAgICAgICAgICAgICAgICAgICAgICAgNjQpOworCiAJICAg ICAgcGFydF9hZGRyID0gKHZvaWQgKikgKEdSVUJfTUVNT1JZX01BQ0hJTkVfUEFSVF9UQUJMRV9B RERSCiAJCQkJICAgICsgKHAtPmluZGV4IDw8IDQpKTsKKworICAgICAgICAgICAgICBmb3IgKGkg PSAwOyBpIDwgNDsgaSsrKQorICAgICAgICAgICAgICAgICooKGNoYXIgKikgR1JVQl9NRU1PUllf TUFDSElORV9QQVJUX1RBQkxFX0FERFIgKyBpICogMTYpID0gMDsKKworICAgICAgICAgICAgICAq KCh1bnNpZ25lZCBjaGFyICopIHBhcnRfYWRkcikgPSAweDgwOworICAgICAgICAgICAgICBkcml2 ZSB8PSAocC0+aW5kZXggPDwgOCk7CiAJICAgIH0KIAl9CiAKQEAgLTExOSw2ICsxMzIsOCBAQCBn cnViX2NoYWlubG9hZGVyX2NtZCAoY29uc3QgY2hhciAqZmlsZW5hbWUsIGdydWJfY2hhaW5sb2Fk ZXJfZmxhZ3NfdCBmbGFncykKICAgYm9vdF9kcml2ZSA9IGRyaXZlOwogICBib290X3BhcnRfYWRk ciA9IHBhcnRfYWRkcjsKICAgCisgIGdydWJfcHJpbnRmICgiZWR4ID0gJXgsICVlc2kgPSAlcFxu IiwgZHJpdmUsIHBhcnRfYWRkcik7CisKICAgZ3J1Yl9sb2FkZXJfc2V0IChncnViX2NoYWlubG9h ZGVyX2Jvb3QsIGdydWJfY2hhaW5sb2FkZXJfdW5sb2FkLCAxKTsKICAgcmV0dXJuOwogICAK ------=_Part_103837_15205463.1220274148460--