From: Wolfgang Denk <wd@denx.de>
To: yuval <yuval@jungo.com>
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: Upload an image file
Date: Thu, 03 Aug 2000 20:37:42 +0200 [thread overview]
Message-ID: <200008031837.UAA10890@denx.local.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 1522 bytes --]
In message <4.3.1.2.20000803192448.00adb470@pop3> you wrote:
>
> I'm trying to install linux on ppc.
> I've compiled the kernel and trying to take the image (in
> arch/ppc/mbxboot/zImage) and transfer it to the "box", but if I'm using
> objcopy to transform it to srecords, the outcome is a file without the
> compressed linux image and when the gunzip start, it crash.
I think this is a FAQ, isn't it.
Anyway - the easiest way is to fool all tools about the internal
structure of the image by removing all ELF headers; it also has the
beneficial side effect to save 64 kB of memory.
Try this:
dd if=arch/ppc/mbxboot/zImage of=/tmp/image bs=64k skip=1
powerpc-linux-objcopy -I binary -O srec /tmp/image /tmp/srec
Then download the S-record file "/tmp/srec".
You can go a step further and use specialized tools to do the same
job: the attached source (provided by Ruedi Dummermuth at Abatron
with their BDI2000 BDM debugger) is such a tool - it takes care to
also exclude some other unnecessary data at the end of the image, so
it's especially useful when you need to minimize the memory footprint
of your image.
Maybe you should talk to your tool vendor to provide similar good
Linux support like Abatron.
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
Heavier than air flying machines are impossible.
-- Lord Kelvin, President, Royal Society, c. 1895
[-- Attachment #2: img2srec.c.gz --]
[-- Type: application/x-gzip , Size: 2754 bytes --]
next reply other threads:[~2000-08-03 18:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-08-03 18:37 Wolfgang Denk [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-08-03 17:37 Upload an image file yuval
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=200008031837.UAA10890@denx.local.net \
--to=wd@denx.de \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=yuval@jungo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox