booting with BootX corrupts memory
Subsystems (2)
Quoted 8 lines · Olaf Hering
Booting an old Mac with BootX corrupts memory, the kernel seldom gets into init. Even the built-in initramfs archive gets corrupted. So far I havent figured out where the corruption starts. The only data point so far is that a passed initrd gets overwritten with stuff that looks like part of the device-tree after the call to
free_area_init_node()frompaging_init(). Perhaps the virtual/real address mapping isnt handled correctly.
Quoted 4 lines
This is broken since at least 2.6.15, 2.6.14 dies very early, 2.6.13 was still ok.
Symptoms differ, depending on used .config and wether an initrd is passed.
I think I've been hit by this bug on my beige G3 running Ubuntu Edgy.
When booting with initrd the boot process stops before any kernel output (CONFIG_BOOTX_TEXT is not enabled). Booting without initrd works fine - at least until it cannot find the root filesystem driver. ;-)
Anything I can do to help debug this?
Regards,
Signature · 3 lines
Niels Kristian Bech Jensen Stop software piracy --- use free software.
Quoted 13 lines · Niels Kristian Bech Jensen
Quoted 10 lines · Olaf Hering
Booting an old Mac with BootX corrupts memory, the kernel seldom gets into init. Even the built-in initramfs archive gets corrupted. So far I havent figured out where the corruption starts. The only data point so far is that a passed initrd gets overwritten with stuff that looks like part of the device-tree after the call to
free_area_init_node()frompaging_init(). Perhaps the virtual/real address mapping isnt handled correctly.This is broken since at least 2.6.15, 2.6.14 dies very early, 2.6.13 was still ok.
Quoted 6 lines
Quoted 1 line
Symptoms differ, depending on used .config and wether an initrd is passed.
I think I've been hit by this bug on my beige G3 running Ubuntu Edgy.
When booting with initrd the boot process stops before any kernel output (
CONFIG_BOOTX_TEXTis not enabled). Booting without initrd works fine - at least until it cannot find the root filesystem driver. ;-)
Does this patch helps ?
arch/powerpc/platforms/powermac/bootx_init.c +11 -4
@@ -411,8 +411,15 @@DBG ("End of boot params: %x\n" , mem_end); rsvmap[0 ] = mem_start; rsvmap[1 ] = mem_end; - rsvmap[2 ] =0 ; - rsvmap[3 ] =0 ; +if (bootx_info->ramDisk) { + rsvmap[2 ] = ((unsigned long )bootx_info) + bootx_info->ramDisk; + rsvmap[3 ] = rsvmap[2 ] + bootx_info->ramDiskSize; + rsvmap[4 ] =0 ; + rsvmap[5 ] =0 ; + }else { + rsvmap[2 ] =0 ; + rsvmap[3 ] =0 ; + }return (unsigned long )hdr; }
@@ -543,12 +550,12 @@*/ if (bi->version <5 ) { space = bi->deviceTreeOffset + bi->deviceTreeSize; -if (bi->ramDisk) +if (bi->ramDisk >= space) space = bi->ramDisk + bi->ramDiskSize; }else space = bi->totalParamsSize; -bootx_printf ("Total space used by parameters & ramdisk: %x \n" , space); +bootx_printf ("Total space used by parameters & ramdisk: 0x%x \n" , space);/* New BootX will have flushed all TLBs and enters kernel with * MMU switched OFF, so this should not be useful anymore.
Quoted 14 lines · Benjamin Herrenschmidt
Quoted 13 lines · Niels Kristian Bech Jensen
Quoted 10 lines · Olaf Hering
Booting an old Mac with BootX corrupts memory, the kernel seldom gets into init. Even the built-in initramfs archive gets corrupted. So far I havent figured out where the corruption starts. The only data point so far is that a passed initrd gets overwritten with stuff that looks like part of the device-tree after the call to
free_area_init_node()frompaging_init(). Perhaps the virtual/real address mapping isnt handled correctly.This is broken since at least 2.6.15, 2.6.14 dies very early, 2.6.13 was still ok.
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Symptoms differ, depending on used .config and wether an initrd is passed.
I think I've been hit by this bug on my beige G3 running Ubuntu Edgy.
When booting with initrd the boot process stops before any kernel output (
CONFIG_BOOTX_TEXTis not enabled). Booting without initrd works fine - at least until it cannot find the root filesystem driver. ;-)Does this patch helps ?
No, now I dont even get console= output on serial console.
Quoted 14 lines · Benjamin Herrenschmidt
Quoted 13 lines · Niels Kristian Bech Jensen
Quoted 10 lines · Olaf Hering
Booting an old Mac with BootX corrupts memory, the kernel seldom gets into init. Even the built-in initramfs archive gets corrupted. So far I havent figured out where the corruption starts. The only data point so far is that a passed initrd gets overwritten with stuff that looks like part of the device-tree after the call to
free_area_init_node()frompaging_init(). Perhaps the virtual/real address mapping isnt handled correctly.This is broken since at least 2.6.15, 2.6.14 dies very early, 2.6.13 was still ok.
Quoted 9 lines
Quoted 6 lines
Quoted 1 line
Symptoms differ, depending on used .config and wether an initrd is passed.
I think I've been hit by this bug on my beige G3 running Ubuntu Edgy.
When booting with initrd the boot process stops before any kernel output (
CONFIG_BOOTX_TEXTis not enabled). Booting without initrd works fine - at least until it cannot find the root filesystem driver. ;-)Does this patch helps ?
Yes, it fixes the problem for me. Thanks.
Signature · 3 lines
Niels Kristian Bech Jensen Stop software piracy --- use free software.
Quoted 17 lines · Olaf Hering
Quoted 16 lines · Benjamin Herrenschmidt
Quoted 15 lines · Niels Kristian Bech Jensen
Quoted 12 lines · Olaf Hering
Booting an old Mac with BootX corrupts memory, the kernel seldom gets into init. Even the built-in initramfs archive gets corrupted. So far I havent figured out where the corruption starts. The only data point so far is that a passed initrd gets overwritten with stuff that looks like part of the device-tree after the call to
free_area_init_node()frompaging_init(). Perhaps the virtual/real address mapping isnt handled correctly.This is broken since at least 2.6.15, 2.6.14 dies very early, 2.6.13 was still ok.
Symptoms differ, depending on used .config and wether an initrd is passed.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
I think I've been hit by this bug on my beige G3 running Ubuntu Edgy.
When booting with initrd the boot process stops before any kernel output (
CONFIG_BOOTX_TEXTis not enabled). Booting without initrd works fine - at least until it cannot find the root filesystem driver. ;-)Does this patch helps ?
No, now I dont even get console= output on serial console.
It doesnt work on a 7200, butit works on a beige G3. But later it locks up in 'PM: Adding info for No Bus:target0:0', after mesh init. This one is likely unrelated.
Quoted 6 lines
Quoted 2 lines
No, now I dont even get console= output on serial console.
It doesnt work on a 7200, butit works on a beige G3. But later it locks up in 'PM: Adding info for No Bus:target0:0', after mesh init. This one is likely unrelated.
Depends.... does it work if you netboot a zImage.coff ?
Ben.
Quoted 8 lines · Benjamin Herrenschmidt
Quoted 6 lines
Quoted 2 lines
No, now I dont even get console= output on serial console.
It doesnt work on a 7200, butit works on a beige G3. But later it locks up in 'PM: Adding info for No Bus:target0:0', after mesh init. This one is likely unrelated.
Depends.... does it work if you netboot a zImage.coff ?
Have to try that, but 2.6.16 freezes as well.