From: Duncan Palmer <dunk@nsw.bigpond.net.au>
To: linuxppc-embedded@lists.linuxppc.org, DBrown03@harris.com
Subject: Re: Questions about 8xxrom
Date: Thu, 01 Jun 2000 16:49:30 +1000 [thread overview]
Message-ID: <3936077A.7075C045@nsw.bigpond.net.au> (raw)
>
> "Brown, David (dbrown03)" wrote:
>
> > ..... But 8xxrom was
> > intended to work with disk in addition to flash, so I started exploring why
> > ELF-loading didn't work.
Dan Malek wrote:
>
>
> The zImage is simple. It is not an ELF image. Strip the 64k header
> from the image. Load the bits at or above 0x00200000. Jump to the
> first instruction.
>
> If you are loading from a disk, which I presume has a file system, you
> know the size of the file. Just load it. I know originally the loader
> knew it had to load at or above 0x00200000.......It also knew it was
> loading a zImage, and if the ELF header was found knew what it could
> believe or not and how to start a zImage. I don't know what the code
> looks like today, as I am still using the old stuff from years ago.
I posted a couple of patches to Raphael Bossek (the guy who maintains
8xxrom now) a couple of months back which are really worth applying
(they add support for RPX classic boards, clean some things up
considerably, and make it cleaner to add support for new boards). These
live on raphaels site at www.s4l.de, or mine at www.zip.com.au/~dunk
These patches include little chunks of code to load images from flash
(safely ignoring all elf headers ;)). From memory, the code which loads
elf images from disk expects what is in the elf header to be correct
(which is obviously a broken assumption a lot of the time).
Dunk
PS. Please cc: any replies to me as I'm on holidays at the moment, and
so am not subscribed to the list.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next reply other threads:[~2000-06-01 6:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-01 6:49 Duncan Palmer [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-05-30 13:35 Questions about 8xxrom Brown, David (dbrown03)
2000-05-30 17:41 ` Dan Malek
2000-05-26 13:48 Brown, David (dbrown03)
2000-05-26 16:11 ` Dan Malek
2000-05-29 2:25 ` Graham Stoney
2000-05-29 21:48 ` 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=3936077A.7075C045@nsw.bigpond.net.au \
--to=dunk@nsw.bigpond.net.au \
--cc=DBrown03@harris.com \
--cc=dunk@zip.com.au \
--cc=linuxppc-embedded@lists.linuxppc.org \
/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 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).