From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1QROyk-0003lf-JO for mharc-grub-devel@gnu.org; Tue, 31 May 2011 09:27:26 -0400 Received: from eggs.gnu.org ([140.186.70.92]:55101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRJbG-0004Li-Ez for grub-devel@gnu.org; Tue, 31 May 2011 03:42:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRJbF-0006f0-8y for grub-devel@gnu.org; Tue, 31 May 2011 03:42:50 -0400 Received: from exchtp08.via.com.tw ([61.66.243.7]:46071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRJbE-0006eN-Nk for grub-devel@gnu.org; Tue, 31 May 2011 03:42:49 -0400 Received: from mailtp.via.com.tw ([10.5.254.18]) by exchtp08.via.com.tw with Microsoft SMTPSVC(6.0.3790.4675); Tue, 31 May 2011 15:20:32 +0800 Received: from mailbj.viatech.com.cn ([10.2.254.21]) by mailtp.via.com.tw with Microsoft SMTPSVC(6.0.3790.4675); Tue, 31 May 2011 15:20:32 +0800 Received: from exchbj02.viatech.com.bj ([10.2.254.12]) by mailbj.viatech.com.cn with Microsoft SMTPSVC(6.0.3790.4675); Tue, 31 May 2011 15:20:31 +0800 Received: from [10.2.8.38] ([10.2.8.38]) by exchbj02.viatech.com.bj with Microsoft SMTPSVC(6.0.3790.4675); Tue, 31 May 2011 15:20:30 +0800 Message-ID: <4DE496BE.9080206@viatech.com.cn> Date: Tue, 31 May 2011 15:20:30 +0800 From: Rock Cui 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: grub-devel@gnu.org Subject: About =?GB2312?B?Z3J1Yi5jZmehqqGqQnVpbGRpbmcgY29yZWJvb3Qgd2l0aCBn?= =?GB2312?B?cnViMiBwYXlsb2Fk?= Content-Type: multipart/alternative; boundary="------------060205070402050601080508" X-OriginalArrivalTime: 31 May 2011 07:20:30.0987 (UTC) FILETIME=[3943CDB0:01CC1F63] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+ X-Received-From: 61.66.243.7 X-Mailman-Approved-At: Tue, 31 May 2011 09:27:25 -0400 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 07:42:51 -0000 This is a multi-part message in MIME format. --------------060205070402050601080508 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 --------------060205070402050601080508 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

--------------060205070402050601080508--