From: Steven Vacca <svacca@valcom.com>
To: "LinuxEmbeddedMailList (E-mail)" <linuxppc-embedded@lists.linuxppc.org>
Subject: initrd offset in zImage getting mis-aligned?
Date: Wed, 17 Oct 2001 11:32:21 -0400 [thread overview]
Message-ID: <01C156FF.63187140.svacca@valcom.com> (raw)
I am porting a version of Redhat's embedded linux kernel to
a new custom designed bd with the mpc860. I am using a
local RAM disk on this new bd.
The zImage (boot loader + zipped KERNEL + zipped RAM disk)
is downloaded into RAM, starts the BOOT loader,
unzips the kernel to 0x0000.0000, executes the initial kernel
code, unzips the RAM disk, starts booting the
kernel code, and then tarnsfers control to the app.
I can modify any of the stuff in the initrd, /sbin/init or
/sbin/app, for example, and the app runs.
But, if I modify the boot loader code or the kernel code,
then there may or may not be a problem loading initrd.
It's as though that adding or deleting code such as a printk()
from these cause the initrd to be moved forward or backward
and possibly losing alignment in the zImage, thus causing the
gunzip to bomb. I used to get, after the compressed initrd was
located, error msgs such as "invalid compressed image". But
by merely adding a printk() to start_kernel(), for instance, the
compressed initrd is located un unzipped and code execution is
allowed to continue on to the app.
Thanks,
Steven Vacca
Valcom, Inc.
Roanoke, Virginia
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next reply other threads:[~2001-10-17 15:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-17 15:32 Steven Vacca [this message]
2001-10-17 17:08 ` initrd offset in zImage getting mis-aligned? Tom Rini
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=01C156FF.63187140.svacca@valcom.com \
--to=svacca@valcom.com \
--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 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.