zimage relocation
Hi -
I'm having trouble with the recent (~ 1.5 weeks ago) changes to arch/ppc/boot/misc.c, relating to MBX image relocation. On my IBM 860 laptop, the relocation never used to run ('cause I wasn't using ramdisks), but now it does, and the image doesn't decompress properly.
If I comment out this section of code in misc.c, everything works fine:
if ( (( (unsigned long)zimage_start <= 0x01000000 ) && initrd_start)
|| needs_reloc)
{
memcpy ((void *)PAGE_ALIGN(-PAGE_SIZE+(unsigned long)end_avail-zimage_size),
(void *)zimage_start, zimage_size );
zimage_start = (char *)PAGE_ALIGN(-PAGE_SIZE+(unsigned long)end_avail-zimage_size);
end_avail = (char *)zimage_start;
puts("relocated to: "); puthex((unsigned long)zimage_start);
puts(" ");
puthex((unsigned long)zimage_size+(unsigned long)zimage_start);
puts("\n");
}Clearly, the machine is responding toneeds_reloc, since my initrd_start is 0, no ramdisk. needs_reloc was set by the Motorola detect code. So what does the Motorola detect actually do, why would it be triggered on my IBM 860, and what should be done about it?
Signature · 16 lines
-bwb Brent Baccala [email protected] ------------------------------------------------------------------------- To receive periodic news about what's happening at freesoft.org, send email to "[email protected]", with "SUBSCRIBE" as the message, i.e: echo SUBSCRIBE | mail [email protected] ------------------------------------------------------------------------- [[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]