Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HV6Lm-0005Go-Ep for mharc-grub-devel@gnu.org; Sat, 24 Mar 2007 09:32:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HV6Lk-0005Fy-3y for grub-devel@gnu.org; Sat, 24 Mar 2007 09:32:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HV6Li-0005FG-2U for grub-devel@gnu.org; Sat, 24 Mar 2007 09:32:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HV6Lh-0005FA-Vc for grub-devel@gnu.org; Sat, 24 Mar 2007 08:32:02 -0500 Received: from 263.net.cn ([211.150.96.21] helo=smtp.263.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HV6Jf-0000XE-Fp for grub-devel@gnu.org; Sat, 24 Mar 2007 09:29:56 -0400 Received: from smtp.263.net (unknown [127.0.0.1]) by smtp.263.net (Postfix) with ESMTP id F3CD720FFA2 for ; Sat, 24 Mar 2007 21:29:54 +0800 (CST) X-KSVirus-check: 0 X-ABS-CHECKED: 1 Received: from [192.168.0.100] (unknown [127.0.0.1]) by smtp.263.net (Postfix) with ESMTP id BC7D815DF3C for ; Sat, 24 Mar 2007 21:29:54 +0800 (CST) X-SENDER-IP: 221.222.207.122 X-LOGIN-NAME: colyli Received: from [192.168.0.100] (unknown [221.222.207.122]) by smtp.263.net (Postfix) whith ESMTP id 22763RAW46U; Sat, 24 Mar 2007 21:29:54 +0800 (CST) From: colyli To: The development of GRUB 2 In-Reply-To: References: Content-Type: text/plain; charset=utf-8 Date: Sat, 24 Mar 2007 21:35:25 +0800 Message-Id: <1174743325.22414.4.camel@colyT43.site> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: quoted-printable X-detected-kernel: Linux 2.4-2.6 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 13:32:04 -0000 Shen: Specify loading address for each multiboot module is not a perfect idea. Which will make kernel does more work on memory initiation. BTW kernel's loading address can be specified by multiboot header. After all, this is my feedback, just for your information. Enjoy hacking :-) Coly =E5=9C=A8 2007-03-24=E5=85=AD=E7=9A=84 20:26 +0800=EF=BC=8CWei Shen=E5=86= =99=E9=81=93=EF=BC=9A > Hi, > =20 > I will appreciate the comments from anybody on my ideas. > =20 > To Colyli: > =20 > You are right. Their "modaddr value" can do the same as my "addr =3D > 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. > =20 > Regards, > =20 > Wei Shen >=20 > =20 > 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=20 > the limition of "modaddr value" command, and how can the > limition to be > broken out by the "addr =3D value" option ? > =20 > Thanks. > =20 > Coly > On 3/24/07, Wei Shen wrote:=20 > Thanks for your advice. > =20 > On 3/24/07, colyli wrote:=20 > Chen: > =20 > In grub command line, you can edit the configre (even > mistaken), so > maybe it will not be worth to add an edit in grub.=20 > =20 > 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. > =20 > 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=20 > 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. > =20 > 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. > =20 > Best regards. > =20 > Coly > =20 > =20 > =E5=9C=A8 2007-03-23=E4=BA=94=E7=9A=84 23:46 +0800=EF=BC= =8CWei Shen > > Hi, > > > > I have two ideas and wonder whether they are welcome > as SoC projects.=20 > > > > 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=20 > > 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=20 > > 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 =3D 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,=20 > > > > Wei Shen > > _______________________________________________ > > Grub-devel mailing list > > Grub-devel@gnu.org > > http://lists.gnu.org/mailman/listinfo/grub-devel > =20 > =20 >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel