From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1QRJyh-0001ax-52 for mharc-grub-devel@gnu.org; Tue, 31 May 2011 04:07:03 -0400 Received: from eggs.gnu.org ([140.186.70.92]:46673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRJyd-0001WD-Tk for grub-devel@gnu.org; Tue, 31 May 2011 04:07:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRJyc-0002wg-GN for grub-devel@gnu.org; Tue, 31 May 2011 04:06:59 -0400 Received: from m50-135.163.com ([123.125.50.135]:38548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRJyZ-0002w1-5r; Tue, 31 May 2011 04:06:55 -0400 Received: from [10.2.8.38] (unknown [152.104.150.33]) by smtp5 (Coremail) with SMTP id D9GowKCrV4f1luRN59ZFAg--.1260S2; Tue, 31 May 2011 15:21:26 +0800 (CST) Message-ID: <4DE496F7.5000108@163.com> Date: Tue, 31 May 2011 15:21:27 +0800 From: Cui Lei User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 MIME-Version: 1.0 To: help-grub@gnu.org, grub-devel@gnu.org Subject: About =?GB2312?B?Z3J1Yi5jZmehqqGqQnVpbGRpbmcgY29yZWJvb3Qgd2l0aCBn?= =?GB2312?B?cnViMiBwYXlsb2Fk?= Content-Type: multipart/alternative; boundary="------------090509020305060909040600" X-CM-TRANSID: D9GowKCrV4f1luRN59ZFAg--.1260S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7uF4UuFWktFy5Kw4kWry3urg_yoW8GFW7pF yfJ3WSgFWv9F4Sy3y8Xr1Sk34UZr1xXa48tr9rW342qFnxJ34DZa40yr15Ca17urZIq3yU ZFy8CrW5AF9Yqw7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jwrc-UUUUU= X-CM-SenderInfo: pqhyv25iruwvdwbsiiqs6rljoofrz/1tbiORtQNkjh7EnFDQABsB X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 123.125.50.135 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2011 08:07:01 -0000 This is a multi-part message in MIME format. --------------090509020305060909040600 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit I am working hard at building coreboot with grub2 payload. Now I can build a grub2 payload as follow: 1: Download the lastest grub2 source code. 2: ./autogen.sh ./configure --with-platform=coreboot make 3: Use grub-mkimage to generate a "payload.elf", detail: ./grub-mkimage -d . -O i386-coreboot -o ../coreboot-v4/payload.elf --prefix='/boot/grub2' memdisk cpio -m ../memdisk.tar Accoding the coreboot website(http://www.coreboot.org/Talk:GRUB2), memdisk is a virtual disk in grub image and it is suggested that grub.cfg is contained in a memdisk image. So I made folders boot/grub2 in my work folder and add a new grub.cfg and some modules(such as memdisk.mod cpio.mod ...) into the boot/grub2, then tar boot/grub2 to memdisk.tar(according to the website tar can be used to build a memdisk image). *Problems:* 1: I don't know wether grub2 can found my grub.cfg ,if I set " --prefix='/boot/grub2' " ? On the coreboot website,a sample is --prefix='(ata0)/boot/grub2'. I think the ata0 is hard disk. but I use the memdisk image, what should I do ? 2: I want my grub.cfg in memdisk to load the grub.cfg from my hard disk. Because I have install the ubuntu11.04 on my hard disk, a grub.cfg file should be in the /boot/grub. So my grub.cfg just like this: search -f -s /boot/grub/grub.cfg configfile /boot/grub/grub.cfg Is this practicable? 3: I want the gurb can boot into the grub-shell, how to ? BRs, Rock.C --------------090509020305060909040600 Content-Type: text/html; charset=GB2312 Content-Transfer-Encoding: 7bit I am working hard at building coreboot with grub2 payload. Now  I can build a grub2 payload as follow:
1: Download the lastest grub2 source code.
2: ./autogen.sh
    ./configure --with-platform=coreboot
     make
3: Use grub-mkimage to generate a "payload.elf", detail:
    ./grub-mkimage -d . -O i386-coreboot -o ../coreboot-v4/payload.elf --prefix='/boot/grub2'
      memdisk cpio -m ../memdisk.tar
       
    Accoding the coreboot website(http://www.coreboot.org/Talk:GRUB2), memdisk is a virtual disk
    in grub image and it is suggested that grub.cfg is contained in a memdisk image. So I made
    folders boot/grub2 in my work folder and add a new grub.cfg and some modules(such as
    memdisk.mod cpio.mod ...) into the boot/grub2, then tar boot/grub2 to memdisk.tar(according
    to the website tar can be used to build a memdisk image).

Problems:
    1: I don't know wether grub2 can found my grub.cfg ,if I set  " --prefix='/boot/grub2' " ?
        On the coreboot website,a sample is  --prefix='(ata0)/boot/grub2'. I think the ata0 is hard disk.
        but I use the memdisk image, what should I do ?

    2: I want my grub.cfg in memdisk to load the grub.cfg from my hard disk. Because I have install the
        ubuntu11.04 on my hard disk, a grub.cfg file should be in the /boot/grub. So my grub.cfg just like
        this:
                search -f -s /boot/grub/grub.cfg
                configfile /boot/grub/grub.cfg
        
        Is this practicable?

    3: I want the gurb can boot into the grub-shell, how to ?

BRs,

Rock.C

--------------090509020305060909040600--