From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LlNl3-0002vV-JJ for mharc-grub-devel@gnu.org; Sun, 22 Mar 2009 09:30:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LlNl0-0002vC-P8 for grub-devel@gnu.org; Sun, 22 Mar 2009 09:30:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LlNkw-0002um-6D for grub-devel@gnu.org; Sun, 22 Mar 2009 09:30:30 -0400 Received: from [199.232.76.173] (port=40957 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LlNkw-0002uj-0x for grub-devel@gnu.org; Sun, 22 Mar 2009 09:30:26 -0400 Received: from fg-out-1718.google.com ([72.14.220.153]:3577) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LlNkv-0003mS-JO for grub-devel@gnu.org; Sun, 22 Mar 2009 09:30:25 -0400 Received: by fg-out-1718.google.com with SMTP id 19so462711fgg.7 for ; Sun, 22 Mar 2009 06:30:24 -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 :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=lOrVBtgympNKF0iNxlM3pMR67lUTuptEAMNa1kkUbwo=; b=AGrIsrsLSex9oy9QaLe5iWCV0qqGk3CNsOEtP0BpsrMMnRXExvIMklhbm/hXQYbGsJ RBisOW1x9aAdqI/lROHJK5PZ7FqLD6ZH0R6vgvlXB/XvjZ78f2nJpzpbe7QgHz8+fUnF U/T8RBxt/1rPg9r+pkrFsENvs0iARYCgUiMQ4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=JJ81qGwbi1b9Yj+uCFD4r0mkKrNz0G4HRm2fEJxohJtEQKkcI4NH3OCSgM/UqxIsFi XZ1To4CBm5UGZ+mX+1rNCLwJU14qNb1JI0DtUHMFZ2EsAg5Mv4zPJpHLIr2C6KWLq1kd HznLWQpdGV98vxIGUho94lIH6mA4viKdfXcmQ= Received: by 10.86.95.8 with SMTP id s8mr2820470fgb.79.1237728624749; Sun, 22 Mar 2009 06:30:24 -0700 (PDT) Received: from ?192.168.1.25? (252.80.3.213.cust.bluewin.ch [213.3.80.252]) by mx.google.com with ESMTPS id l19sm1764718fgb.11.2009.03.22.06.30.24 (version=SSLv3 cipher=RC4-MD5); Sun, 22 Mar 2009 06:30:24 -0700 (PDT) Message-ID: <49C63D70.5020908@gmail.com> Date: Sun, 22 Mar 2009 14:30:24 +0100 From: phcoder User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: The development of GRUB 2 References: <49C63395.9090304@gmail.com> <200903222157.33568.okuji@enbug.org> <49C637DC.4050002@gmail.com> <200903222212.34194.okuji@enbug.org> In-Reply-To: <200903222212.34194.okuji@enbug.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Move loader.c out of the kernel 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: Sun, 22 Mar 2009 13:30:31 -0000 Yoshinori K. Okuji wrote: > On Sunday 22 March 2009 22:06:36 phcoder wrote: >> Yoshinori K. Okuji wrote: >>> On Sunday 22 March 2009 21:48:21 phcoder wrote: >>>> Hello. Now when boot command isn't in kernel anymore I don't see why >>>> loader.c stays in kernel. Here is the patch to move it to boot.mod >>> This is not useful in reality, because the loader interface needs to be >>> pre-loaded into core.img anyway. >> Why? I successfully tested core.img with just pc fat and biosdisk >> modules integrated. It loads boot.mod just fine and boots linux and >> multiboot with no problem > > Try the rescue mode with no extra module loaded. If the core.img does not have > any loader, it is useless. If it's unable to read FS then it can't boot much anyway. If it's it can load modules from its own partition. The only use I see is when grub partition is corrupted but OS one is intact and you already have FS driver for root in grub2. Alternatively commands/boot.c can be a part of minicmd > > Okuji > >> > Note that the more you split code into >>> modules, the more the size of core.img is, as long as they are all >>> pre-loaded. >>> >>> Regards, >>> Okuji >>> >>> >>> _______________________________________________ >>> Grub-devel mailing list >>> 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 -- Regards Vladimir 'phcoder' Serbinenko