Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JI3Wa-0004lO-Oo for mharc-grub-devel@gnu.org; Thu, 24 Jan 2008 09:57:52 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JI3WY-0004kW-TK for grub-devel@gnu.org; Thu, 24 Jan 2008 09:57:50 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JI3WX-0004j9-Fz for grub-devel@gnu.org; Thu, 24 Jan 2008 09:57:50 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JI3WX-0004j0-57 for grub-devel@gnu.org; Thu, 24 Jan 2008 09:57:49 -0500 Received: from nz-out-0506.google.com ([64.233.162.227]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JI3WW-0005Gk-TB for grub-devel@gnu.org; Thu, 24 Jan 2008 09:57:49 -0500 Received: by nz-out-0506.google.com with SMTP id f1so197924nzc.21 for ; Thu, 24 Jan 2008 06:57:48 -0800 (PST) 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:content-transfer-encoding:content-disposition:references; bh=udji3tWJr01yBoxGeh/OplsnZgEwC8D6wB6GjU0mzAo=; b=kSRNXcyKIaSi3L9tF/l7FM/ekwlDwpNHAfivgmu3WDpLzuCbjkYEgQ8R1iE3bpvwltox0pR2+AyOdC2QNm6K3IDh3u+/2CR3FsN2Rqvu2pykyfpVjmSUkxasszH9UeC5TlcZXpQ1jUW3qEbcX327+qEhflbcpFDhvftdENSetws= 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:content-transfer-encoding:content-disposition:references; b=M87OrcBXB7FP9rbwvopKAEeAJpdcwKHwyyoc3KpumVih0xGZkqZA7htdZwhcjrw+qiUTXJrE2m1wCKlkLymMmOSxwzuNFw69LubWk9N7fDcH3ByiYTZLuQvExVKWq2a9ZrN4Hc+To5LE4JFc6WJ3GFspphpvWm1OksNt3UKWSWA= Received: by 10.110.68.10 with SMTP id q10mr253389tia.28.1201186666455; Thu, 24 Jan 2008 06:57:46 -0800 (PST) Received: by 10.110.31.8 with HTTP; Thu, 24 Jan 2008 06:57:46 -0800 (PST) Message-ID: Date: Thu, 24 Jan 2008 22:57:46 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <20080124142551.GA8248@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080123191449.GB15742@thorin> <20080123201534.GA25534@thorin> <20080123211506.GA27338@thorin> <20080124113244.GA2249@thorin> <20080124142551.GA8248@thorin> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: [PATCH] memdisk plus lnxboot extension 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: Thu, 24 Jan 2008 14:57:51 -0000 On Jan 24, 2008 10:25 PM, Robert Millan wrote: > > On Thu, Jan 24, 2008 at 07:49:23PM +0800, Bean wrote: > > On Jan 24, 2008 7:32 PM, Robert Millan wrote: > > > Sorry, my question was confusing; what I meant is, where is it located when > > > core.img is started. But Just checked in our Linux loader, and it seems to be > > > at a very high address. > > > > > > However, a very high address doesn't garantee that it won't be overwritten by > > > lzo decompression, just makes it less likely. > > > > > > Overall, this is why I don't like having to stick to a particular boot > > > mechanism. If our goal is overcome the size limit in memdisk, why not design > > > the boot mechanism ourselves? > > > > I'm not familiar with multiboot spec, does it support arbitrary kernel size ? > > Sorry I don't know, you'd have to check. > > However, my point is more about the loadee than the loader. We provide a > multiboot image, which can also be a linux image with lnxboot.img, however, > this image needs to be very small, because it's intended usage is with > grub-setup, and that is why we only put the minimal stuff in it, and compress > it. > > You want to add a feature that only works when you have the ability to load > images of an arbitrary size. However, if we had this ability we wouldn't have > to compress core.img, or make it small in the first place. We would then > just create core.img of an arbitrary size, and include a memdisk of an > arbitrary size in it. But then we wouldn't need a feature to work around the > size restriction in memdisk! > > I think we need to discuss more about the situation you want to solve. Who > is going to load GRUB in lnxboot form + memdisk image? Where is it going to > load that from? If GRUB can access the same media, why not use loopback > to add a virtual disk based on the filesystem image, instead of loading it > in memory? i'm thinking about the situation where the boot media is not accessible, like pxe/cdrom. in this case, we can create core.img that contain minimum modules, and initrd that contain other modules plus font files and other data file. then, we can use loader like pxelinux/isolinux to load them at the same time. -- Bean