Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HVLLO-00077x-7v for mharc-grub-devel@gnu.org; Sun, 25 Mar 2007 01:32:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVLLN-00077s-3f for grub-devel@gnu.org; Sun, 25 Mar 2007 01:32:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVLLK-00077g-Fa for grub-devel@gnu.org; Sun, 25 Mar 2007 01:32:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVLLK-00077d-CM for grub-devel@gnu.org; Sun, 25 Mar 2007 00:32:38 -0500 Received: from nz-out-0506.google.com ([64.233.162.226]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HVLJC-0006FE-U1 for grub-devel@gnu.org; Sun, 25 Mar 2007 01:30:27 -0400 Received: by nz-out-0506.google.com with SMTP id s1so1149635nze for ; Sat, 24 Mar 2007 22:30:19 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=f0VGLapzTwl3MIMOulnUUgOttcbYJp/fylZugPP+CD2C1aAfLnzXzgseDFJysGIbdqMi1nebUpiZRvFT2WA08v4nx70a8Pf9A8WtOX5V9JJ709aXx5UQdmGDzRkDNatkJ/joUuEfh23zx+K/8UcdvAOOWA6cuULDx+kaVfn58Nk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=AgOo2lJfmCHX2LWejAW3oKj+HGcqXUli73fXJJ+/vpWaSrZSGT9SUnDq1tbPcr2ZELGVsVUi04ujczlFBsN7YVTvWl1KOm8ISAUrgJsNzwEOi5ymZnT6oOSntfPwAxchg18kOM5WOiQDArb3vlc896wS5l8Xb5gFcWOLAcMMrIM= Received: by 10.64.199.2 with SMTP id w2mr10253812qbf.1174800618819; Sat, 24 Mar 2007 22:30:18 -0700 (PDT) Received: from ?192.168.0.100? ( [221.219.159.216]) by mx.google.com with ESMTP id m1sm9062290nzf.2007.03.24.22.30.16; Sat, 24 Mar 2007 22:30:17 -0700 (PDT) From: coly To: The development of GRUB 2 In-Reply-To: <200703242357.44745.okuji@enbug.org> References: <200703242357.44745.okuji@enbug.org> Content-Type: text/plain; charset=utf-8 Date: Sun, 25 Mar 2007 13:35:57 +0800 Message-Id: <1174800957.16920.7.camel@colyT43.site> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 8bit X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) Subject: Re: Two SoC ideas 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, 25 Mar 2007 05:32:41 -0000 Okuji: Why the modaddr can not be accepted by multiboot specification ? By default, grub loads the multiboot modules right after multiboot kernel. Some microkernel want to keep the multiboot module images in memory, if a driver crashed it can be reloaded from the image. On x86 platform, this scheme will consume much DMA memory. So a command like modaddr is very useful to save memory in DMA area. I dont know whether other platforms use Grub, but x86 is the most popular one. Best regards. Coly 在 2007-03-24六的 23:57 +0100,Yoshinori K. Okuji写道: > On Friday 23 March 2007 16:46, Wei Shen wrote: > > 1) Simple file editing > > > > I think it is useful to add file edit function to Grub. Thus, if a config > > file which is required to boot the OS successfully is mistakenly written, > > we can still correct it in Grub and need not to reboot from the floppy or > > cdrom just for the correcting. > > I know it would greately increase the complexity of Grub to support a > > writable file system. However, if file writing does not change the block > > number of a file, things are much simpler. Since most config files are > > small (occupying only one block), I think the solution will work. > > If you don't change the file size, it would work mostly. And this is exactly > how "savedefault" works in GRUB Legacy. > > But I am a bit pessimistic with this approach. For example, ZFS computes a > checksum for every block, and embeds the information into a parent node. This > means that, when GRUB modifies any bit of data, GRUB must recompute a > checksum and write it to somewhere appropriate. Otherwise, a filesystem would > be corrupted. > > Theoretically speaking, nothing prevents GRUB from doing that. But this > illustrates that GRUB must deal with writing very carefully, and the > semantics depends on each filesystem. I do not know if a kind of volume > manager, such as LVM, performs this kind of check, but if it does, we need to > support it as well. > > So this work is not as trivial as at the first glance, although we need it for > "savedefault" definitely. > > > 2) *addr* option for module command > > > > Add nn option: "*addr* = *value*" to the module command. If the > > *addr*option is specified, Grub will load the module to address > > *value* instead of the default address. > > We discussed this in bug-grub a long time ago. If you are interested, please > look at the archive, and search by "modaddr". > > In summary, I do not like this, because it is a non-standard extension to > Multiboot Specification. If you depend on this feature, your users would be > restricted to using GRUB, and they would not be able to use any other > Multiboot-compliant boot loaders. This is against the spirit of the Multiboot > Specification, which addresses portability problems in boot protocols. > > So this must be accomplished as a part of Multiboot Specification. Otherwise, > I do not want to accept it. > > Thanks, > Okuji > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel