Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HV5MU-0006Q0-Jr for mharc-grub-devel@gnu.org; Sat, 24 Mar 2007 08:28:46 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HV5MT-0006Pb-A8 for grub-devel@gnu.org; Sat, 24 Mar 2007 08:28:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HV5MS-0006PP-7C for grub-devel@gnu.org; Sat, 24 Mar 2007 08:28:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HV5MS-0006PM-1a for grub-devel@gnu.org; Sat, 24 Mar 2007 07:28:44 -0500 Received: from an-out-0708.google.com ([209.85.132.245]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HV5KQ-000758-Cv for grub-devel@gnu.org; Sat, 24 Mar 2007 08:26:38 -0400 Received: by an-out-0708.google.com with SMTP id b8so1472205ana for ; Sat, 24 Mar 2007 05:26:38 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=XjAnD3++OR2p302ah9KfdcO5Czn7BtmEAyG/BE3eSOiumj16j/2MXPI7PswM/QdvwgedgNy7mTqDDcPUGAxXgt7W/vTfvgunyOtLkNeR8l/DApqrP3tl5y0EMaXE3mmFfKJn6reMO+due9Vh/bm9QSxf76pVzz0wlNCs7FMYtIo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=fQRkG/QlP/preamsZ1UoOtwGm4MUW+9jOnjOHtDsHxJzfXgmckoCnjxYhJvmvtePnuDMhRTICp4l8SKfTwn0CVJXeWINMcWnrftoCnhDd/I6w4lqu9CjqWPK6/GqY3l6dQfDJp/yT/rxIKRtUdEXCGeQsDS3Lt12T9ZLtPBgUiY= Received: by 10.100.123.9 with SMTP id v9mr3453736anc.1174739197886; Sat, 24 Mar 2007 05:26:37 -0700 (PDT) Received: by 10.100.230.4 with HTTP; Sat, 24 Mar 2007 05:26:37 -0700 (PDT) Message-ID: Date: Sat, 24 Mar 2007 20:26:37 +0800 From: "Wei Shen" To: grub-devel@gnu.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_50389_29890487.1174739197844" X-detected-kernel: Linux 2.6 (newer, 2) Subject: Re: Two SoC ideas (comments are welcome!) 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, 24 Mar 2007 12:28:45 -0000 ------=_Part_50389_29890487.1174739197844 Content-Type: text/plain; charset=ISO-2022-JP; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I will appreciate the comments from anybody on my ideas. To Colyli: You are right. Their "*modaddr* *value*" can do the same as my "*addr* = * value*". The former told Grub to load all the rest modules starting from address *value*; while the later only specifies the current module's loading address. However, *modaddr* can not set the loading address of the kernel. Regards, Wei Shen > For the first idea, it is clear to me. I have no comment on it. > For the second idea, I need more information. Can you explain more for > the limition of "modaddr value" command, and how can the limition to be > broken out by the "addr = value" option ? > > Thanks. > > Coly > On 3/24/07, Wei Shen wrote: > > Thanks for your advice. > > On 3/24/07, colyli wrote: > > > > Chen: > > > > In grub command line, you can edit the configre (even mistaken), so > > maybe it will not be worth to add an edit in grub. > > > I do not mean the configure of Grub menu list, but the config files of the > OS, like *boot.ini* of Windows and *inittab* of Linux. > > An option to set the start address for grub to load multiboot module is > > great. This option will make kernel guys (who use multiboot modules) to > > initiate the kernel more easy. I remember a branch of grub for L4 kernel > > supports this option, maybe it can be a reference if you are interested > > in. > > > I know this approach, however, instead of an option, they add a new > command *modaddr*. A limitation is that all modules after the "*modaddr* * > value*" will be loaded in succession to a overriding address below address > *value*. > > Best regards. > > > > Coly > > > > > > 在 2007-03-23五的 23:46 +0800,Wei Shen > > > Hi, > > > > > > I have two ideas and wonder whether they are welcome as SoC projects. > > > > > > 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. > > > > > > 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. > > > > > > Regards, > > > > > > Wei Shen > > > _______________________________________________ > > > Grub-devel mailing list > > > Grub-devel@gnu.org > > > http://lists.gnu.org/mailman/listinfo/grub-devel > > > > > ------=_Part_50389_29890487.1174739197844 Content-Type: text/html; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,
 
I will appreciate the comments from anybody on my ideas.
 
To Colyli:
 
You are right. Their "modaddr value" can do the same as my "addr = value". The  former told Grub to load all the rest modules starting from address value ; while the later only specifies the current module's loading address. However, modaddr can not set the loading address of the kernel.
 
Regards,
 
Wei Shen


For the first idea, it is clear to me. I have no comment on it.
For the second idea, I need more information. Can you explain more for
the limition of "modaddr value" command, and how can the limition to be
broken out by the "addr = value" option ?

Thanks.

Coly
On 3/24/07, Wei Shen <cquark@gmail.com> wrote:
Thanks for your advice.

On 3/24/07, colyli <colyli@263.net > wrote:
Chen:

In grub command line, you can edit the configre (even mistaken), so
maybe it will not be worth to add an edit in grub.
 
I do not mean the configure of Grub menu list, but the config files of the OS, like boot.ini of Windows and inittab of Linux.

An option to set the start address for grub to load multiboot module is
great. This option will make kernel guys (who use multiboot modules) to
initiate the kernel more easy. I remember a branch of grub for L4 kernel
supports this option, maybe it can be a reference if you are interested
in.
 
I know this approach, however, instead of an option, they add a new command modaddr. A limitation is that all modules after the "modaddr value" will be loaded in succession to a overriding address below address value.

Best regards.

Coly


在 2007-03-23五的 23:46 +0800,Wei Shen
> Hi,
>
> I have two ideas and wonder whether they are welcome as SoC projects.
>
> 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.
>
> 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.
>
> Regards,
>
> Wei Shen
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel



------=_Part_50389_29890487.1174739197844--