On Wed, Jun 18, 2008 at 1:18 AM, Pavel Roskin <[EMAIL PROTECTED]> wrote: > On Wed, 2008-06-18 at 00:02 +0800, Bean wrote: >> >> Are you using the native compiler, or cross compile from i386 ? It >> >> could have some effect. >> > >> > I'm compiling natively on PowerPC. >> >> It could be an endian problem. Check the elf header, see if the fields are >> ok. > > That's the headers, I don't see anything wrong. The sections are > missing, but it has always been like that. The version is current from > CVS. > > $ ./grub-mkimage -o grub.img -d . *.mod > $ objdump -x grub.img > > grub.img: file format elf32-powerpc > grub.img > architecture: powerpc:common, flags 0x00000102: > EXEC_P, D_PAGED > start address 0x00010000 > > Program Header: > LOAD off 0x000000c0 vaddr 0x00010000 paddr 0x00010000 align 2**4 > filesz 0x0000bf04 memsz 0x000133a8 flags rwx > LOAD off 0x0000bfc4 vaddr 0x100000b4 paddr 0x100000b4 align 2**2 > filesz 0x00000024 memsz 0x00000024 flags r-- > NOTE off 0x0000bfc4 vaddr 0x100000b4 paddr 0x100000b4 align 2**2 > filesz 0x00000024 memsz 0x00000024 flags r-- > STACK off 0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**2 > filesz 0x00000000 memsz 0x00000000 flags rwx > LOAD off 0x0000bfe8 vaddr 0x10009000 paddr 0x10009000 align 2**2 > filesz 0x00052104 memsz 0x00052104 flags rwx > > Sections: > Idx Name Size VMA LMA File off Algn > SYMBOL TABLE: > no symbols > > > The image loads, complains about "cursor-on", shows "Welcome to GRUB" > and the prompt. "lsmod" shows an empty list.
Hi, You can also add some printf in kern/elf.c to see if grub can parse it properly, for example, grub_elf_check_header is a common place where problem occurs. -- Bean _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel