From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1EWqOn-0003Nu-RI for mharc-grub-devel@gnu.org; Tue, 01 Nov 2005 02:17:38 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EWqOj-0003M8-NU for grub-devel@gnu.org; Tue, 01 Nov 2005 02:17:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EWqOh-0003KS-C6 for grub-devel@gnu.org; Tue, 01 Nov 2005 02:17:33 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EWqOg-0003Jy-KZ for grub-devel@gnu.org; Tue, 01 Nov 2005 02:17:30 -0500 Received: from [194.138.202.53] (helo=david.siemens.com.cn) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EWqOb-0002vf-Mo for grub-devel@gnu.org; Tue, 01 Nov 2005 02:17:30 -0500 Received: from ns.siemens.com.cn (ns.siemens.com.cn [194.138.237.52]) by david.siemens.com.cn (8.11.7/8.11.7) with ESMTP id jA172bo18428 for ; Tue, 1 Nov 2005 15:02:38 +0800 (CST) Received: from pekw096e.cn001.siemens.net (localhost [127.0.0.1]) by ns.siemens.com.cn (8.11.7/8.11.7) with ESMTP id jA177pR10962 for ; Tue, 1 Nov 2005 15:07:52 +0800 (CST) Received: by pekw096e.cn001.siemens.net with Internet Mail Service (5.5.2657.72) id ; Tue, 1 Nov 2005 15:17:14 +0800 Message-ID: <31F31018FE2DC941A70BD30477510B0C0659B399@biscm02.cn001.siemens.net> From: "Zhao Yu,SCNB R&D NNA(BJ)" To: The development of GRUB 2 Date: Tue, 1 Nov 2005 15:21:10 +0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C5DEB4.D52C9338" Subject: (no subject) 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: Tue, 01 Nov 2005 07:17:34 -0000 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C5DEB4.D52C9338 Content-Type: text/plain I just begin to read some code in GRUB2, I met a question. Could you help me out? In function void grub_rescue_cmd_multiboot (int argc, char *argv[]) { ... if (grub_multiboot_load_elf (file, buffer) != GRUB_ERR_NONE) goto fail; ... } Do that mean the OS image must be elf format? Or there are some miunderstand. Thank you ------_=_NextPart_001_01C5DEB4.D52C9338 Content-Type: text/html

I just begin to read some code in GRUB2, I met a question.
Could you help me out?

In function
void
grub_rescue_cmd_multiboot (int argc, char *argv[])
{
     ...
    if (grub_multiboot_load_elf (file, buffer) != GRUB_ERR_NONE)
    goto fail;
    ...
}
Do that mean the OS image must be elf format?
Or there are some miunderstand.

Thank you

------_=_NextPart_001_01C5DEB4.D52C9338--