bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #34820] Multiboot image not recognized


From: Faustino Ribeiro
Subject: [bug #34820] Multiboot image not recognized
Date: Mon, 14 Nov 2011 17:39:03 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1

Follow-up Comment #3, bug #34820 (project grub):

Here is the output of mbchk on the kernel.bin file I uploaded:

iso_files/boot/kernel.bin: The Multiboot header is found at the offset 4100.
iso_files/boot/kernel.bin: Page alignment is turned on.
iso_files/boot/kernel.bin: Memory information is turned on.
iso_files/boot/kernel.bin: Address fields is turned off.
iso_files/boot/kernel.bin: All checks passed.

Here is also the linker configuration file I use (perhaps the header is not in
the right place, but then why does it work in grub legacy?)



OUTPUT_FORMAT(elf32-i386)

ENTRY(loader)

phys = 0x00100000;

virt = 0xC0001000;

SECTIONS

{

        .setup phys : AT (phys)

        {

                *(.setup)

                . = ALIGN(4096);

        }



        .text virt : AT ( ADDR(.setup) + SIZEOF (.setup) ) 

        {

                *(.text*)

                *(.rodata*)

                . = ALIGN(4096);

        }



        .data : AT ( ADDR(.setup) + SIZEOF (.setup) + SIZEOF(.text) )

        {

                *(.data)

                . = ALIGN(4096);

        }



        .bss : AT ( ADDR(.setup) + SIZEOF (.setup) + SIZEOF(.text) + 
SIZEOF(.data) )

        {

                bss = .;

                *(.bss)

                . = ALIGN(4096);

                *(COMMON)

                . = ALIGN(4096);

        }



        _end = .;

}


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34820>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]