From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HXVBE-0001kF-Oj for mharc-grub-devel@gnu.org; Sat, 31 Mar 2007 00:27:08 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HXVBD-0001hx-Au for grub-devel@gnu.org; Sat, 31 Mar 2007 00:27:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HXVBC-0001gA-4t for grub-devel@gnu.org; Sat, 31 Mar 2007 00:27:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HXVBB-0001g1-UE for grub-devel@gnu.org; Fri, 30 Mar 2007 23:27:05 -0500 Received: from mx09.ms.so-net.ne.jp ([202.238.82.9]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HXV8P-0008T2-KC for grub-devel@gnu.org; Sat, 31 Mar 2007 00:24:14 -0400 Received: from temjin (pddf8eb.gifunt01.ap.so-net.ne.jp [218.221.248.235]) by mx09.ms.so-net.ne.jp with ESMTP id l2V4O6bA011600 for ; Sat, 31 Mar 2007 13:24:10 +0900 (JST) From: "Hitoshi Ozeki" To: "'The development of GRUB 2'" Date: Sat, 31 Mar 2007 13:24:07 +0900 Message-ID: <000001c7734c$6f105ac0$030010ac@temjin> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6822 Importance: Normal Thread-Index: AcdxbtZb8nloLKgWSO2dDa5xepMQRABPQMmQACbwRjA= In-Reply-To: <000001c772ae$a4fa46d0$030010ac@temjin> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-detected-kernel: Solaris 9.1 Subject: RE: i386-pc 'chainloader' is something wrong. (RE: I write a patch forJapanese NEC i386 old computers.) 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: Sat, 31 Mar 2007 04:27:07 -0000 Hello, I wrote: > Please see 'grub-1.96/loader/i386/pc/chainloader.c' and > 'grub-1.96/kern/loader.c' > > When we execute the 'boot' command, process the 'grub_loader_boot()' (omit it) To sum up, On 'chainloader' of i386-pc, However 'grub_loader_boot()' executes 'grub_device_open()', it will fail always. But 'grub_loader_boot()' do it. If this behavior is wrong, we do only fix it. What I wish to know is which is the boot drive. 1. 'root' environment indicates it. 2. argument of 'chainloader' command indicates it. For example: grub> set root=hd0,1 grub> chainloader (hd0,2)0+2 grub> boot If the 1st is, boot from (hd0,1) and bootloader is (hd0,2)0+2. If the 2nd is, boot from (hd0,2) and bootloader is (hd0,2)0+2. ...Aha! EFI looks to choose 1st. Should I obey it?