On Jan 27, 2008 2:24 AM, Bean <[EMAIL PROTECTED]> wrote: > On Jan 27, 2008 2:19 AM, walt <[EMAIL PROTECTED]> wrote: > > > > On Sat, 2008-01-26 at 18:24 +0100, Robert Millan wrote: > > > On Sat, Jan 26, 2008 at 11:01:49PM +0800, Bean wrote: > > > > this is the patch, problems found: > > > > > > > > 1, the mbi structure is not initialized to all zeros, this means some > > > > important member, like mods_count, will contain trash. > > > > 2, the entry point in the header is virtual address, we need to > > > > translate it to physical address. > > > > > > > > * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get > > > > physical > > > > address of entry. > > > > (grub_multiboot_load_elf64): Likewise. > > > > (grub_multiboot): Initialize mbi structure. > > > > > > Wow, you're inexhaustible :-) > > > > Indeed! Unfortunately I still get the same free magic is broken :o( > > As an experiment, I g-zipped the kernel and now grub2 just reboots > > without printing anything when I do multiboot /netbsd.gz. (The same > > kernel still boots normally with legacy grub.) > > don't gzip it, grub2 doesn't support auto decompression like grub legacy.
i just try multiboot_netbsd.gz, i boot ok. maybe you send netbsd.gz somewhere for me to test. -- Bean _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel