linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* zimage relocation
@ 1999-02-11  6:03 baccala
  0 siblings, 0 replies; only message in thread
From: baccala @ 1999-02-11  6:03 UTC (permalink / raw)
  To: linuxppc-dev


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 to
needs_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?
-- 
					-bwb

					Brent Baccala
					baccala@freesoft.org

-------------------------------------------------------------------------
To receive periodic news about what's happening at freesoft.org, send
email to "announce@freesoft.org", with "SUBSCRIBE" as the message, i.e:
		echo SUBSCRIBE | mail announce@freesoft.org
-------------------------------------------------------------------------


[[ 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 linuxppc-dev-request@lists.linuxppc.org ]]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-02-11  6:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-11  6:03 zimage relocation baccala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).