All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Malek <dan@mvista.com>
To: Ruedi.Hofer@ascom.ch
Cc: linuxppc-embedded@lists.linuxppc.org, vanbaren_gerald@si.com,
	kernel@linux01.hasler.ascom.ch
Subject: Re: VxWorks bootloader & PowerQUICC II, Booting the kernel
Date: Wed, 27 Sep 2000 13:36:24 -0400	[thread overview]
Message-ID: <39D23018.92FA6256@mvista.com> (raw)
In-Reply-To: 0G1J00L5RU694U@pmdf-it.hasler.ascom.ch


Ruedi.Hofer@ascom.ch wrote:

> I try to boot the Linux kernel on a SBC8260 evaluation board using
> the VxWorks bootloader.

Somewhere (and you can look through the archives as well as I can :-),
I posted a program that will hack a zImage so the VxWorks boot loader
will properly load and start it.....

> In order to be able to load the whole kernel at address 0x900000,
> I had to modify the ELF header of the zImage file. I basically changed
> the length and the start address.

There are a few more things, but that is the idea.


> 1. Why is the length in the ELF header wrong?

Well, it represents the code that we tack on the front of the
compressed kernel, not the contents of the image itself.  It is just
the result of the way we use the tools. "Wrong" depends upon your
point of view.  It works fine for some boards, including the Motorola
PPCBug boot roms.  However, the header doesn't really represent the
image.

> 2. Why is the start address set to 0x400000 and not to 0x900000?

Because the code is written to execute at 0x400000, but it must be
loaded somewhere above that.  The first thing the code does is discover
where it is loaded, move itself to the liked address, allocate some
memory for BSS and buffers, then starts working.  You can't load it
at the 0x400000 address because it allocates the BSS and buffers, the
will write over the attched zImage.


	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2000-09-27 17:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-27 15:11 VxWorks bootloader & PowerQUICC II, Booting the kernel Ruedi.Hofer
2000-09-27 17:36 ` Dan Malek [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-09-28  7:51 Ruedi.Hofer
2000-09-28 15:02 ` Dan Malek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=39D23018.92FA6256@mvista.com \
    --to=dan@mvista.com \
    --cc=Ruedi.Hofer@ascom.ch \
    --cc=kernel@linux01.hasler.ascom.ch \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=vanbaren_gerald@si.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.